xref: /linux/drivers/pinctrl/freescale/pinctrl-imx6sll.c (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1864670d5SBai Ping // SPDX-License-Identifier: GPL-2.0
2c2b39decSFabio Estevam //
3c2b39decSFabio Estevam // Copyright (C) 2016 Freescale Semiconductor, Inc.
4c2b39decSFabio Estevam // Copyright 2017-2018 NXP.
5864670d5SBai Ping 
6864670d5SBai Ping #include <linux/err.h>
7864670d5SBai Ping #include <linux/init.h>
8864670d5SBai Ping #include <linux/io.h>
9864670d5SBai Ping #include <linux/module.h>
10*060f03e9SRob Herring #include <linux/mod_devicetable.h>
11*060f03e9SRob Herring #include <linux/platform_device.h>
12864670d5SBai Ping #include <linux/pinctrl/pinctrl.h>
13864670d5SBai Ping 
14864670d5SBai Ping #include "pinctrl-imx.h"
15864670d5SBai Ping 
16864670d5SBai Ping enum imx6sll_pads {
17864670d5SBai Ping 	MX6SLL_PAD_RESERVE0 = 0,
18864670d5SBai Ping 	MX6SLL_PAD_RESERVE1 = 1,
19864670d5SBai Ping 	MX6SLL_PAD_RESERVE2 = 2,
20864670d5SBai Ping 	MX6SLL_PAD_RESERVE3 = 3,
21864670d5SBai Ping 	MX6SLL_PAD_RESERVE4 = 4,
22864670d5SBai Ping 	MX6SLL_PAD_WDOG_B = 5,
23864670d5SBai Ping 	MX6SLL_PAD_REF_CLK_24M = 6,
24864670d5SBai Ping 	MX6SLL_PAD_REF_CLK_32K = 7,
25864670d5SBai Ping 	MX6SLL_PAD_PWM1 = 8,
26864670d5SBai Ping 	MX6SLL_PAD_KEY_COL0 = 9,
27864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW0 = 10,
28864670d5SBai Ping 	MX6SLL_PAD_KEY_COL1 = 11,
29864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW1 = 12,
30864670d5SBai Ping 	MX6SLL_PAD_KEY_COL2 = 13,
31864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW2 = 14,
32864670d5SBai Ping 	MX6SLL_PAD_KEY_COL3 = 15,
33864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW3 = 16,
34864670d5SBai Ping 	MX6SLL_PAD_KEY_COL4 = 17,
35864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW4 = 18,
36864670d5SBai Ping 	MX6SLL_PAD_KEY_COL5 = 19,
37864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW5 = 20,
38864670d5SBai Ping 	MX6SLL_PAD_KEY_COL6 = 21,
39864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW6 = 22,
40864670d5SBai Ping 	MX6SLL_PAD_KEY_COL7 = 23,
41864670d5SBai Ping 	MX6SLL_PAD_KEY_ROW7 = 24,
42864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA00 = 25,
43864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA01 = 26,
44864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA02 = 27,
45864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA03 = 28,
46864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA04 = 29,
47864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA05 = 30,
48864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA06 = 31,
49864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA07 = 32,
50864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA08 = 33,
51864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA09 = 34,
52864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA10 = 35,
53864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA11 = 36,
54864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA12 = 37,
55864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA13 = 38,
56864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA14 = 39,
57864670d5SBai Ping 	MX6SLL_PAD_EPDC_DATA15 = 40,
58864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDCLK = 41,
59864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDLE = 42,
60864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDOE = 43,
61864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDSHR = 44,
62864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDCE0 = 45,
63864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDCE1 = 46,
64864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDCE2 = 47,
65864670d5SBai Ping 	MX6SLL_PAD_EPDC_SDCE3 = 48,
66864670d5SBai Ping 	MX6SLL_PAD_EPDC_GDCLK = 49,
67864670d5SBai Ping 	MX6SLL_PAD_EPDC_GDOE = 50,
68864670d5SBai Ping 	MX6SLL_PAD_EPDC_GDRL = 51,
69864670d5SBai Ping 	MX6SLL_PAD_EPDC_GDSP = 52,
70864670d5SBai Ping 	MX6SLL_PAD_EPDC_VCOM0 = 53,
71864670d5SBai Ping 	MX6SLL_PAD_EPDC_VCOM1 = 54,
72864670d5SBai Ping 	MX6SLL_PAD_EPDC_BDR0 = 55,
73864670d5SBai Ping 	MX6SLL_PAD_EPDC_BDR1 = 56,
74864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_CTRL0 = 57,
75864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_CTRL1 = 58,
76864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_CTRL2 = 59,
77864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_CTRL3 = 60,
78864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_COM = 61,
79864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_INT = 62,
80864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_STAT = 63,
81864670d5SBai Ping 	MX6SLL_PAD_EPDC_PWR_WAKE = 64,
82864670d5SBai Ping 	MX6SLL_PAD_LCD_CLK = 65,
83864670d5SBai Ping 	MX6SLL_PAD_LCD_ENABLE = 66,
84864670d5SBai Ping 	MX6SLL_PAD_LCD_HSYNC = 67,
85864670d5SBai Ping 	MX6SLL_PAD_LCD_VSYNC = 68,
86864670d5SBai Ping 	MX6SLL_PAD_LCD_RESET = 69,
87864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA00 = 70,
88864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA01 = 71,
89864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA02 = 72,
90864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA03 = 73,
91864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA04 = 74,
92864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA05 = 75,
93864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA06 = 76,
94864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA07 = 77,
95864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA08 = 78,
96864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA09 = 79,
97864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA10 = 80,
98864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA11 = 81,
99864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA12 = 82,
100864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA13 = 83,
101864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA14 = 84,
102864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA15 = 85,
103864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA16 = 86,
104864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA17 = 87,
105864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA18 = 88,
106864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA19 = 89,
107864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA20 = 90,
108864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA21 = 91,
109864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA22 = 92,
110864670d5SBai Ping 	MX6SLL_PAD_LCD_DATA23 = 93,
111864670d5SBai Ping 	MX6SLL_PAD_AUD_RXFS = 94,
112864670d5SBai Ping 	MX6SLL_PAD_AUD_RXC = 95,
113864670d5SBai Ping 	MX6SLL_PAD_AUD_RXD = 96,
114864670d5SBai Ping 	MX6SLL_PAD_AUD_TXC = 97,
115864670d5SBai Ping 	MX6SLL_PAD_AUD_TXFS = 98,
116864670d5SBai Ping 	MX6SLL_PAD_AUD_TXD = 99,
117864670d5SBai Ping 	MX6SLL_PAD_AUD_MCLK = 100,
118864670d5SBai Ping 	MX6SLL_PAD_UART1_RXD = 101,
119864670d5SBai Ping 	MX6SLL_PAD_UART1_TXD = 102,
120864670d5SBai Ping 	MX6SLL_PAD_I2C1_SCL = 103,
121864670d5SBai Ping 	MX6SLL_PAD_I2C1_SDA = 104,
122864670d5SBai Ping 	MX6SLL_PAD_I2C2_SCL = 105,
123864670d5SBai Ping 	MX6SLL_PAD_I2C2_SDA = 106,
124864670d5SBai Ping 	MX6SLL_PAD_ECSPI1_SCLK = 107,
125864670d5SBai Ping 	MX6SLL_PAD_ECSPI1_MOSI = 108,
126864670d5SBai Ping 	MX6SLL_PAD_ECSPI1_MISO = 109,
127864670d5SBai Ping 	MX6SLL_PAD_ECSPI1_SS0 = 110,
128864670d5SBai Ping 	MX6SLL_PAD_ECSPI2_SCLK = 111,
129864670d5SBai Ping 	MX6SLL_PAD_ECSPI2_MOSI = 112,
130864670d5SBai Ping 	MX6SLL_PAD_ECSPI2_MISO = 113,
131864670d5SBai Ping 	MX6SLL_PAD_ECSPI2_SS0 = 114,
132864670d5SBai Ping 	MX6SLL_PAD_SD1_CLK = 115,
133864670d5SBai Ping 	MX6SLL_PAD_SD1_CMD = 116,
134864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA0 = 117,
135864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA1 = 118,
136864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA2 = 119,
137864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA3 = 120,
138864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA4 = 121,
139864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA5 = 122,
140864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA6 = 123,
141864670d5SBai Ping 	MX6SLL_PAD_SD1_DATA7 = 124,
142864670d5SBai Ping 	MX6SLL_PAD_SD2_RESET = 125,
143864670d5SBai Ping 	MX6SLL_PAD_SD2_CLK = 126,
144864670d5SBai Ping 	MX6SLL_PAD_SD2_CMD = 127,
145864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA0 = 128,
146864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA1 = 129,
147864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA2 = 130,
148864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA3 = 131,
149864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA4 = 132,
150864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA5 = 133,
151864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA6 = 134,
152864670d5SBai Ping 	MX6SLL_PAD_SD2_DATA7 = 135,
153864670d5SBai Ping 	MX6SLL_PAD_SD3_CLK = 136,
154864670d5SBai Ping 	MX6SLL_PAD_SD3_CMD = 137,
155864670d5SBai Ping 	MX6SLL_PAD_SD3_DATA0 = 138,
156864670d5SBai Ping 	MX6SLL_PAD_SD3_DATA1 = 139,
157864670d5SBai Ping 	MX6SLL_PAD_SD3_DATA2 = 140,
158864670d5SBai Ping 	MX6SLL_PAD_SD3_DATA3 = 141,
159864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO20 = 142,
160864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO21 = 143,
161864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO19 = 144,
162864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO25 = 145,
163864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO18 = 146,
164864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO24 = 147,
165864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO23 = 148,
166864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO17 = 149,
167864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO22 = 150,
168864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO16 = 151,
169864670d5SBai Ping 	MX6SLL_PAD_GPIO4_IO26 = 152,
170864670d5SBai Ping };
171864670d5SBai Ping 
172864670d5SBai Ping /* Pad names for the pinmux subsystem */
173864670d5SBai Ping static const struct pinctrl_pin_desc imx6sll_pinctrl_pads[] = {
174864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_RESERVE0),
175864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_RESERVE1),
176864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_RESERVE2),
177864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_RESERVE3),
178864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_RESERVE4),
179864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_WDOG_B),
180864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_REF_CLK_24M),
181864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_REF_CLK_32K),
182864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_PWM1),
183864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL0),
184864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW0),
185864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL1),
186864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW1),
187864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL2),
188864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW2),
189864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL3),
190864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW3),
191864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL4),
192864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW4),
193864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL5),
194864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW5),
195864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL6),
196864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW6),
197864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_COL7),
198864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_KEY_ROW7),
199864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA00),
200864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA01),
201864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA02),
202864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA03),
203864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA04),
204864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA05),
205864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA06),
206864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA07),
207864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA08),
208864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA09),
209864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA10),
210864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA11),
211864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA12),
212864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA13),
213864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA14),
214864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_DATA15),
215864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDCLK),
216864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDLE),
217864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDOE),
218864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDSHR),
219864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDCE0),
220864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDCE1),
221864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDCE2),
222864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_SDCE3),
223864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_GDCLK),
224864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_GDOE),
225864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_GDRL),
226864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_GDSP),
227864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_VCOM0),
228864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_VCOM1),
229864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_BDR0),
230864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_BDR1),
231864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_CTRL0),
232864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_CTRL1),
233864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_CTRL2),
234864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_CTRL3),
235864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_COM),
236864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_INT),
237864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_STAT),
238864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_EPDC_PWR_WAKE),
239864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_CLK),
240864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_ENABLE),
241864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_HSYNC),
242864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_VSYNC),
243864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_RESET),
244864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA00),
245864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA01),
246864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA02),
247864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA03),
248864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA04),
249864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA05),
250864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA06),
251864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA07),
252864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA08),
253864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA09),
254864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA10),
255864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA11),
256864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA12),
257864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA13),
258864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA14),
259864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA15),
260864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA16),
261864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA17),
262864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA18),
263864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA19),
264864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA20),
265864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA21),
266864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA22),
267864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_LCD_DATA23),
268864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_RXFS),
269864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_RXC),
270864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_RXD),
271864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_TXC),
272864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_TXFS),
273864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_TXD),
274864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_AUD_MCLK),
275864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_UART1_RXD),
276864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_UART1_TXD),
277864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_I2C1_SCL),
278864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_I2C1_SDA),
279864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_I2C2_SCL),
280864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_I2C2_SDA),
281864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI1_SCLK),
282864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI1_MOSI),
283864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI1_MISO),
284864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI1_SS0),
285864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI2_SCLK),
286864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI2_MOSI),
287864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI2_MISO),
288864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_ECSPI2_SS0),
289864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_CLK),
290864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_CMD),
291864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA0),
292864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA1),
293864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA2),
294864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA3),
295864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA4),
296864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA5),
297864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA6),
298864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD1_DATA7),
299864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_RESET),
300864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_CLK),
301864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_CMD),
302864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA0),
303864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA1),
304864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA2),
305864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA3),
306864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA4),
307864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA5),
308864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA6),
309864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD2_DATA7),
310864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_CLK),
311864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_CMD),
312864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_DATA0),
313864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_DATA1),
314864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_DATA2),
315864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_SD3_DATA3),
316864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO20),
317864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO21),
318864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO19),
319864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO25),
320864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO18),
321864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO24),
322864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO23),
323864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO17),
324864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO22),
325864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO16),
326864670d5SBai Ping 	IMX_PINCTRL_PIN(MX6SLL_PAD_GPIO4_IO26),
327864670d5SBai Ping };
328864670d5SBai Ping 
329864670d5SBai Ping static const struct imx_pinctrl_soc_info imx6sll_pinctrl_info = {
330864670d5SBai Ping 	.pins = imx6sll_pinctrl_pads,
331864670d5SBai Ping 	.npins = ARRAY_SIZE(imx6sll_pinctrl_pads),
332864670d5SBai Ping 	.gpr_compatible = "fsl,imx6sll-iomuxc-gpr",
333864670d5SBai Ping };
334864670d5SBai Ping 
335864670d5SBai Ping static const struct of_device_id imx6sll_pinctrl_of_match[] = {
336864670d5SBai Ping 	{ .compatible = "fsl,imx6sll-iomuxc", .data = &imx6sll_pinctrl_info, },
337864670d5SBai Ping 	{ /* sentinel */ }
338864670d5SBai Ping };
339864670d5SBai Ping 
imx6sll_pinctrl_probe(struct platform_device * pdev)340864670d5SBai Ping static int imx6sll_pinctrl_probe(struct platform_device *pdev)
341864670d5SBai Ping {
342864670d5SBai Ping 	return imx_pinctrl_probe(pdev, &imx6sll_pinctrl_info);
343864670d5SBai Ping }
344864670d5SBai Ping 
345864670d5SBai Ping static struct platform_driver imx6sll_pinctrl_driver = {
346864670d5SBai Ping 	.driver = {
347864670d5SBai Ping 		.name = "imx6sll-pinctrl",
348f6b6db2dSFabio Estevam 		.of_match_table = imx6sll_pinctrl_of_match,
349864670d5SBai Ping 		.suppress_bind_attrs = true,
350864670d5SBai Ping 	},
351864670d5SBai Ping 	.probe = imx6sll_pinctrl_probe,
352864670d5SBai Ping };
353864670d5SBai Ping 
imx6sll_pinctrl_init(void)354864670d5SBai Ping static int __init imx6sll_pinctrl_init(void)
355864670d5SBai Ping {
356864670d5SBai Ping 	return platform_driver_register(&imx6sll_pinctrl_driver);
357864670d5SBai Ping }
358864670d5SBai Ping arch_initcall(imx6sll_pinctrl_init);
359