1 // SPDX-License-Identifier: GPL-2.0 2 // 3 // imx35 pinctrl driver. 4 // 5 // This driver was mostly copied from the imx51 pinctrl driver which has: 6 // 7 // Copyright (C) 2012 Freescale Semiconductor, Inc. 8 // Copyright (C) 2012 Linaro, Inc. 9 // 10 // Author: Dong Aisheng <dong.aisheng@linaro.org> 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 imx35_pads { 22 MX35_PAD_RESERVE0 = 0, 23 MX35_PAD_CAPTURE = 1, 24 MX35_PAD_COMPARE = 2, 25 MX35_PAD_WDOG_RST = 3, 26 MX35_PAD_GPIO1_0 = 4, 27 MX35_PAD_GPIO1_1 = 5, 28 MX35_PAD_GPIO2_0 = 6, 29 MX35_PAD_GPIO3_0 = 7, 30 MX35_PAD_CLKO = 8, 31 MX35_PAD_VSTBY = 9, 32 MX35_PAD_A0 = 10, 33 MX35_PAD_A1 = 11, 34 MX35_PAD_A2 = 12, 35 MX35_PAD_A3 = 13, 36 MX35_PAD_A4 = 14, 37 MX35_PAD_A5 = 15, 38 MX35_PAD_A6 = 16, 39 MX35_PAD_A7 = 17, 40 MX35_PAD_A8 = 18, 41 MX35_PAD_A9 = 19, 42 MX35_PAD_A10 = 20, 43 MX35_PAD_MA10 = 21, 44 MX35_PAD_A11 = 22, 45 MX35_PAD_A12 = 23, 46 MX35_PAD_A13 = 24, 47 MX35_PAD_A14 = 25, 48 MX35_PAD_A15 = 26, 49 MX35_PAD_A16 = 27, 50 MX35_PAD_A17 = 28, 51 MX35_PAD_A18 = 29, 52 MX35_PAD_A19 = 30, 53 MX35_PAD_A20 = 31, 54 MX35_PAD_A21 = 32, 55 MX35_PAD_A22 = 33, 56 MX35_PAD_A23 = 34, 57 MX35_PAD_A24 = 35, 58 MX35_PAD_A25 = 36, 59 MX35_PAD_EB0 = 37, 60 MX35_PAD_EB1 = 38, 61 MX35_PAD_OE = 39, 62 MX35_PAD_CS0 = 40, 63 MX35_PAD_CS1 = 41, 64 MX35_PAD_CS2 = 42, 65 MX35_PAD_CS3 = 43, 66 MX35_PAD_CS4 = 44, 67 MX35_PAD_CS5 = 45, 68 MX35_PAD_NF_CE0 = 46, 69 MX35_PAD_LBA = 47, 70 MX35_PAD_BCLK = 48, 71 MX35_PAD_RW = 49, 72 MX35_PAD_NFWE_B = 50, 73 MX35_PAD_NFRE_B = 51, 74 MX35_PAD_NFALE = 52, 75 MX35_PAD_NFCLE = 53, 76 MX35_PAD_NFWP_B = 54, 77 MX35_PAD_NFRB = 55, 78 MX35_PAD_CSI_D8 = 56, 79 MX35_PAD_CSI_D9 = 57, 80 MX35_PAD_CSI_D10 = 58, 81 MX35_PAD_CSI_D11 = 59, 82 MX35_PAD_CSI_D12 = 60, 83 MX35_PAD_CSI_D13 = 61, 84 MX35_PAD_CSI_D14 = 62, 85 MX35_PAD_CSI_D15 = 63, 86 MX35_PAD_CSI_MCLK = 64, 87 MX35_PAD_CSI_VSYNC = 65, 88 MX35_PAD_CSI_HSYNC = 66, 89 MX35_PAD_CSI_PIXCLK = 67, 90 MX35_PAD_I2C1_CLK = 68, 91 MX35_PAD_I2C1_DAT = 69, 92 MX35_PAD_I2C2_CLK = 70, 93 MX35_PAD_I2C2_DAT = 71, 94 MX35_PAD_STXD4 = 72, 95 MX35_PAD_SRXD4 = 73, 96 MX35_PAD_SCK4 = 74, 97 MX35_PAD_STXFS4 = 75, 98 MX35_PAD_STXD5 = 76, 99 MX35_PAD_SRXD5 = 77, 100 MX35_PAD_SCK5 = 78, 101 MX35_PAD_STXFS5 = 79, 102 MX35_PAD_SCKR = 80, 103 MX35_PAD_FSR = 81, 104 MX35_PAD_HCKR = 82, 105 MX35_PAD_SCKT = 83, 106 MX35_PAD_FST = 84, 107 MX35_PAD_HCKT = 85, 108 MX35_PAD_TX5_RX0 = 86, 109 MX35_PAD_TX4_RX1 = 87, 110 MX35_PAD_TX3_RX2 = 88, 111 MX35_PAD_TX2_RX3 = 89, 112 MX35_PAD_TX1 = 90, 113 MX35_PAD_TX0 = 91, 114 MX35_PAD_CSPI1_MOSI = 92, 115 MX35_PAD_CSPI1_MISO = 93, 116 MX35_PAD_CSPI1_SS0 = 94, 117 MX35_PAD_CSPI1_SS1 = 95, 118 MX35_PAD_CSPI1_SCLK = 96, 119 MX35_PAD_CSPI1_SPI_RDY = 97, 120 MX35_PAD_RXD1 = 98, 121 MX35_PAD_TXD1 = 99, 122 MX35_PAD_RTS1 = 100, 123 MX35_PAD_CTS1 = 101, 124 MX35_PAD_RXD2 = 102, 125 MX35_PAD_TXD2 = 103, 126 MX35_PAD_RTS2 = 104, 127 MX35_PAD_CTS2 = 105, 128 MX35_PAD_USBOTG_PWR = 106, 129 MX35_PAD_USBOTG_OC = 107, 130 MX35_PAD_LD0 = 108, 131 MX35_PAD_LD1 = 109, 132 MX35_PAD_LD2 = 110, 133 MX35_PAD_LD3 = 111, 134 MX35_PAD_LD4 = 112, 135 MX35_PAD_LD5 = 113, 136 MX35_PAD_LD6 = 114, 137 MX35_PAD_LD7 = 115, 138 MX35_PAD_LD8 = 116, 139 MX35_PAD_LD9 = 117, 140 MX35_PAD_LD10 = 118, 141 MX35_PAD_LD11 = 119, 142 MX35_PAD_LD12 = 120, 143 MX35_PAD_LD13 = 121, 144 MX35_PAD_LD14 = 122, 145 MX35_PAD_LD15 = 123, 146 MX35_PAD_LD16 = 124, 147 MX35_PAD_LD17 = 125, 148 MX35_PAD_LD18 = 126, 149 MX35_PAD_LD19 = 127, 150 MX35_PAD_LD20 = 128, 151 MX35_PAD_LD21 = 129, 152 MX35_PAD_LD22 = 130, 153 MX35_PAD_LD23 = 131, 154 MX35_PAD_D3_HSYNC = 132, 155 MX35_PAD_D3_FPSHIFT = 133, 156 MX35_PAD_D3_DRDY = 134, 157 MX35_PAD_CONTRAST = 135, 158 MX35_PAD_D3_VSYNC = 136, 159 MX35_PAD_D3_REV = 137, 160 MX35_PAD_D3_CLS = 138, 161 MX35_PAD_D3_SPL = 139, 162 MX35_PAD_SD1_CMD = 140, 163 MX35_PAD_SD1_CLK = 141, 164 MX35_PAD_SD1_DATA0 = 142, 165 MX35_PAD_SD1_DATA1 = 143, 166 MX35_PAD_SD1_DATA2 = 144, 167 MX35_PAD_SD1_DATA3 = 145, 168 MX35_PAD_SD2_CMD = 146, 169 MX35_PAD_SD2_CLK = 147, 170 MX35_PAD_SD2_DATA0 = 148, 171 MX35_PAD_SD2_DATA1 = 149, 172 MX35_PAD_SD2_DATA2 = 150, 173 MX35_PAD_SD2_DATA3 = 151, 174 MX35_PAD_ATA_CS0 = 152, 175 MX35_PAD_ATA_CS1 = 153, 176 MX35_PAD_ATA_DIOR = 154, 177 MX35_PAD_ATA_DIOW = 155, 178 MX35_PAD_ATA_DMACK = 156, 179 MX35_PAD_ATA_RESET_B = 157, 180 MX35_PAD_ATA_IORDY = 158, 181 MX35_PAD_ATA_DATA0 = 159, 182 MX35_PAD_ATA_DATA1 = 160, 183 MX35_PAD_ATA_DATA2 = 161, 184 MX35_PAD_ATA_DATA3 = 162, 185 MX35_PAD_ATA_DATA4 = 163, 186 MX35_PAD_ATA_DATA5 = 164, 187 MX35_PAD_ATA_DATA6 = 165, 188 MX35_PAD_ATA_DATA7 = 166, 189 MX35_PAD_ATA_DATA8 = 167, 190 MX35_PAD_ATA_DATA9 = 168, 191 MX35_PAD_ATA_DATA10 = 169, 192 MX35_PAD_ATA_DATA11 = 170, 193 MX35_PAD_ATA_DATA12 = 171, 194 MX35_PAD_ATA_DATA13 = 172, 195 MX35_PAD_ATA_DATA14 = 173, 196 MX35_PAD_ATA_DATA15 = 174, 197 MX35_PAD_ATA_INTRQ = 175, 198 MX35_PAD_ATA_BUFF_EN = 176, 199 MX35_PAD_ATA_DMARQ = 177, 200 MX35_PAD_ATA_DA0 = 178, 201 MX35_PAD_ATA_DA1 = 179, 202 MX35_PAD_ATA_DA2 = 180, 203 MX35_PAD_MLB_CLK = 181, 204 MX35_PAD_MLB_DAT = 182, 205 MX35_PAD_MLB_SIG = 183, 206 MX35_PAD_FEC_TX_CLK = 184, 207 MX35_PAD_FEC_RX_CLK = 185, 208 MX35_PAD_FEC_RX_DV = 186, 209 MX35_PAD_FEC_COL = 187, 210 MX35_PAD_FEC_RDATA0 = 188, 211 MX35_PAD_FEC_TDATA0 = 189, 212 MX35_PAD_FEC_TX_EN = 190, 213 MX35_PAD_FEC_MDC = 191, 214 MX35_PAD_FEC_MDIO = 192, 215 MX35_PAD_FEC_TX_ERR = 193, 216 MX35_PAD_FEC_RX_ERR = 194, 217 MX35_PAD_FEC_CRS = 195, 218 MX35_PAD_FEC_RDATA1 = 196, 219 MX35_PAD_FEC_TDATA1 = 197, 220 MX35_PAD_FEC_RDATA2 = 198, 221 MX35_PAD_FEC_TDATA2 = 199, 222 MX35_PAD_FEC_RDATA3 = 200, 223 MX35_PAD_FEC_TDATA3 = 201, 224 MX35_PAD_RESERVE1 = 202, 225 MX35_PAD_RESERVE2 = 203, 226 MX35_PAD_RESERVE3 = 204, 227 MX35_PAD_RESERVE4 = 205, 228 MX35_PAD_RESERVE5 = 206, 229 MX35_PAD_RESERVE6 = 207, 230 MX35_PAD_RESERVE7 = 208, 231 MX35_PAD_RESET_IN_B = 209, 232 MX35_PAD_POR_B = 210, 233 MX35_PAD_RESERVE8 = 211, 234 MX35_PAD_BOOT_MODE0 = 212, 235 MX35_PAD_BOOT_MODE1 = 213, 236 MX35_PAD_CLK_MODE0 = 214, 237 MX35_PAD_CLK_MODE1 = 215, 238 MX35_PAD_POWER_FAIL = 216, 239 MX35_PAD_RESERVE9 = 217, 240 MX35_PAD_RESERVE10 = 218, 241 MX35_PAD_RESERVE11 = 219, 242 MX35_PAD_RESERVE12 = 220, 243 MX35_PAD_RESERVE13 = 221, 244 MX35_PAD_RESERVE14 = 222, 245 MX35_PAD_RESERVE15 = 223, 246 MX35_PAD_RESERVE16 = 224, 247 MX35_PAD_RESERVE17 = 225, 248 MX35_PAD_RESERVE18 = 226, 249 MX35_PAD_RESERVE19 = 227, 250 MX35_PAD_RESERVE20 = 228, 251 MX35_PAD_RESERVE21 = 229, 252 MX35_PAD_RESERVE22 = 230, 253 MX35_PAD_RESERVE23 = 231, 254 MX35_PAD_RESERVE24 = 232, 255 MX35_PAD_RESERVE25 = 233, 256 MX35_PAD_RESERVE26 = 234, 257 MX35_PAD_RESERVE27 = 235, 258 MX35_PAD_RESERVE28 = 236, 259 MX35_PAD_RESERVE29 = 237, 260 MX35_PAD_RESERVE30 = 238, 261 MX35_PAD_RESERVE31 = 239, 262 MX35_PAD_RESERVE32 = 240, 263 MX35_PAD_RESERVE33 = 241, 264 MX35_PAD_RESERVE34 = 242, 265 MX35_PAD_RESERVE35 = 243, 266 MX35_PAD_RESERVE36 = 244, 267 MX35_PAD_SDBA1 = 245, 268 MX35_PAD_SDBA0 = 246, 269 MX35_PAD_SD0 = 247, 270 MX35_PAD_SD1 = 248, 271 MX35_PAD_SD2 = 249, 272 MX35_PAD_SD3 = 250, 273 MX35_PAD_SD4 = 251, 274 MX35_PAD_SD5 = 252, 275 MX35_PAD_SD6 = 253, 276 MX35_PAD_SD7 = 254, 277 MX35_PAD_SD8 = 255, 278 MX35_PAD_SD9 = 256, 279 MX35_PAD_SD10 = 257, 280 MX35_PAD_SD11 = 258, 281 MX35_PAD_SD12 = 259, 282 MX35_PAD_SD13 = 260, 283 MX35_PAD_SD14 = 261, 284 MX35_PAD_SD15 = 262, 285 MX35_PAD_SD16 = 263, 286 MX35_PAD_SD17 = 264, 287 MX35_PAD_SD18 = 265, 288 MX35_PAD_SD19 = 266, 289 MX35_PAD_SD20 = 267, 290 MX35_PAD_SD21 = 268, 291 MX35_PAD_SD22 = 269, 292 MX35_PAD_SD23 = 270, 293 MX35_PAD_SD24 = 271, 294 MX35_PAD_SD25 = 272, 295 MX35_PAD_SD26 = 273, 296 MX35_PAD_SD27 = 274, 297 MX35_PAD_SD28 = 275, 298 MX35_PAD_SD29 = 276, 299 MX35_PAD_SD30 = 277, 300 MX35_PAD_SD31 = 278, 301 MX35_PAD_DQM0 = 279, 302 MX35_PAD_DQM1 = 280, 303 MX35_PAD_DQM2 = 281, 304 MX35_PAD_DQM3 = 282, 305 MX35_PAD_RESERVE37 = 283, 306 MX35_PAD_RESERVE38 = 284, 307 MX35_PAD_RESERVE39 = 285, 308 MX35_PAD_RESERVE40 = 286, 309 MX35_PAD_RESERVE41 = 287, 310 MX35_PAD_RESERVE42 = 288, 311 MX35_PAD_RESERVE43 = 289, 312 MX35_PAD_RESERVE44 = 290, 313 MX35_PAD_RESERVE45 = 291, 314 MX35_PAD_RESERVE46 = 292, 315 MX35_PAD_ECB = 293, 316 MX35_PAD_RESERVE47 = 294, 317 MX35_PAD_RESERVE48 = 295, 318 MX35_PAD_RESERVE49 = 296, 319 MX35_PAD_RAS = 297, 320 MX35_PAD_CAS = 298, 321 MX35_PAD_SDWE = 299, 322 MX35_PAD_SDCKE0 = 300, 323 MX35_PAD_SDCKE1 = 301, 324 MX35_PAD_SDCLK = 302, 325 MX35_PAD_SDQS0 = 303, 326 MX35_PAD_SDQS1 = 304, 327 MX35_PAD_SDQS2 = 305, 328 MX35_PAD_SDQS3 = 306, 329 MX35_PAD_RESERVE50 = 307, 330 MX35_PAD_RESERVE51 = 308, 331 MX35_PAD_RESERVE52 = 309, 332 MX35_PAD_RESERVE53 = 310, 333 MX35_PAD_RESERVE54 = 311, 334 MX35_PAD_RESERVE55 = 312, 335 MX35_PAD_D15 = 313, 336 MX35_PAD_D14 = 314, 337 MX35_PAD_D13 = 315, 338 MX35_PAD_D12 = 316, 339 MX35_PAD_D11 = 317, 340 MX35_PAD_D10 = 318, 341 MX35_PAD_D9 = 319, 342 MX35_PAD_D8 = 320, 343 MX35_PAD_D7 = 321, 344 MX35_PAD_D6 = 322, 345 MX35_PAD_D5 = 323, 346 MX35_PAD_D4 = 324, 347 MX35_PAD_D3 = 325, 348 MX35_PAD_D2 = 326, 349 MX35_PAD_D1 = 327, 350 MX35_PAD_D0 = 328, 351 MX35_PAD_RESERVE56 = 329, 352 MX35_PAD_RESERVE57 = 330, 353 MX35_PAD_RESERVE58 = 331, 354 MX35_PAD_RESERVE59 = 332, 355 MX35_PAD_RESERVE60 = 333, 356 MX35_PAD_RESERVE61 = 334, 357 MX35_PAD_RESERVE62 = 335, 358 MX35_PAD_RESERVE63 = 336, 359 MX35_PAD_RESERVE64 = 337, 360 MX35_PAD_RESERVE65 = 338, 361 MX35_PAD_RESERVE66 = 339, 362 MX35_PAD_RESERVE67 = 340, 363 MX35_PAD_RESERVE68 = 341, 364 MX35_PAD_RESERVE69 = 342, 365 MX35_PAD_RESERVE70 = 343, 366 MX35_PAD_RESERVE71 = 344, 367 MX35_PAD_RESERVE72 = 345, 368 MX35_PAD_RESERVE73 = 346, 369 MX35_PAD_RESERVE74 = 347, 370 MX35_PAD_RESERVE75 = 348, 371 MX35_PAD_RESERVE76 = 349, 372 MX35_PAD_RESERVE77 = 350, 373 MX35_PAD_RESERVE78 = 351, 374 MX35_PAD_RESERVE79 = 352, 375 MX35_PAD_RESERVE80 = 353, 376 MX35_PAD_RESERVE81 = 354, 377 MX35_PAD_RESERVE82 = 355, 378 MX35_PAD_RESERVE83 = 356, 379 MX35_PAD_RESERVE84 = 357, 380 MX35_PAD_RESERVE85 = 358, 381 MX35_PAD_RESERVE86 = 359, 382 MX35_PAD_RESERVE87 = 360, 383 MX35_PAD_RESERVE88 = 361, 384 MX35_PAD_RESERVE89 = 362, 385 MX35_PAD_RESERVE90 = 363, 386 MX35_PAD_RESERVE91 = 364, 387 MX35_PAD_RESERVE92 = 365, 388 MX35_PAD_RESERVE93 = 366, 389 MX35_PAD_RESERVE94 = 367, 390 MX35_PAD_RESERVE95 = 368, 391 MX35_PAD_RESERVE96 = 369, 392 MX35_PAD_RESERVE97 = 370, 393 MX35_PAD_RESERVE98 = 371, 394 MX35_PAD_RESERVE99 = 372, 395 MX35_PAD_RESERVE100 = 373, 396 MX35_PAD_RESERVE101 = 374, 397 MX35_PAD_RESERVE102 = 375, 398 MX35_PAD_RESERVE103 = 376, 399 MX35_PAD_RESERVE104 = 377, 400 MX35_PAD_RESERVE105 = 378, 401 MX35_PAD_RTCK = 379, 402 MX35_PAD_TCK = 380, 403 MX35_PAD_TMS = 381, 404 MX35_PAD_TDI = 382, 405 MX35_PAD_TDO = 383, 406 MX35_PAD_TRSTB = 384, 407 MX35_PAD_DE_B = 385, 408 MX35_PAD_SJC_MOD = 386, 409 MX35_PAD_RESERVE106 = 387, 410 MX35_PAD_RESERVE107 = 388, 411 MX35_PAD_RESERVE108 = 389, 412 MX35_PAD_RESERVE109 = 390, 413 MX35_PAD_RESERVE110 = 391, 414 MX35_PAD_RESERVE111 = 392, 415 MX35_PAD_RESERVE112 = 393, 416 MX35_PAD_RESERVE113 = 394, 417 MX35_PAD_RESERVE114 = 395, 418 MX35_PAD_RESERVE115 = 396, 419 MX35_PAD_RESERVE116 = 397, 420 MX35_PAD_RESERVE117 = 398, 421 MX35_PAD_RESERVE118 = 399, 422 MX35_PAD_RESERVE119 = 400, 423 MX35_PAD_RESERVE120 = 401, 424 MX35_PAD_RESERVE121 = 402, 425 MX35_PAD_RESERVE122 = 403, 426 MX35_PAD_RESERVE123 = 404, 427 MX35_PAD_RESERVE124 = 405, 428 MX35_PAD_RESERVE125 = 406, 429 MX35_PAD_RESERVE126 = 407, 430 MX35_PAD_RESERVE127 = 408, 431 MX35_PAD_RESERVE128 = 409, 432 MX35_PAD_RESERVE129 = 410, 433 MX35_PAD_RESERVE130 = 411, 434 MX35_PAD_RESERVE131 = 412, 435 MX35_PAD_RESERVE132 = 413, 436 MX35_PAD_RESERVE133 = 414, 437 MX35_PAD_RESERVE134 = 415, 438 MX35_PAD_RESERVE135 = 416, 439 MX35_PAD_RESERVE136 = 417, 440 MX35_PAD_RESERVE137 = 418, 441 MX35_PAD_RESERVE138 = 419, 442 MX35_PAD_RESERVE139 = 420, 443 MX35_PAD_RESERVE140 = 421, 444 MX35_PAD_RESERVE141 = 422, 445 MX35_PAD_RESERVE142 = 423, 446 MX35_PAD_RESERVE143 = 424, 447 MX35_PAD_RESERVE144 = 425, 448 MX35_PAD_RESERVE145 = 426, 449 MX35_PAD_RESERVE146 = 427, 450 MX35_PAD_RESERVE147 = 428, 451 MX35_PAD_RESERVE148 = 429, 452 MX35_PAD_RESERVE149 = 430, 453 MX35_PAD_RESERVE150 = 431, 454 MX35_PAD_RESERVE151 = 432, 455 MX35_PAD_RESERVE152 = 433, 456 MX35_PAD_RESERVE153 = 434, 457 MX35_PAD_RESERVE154 = 435, 458 MX35_PAD_RESERVE155 = 436, 459 MX35_PAD_RESERVE156 = 437, 460 MX35_PAD_RESERVE157 = 438, 461 MX35_PAD_RESERVE158 = 439, 462 MX35_PAD_RESERVE159 = 440, 463 MX35_PAD_RESERVE160 = 441, 464 MX35_PAD_RESERVE161 = 442, 465 MX35_PAD_RESERVE162 = 443, 466 MX35_PAD_RESERVE163 = 444, 467 MX35_PAD_RESERVE164 = 445, 468 MX35_PAD_RESERVE165 = 446, 469 MX35_PAD_RESERVE166 = 447, 470 MX35_PAD_RESERVE167 = 448, 471 MX35_PAD_RESERVE168 = 449, 472 MX35_PAD_RESERVE169 = 450, 473 MX35_PAD_RESERVE170 = 451, 474 MX35_PAD_RESERVE171 = 452, 475 MX35_PAD_RESERVE172 = 453, 476 MX35_PAD_RESERVE173 = 454, 477 MX35_PAD_RESERVE174 = 455, 478 MX35_PAD_RESERVE175 = 456, 479 MX35_PAD_RESERVE176 = 457, 480 MX35_PAD_RESERVE177 = 458, 481 MX35_PAD_RESERVE178 = 459, 482 MX35_PAD_RESERVE179 = 460, 483 MX35_PAD_RESERVE180 = 461, 484 MX35_PAD_RESERVE181 = 462, 485 MX35_PAD_RESERVE182 = 463, 486 MX35_PAD_RESERVE183 = 464, 487 MX35_PAD_RESERVE184 = 465, 488 MX35_PAD_RESERVE185 = 466, 489 MX35_PAD_RESERVE186 = 467, 490 MX35_PAD_RESERVE187 = 468, 491 MX35_PAD_RESERVE188 = 469, 492 MX35_PAD_RESERVE189 = 470, 493 MX35_PAD_RESERVE190 = 471, 494 MX35_PAD_RESERVE191 = 472, 495 MX35_PAD_RESERVE192 = 473, 496 MX35_PAD_RESERVE193 = 474, 497 MX35_PAD_RESERVE194 = 475, 498 MX35_PAD_RESERVE195 = 476, 499 MX35_PAD_RESERVE196 = 477, 500 MX35_PAD_RESERVE197 = 478, 501 MX35_PAD_RESERVE198 = 479, 502 MX35_PAD_RESERVE199 = 480, 503 MX35_PAD_RESERVE200 = 481, 504 MX35_PAD_RESERVE201 = 482, 505 MX35_PAD_EXT_ARMCLK = 483, 506 MX35_PAD_TEST_MODE = 484, 507 }; 508 509 /* Pad names for the pinmux subsystem */ 510 static const struct pinctrl_pin_desc imx35_pinctrl_pads[] = { 511 IMX_PINCTRL_PIN(MX35_PAD_RESERVE0), 512 IMX_PINCTRL_PIN(MX35_PAD_CAPTURE), 513 IMX_PINCTRL_PIN(MX35_PAD_COMPARE), 514 IMX_PINCTRL_PIN(MX35_PAD_WDOG_RST), 515 IMX_PINCTRL_PIN(MX35_PAD_GPIO1_0), 516 IMX_PINCTRL_PIN(MX35_PAD_GPIO1_1), 517 IMX_PINCTRL_PIN(MX35_PAD_GPIO2_0), 518 IMX_PINCTRL_PIN(MX35_PAD_GPIO3_0), 519 IMX_PINCTRL_PIN(MX35_PAD_CLKO), 520 IMX_PINCTRL_PIN(MX35_PAD_VSTBY), 521 IMX_PINCTRL_PIN(MX35_PAD_A0), 522 IMX_PINCTRL_PIN(MX35_PAD_A1), 523 IMX_PINCTRL_PIN(MX35_PAD_A2), 524 IMX_PINCTRL_PIN(MX35_PAD_A3), 525 IMX_PINCTRL_PIN(MX35_PAD_A4), 526 IMX_PINCTRL_PIN(MX35_PAD_A5), 527 IMX_PINCTRL_PIN(MX35_PAD_A6), 528 IMX_PINCTRL_PIN(MX35_PAD_A7), 529 IMX_PINCTRL_PIN(MX35_PAD_A8), 530 IMX_PINCTRL_PIN(MX35_PAD_A9), 531 IMX_PINCTRL_PIN(MX35_PAD_A10), 532 IMX_PINCTRL_PIN(MX35_PAD_MA10), 533 IMX_PINCTRL_PIN(MX35_PAD_A11), 534 IMX_PINCTRL_PIN(MX35_PAD_A12), 535 IMX_PINCTRL_PIN(MX35_PAD_A13), 536 IMX_PINCTRL_PIN(MX35_PAD_A14), 537 IMX_PINCTRL_PIN(MX35_PAD_A15), 538 IMX_PINCTRL_PIN(MX35_PAD_A16), 539 IMX_PINCTRL_PIN(MX35_PAD_A17), 540 IMX_PINCTRL_PIN(MX35_PAD_A18), 541 IMX_PINCTRL_PIN(MX35_PAD_A19), 542 IMX_PINCTRL_PIN(MX35_PAD_A20), 543 IMX_PINCTRL_PIN(MX35_PAD_A21), 544 IMX_PINCTRL_PIN(MX35_PAD_A22), 545 IMX_PINCTRL_PIN(MX35_PAD_A23), 546 IMX_PINCTRL_PIN(MX35_PAD_A24), 547 IMX_PINCTRL_PIN(MX35_PAD_A25), 548 IMX_PINCTRL_PIN(MX35_PAD_EB0), 549 IMX_PINCTRL_PIN(MX35_PAD_EB1), 550 IMX_PINCTRL_PIN(MX35_PAD_OE), 551 IMX_PINCTRL_PIN(MX35_PAD_CS0), 552 IMX_PINCTRL_PIN(MX35_PAD_CS1), 553 IMX_PINCTRL_PIN(MX35_PAD_CS2), 554 IMX_PINCTRL_PIN(MX35_PAD_CS3), 555 IMX_PINCTRL_PIN(MX35_PAD_CS4), 556 IMX_PINCTRL_PIN(MX35_PAD_CS5), 557 IMX_PINCTRL_PIN(MX35_PAD_NF_CE0), 558 IMX_PINCTRL_PIN(MX35_PAD_LBA), 559 IMX_PINCTRL_PIN(MX35_PAD_BCLK), 560 IMX_PINCTRL_PIN(MX35_PAD_RW), 561 IMX_PINCTRL_PIN(MX35_PAD_NFWE_B), 562 IMX_PINCTRL_PIN(MX35_PAD_NFRE_B), 563 IMX_PINCTRL_PIN(MX35_PAD_NFALE), 564 IMX_PINCTRL_PIN(MX35_PAD_NFCLE), 565 IMX_PINCTRL_PIN(MX35_PAD_NFWP_B), 566 IMX_PINCTRL_PIN(MX35_PAD_NFRB), 567 IMX_PINCTRL_PIN(MX35_PAD_CSI_D8), 568 IMX_PINCTRL_PIN(MX35_PAD_CSI_D9), 569 IMX_PINCTRL_PIN(MX35_PAD_CSI_D10), 570 IMX_PINCTRL_PIN(MX35_PAD_CSI_D11), 571 IMX_PINCTRL_PIN(MX35_PAD_CSI_D12), 572 IMX_PINCTRL_PIN(MX35_PAD_CSI_D13), 573 IMX_PINCTRL_PIN(MX35_PAD_CSI_D14), 574 IMX_PINCTRL_PIN(MX35_PAD_CSI_D15), 575 IMX_PINCTRL_PIN(MX35_PAD_CSI_MCLK), 576 IMX_PINCTRL_PIN(MX35_PAD_CSI_VSYNC), 577 IMX_PINCTRL_PIN(MX35_PAD_CSI_HSYNC), 578 IMX_PINCTRL_PIN(MX35_PAD_CSI_PIXCLK), 579 IMX_PINCTRL_PIN(MX35_PAD_I2C1_CLK), 580 IMX_PINCTRL_PIN(MX35_PAD_I2C1_DAT), 581 IMX_PINCTRL_PIN(MX35_PAD_I2C2_CLK), 582 IMX_PINCTRL_PIN(MX35_PAD_I2C2_DAT), 583 IMX_PINCTRL_PIN(MX35_PAD_STXD4), 584 IMX_PINCTRL_PIN(MX35_PAD_SRXD4), 585 IMX_PINCTRL_PIN(MX35_PAD_SCK4), 586 IMX_PINCTRL_PIN(MX35_PAD_STXFS4), 587 IMX_PINCTRL_PIN(MX35_PAD_STXD5), 588 IMX_PINCTRL_PIN(MX35_PAD_SRXD5), 589 IMX_PINCTRL_PIN(MX35_PAD_SCK5), 590 IMX_PINCTRL_PIN(MX35_PAD_STXFS5), 591 IMX_PINCTRL_PIN(MX35_PAD_SCKR), 592 IMX_PINCTRL_PIN(MX35_PAD_FSR), 593 IMX_PINCTRL_PIN(MX35_PAD_HCKR), 594 IMX_PINCTRL_PIN(MX35_PAD_SCKT), 595 IMX_PINCTRL_PIN(MX35_PAD_FST), 596 IMX_PINCTRL_PIN(MX35_PAD_HCKT), 597 IMX_PINCTRL_PIN(MX35_PAD_TX5_RX0), 598 IMX_PINCTRL_PIN(MX35_PAD_TX4_RX1), 599 IMX_PINCTRL_PIN(MX35_PAD_TX3_RX2), 600 IMX_PINCTRL_PIN(MX35_PAD_TX2_RX3), 601 IMX_PINCTRL_PIN(MX35_PAD_TX1), 602 IMX_PINCTRL_PIN(MX35_PAD_TX0), 603 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_MOSI), 604 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_MISO), 605 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SS0), 606 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SS1), 607 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SCLK), 608 IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SPI_RDY), 609 IMX_PINCTRL_PIN(MX35_PAD_RXD1), 610 IMX_PINCTRL_PIN(MX35_PAD_TXD1), 611 IMX_PINCTRL_PIN(MX35_PAD_RTS1), 612 IMX_PINCTRL_PIN(MX35_PAD_CTS1), 613 IMX_PINCTRL_PIN(MX35_PAD_RXD2), 614 IMX_PINCTRL_PIN(MX35_PAD_TXD2), 615 IMX_PINCTRL_PIN(MX35_PAD_RTS2), 616 IMX_PINCTRL_PIN(MX35_PAD_CTS2), 617 IMX_PINCTRL_PIN(MX35_PAD_USBOTG_PWR), 618 IMX_PINCTRL_PIN(MX35_PAD_USBOTG_OC), 619 IMX_PINCTRL_PIN(MX35_PAD_LD0), 620 IMX_PINCTRL_PIN(MX35_PAD_LD1), 621 IMX_PINCTRL_PIN(MX35_PAD_LD2), 622 IMX_PINCTRL_PIN(MX35_PAD_LD3), 623 IMX_PINCTRL_PIN(MX35_PAD_LD4), 624 IMX_PINCTRL_PIN(MX35_PAD_LD5), 625 IMX_PINCTRL_PIN(MX35_PAD_LD6), 626 IMX_PINCTRL_PIN(MX35_PAD_LD7), 627 IMX_PINCTRL_PIN(MX35_PAD_LD8), 628 IMX_PINCTRL_PIN(MX35_PAD_LD9), 629 IMX_PINCTRL_PIN(MX35_PAD_LD10), 630 IMX_PINCTRL_PIN(MX35_PAD_LD11), 631 IMX_PINCTRL_PIN(MX35_PAD_LD12), 632 IMX_PINCTRL_PIN(MX35_PAD_LD13), 633 IMX_PINCTRL_PIN(MX35_PAD_LD14), 634 IMX_PINCTRL_PIN(MX35_PAD_LD15), 635 IMX_PINCTRL_PIN(MX35_PAD_LD16), 636 IMX_PINCTRL_PIN(MX35_PAD_LD17), 637 IMX_PINCTRL_PIN(MX35_PAD_LD18), 638 IMX_PINCTRL_PIN(MX35_PAD_LD19), 639 IMX_PINCTRL_PIN(MX35_PAD_LD20), 640 IMX_PINCTRL_PIN(MX35_PAD_LD21), 641 IMX_PINCTRL_PIN(MX35_PAD_LD22), 642 IMX_PINCTRL_PIN(MX35_PAD_LD23), 643 IMX_PINCTRL_PIN(MX35_PAD_D3_HSYNC), 644 IMX_PINCTRL_PIN(MX35_PAD_D3_FPSHIFT), 645 IMX_PINCTRL_PIN(MX35_PAD_D3_DRDY), 646 IMX_PINCTRL_PIN(MX35_PAD_CONTRAST), 647 IMX_PINCTRL_PIN(MX35_PAD_D3_VSYNC), 648 IMX_PINCTRL_PIN(MX35_PAD_D3_REV), 649 IMX_PINCTRL_PIN(MX35_PAD_D3_CLS), 650 IMX_PINCTRL_PIN(MX35_PAD_D3_SPL), 651 IMX_PINCTRL_PIN(MX35_PAD_SD1_CMD), 652 IMX_PINCTRL_PIN(MX35_PAD_SD1_CLK), 653 IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA0), 654 IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA1), 655 IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA2), 656 IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA3), 657 IMX_PINCTRL_PIN(MX35_PAD_SD2_CMD), 658 IMX_PINCTRL_PIN(MX35_PAD_SD2_CLK), 659 IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA0), 660 IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA1), 661 IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA2), 662 IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA3), 663 IMX_PINCTRL_PIN(MX35_PAD_ATA_CS0), 664 IMX_PINCTRL_PIN(MX35_PAD_ATA_CS1), 665 IMX_PINCTRL_PIN(MX35_PAD_ATA_DIOR), 666 IMX_PINCTRL_PIN(MX35_PAD_ATA_DIOW), 667 IMX_PINCTRL_PIN(MX35_PAD_ATA_DMACK), 668 IMX_PINCTRL_PIN(MX35_PAD_ATA_RESET_B), 669 IMX_PINCTRL_PIN(MX35_PAD_ATA_IORDY), 670 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA0), 671 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA1), 672 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA2), 673 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA3), 674 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA4), 675 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA5), 676 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA6), 677 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA7), 678 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA8), 679 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA9), 680 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA10), 681 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA11), 682 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA12), 683 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA13), 684 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA14), 685 IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA15), 686 IMX_PINCTRL_PIN(MX35_PAD_ATA_INTRQ), 687 IMX_PINCTRL_PIN(MX35_PAD_ATA_BUFF_EN), 688 IMX_PINCTRL_PIN(MX35_PAD_ATA_DMARQ), 689 IMX_PINCTRL_PIN(MX35_PAD_ATA_DA0), 690 IMX_PINCTRL_PIN(MX35_PAD_ATA_DA1), 691 IMX_PINCTRL_PIN(MX35_PAD_ATA_DA2), 692 IMX_PINCTRL_PIN(MX35_PAD_MLB_CLK), 693 IMX_PINCTRL_PIN(MX35_PAD_MLB_DAT), 694 IMX_PINCTRL_PIN(MX35_PAD_MLB_SIG), 695 IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_CLK), 696 IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_CLK), 697 IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_DV), 698 IMX_PINCTRL_PIN(MX35_PAD_FEC_COL), 699 IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA0), 700 IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA0), 701 IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_EN), 702 IMX_PINCTRL_PIN(MX35_PAD_FEC_MDC), 703 IMX_PINCTRL_PIN(MX35_PAD_FEC_MDIO), 704 IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_ERR), 705 IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_ERR), 706 IMX_PINCTRL_PIN(MX35_PAD_FEC_CRS), 707 IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA1), 708 IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA1), 709 IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA2), 710 IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA2), 711 IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA3), 712 IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA3), 713 IMX_PINCTRL_PIN(MX35_PAD_RESERVE1), 714 IMX_PINCTRL_PIN(MX35_PAD_RESERVE2), 715 IMX_PINCTRL_PIN(MX35_PAD_RESERVE3), 716 IMX_PINCTRL_PIN(MX35_PAD_RESERVE4), 717 IMX_PINCTRL_PIN(MX35_PAD_RESERVE5), 718 IMX_PINCTRL_PIN(MX35_PAD_RESERVE6), 719 IMX_PINCTRL_PIN(MX35_PAD_RESERVE7), 720 IMX_PINCTRL_PIN(MX35_PAD_RESET_IN_B), 721 IMX_PINCTRL_PIN(MX35_PAD_POR_B), 722 IMX_PINCTRL_PIN(MX35_PAD_RESERVE8), 723 IMX_PINCTRL_PIN(MX35_PAD_BOOT_MODE0), 724 IMX_PINCTRL_PIN(MX35_PAD_BOOT_MODE1), 725 IMX_PINCTRL_PIN(MX35_PAD_CLK_MODE0), 726 IMX_PINCTRL_PIN(MX35_PAD_CLK_MODE1), 727 IMX_PINCTRL_PIN(MX35_PAD_POWER_FAIL), 728 IMX_PINCTRL_PIN(MX35_PAD_RESERVE9), 729 IMX_PINCTRL_PIN(MX35_PAD_RESERVE10), 730 IMX_PINCTRL_PIN(MX35_PAD_RESERVE11), 731 IMX_PINCTRL_PIN(MX35_PAD_RESERVE12), 732 IMX_PINCTRL_PIN(MX35_PAD_RESERVE13), 733 IMX_PINCTRL_PIN(MX35_PAD_RESERVE14), 734 IMX_PINCTRL_PIN(MX35_PAD_RESERVE15), 735 IMX_PINCTRL_PIN(MX35_PAD_RESERVE16), 736 IMX_PINCTRL_PIN(MX35_PAD_RESERVE17), 737 IMX_PINCTRL_PIN(MX35_PAD_RESERVE18), 738 IMX_PINCTRL_PIN(MX35_PAD_RESERVE19), 739 IMX_PINCTRL_PIN(MX35_PAD_RESERVE20), 740 IMX_PINCTRL_PIN(MX35_PAD_RESERVE21), 741 IMX_PINCTRL_PIN(MX35_PAD_RESERVE22), 742 IMX_PINCTRL_PIN(MX35_PAD_RESERVE23), 743 IMX_PINCTRL_PIN(MX35_PAD_RESERVE24), 744 IMX_PINCTRL_PIN(MX35_PAD_RESERVE25), 745 IMX_PINCTRL_PIN(MX35_PAD_RESERVE26), 746 IMX_PINCTRL_PIN(MX35_PAD_RESERVE27), 747 IMX_PINCTRL_PIN(MX35_PAD_RESERVE28), 748 IMX_PINCTRL_PIN(MX35_PAD_RESERVE29), 749 IMX_PINCTRL_PIN(MX35_PAD_RESERVE30), 750 IMX_PINCTRL_PIN(MX35_PAD_RESERVE31), 751 IMX_PINCTRL_PIN(MX35_PAD_RESERVE32), 752 IMX_PINCTRL_PIN(MX35_PAD_RESERVE33), 753 IMX_PINCTRL_PIN(MX35_PAD_RESERVE34), 754 IMX_PINCTRL_PIN(MX35_PAD_RESERVE35), 755 IMX_PINCTRL_PIN(MX35_PAD_RESERVE36), 756 IMX_PINCTRL_PIN(MX35_PAD_SDBA1), 757 IMX_PINCTRL_PIN(MX35_PAD_SDBA0), 758 IMX_PINCTRL_PIN(MX35_PAD_SD0), 759 IMX_PINCTRL_PIN(MX35_PAD_SD1), 760 IMX_PINCTRL_PIN(MX35_PAD_SD2), 761 IMX_PINCTRL_PIN(MX35_PAD_SD3), 762 IMX_PINCTRL_PIN(MX35_PAD_SD4), 763 IMX_PINCTRL_PIN(MX35_PAD_SD5), 764 IMX_PINCTRL_PIN(MX35_PAD_SD6), 765 IMX_PINCTRL_PIN(MX35_PAD_SD7), 766 IMX_PINCTRL_PIN(MX35_PAD_SD8), 767 IMX_PINCTRL_PIN(MX35_PAD_SD9), 768 IMX_PINCTRL_PIN(MX35_PAD_SD10), 769 IMX_PINCTRL_PIN(MX35_PAD_SD11), 770 IMX_PINCTRL_PIN(MX35_PAD_SD12), 771 IMX_PINCTRL_PIN(MX35_PAD_SD13), 772 IMX_PINCTRL_PIN(MX35_PAD_SD14), 773 IMX_PINCTRL_PIN(MX35_PAD_SD15), 774 IMX_PINCTRL_PIN(MX35_PAD_SD16), 775 IMX_PINCTRL_PIN(MX35_PAD_SD17), 776 IMX_PINCTRL_PIN(MX35_PAD_SD18), 777 IMX_PINCTRL_PIN(MX35_PAD_SD19), 778 IMX_PINCTRL_PIN(MX35_PAD_SD20), 779 IMX_PINCTRL_PIN(MX35_PAD_SD21), 780 IMX_PINCTRL_PIN(MX35_PAD_SD22), 781 IMX_PINCTRL_PIN(MX35_PAD_SD23), 782 IMX_PINCTRL_PIN(MX35_PAD_SD24), 783 IMX_PINCTRL_PIN(MX35_PAD_SD25), 784 IMX_PINCTRL_PIN(MX35_PAD_SD26), 785 IMX_PINCTRL_PIN(MX35_PAD_SD27), 786 IMX_PINCTRL_PIN(MX35_PAD_SD28), 787 IMX_PINCTRL_PIN(MX35_PAD_SD29), 788 IMX_PINCTRL_PIN(MX35_PAD_SD30), 789 IMX_PINCTRL_PIN(MX35_PAD_SD31), 790 IMX_PINCTRL_PIN(MX35_PAD_DQM0), 791 IMX_PINCTRL_PIN(MX35_PAD_DQM1), 792 IMX_PINCTRL_PIN(MX35_PAD_DQM2), 793 IMX_PINCTRL_PIN(MX35_PAD_DQM3), 794 IMX_PINCTRL_PIN(MX35_PAD_RESERVE37), 795 IMX_PINCTRL_PIN(MX35_PAD_RESERVE38), 796 IMX_PINCTRL_PIN(MX35_PAD_RESERVE39), 797 IMX_PINCTRL_PIN(MX35_PAD_RESERVE40), 798 IMX_PINCTRL_PIN(MX35_PAD_RESERVE41), 799 IMX_PINCTRL_PIN(MX35_PAD_RESERVE42), 800 IMX_PINCTRL_PIN(MX35_PAD_RESERVE43), 801 IMX_PINCTRL_PIN(MX35_PAD_RESERVE44), 802 IMX_PINCTRL_PIN(MX35_PAD_RESERVE45), 803 IMX_PINCTRL_PIN(MX35_PAD_RESERVE46), 804 IMX_PINCTRL_PIN(MX35_PAD_ECB), 805 IMX_PINCTRL_PIN(MX35_PAD_RESERVE47), 806 IMX_PINCTRL_PIN(MX35_PAD_RESERVE48), 807 IMX_PINCTRL_PIN(MX35_PAD_RESERVE49), 808 IMX_PINCTRL_PIN(MX35_PAD_RAS), 809 IMX_PINCTRL_PIN(MX35_PAD_CAS), 810 IMX_PINCTRL_PIN(MX35_PAD_SDWE), 811 IMX_PINCTRL_PIN(MX35_PAD_SDCKE0), 812 IMX_PINCTRL_PIN(MX35_PAD_SDCKE1), 813 IMX_PINCTRL_PIN(MX35_PAD_SDCLK), 814 IMX_PINCTRL_PIN(MX35_PAD_SDQS0), 815 IMX_PINCTRL_PIN(MX35_PAD_SDQS1), 816 IMX_PINCTRL_PIN(MX35_PAD_SDQS2), 817 IMX_PINCTRL_PIN(MX35_PAD_SDQS3), 818 IMX_PINCTRL_PIN(MX35_PAD_RESERVE50), 819 IMX_PINCTRL_PIN(MX35_PAD_RESERVE51), 820 IMX_PINCTRL_PIN(MX35_PAD_RESERVE52), 821 IMX_PINCTRL_PIN(MX35_PAD_RESERVE53), 822 IMX_PINCTRL_PIN(MX35_PAD_RESERVE54), 823 IMX_PINCTRL_PIN(MX35_PAD_RESERVE55), 824 IMX_PINCTRL_PIN(MX35_PAD_D15), 825 IMX_PINCTRL_PIN(MX35_PAD_D14), 826 IMX_PINCTRL_PIN(MX35_PAD_D13), 827 IMX_PINCTRL_PIN(MX35_PAD_D12), 828 IMX_PINCTRL_PIN(MX35_PAD_D11), 829 IMX_PINCTRL_PIN(MX35_PAD_D10), 830 IMX_PINCTRL_PIN(MX35_PAD_D9), 831 IMX_PINCTRL_PIN(MX35_PAD_D8), 832 IMX_PINCTRL_PIN(MX35_PAD_D7), 833 IMX_PINCTRL_PIN(MX35_PAD_D6), 834 IMX_PINCTRL_PIN(MX35_PAD_D5), 835 IMX_PINCTRL_PIN(MX35_PAD_D4), 836 IMX_PINCTRL_PIN(MX35_PAD_D3), 837 IMX_PINCTRL_PIN(MX35_PAD_D2), 838 IMX_PINCTRL_PIN(MX35_PAD_D1), 839 IMX_PINCTRL_PIN(MX35_PAD_D0), 840 IMX_PINCTRL_PIN(MX35_PAD_RESERVE56), 841 IMX_PINCTRL_PIN(MX35_PAD_RESERVE57), 842 IMX_PINCTRL_PIN(MX35_PAD_RESERVE58), 843 IMX_PINCTRL_PIN(MX35_PAD_RESERVE59), 844 IMX_PINCTRL_PIN(MX35_PAD_RESERVE60), 845 IMX_PINCTRL_PIN(MX35_PAD_RESERVE61), 846 IMX_PINCTRL_PIN(MX35_PAD_RESERVE62), 847 IMX_PINCTRL_PIN(MX35_PAD_RESERVE63), 848 IMX_PINCTRL_PIN(MX35_PAD_RESERVE64), 849 IMX_PINCTRL_PIN(MX35_PAD_RESERVE65), 850 IMX_PINCTRL_PIN(MX35_PAD_RESERVE66), 851 IMX_PINCTRL_PIN(MX35_PAD_RESERVE67), 852 IMX_PINCTRL_PIN(MX35_PAD_RESERVE68), 853 IMX_PINCTRL_PIN(MX35_PAD_RESERVE69), 854 IMX_PINCTRL_PIN(MX35_PAD_RESERVE70), 855 IMX_PINCTRL_PIN(MX35_PAD_RESERVE71), 856 IMX_PINCTRL_PIN(MX35_PAD_RESERVE72), 857 IMX_PINCTRL_PIN(MX35_PAD_RESERVE73), 858 IMX_PINCTRL_PIN(MX35_PAD_RESERVE74), 859 IMX_PINCTRL_PIN(MX35_PAD_RESERVE75), 860 IMX_PINCTRL_PIN(MX35_PAD_RESERVE76), 861 IMX_PINCTRL_PIN(MX35_PAD_RESERVE77), 862 IMX_PINCTRL_PIN(MX35_PAD_RESERVE78), 863 IMX_PINCTRL_PIN(MX35_PAD_RESERVE79), 864 IMX_PINCTRL_PIN(MX35_PAD_RESERVE80), 865 IMX_PINCTRL_PIN(MX35_PAD_RESERVE81), 866 IMX_PINCTRL_PIN(MX35_PAD_RESERVE82), 867 IMX_PINCTRL_PIN(MX35_PAD_RESERVE83), 868 IMX_PINCTRL_PIN(MX35_PAD_RESERVE84), 869 IMX_PINCTRL_PIN(MX35_PAD_RESERVE85), 870 IMX_PINCTRL_PIN(MX35_PAD_RESERVE86), 871 IMX_PINCTRL_PIN(MX35_PAD_RESERVE87), 872 IMX_PINCTRL_PIN(MX35_PAD_RESERVE88), 873 IMX_PINCTRL_PIN(MX35_PAD_RESERVE89), 874 IMX_PINCTRL_PIN(MX35_PAD_RESERVE90), 875 IMX_PINCTRL_PIN(MX35_PAD_RESERVE91), 876 IMX_PINCTRL_PIN(MX35_PAD_RESERVE92), 877 IMX_PINCTRL_PIN(MX35_PAD_RESERVE93), 878 IMX_PINCTRL_PIN(MX35_PAD_RESERVE94), 879 IMX_PINCTRL_PIN(MX35_PAD_RESERVE95), 880 IMX_PINCTRL_PIN(MX35_PAD_RESERVE96), 881 IMX_PINCTRL_PIN(MX35_PAD_RESERVE97), 882 IMX_PINCTRL_PIN(MX35_PAD_RESERVE98), 883 IMX_PINCTRL_PIN(MX35_PAD_RESERVE99), 884 IMX_PINCTRL_PIN(MX35_PAD_RESERVE100), 885 IMX_PINCTRL_PIN(MX35_PAD_RESERVE101), 886 IMX_PINCTRL_PIN(MX35_PAD_RESERVE102), 887 IMX_PINCTRL_PIN(MX35_PAD_RESERVE103), 888 IMX_PINCTRL_PIN(MX35_PAD_RESERVE104), 889 IMX_PINCTRL_PIN(MX35_PAD_RESERVE105), 890 IMX_PINCTRL_PIN(MX35_PAD_RTCK), 891 IMX_PINCTRL_PIN(MX35_PAD_TCK), 892 IMX_PINCTRL_PIN(MX35_PAD_TMS), 893 IMX_PINCTRL_PIN(MX35_PAD_TDI), 894 IMX_PINCTRL_PIN(MX35_PAD_TDO), 895 IMX_PINCTRL_PIN(MX35_PAD_TRSTB), 896 IMX_PINCTRL_PIN(MX35_PAD_DE_B), 897 IMX_PINCTRL_PIN(MX35_PAD_SJC_MOD), 898 IMX_PINCTRL_PIN(MX35_PAD_RESERVE106), 899 IMX_PINCTRL_PIN(MX35_PAD_RESERVE107), 900 IMX_PINCTRL_PIN(MX35_PAD_RESERVE108), 901 IMX_PINCTRL_PIN(MX35_PAD_RESERVE109), 902 IMX_PINCTRL_PIN(MX35_PAD_RESERVE110), 903 IMX_PINCTRL_PIN(MX35_PAD_RESERVE111), 904 IMX_PINCTRL_PIN(MX35_PAD_RESERVE112), 905 IMX_PINCTRL_PIN(MX35_PAD_RESERVE113), 906 IMX_PINCTRL_PIN(MX35_PAD_RESERVE114), 907 IMX_PINCTRL_PIN(MX35_PAD_RESERVE115), 908 IMX_PINCTRL_PIN(MX35_PAD_RESERVE116), 909 IMX_PINCTRL_PIN(MX35_PAD_RESERVE117), 910 IMX_PINCTRL_PIN(MX35_PAD_RESERVE118), 911 IMX_PINCTRL_PIN(MX35_PAD_RESERVE119), 912 IMX_PINCTRL_PIN(MX35_PAD_RESERVE120), 913 IMX_PINCTRL_PIN(MX35_PAD_RESERVE121), 914 IMX_PINCTRL_PIN(MX35_PAD_RESERVE122), 915 IMX_PINCTRL_PIN(MX35_PAD_RESERVE123), 916 IMX_PINCTRL_PIN(MX35_PAD_RESERVE124), 917 IMX_PINCTRL_PIN(MX35_PAD_RESERVE125), 918 IMX_PINCTRL_PIN(MX35_PAD_RESERVE126), 919 IMX_PINCTRL_PIN(MX35_PAD_RESERVE127), 920 IMX_PINCTRL_PIN(MX35_PAD_RESERVE128), 921 IMX_PINCTRL_PIN(MX35_PAD_RESERVE129), 922 IMX_PINCTRL_PIN(MX35_PAD_RESERVE130), 923 IMX_PINCTRL_PIN(MX35_PAD_RESERVE131), 924 IMX_PINCTRL_PIN(MX35_PAD_RESERVE132), 925 IMX_PINCTRL_PIN(MX35_PAD_RESERVE133), 926 IMX_PINCTRL_PIN(MX35_PAD_RESERVE134), 927 IMX_PINCTRL_PIN(MX35_PAD_RESERVE135), 928 IMX_PINCTRL_PIN(MX35_PAD_RESERVE136), 929 IMX_PINCTRL_PIN(MX35_PAD_RESERVE137), 930 IMX_PINCTRL_PIN(MX35_PAD_RESERVE138), 931 IMX_PINCTRL_PIN(MX35_PAD_RESERVE139), 932 IMX_PINCTRL_PIN(MX35_PAD_RESERVE140), 933 IMX_PINCTRL_PIN(MX35_PAD_RESERVE141), 934 IMX_PINCTRL_PIN(MX35_PAD_RESERVE142), 935 IMX_PINCTRL_PIN(MX35_PAD_RESERVE143), 936 IMX_PINCTRL_PIN(MX35_PAD_RESERVE144), 937 IMX_PINCTRL_PIN(MX35_PAD_RESERVE145), 938 IMX_PINCTRL_PIN(MX35_PAD_RESERVE146), 939 IMX_PINCTRL_PIN(MX35_PAD_RESERVE147), 940 IMX_PINCTRL_PIN(MX35_PAD_RESERVE148), 941 IMX_PINCTRL_PIN(MX35_PAD_RESERVE149), 942 IMX_PINCTRL_PIN(MX35_PAD_RESERVE150), 943 IMX_PINCTRL_PIN(MX35_PAD_RESERVE151), 944 IMX_PINCTRL_PIN(MX35_PAD_RESERVE152), 945 IMX_PINCTRL_PIN(MX35_PAD_RESERVE153), 946 IMX_PINCTRL_PIN(MX35_PAD_RESERVE154), 947 IMX_PINCTRL_PIN(MX35_PAD_RESERVE155), 948 IMX_PINCTRL_PIN(MX35_PAD_RESERVE156), 949 IMX_PINCTRL_PIN(MX35_PAD_RESERVE157), 950 IMX_PINCTRL_PIN(MX35_PAD_RESERVE158), 951 IMX_PINCTRL_PIN(MX35_PAD_RESERVE159), 952 IMX_PINCTRL_PIN(MX35_PAD_RESERVE160), 953 IMX_PINCTRL_PIN(MX35_PAD_RESERVE161), 954 IMX_PINCTRL_PIN(MX35_PAD_RESERVE162), 955 IMX_PINCTRL_PIN(MX35_PAD_RESERVE163), 956 IMX_PINCTRL_PIN(MX35_PAD_RESERVE164), 957 IMX_PINCTRL_PIN(MX35_PAD_RESERVE165), 958 IMX_PINCTRL_PIN(MX35_PAD_RESERVE166), 959 IMX_PINCTRL_PIN(MX35_PAD_RESERVE167), 960 IMX_PINCTRL_PIN(MX35_PAD_RESERVE168), 961 IMX_PINCTRL_PIN(MX35_PAD_RESERVE169), 962 IMX_PINCTRL_PIN(MX35_PAD_RESERVE170), 963 IMX_PINCTRL_PIN(MX35_PAD_RESERVE171), 964 IMX_PINCTRL_PIN(MX35_PAD_RESERVE172), 965 IMX_PINCTRL_PIN(MX35_PAD_RESERVE173), 966 IMX_PINCTRL_PIN(MX35_PAD_RESERVE174), 967 IMX_PINCTRL_PIN(MX35_PAD_RESERVE175), 968 IMX_PINCTRL_PIN(MX35_PAD_RESERVE176), 969 IMX_PINCTRL_PIN(MX35_PAD_RESERVE177), 970 IMX_PINCTRL_PIN(MX35_PAD_RESERVE178), 971 IMX_PINCTRL_PIN(MX35_PAD_RESERVE179), 972 IMX_PINCTRL_PIN(MX35_PAD_RESERVE180), 973 IMX_PINCTRL_PIN(MX35_PAD_RESERVE181), 974 IMX_PINCTRL_PIN(MX35_PAD_RESERVE182), 975 IMX_PINCTRL_PIN(MX35_PAD_RESERVE183), 976 IMX_PINCTRL_PIN(MX35_PAD_RESERVE184), 977 IMX_PINCTRL_PIN(MX35_PAD_RESERVE185), 978 IMX_PINCTRL_PIN(MX35_PAD_RESERVE186), 979 IMX_PINCTRL_PIN(MX35_PAD_RESERVE187), 980 IMX_PINCTRL_PIN(MX35_PAD_RESERVE188), 981 IMX_PINCTRL_PIN(MX35_PAD_RESERVE189), 982 IMX_PINCTRL_PIN(MX35_PAD_RESERVE190), 983 IMX_PINCTRL_PIN(MX35_PAD_RESERVE191), 984 IMX_PINCTRL_PIN(MX35_PAD_RESERVE192), 985 IMX_PINCTRL_PIN(MX35_PAD_RESERVE193), 986 IMX_PINCTRL_PIN(MX35_PAD_RESERVE194), 987 IMX_PINCTRL_PIN(MX35_PAD_RESERVE195), 988 IMX_PINCTRL_PIN(MX35_PAD_RESERVE196), 989 IMX_PINCTRL_PIN(MX35_PAD_RESERVE197), 990 IMX_PINCTRL_PIN(MX35_PAD_RESERVE198), 991 IMX_PINCTRL_PIN(MX35_PAD_RESERVE199), 992 IMX_PINCTRL_PIN(MX35_PAD_RESERVE200), 993 IMX_PINCTRL_PIN(MX35_PAD_RESERVE201), 994 IMX_PINCTRL_PIN(MX35_PAD_EXT_ARMCLK), 995 IMX_PINCTRL_PIN(MX35_PAD_TEST_MODE), 996 }; 997 998 static const struct imx_pinctrl_soc_info imx35_pinctrl_info = { 999 .pins = imx35_pinctrl_pads, 1000 .npins = ARRAY_SIZE(imx35_pinctrl_pads), 1001 }; 1002 1003 static const struct of_device_id imx35_pinctrl_of_match[] = { 1004 { .compatible = "fsl,imx35-iomuxc", }, 1005 { /* sentinel */ } 1006 }; 1007 1008 static int imx35_pinctrl_probe(struct platform_device *pdev) 1009 { 1010 return imx_pinctrl_probe(pdev, &imx35_pinctrl_info); 1011 } 1012 1013 static struct platform_driver imx35_pinctrl_driver = { 1014 .driver = { 1015 .name = "imx35-pinctrl", 1016 .of_match_table = imx35_pinctrl_of_match, 1017 }, 1018 .probe = imx35_pinctrl_probe, 1019 }; 1020 1021 static int __init imx35_pinctrl_init(void) 1022 { 1023 return platform_driver_register(&imx35_pinctrl_driver); 1024 } 1025 arch_initcall(imx35_pinctrl_init); 1026