1 /*
2  * Freescale imx6sl pinctrl driver
3  *
4  * Author: Shawn Guo <shawn.guo@linaro.org>
5  * Copyright (C) 2013 Freescale Semiconductor, Inc.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11 
12 #include <linux/err.h>
13 #include <linux/init.h>
14 #include <linux/io.h>
15 #include <linux/of.h>
16 #include <linux/of_device.h>
17 #include <linux/pinctrl/pinctrl.h>
18 
19 #include "pinctrl-imx.h"
20 
21 enum imx6sl_pads {
22 	MX6SL_PAD_RESERVE0 = 0,
23 	MX6SL_PAD_RESERVE1 = 1,
24 	MX6SL_PAD_RESERVE2 = 2,
25 	MX6SL_PAD_RESERVE3 = 3,
26 	MX6SL_PAD_RESERVE4 = 4,
27 	MX6SL_PAD_RESERVE5 = 5,
28 	MX6SL_PAD_RESERVE6 = 6,
29 	MX6SL_PAD_RESERVE7 = 7,
30 	MX6SL_PAD_RESERVE8 = 8,
31 	MX6SL_PAD_RESERVE9 = 9,
32 	MX6SL_PAD_RESERVE10 = 10,
33 	MX6SL_PAD_RESERVE11 = 11,
34 	MX6SL_PAD_RESERVE12 = 12,
35 	MX6SL_PAD_RESERVE13 = 13,
36 	MX6SL_PAD_RESERVE14 = 14,
37 	MX6SL_PAD_RESERVE15 = 15,
38 	MX6SL_PAD_RESERVE16 = 16,
39 	MX6SL_PAD_RESERVE17 = 17,
40 	MX6SL_PAD_RESERVE18 = 18,
41 	MX6SL_PAD_AUD_MCLK = 19,
42 	MX6SL_PAD_AUD_RXC = 20,
43 	MX6SL_PAD_AUD_RXD = 21,
44 	MX6SL_PAD_AUD_RXFS = 22,
45 	MX6SL_PAD_AUD_TXC = 23,
46 	MX6SL_PAD_AUD_TXD = 24,
47 	MX6SL_PAD_AUD_TXFS = 25,
48 	MX6SL_PAD_ECSPI1_MISO = 26,
49 	MX6SL_PAD_ECSPI1_MOSI = 27,
50 	MX6SL_PAD_ECSPI1_SCLK = 28,
51 	MX6SL_PAD_ECSPI1_SS0 = 29,
52 	MX6SL_PAD_ECSPI2_MISO = 30,
53 	MX6SL_PAD_ECSPI2_MOSI = 31,
54 	MX6SL_PAD_ECSPI2_SCLK = 32,
55 	MX6SL_PAD_ECSPI2_SS0 = 33,
56 	MX6SL_PAD_EPDC_BDR0 = 34,
57 	MX6SL_PAD_EPDC_BDR1 = 35,
58 	MX6SL_PAD_EPDC_D0 = 36,
59 	MX6SL_PAD_EPDC_D1 = 37,
60 	MX6SL_PAD_EPDC_D10 = 38,
61 	MX6SL_PAD_EPDC_D11 = 39,
62 	MX6SL_PAD_EPDC_D12 = 40,
63 	MX6SL_PAD_EPDC_D13 = 41,
64 	MX6SL_PAD_EPDC_D14 = 42,
65 	MX6SL_PAD_EPDC_D15 = 43,
66 	MX6SL_PAD_EPDC_D2 = 44,
67 	MX6SL_PAD_EPDC_D3 = 45,
68 	MX6SL_PAD_EPDC_D4 = 46,
69 	MX6SL_PAD_EPDC_D5 = 47,
70 	MX6SL_PAD_EPDC_D6 = 48,
71 	MX6SL_PAD_EPDC_D7 = 49,
72 	MX6SL_PAD_EPDC_D8 = 50,
73 	MX6SL_PAD_EPDC_D9 = 51,
74 	MX6SL_PAD_EPDC_GDCLK = 52,
75 	MX6SL_PAD_EPDC_GDOE = 53,
76 	MX6SL_PAD_EPDC_GDRL = 54,
77 	MX6SL_PAD_EPDC_GDSP = 55,
78 	MX6SL_PAD_EPDC_PWRCOM = 56,
79 	MX6SL_PAD_EPDC_PWRCTRL0 = 57,
80 	MX6SL_PAD_EPDC_PWRCTRL1 = 58,
81 	MX6SL_PAD_EPDC_PWRCTRL2 = 59,
82 	MX6SL_PAD_EPDC_PWRCTRL3 = 60,
83 	MX6SL_PAD_EPDC_PWRINT = 61,
84 	MX6SL_PAD_EPDC_PWRSTAT = 62,
85 	MX6SL_PAD_EPDC_PWRWAKEUP = 63,
86 	MX6SL_PAD_EPDC_SDCE0 = 64,
87 	MX6SL_PAD_EPDC_SDCE1 = 65,
88 	MX6SL_PAD_EPDC_SDCE2 = 66,
89 	MX6SL_PAD_EPDC_SDCE3 = 67,
90 	MX6SL_PAD_EPDC_SDCLK = 68,
91 	MX6SL_PAD_EPDC_SDLE = 69,
92 	MX6SL_PAD_EPDC_SDOE = 70,
93 	MX6SL_PAD_EPDC_SDSHR = 71,
94 	MX6SL_PAD_EPDC_VCOM0 = 72,
95 	MX6SL_PAD_EPDC_VCOM1 = 73,
96 	MX6SL_PAD_FEC_CRS_DV = 74,
97 	MX6SL_PAD_FEC_MDC = 75,
98 	MX6SL_PAD_FEC_MDIO = 76,
99 	MX6SL_PAD_FEC_REF_CLK = 77,
100 	MX6SL_PAD_FEC_RX_ER = 78,
101 	MX6SL_PAD_FEC_RXD0 = 79,
102 	MX6SL_PAD_FEC_RXD1 = 80,
103 	MX6SL_PAD_FEC_TX_CLK = 81,
104 	MX6SL_PAD_FEC_TX_EN = 82,
105 	MX6SL_PAD_FEC_TXD0 = 83,
106 	MX6SL_PAD_FEC_TXD1 = 84,
107 	MX6SL_PAD_HSIC_DAT = 85,
108 	MX6SL_PAD_HSIC_STROBE = 86,
109 	MX6SL_PAD_I2C1_SCL = 87,
110 	MX6SL_PAD_I2C1_SDA = 88,
111 	MX6SL_PAD_I2C2_SCL = 89,
112 	MX6SL_PAD_I2C2_SDA = 90,
113 	MX6SL_PAD_KEY_COL0 = 91,
114 	MX6SL_PAD_KEY_COL1 = 92,
115 	MX6SL_PAD_KEY_COL2 = 93,
116 	MX6SL_PAD_KEY_COL3 = 94,
117 	MX6SL_PAD_KEY_COL4 = 95,
118 	MX6SL_PAD_KEY_COL5 = 96,
119 	MX6SL_PAD_KEY_COL6 = 97,
120 	MX6SL_PAD_KEY_COL7 = 98,
121 	MX6SL_PAD_KEY_ROW0 = 99,
122 	MX6SL_PAD_KEY_ROW1 = 100,
123 	MX6SL_PAD_KEY_ROW2 = 101,
124 	MX6SL_PAD_KEY_ROW3 = 102,
125 	MX6SL_PAD_KEY_ROW4 = 103,
126 	MX6SL_PAD_KEY_ROW5 = 104,
127 	MX6SL_PAD_KEY_ROW6 = 105,
128 	MX6SL_PAD_KEY_ROW7 = 106,
129 	MX6SL_PAD_LCD_CLK = 107,
130 	MX6SL_PAD_LCD_DAT0 = 108,
131 	MX6SL_PAD_LCD_DAT1 = 109,
132 	MX6SL_PAD_LCD_DAT10 = 110,
133 	MX6SL_PAD_LCD_DAT11 = 111,
134 	MX6SL_PAD_LCD_DAT12 = 112,
135 	MX6SL_PAD_LCD_DAT13 = 113,
136 	MX6SL_PAD_LCD_DAT14 = 114,
137 	MX6SL_PAD_LCD_DAT15 = 115,
138 	MX6SL_PAD_LCD_DAT16 = 116,
139 	MX6SL_PAD_LCD_DAT17 = 117,
140 	MX6SL_PAD_LCD_DAT18 = 118,
141 	MX6SL_PAD_LCD_DAT19 = 119,
142 	MX6SL_PAD_LCD_DAT2 = 120,
143 	MX6SL_PAD_LCD_DAT20 = 121,
144 	MX6SL_PAD_LCD_DAT21 = 122,
145 	MX6SL_PAD_LCD_DAT22 = 123,
146 	MX6SL_PAD_LCD_DAT23 = 124,
147 	MX6SL_PAD_LCD_DAT3 = 125,
148 	MX6SL_PAD_LCD_DAT4 = 126,
149 	MX6SL_PAD_LCD_DAT5 = 127,
150 	MX6SL_PAD_LCD_DAT6 = 128,
151 	MX6SL_PAD_LCD_DAT7 = 129,
152 	MX6SL_PAD_LCD_DAT8 = 130,
153 	MX6SL_PAD_LCD_DAT9 = 131,
154 	MX6SL_PAD_LCD_ENABLE = 132,
155 	MX6SL_PAD_LCD_HSYNC = 133,
156 	MX6SL_PAD_LCD_RESET = 134,
157 	MX6SL_PAD_LCD_VSYNC = 135,
158 	MX6SL_PAD_PWM1 = 136,
159 	MX6SL_PAD_REF_CLK_24M = 137,
160 	MX6SL_PAD_REF_CLK_32K = 138,
161 	MX6SL_PAD_SD1_CLK = 139,
162 	MX6SL_PAD_SD1_CMD = 140,
163 	MX6SL_PAD_SD1_DAT0 = 141,
164 	MX6SL_PAD_SD1_DAT1 = 142,
165 	MX6SL_PAD_SD1_DAT2 = 143,
166 	MX6SL_PAD_SD1_DAT3 = 144,
167 	MX6SL_PAD_SD1_DAT4 = 145,
168 	MX6SL_PAD_SD1_DAT5 = 146,
169 	MX6SL_PAD_SD1_DAT6 = 147,
170 	MX6SL_PAD_SD1_DAT7 = 148,
171 	MX6SL_PAD_SD2_CLK = 149,
172 	MX6SL_PAD_SD2_CMD = 150,
173 	MX6SL_PAD_SD2_DAT0 = 151,
174 	MX6SL_PAD_SD2_DAT1 = 152,
175 	MX6SL_PAD_SD2_DAT2 = 153,
176 	MX6SL_PAD_SD2_DAT3 = 154,
177 	MX6SL_PAD_SD2_DAT4 = 155,
178 	MX6SL_PAD_SD2_DAT5 = 156,
179 	MX6SL_PAD_SD2_DAT6 = 157,
180 	MX6SL_PAD_SD2_DAT7 = 158,
181 	MX6SL_PAD_SD2_RST = 159,
182 	MX6SL_PAD_SD3_CLK = 160,
183 	MX6SL_PAD_SD3_CMD = 161,
184 	MX6SL_PAD_SD3_DAT0 = 162,
185 	MX6SL_PAD_SD3_DAT1 = 163,
186 	MX6SL_PAD_SD3_DAT2 = 164,
187 	MX6SL_PAD_SD3_DAT3 = 165,
188 	MX6SL_PAD_UART1_RXD = 166,
189 	MX6SL_PAD_UART1_TXD = 167,
190 	MX6SL_PAD_WDOG_B = 168,
191 };
192 
193 /* Pad names for the pinmux subsystem */
194 static const struct pinctrl_pin_desc imx6sl_pinctrl_pads[] = {
195 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE0),
196 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE1),
197 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE2),
198 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE3),
199 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE4),
200 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE5),
201 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE6),
202 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE7),
203 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE8),
204 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE9),
205 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE10),
206 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE11),
207 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE12),
208 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE13),
209 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE14),
210 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE15),
211 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE16),
212 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE17),
213 	IMX_PINCTRL_PIN(MX6SL_PAD_RESERVE18),
214 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_MCLK),
215 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_RXC),
216 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_RXD),
217 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_RXFS),
218 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_TXC),
219 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_TXD),
220 	IMX_PINCTRL_PIN(MX6SL_PAD_AUD_TXFS),
221 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI1_MISO),
222 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI1_MOSI),
223 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI1_SCLK),
224 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI1_SS0),
225 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI2_MISO),
226 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI2_MOSI),
227 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI2_SCLK),
228 	IMX_PINCTRL_PIN(MX6SL_PAD_ECSPI2_SS0),
229 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_BDR0),
230 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_BDR1),
231 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D0),
232 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D1),
233 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D10),
234 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D11),
235 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D12),
236 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D13),
237 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D14),
238 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D15),
239 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D2),
240 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D3),
241 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D4),
242 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D5),
243 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D6),
244 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D7),
245 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D8),
246 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_D9),
247 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_GDCLK),
248 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_GDOE),
249 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_GDRL),
250 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_GDSP),
251 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRCOM),
252 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRCTRL0),
253 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRCTRL1),
254 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRCTRL2),
255 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRCTRL3),
256 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRINT),
257 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRSTAT),
258 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_PWRWAKEUP),
259 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDCE0),
260 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDCE1),
261 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDCE2),
262 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDCE3),
263 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDCLK),
264 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDLE),
265 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDOE),
266 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_SDSHR),
267 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_VCOM0),
268 	IMX_PINCTRL_PIN(MX6SL_PAD_EPDC_VCOM1),
269 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_CRS_DV),
270 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_MDC),
271 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_MDIO),
272 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_REF_CLK),
273 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_RX_ER),
274 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_RXD0),
275 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_RXD1),
276 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_TX_CLK),
277 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_TX_EN),
278 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_TXD0),
279 	IMX_PINCTRL_PIN(MX6SL_PAD_FEC_TXD1),
280 	IMX_PINCTRL_PIN(MX6SL_PAD_HSIC_DAT),
281 	IMX_PINCTRL_PIN(MX6SL_PAD_HSIC_STROBE),
282 	IMX_PINCTRL_PIN(MX6SL_PAD_I2C1_SCL),
283 	IMX_PINCTRL_PIN(MX6SL_PAD_I2C1_SDA),
284 	IMX_PINCTRL_PIN(MX6SL_PAD_I2C2_SCL),
285 	IMX_PINCTRL_PIN(MX6SL_PAD_I2C2_SDA),
286 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL0),
287 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL1),
288 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL2),
289 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL3),
290 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL4),
291 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL5),
292 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL6),
293 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_COL7),
294 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW0),
295 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW1),
296 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW2),
297 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW3),
298 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW4),
299 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW5),
300 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW6),
301 	IMX_PINCTRL_PIN(MX6SL_PAD_KEY_ROW7),
302 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_CLK),
303 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT0),
304 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT1),
305 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT10),
306 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT11),
307 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT12),
308 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT13),
309 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT14),
310 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT15),
311 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT16),
312 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT17),
313 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT18),
314 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT19),
315 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT2),
316 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT20),
317 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT21),
318 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT22),
319 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT23),
320 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT3),
321 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT4),
322 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT5),
323 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT6),
324 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT7),
325 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT8),
326 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_DAT9),
327 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_ENABLE),
328 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_HSYNC),
329 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_RESET),
330 	IMX_PINCTRL_PIN(MX6SL_PAD_LCD_VSYNC),
331 	IMX_PINCTRL_PIN(MX6SL_PAD_PWM1),
332 	IMX_PINCTRL_PIN(MX6SL_PAD_REF_CLK_24M),
333 	IMX_PINCTRL_PIN(MX6SL_PAD_REF_CLK_32K),
334 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_CLK),
335 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_CMD),
336 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT0),
337 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT1),
338 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT2),
339 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT3),
340 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT4),
341 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT5),
342 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT6),
343 	IMX_PINCTRL_PIN(MX6SL_PAD_SD1_DAT7),
344 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_CLK),
345 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_CMD),
346 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT0),
347 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT1),
348 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT2),
349 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT3),
350 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT4),
351 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT5),
352 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT6),
353 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_DAT7),
354 	IMX_PINCTRL_PIN(MX6SL_PAD_SD2_RST),
355 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_CLK),
356 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_CMD),
357 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_DAT0),
358 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_DAT1),
359 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_DAT2),
360 	IMX_PINCTRL_PIN(MX6SL_PAD_SD3_DAT3),
361 	IMX_PINCTRL_PIN(MX6SL_PAD_UART1_RXD),
362 	IMX_PINCTRL_PIN(MX6SL_PAD_UART1_TXD),
363 	IMX_PINCTRL_PIN(MX6SL_PAD_WDOG_B),
364 };
365 
366 static struct imx_pinctrl_soc_info imx6sl_pinctrl_info = {
367 	.pins = imx6sl_pinctrl_pads,
368 	.npins = ARRAY_SIZE(imx6sl_pinctrl_pads),
369 	.gpr_compatible = "fsl,imx6sl-iomuxc-gpr",
370 };
371 
372 static const struct of_device_id imx6sl_pinctrl_of_match[] = {
373 	{ .compatible = "fsl,imx6sl-iomuxc", },
374 	{ /* sentinel */ }
375 };
376 
377 static int imx6sl_pinctrl_probe(struct platform_device *pdev)
378 {
379 	return imx_pinctrl_probe(pdev, &imx6sl_pinctrl_info);
380 }
381 
382 static struct platform_driver imx6sl_pinctrl_driver = {
383 	.driver = {
384 		.name = "imx6sl-pinctrl",
385 		.of_match_table = imx6sl_pinctrl_of_match,
386 	},
387 	.probe = imx6sl_pinctrl_probe,
388 };
389 
390 static int __init imx6sl_pinctrl_init(void)
391 {
392 	return platform_driver_register(&imx6sl_pinctrl_driver);
393 }
394 arch_initcall(imx6sl_pinctrl_init);
395