162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci// 362306a36Sopenharmony_ci// imx53 pinctrl driver based on imx pinmux core 462306a36Sopenharmony_ci// 562306a36Sopenharmony_ci// Copyright (C) 2012 Freescale Semiconductor, Inc. 662306a36Sopenharmony_ci// Copyright (C) 2012 Linaro, Inc. 762306a36Sopenharmony_ci// 862306a36Sopenharmony_ci// Author: Dong Aisheng <dong.aisheng@linaro.org> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include <linux/err.h> 1162306a36Sopenharmony_ci#include <linux/init.h> 1262306a36Sopenharmony_ci#include <linux/io.h> 1362306a36Sopenharmony_ci#include <linux/mod_devicetable.h> 1462306a36Sopenharmony_ci#include <linux/platform_device.h> 1562306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#include "pinctrl-imx.h" 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_cienum imx53_pads { 2062306a36Sopenharmony_ci MX53_PAD_RESERVE0 = 0, 2162306a36Sopenharmony_ci MX53_PAD_RESERVE1 = 1, 2262306a36Sopenharmony_ci MX53_PAD_RESERVE2 = 2, 2362306a36Sopenharmony_ci MX53_PAD_RESERVE3 = 3, 2462306a36Sopenharmony_ci MX53_PAD_RESERVE4 = 4, 2562306a36Sopenharmony_ci MX53_PAD_RESERVE5 = 5, 2662306a36Sopenharmony_ci MX53_PAD_RESERVE6 = 6, 2762306a36Sopenharmony_ci MX53_PAD_RESERVE7 = 7, 2862306a36Sopenharmony_ci MX53_PAD_GPIO_19 = 8, 2962306a36Sopenharmony_ci MX53_PAD_KEY_COL0 = 9, 3062306a36Sopenharmony_ci MX53_PAD_KEY_ROW0 = 10, 3162306a36Sopenharmony_ci MX53_PAD_KEY_COL1 = 11, 3262306a36Sopenharmony_ci MX53_PAD_KEY_ROW1 = 12, 3362306a36Sopenharmony_ci MX53_PAD_KEY_COL2 = 13, 3462306a36Sopenharmony_ci MX53_PAD_KEY_ROW2 = 14, 3562306a36Sopenharmony_ci MX53_PAD_KEY_COL3 = 15, 3662306a36Sopenharmony_ci MX53_PAD_KEY_ROW3 = 16, 3762306a36Sopenharmony_ci MX53_PAD_KEY_COL4 = 17, 3862306a36Sopenharmony_ci MX53_PAD_KEY_ROW4 = 18, 3962306a36Sopenharmony_ci MX53_PAD_DI0_DISP_CLK = 19, 4062306a36Sopenharmony_ci MX53_PAD_DI0_PIN15 = 20, 4162306a36Sopenharmony_ci MX53_PAD_DI0_PIN2 = 21, 4262306a36Sopenharmony_ci MX53_PAD_DI0_PIN3 = 22, 4362306a36Sopenharmony_ci MX53_PAD_DI0_PIN4 = 23, 4462306a36Sopenharmony_ci MX53_PAD_DISP0_DAT0 = 24, 4562306a36Sopenharmony_ci MX53_PAD_DISP0_DAT1 = 25, 4662306a36Sopenharmony_ci MX53_PAD_DISP0_DAT2 = 26, 4762306a36Sopenharmony_ci MX53_PAD_DISP0_DAT3 = 27, 4862306a36Sopenharmony_ci MX53_PAD_DISP0_DAT4 = 28, 4962306a36Sopenharmony_ci MX53_PAD_DISP0_DAT5 = 29, 5062306a36Sopenharmony_ci MX53_PAD_DISP0_DAT6 = 30, 5162306a36Sopenharmony_ci MX53_PAD_DISP0_DAT7 = 31, 5262306a36Sopenharmony_ci MX53_PAD_DISP0_DAT8 = 32, 5362306a36Sopenharmony_ci MX53_PAD_DISP0_DAT9 = 33, 5462306a36Sopenharmony_ci MX53_PAD_DISP0_DAT10 = 34, 5562306a36Sopenharmony_ci MX53_PAD_DISP0_DAT11 = 35, 5662306a36Sopenharmony_ci MX53_PAD_DISP0_DAT12 = 36, 5762306a36Sopenharmony_ci MX53_PAD_DISP0_DAT13 = 37, 5862306a36Sopenharmony_ci MX53_PAD_DISP0_DAT14 = 38, 5962306a36Sopenharmony_ci MX53_PAD_DISP0_DAT15 = 39, 6062306a36Sopenharmony_ci MX53_PAD_DISP0_DAT16 = 40, 6162306a36Sopenharmony_ci MX53_PAD_DISP0_DAT17 = 41, 6262306a36Sopenharmony_ci MX53_PAD_DISP0_DAT18 = 42, 6362306a36Sopenharmony_ci MX53_PAD_DISP0_DAT19 = 43, 6462306a36Sopenharmony_ci MX53_PAD_DISP0_DAT20 = 44, 6562306a36Sopenharmony_ci MX53_PAD_DISP0_DAT21 = 45, 6662306a36Sopenharmony_ci MX53_PAD_DISP0_DAT22 = 46, 6762306a36Sopenharmony_ci MX53_PAD_DISP0_DAT23 = 47, 6862306a36Sopenharmony_ci MX53_PAD_CSI0_PIXCLK = 48, 6962306a36Sopenharmony_ci MX53_PAD_CSI0_MCLK = 49, 7062306a36Sopenharmony_ci MX53_PAD_CSI0_DATA_EN = 50, 7162306a36Sopenharmony_ci MX53_PAD_CSI0_VSYNC = 51, 7262306a36Sopenharmony_ci MX53_PAD_CSI0_DAT4 = 52, 7362306a36Sopenharmony_ci MX53_PAD_CSI0_DAT5 = 53, 7462306a36Sopenharmony_ci MX53_PAD_CSI0_DAT6 = 54, 7562306a36Sopenharmony_ci MX53_PAD_CSI0_DAT7 = 55, 7662306a36Sopenharmony_ci MX53_PAD_CSI0_DAT8 = 56, 7762306a36Sopenharmony_ci MX53_PAD_CSI0_DAT9 = 57, 7862306a36Sopenharmony_ci MX53_PAD_CSI0_DAT10 = 58, 7962306a36Sopenharmony_ci MX53_PAD_CSI0_DAT11 = 59, 8062306a36Sopenharmony_ci MX53_PAD_CSI0_DAT12 = 60, 8162306a36Sopenharmony_ci MX53_PAD_CSI0_DAT13 = 61, 8262306a36Sopenharmony_ci MX53_PAD_CSI0_DAT14 = 62, 8362306a36Sopenharmony_ci MX53_PAD_CSI0_DAT15 = 63, 8462306a36Sopenharmony_ci MX53_PAD_CSI0_DAT16 = 64, 8562306a36Sopenharmony_ci MX53_PAD_CSI0_DAT17 = 65, 8662306a36Sopenharmony_ci MX53_PAD_CSI0_DAT18 = 66, 8762306a36Sopenharmony_ci MX53_PAD_CSI0_DAT19 = 67, 8862306a36Sopenharmony_ci MX53_PAD_EIM_A25 = 68, 8962306a36Sopenharmony_ci MX53_PAD_EIM_EB2 = 69, 9062306a36Sopenharmony_ci MX53_PAD_EIM_D16 = 70, 9162306a36Sopenharmony_ci MX53_PAD_EIM_D17 = 71, 9262306a36Sopenharmony_ci MX53_PAD_EIM_D18 = 72, 9362306a36Sopenharmony_ci MX53_PAD_EIM_D19 = 73, 9462306a36Sopenharmony_ci MX53_PAD_EIM_D20 = 74, 9562306a36Sopenharmony_ci MX53_PAD_EIM_D21 = 75, 9662306a36Sopenharmony_ci MX53_PAD_EIM_D22 = 76, 9762306a36Sopenharmony_ci MX53_PAD_EIM_D23 = 77, 9862306a36Sopenharmony_ci MX53_PAD_EIM_EB3 = 78, 9962306a36Sopenharmony_ci MX53_PAD_EIM_D24 = 79, 10062306a36Sopenharmony_ci MX53_PAD_EIM_D25 = 80, 10162306a36Sopenharmony_ci MX53_PAD_EIM_D26 = 81, 10262306a36Sopenharmony_ci MX53_PAD_EIM_D27 = 82, 10362306a36Sopenharmony_ci MX53_PAD_EIM_D28 = 83, 10462306a36Sopenharmony_ci MX53_PAD_EIM_D29 = 84, 10562306a36Sopenharmony_ci MX53_PAD_EIM_D30 = 85, 10662306a36Sopenharmony_ci MX53_PAD_EIM_D31 = 86, 10762306a36Sopenharmony_ci MX53_PAD_EIM_A24 = 87, 10862306a36Sopenharmony_ci MX53_PAD_EIM_A23 = 88, 10962306a36Sopenharmony_ci MX53_PAD_EIM_A22 = 89, 11062306a36Sopenharmony_ci MX53_PAD_EIM_A21 = 90, 11162306a36Sopenharmony_ci MX53_PAD_EIM_A20 = 91, 11262306a36Sopenharmony_ci MX53_PAD_EIM_A19 = 92, 11362306a36Sopenharmony_ci MX53_PAD_EIM_A18 = 93, 11462306a36Sopenharmony_ci MX53_PAD_EIM_A17 = 94, 11562306a36Sopenharmony_ci MX53_PAD_EIM_A16 = 95, 11662306a36Sopenharmony_ci MX53_PAD_EIM_CS0 = 96, 11762306a36Sopenharmony_ci MX53_PAD_EIM_CS1 = 97, 11862306a36Sopenharmony_ci MX53_PAD_EIM_OE = 98, 11962306a36Sopenharmony_ci MX53_PAD_EIM_RW = 99, 12062306a36Sopenharmony_ci MX53_PAD_EIM_LBA = 100, 12162306a36Sopenharmony_ci MX53_PAD_EIM_EB0 = 101, 12262306a36Sopenharmony_ci MX53_PAD_EIM_EB1 = 102, 12362306a36Sopenharmony_ci MX53_PAD_EIM_DA0 = 103, 12462306a36Sopenharmony_ci MX53_PAD_EIM_DA1 = 104, 12562306a36Sopenharmony_ci MX53_PAD_EIM_DA2 = 105, 12662306a36Sopenharmony_ci MX53_PAD_EIM_DA3 = 106, 12762306a36Sopenharmony_ci MX53_PAD_EIM_DA4 = 107, 12862306a36Sopenharmony_ci MX53_PAD_EIM_DA5 = 108, 12962306a36Sopenharmony_ci MX53_PAD_EIM_DA6 = 109, 13062306a36Sopenharmony_ci MX53_PAD_EIM_DA7 = 110, 13162306a36Sopenharmony_ci MX53_PAD_EIM_DA8 = 111, 13262306a36Sopenharmony_ci MX53_PAD_EIM_DA9 = 112, 13362306a36Sopenharmony_ci MX53_PAD_EIM_DA10 = 113, 13462306a36Sopenharmony_ci MX53_PAD_EIM_DA11 = 114, 13562306a36Sopenharmony_ci MX53_PAD_EIM_DA12 = 115, 13662306a36Sopenharmony_ci MX53_PAD_EIM_DA13 = 116, 13762306a36Sopenharmony_ci MX53_PAD_EIM_DA14 = 117, 13862306a36Sopenharmony_ci MX53_PAD_EIM_DA15 = 118, 13962306a36Sopenharmony_ci MX53_PAD_NANDF_WE_B = 119, 14062306a36Sopenharmony_ci MX53_PAD_NANDF_RE_B = 120, 14162306a36Sopenharmony_ci MX53_PAD_EIM_WAIT = 121, 14262306a36Sopenharmony_ci MX53_PAD_RESERVE8 = 122, 14362306a36Sopenharmony_ci MX53_PAD_LVDS1_TX3_P = 123, 14462306a36Sopenharmony_ci MX53_PAD_LVDS1_TX2_P = 124, 14562306a36Sopenharmony_ci MX53_PAD_LVDS1_CLK_P = 125, 14662306a36Sopenharmony_ci MX53_PAD_LVDS1_TX1_P = 126, 14762306a36Sopenharmony_ci MX53_PAD_LVDS1_TX0_P = 127, 14862306a36Sopenharmony_ci MX53_PAD_LVDS0_TX3_P = 128, 14962306a36Sopenharmony_ci MX53_PAD_LVDS0_CLK_P = 129, 15062306a36Sopenharmony_ci MX53_PAD_LVDS0_TX2_P = 130, 15162306a36Sopenharmony_ci MX53_PAD_LVDS0_TX1_P = 131, 15262306a36Sopenharmony_ci MX53_PAD_LVDS0_TX0_P = 132, 15362306a36Sopenharmony_ci MX53_PAD_GPIO_10 = 133, 15462306a36Sopenharmony_ci MX53_PAD_GPIO_11 = 134, 15562306a36Sopenharmony_ci MX53_PAD_GPIO_12 = 135, 15662306a36Sopenharmony_ci MX53_PAD_GPIO_13 = 136, 15762306a36Sopenharmony_ci MX53_PAD_GPIO_14 = 137, 15862306a36Sopenharmony_ci MX53_PAD_NANDF_CLE = 138, 15962306a36Sopenharmony_ci MX53_PAD_NANDF_ALE = 139, 16062306a36Sopenharmony_ci MX53_PAD_NANDF_WP_B = 140, 16162306a36Sopenharmony_ci MX53_PAD_NANDF_RB0 = 141, 16262306a36Sopenharmony_ci MX53_PAD_NANDF_CS0 = 142, 16362306a36Sopenharmony_ci MX53_PAD_NANDF_CS1 = 143, 16462306a36Sopenharmony_ci MX53_PAD_NANDF_CS2 = 144, 16562306a36Sopenharmony_ci MX53_PAD_NANDF_CS3 = 145, 16662306a36Sopenharmony_ci MX53_PAD_FEC_MDIO = 146, 16762306a36Sopenharmony_ci MX53_PAD_FEC_REF_CLK = 147, 16862306a36Sopenharmony_ci MX53_PAD_FEC_RX_ER = 148, 16962306a36Sopenharmony_ci MX53_PAD_FEC_CRS_DV = 149, 17062306a36Sopenharmony_ci MX53_PAD_FEC_RXD1 = 150, 17162306a36Sopenharmony_ci MX53_PAD_FEC_RXD0 = 151, 17262306a36Sopenharmony_ci MX53_PAD_FEC_TX_EN = 152, 17362306a36Sopenharmony_ci MX53_PAD_FEC_TXD1 = 153, 17462306a36Sopenharmony_ci MX53_PAD_FEC_TXD0 = 154, 17562306a36Sopenharmony_ci MX53_PAD_FEC_MDC = 155, 17662306a36Sopenharmony_ci MX53_PAD_PATA_DIOW = 156, 17762306a36Sopenharmony_ci MX53_PAD_PATA_DMACK = 157, 17862306a36Sopenharmony_ci MX53_PAD_PATA_DMARQ = 158, 17962306a36Sopenharmony_ci MX53_PAD_PATA_BUFFER_EN = 159, 18062306a36Sopenharmony_ci MX53_PAD_PATA_INTRQ = 160, 18162306a36Sopenharmony_ci MX53_PAD_PATA_DIOR = 161, 18262306a36Sopenharmony_ci MX53_PAD_PATA_RESET_B = 162, 18362306a36Sopenharmony_ci MX53_PAD_PATA_IORDY = 163, 18462306a36Sopenharmony_ci MX53_PAD_PATA_DA_0 = 164, 18562306a36Sopenharmony_ci MX53_PAD_PATA_DA_1 = 165, 18662306a36Sopenharmony_ci MX53_PAD_PATA_DA_2 = 166, 18762306a36Sopenharmony_ci MX53_PAD_PATA_CS_0 = 167, 18862306a36Sopenharmony_ci MX53_PAD_PATA_CS_1 = 168, 18962306a36Sopenharmony_ci MX53_PAD_PATA_DATA0 = 169, 19062306a36Sopenharmony_ci MX53_PAD_PATA_DATA1 = 170, 19162306a36Sopenharmony_ci MX53_PAD_PATA_DATA2 = 171, 19262306a36Sopenharmony_ci MX53_PAD_PATA_DATA3 = 172, 19362306a36Sopenharmony_ci MX53_PAD_PATA_DATA4 = 173, 19462306a36Sopenharmony_ci MX53_PAD_PATA_DATA5 = 174, 19562306a36Sopenharmony_ci MX53_PAD_PATA_DATA6 = 175, 19662306a36Sopenharmony_ci MX53_PAD_PATA_DATA7 = 176, 19762306a36Sopenharmony_ci MX53_PAD_PATA_DATA8 = 177, 19862306a36Sopenharmony_ci MX53_PAD_PATA_DATA9 = 178, 19962306a36Sopenharmony_ci MX53_PAD_PATA_DATA10 = 179, 20062306a36Sopenharmony_ci MX53_PAD_PATA_DATA11 = 180, 20162306a36Sopenharmony_ci MX53_PAD_PATA_DATA12 = 181, 20262306a36Sopenharmony_ci MX53_PAD_PATA_DATA13 = 182, 20362306a36Sopenharmony_ci MX53_PAD_PATA_DATA14 = 183, 20462306a36Sopenharmony_ci MX53_PAD_PATA_DATA15 = 184, 20562306a36Sopenharmony_ci MX53_PAD_SD1_DATA0 = 185, 20662306a36Sopenharmony_ci MX53_PAD_SD1_DATA1 = 186, 20762306a36Sopenharmony_ci MX53_PAD_SD1_CMD = 187, 20862306a36Sopenharmony_ci MX53_PAD_SD1_DATA2 = 188, 20962306a36Sopenharmony_ci MX53_PAD_SD1_CLK = 189, 21062306a36Sopenharmony_ci MX53_PAD_SD1_DATA3 = 190, 21162306a36Sopenharmony_ci MX53_PAD_SD2_CLK = 191, 21262306a36Sopenharmony_ci MX53_PAD_SD2_CMD = 192, 21362306a36Sopenharmony_ci MX53_PAD_SD2_DATA3 = 193, 21462306a36Sopenharmony_ci MX53_PAD_SD2_DATA2 = 194, 21562306a36Sopenharmony_ci MX53_PAD_SD2_DATA1 = 195, 21662306a36Sopenharmony_ci MX53_PAD_SD2_DATA0 = 196, 21762306a36Sopenharmony_ci MX53_PAD_GPIO_0 = 197, 21862306a36Sopenharmony_ci MX53_PAD_GPIO_1 = 198, 21962306a36Sopenharmony_ci MX53_PAD_GPIO_9 = 199, 22062306a36Sopenharmony_ci MX53_PAD_GPIO_3 = 200, 22162306a36Sopenharmony_ci MX53_PAD_GPIO_6 = 201, 22262306a36Sopenharmony_ci MX53_PAD_GPIO_2 = 202, 22362306a36Sopenharmony_ci MX53_PAD_GPIO_4 = 203, 22462306a36Sopenharmony_ci MX53_PAD_GPIO_5 = 204, 22562306a36Sopenharmony_ci MX53_PAD_GPIO_7 = 205, 22662306a36Sopenharmony_ci MX53_PAD_GPIO_8 = 206, 22762306a36Sopenharmony_ci MX53_PAD_GPIO_16 = 207, 22862306a36Sopenharmony_ci MX53_PAD_GPIO_17 = 208, 22962306a36Sopenharmony_ci MX53_PAD_GPIO_18 = 209, 23062306a36Sopenharmony_ci}; 23162306a36Sopenharmony_ci 23262306a36Sopenharmony_ci/* Pad names for the pinmux subsystem */ 23362306a36Sopenharmony_cistatic const struct pinctrl_pin_desc imx53_pinctrl_pads[] = { 23462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE0), 23562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE1), 23662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE2), 23762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE3), 23862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE4), 23962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE5), 24062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE6), 24162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE7), 24262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_19), 24362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_COL0), 24462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_ROW0), 24562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_COL1), 24662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_ROW1), 24762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_COL2), 24862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_ROW2), 24962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_COL3), 25062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_ROW3), 25162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_COL4), 25262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_KEY_ROW4), 25362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DI0_DISP_CLK), 25462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DI0_PIN15), 25562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DI0_PIN2), 25662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DI0_PIN3), 25762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DI0_PIN4), 25862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT0), 25962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT1), 26062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT2), 26162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT3), 26262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT4), 26362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT5), 26462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT6), 26562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT7), 26662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT8), 26762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT9), 26862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT10), 26962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT11), 27062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT12), 27162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT13), 27262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT14), 27362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT15), 27462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT16), 27562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT17), 27662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT18), 27762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT19), 27862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT20), 27962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT21), 28062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT22), 28162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_DISP0_DAT23), 28262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_PIXCLK), 28362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_MCLK), 28462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DATA_EN), 28562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_VSYNC), 28662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT4), 28762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT5), 28862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT6), 28962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT7), 29062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT8), 29162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT9), 29262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT10), 29362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT11), 29462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT12), 29562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT13), 29662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT14), 29762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT15), 29862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT16), 29962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT17), 30062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT18), 30162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_CSI0_DAT19), 30262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A25), 30362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_EB2), 30462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D16), 30562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D17), 30662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D18), 30762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D19), 30862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D20), 30962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D21), 31062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D22), 31162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D23), 31262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_EB3), 31362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D24), 31462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D25), 31562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D26), 31662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D27), 31762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D28), 31862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D29), 31962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D30), 32062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_D31), 32162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A24), 32262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A23), 32362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A22), 32462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A21), 32562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A20), 32662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A19), 32762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A18), 32862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A17), 32962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_A16), 33062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_CS0), 33162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_CS1), 33262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_OE), 33362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_RW), 33462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_LBA), 33562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_EB0), 33662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_EB1), 33762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA0), 33862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA1), 33962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA2), 34062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA3), 34162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA4), 34262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA5), 34362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA6), 34462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA7), 34562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA8), 34662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA9), 34762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA10), 34862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA11), 34962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA12), 35062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA13), 35162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA14), 35262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_DA15), 35362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_WE_B), 35462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_RE_B), 35562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_EIM_WAIT), 35662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_RESERVE8), 35762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS1_TX3_P), 35862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS1_TX2_P), 35962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS1_CLK_P), 36062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS1_TX1_P), 36162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS1_TX0_P), 36262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS0_TX3_P), 36362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS0_CLK_P), 36462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS0_TX2_P), 36562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS0_TX1_P), 36662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_LVDS0_TX0_P), 36762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_10), 36862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_11), 36962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_12), 37062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_13), 37162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_14), 37262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_CLE), 37362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_ALE), 37462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_WP_B), 37562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_RB0), 37662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_CS0), 37762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_CS1), 37862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_CS2), 37962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_NANDF_CS3), 38062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_MDIO), 38162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_REF_CLK), 38262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_RX_ER), 38362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_CRS_DV), 38462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_RXD1), 38562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_RXD0), 38662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_TX_EN), 38762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_TXD1), 38862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_TXD0), 38962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_FEC_MDC), 39062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DIOW), 39162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DMACK), 39262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DMARQ), 39362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_BUFFER_EN), 39462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_INTRQ), 39562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DIOR), 39662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_RESET_B), 39762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_IORDY), 39862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DA_0), 39962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DA_1), 40062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DA_2), 40162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_CS_0), 40262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_CS_1), 40362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA0), 40462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA1), 40562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA2), 40662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA3), 40762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA4), 40862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA5), 40962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA6), 41062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA7), 41162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA8), 41262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA9), 41362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA10), 41462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA11), 41562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA12), 41662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA13), 41762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA14), 41862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_PATA_DATA15), 41962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_DATA0), 42062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_DATA1), 42162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_CMD), 42262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_DATA2), 42362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_CLK), 42462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD1_DATA3), 42562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_CLK), 42662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_CMD), 42762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_DATA3), 42862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_DATA2), 42962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_DATA1), 43062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_SD2_DATA0), 43162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_0), 43262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_1), 43362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_9), 43462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_3), 43562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_6), 43662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_2), 43762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_4), 43862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_5), 43962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_7), 44062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_8), 44162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_16), 44262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_17), 44362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX53_PAD_GPIO_18), 44462306a36Sopenharmony_ci}; 44562306a36Sopenharmony_ci 44662306a36Sopenharmony_cistatic const struct imx_pinctrl_soc_info imx53_pinctrl_info = { 44762306a36Sopenharmony_ci .pins = imx53_pinctrl_pads, 44862306a36Sopenharmony_ci .npins = ARRAY_SIZE(imx53_pinctrl_pads), 44962306a36Sopenharmony_ci .gpr_compatible = "fsl,imx53-iomuxc-gpr", 45062306a36Sopenharmony_ci}; 45162306a36Sopenharmony_ci 45262306a36Sopenharmony_cistatic const struct of_device_id imx53_pinctrl_of_match[] = { 45362306a36Sopenharmony_ci { .compatible = "fsl,imx53-iomuxc", }, 45462306a36Sopenharmony_ci { /* sentinel */ } 45562306a36Sopenharmony_ci}; 45662306a36Sopenharmony_ci 45762306a36Sopenharmony_cistatic int imx53_pinctrl_probe(struct platform_device *pdev) 45862306a36Sopenharmony_ci{ 45962306a36Sopenharmony_ci return imx_pinctrl_probe(pdev, &imx53_pinctrl_info); 46062306a36Sopenharmony_ci} 46162306a36Sopenharmony_ci 46262306a36Sopenharmony_cistatic struct platform_driver imx53_pinctrl_driver = { 46362306a36Sopenharmony_ci .driver = { 46462306a36Sopenharmony_ci .name = "imx53-pinctrl", 46562306a36Sopenharmony_ci .of_match_table = imx53_pinctrl_of_match, 46662306a36Sopenharmony_ci .suppress_bind_attrs = true, 46762306a36Sopenharmony_ci }, 46862306a36Sopenharmony_ci .probe = imx53_pinctrl_probe, 46962306a36Sopenharmony_ci}; 47062306a36Sopenharmony_ci 47162306a36Sopenharmony_cistatic int __init imx53_pinctrl_init(void) 47262306a36Sopenharmony_ci{ 47362306a36Sopenharmony_ci return platform_driver_register(&imx53_pinctrl_driver); 47462306a36Sopenharmony_ci} 47562306a36Sopenharmony_ciarch_initcall(imx53_pinctrl_init); 476