162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci// 362306a36Sopenharmony_ci// imx50 pinctrl driver based on imx pinmux core 462306a36Sopenharmony_ci// 562306a36Sopenharmony_ci// Copyright (C) 2013 Greg Ungerer <gerg@uclinux.org> 662306a36Sopenharmony_ci// Copyright (C) 2012 Freescale Semiconductor, Inc. 762306a36Sopenharmony_ci// Copyright (C) 2012 Linaro, Inc. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/err.h> 1062306a36Sopenharmony_ci#include <linux/init.h> 1162306a36Sopenharmony_ci#include <linux/io.h> 1262306a36Sopenharmony_ci#include <linux/mod_devicetable.h> 1362306a36Sopenharmony_ci#include <linux/platform_device.h> 1462306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#include "pinctrl-imx.h" 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_cienum imx50_pads { 1962306a36Sopenharmony_ci MX50_PAD_RESERVE0 = 0, 2062306a36Sopenharmony_ci MX50_PAD_RESERVE1 = 1, 2162306a36Sopenharmony_ci MX50_PAD_RESERVE2 = 2, 2262306a36Sopenharmony_ci MX50_PAD_RESERVE3 = 3, 2362306a36Sopenharmony_ci MX50_PAD_RESERVE4 = 4, 2462306a36Sopenharmony_ci MX50_PAD_RESERVE5 = 5, 2562306a36Sopenharmony_ci MX50_PAD_RESERVE6 = 6, 2662306a36Sopenharmony_ci MX50_PAD_RESERVE7 = 7, 2762306a36Sopenharmony_ci MX50_PAD_KEY_COL0 = 8, 2862306a36Sopenharmony_ci MX50_PAD_KEY_ROW0 = 9, 2962306a36Sopenharmony_ci MX50_PAD_KEY_COL1 = 10, 3062306a36Sopenharmony_ci MX50_PAD_KEY_ROW1 = 11, 3162306a36Sopenharmony_ci MX50_PAD_KEY_COL2 = 12, 3262306a36Sopenharmony_ci MX50_PAD_KEY_ROW2 = 13, 3362306a36Sopenharmony_ci MX50_PAD_KEY_COL3 = 14, 3462306a36Sopenharmony_ci MX50_PAD_KEY_ROW3 = 15, 3562306a36Sopenharmony_ci MX50_PAD_I2C1_SCL = 16, 3662306a36Sopenharmony_ci MX50_PAD_I2C1_SDA = 17, 3762306a36Sopenharmony_ci MX50_PAD_I2C2_SCL = 18, 3862306a36Sopenharmony_ci MX50_PAD_I2C2_SDA = 19, 3962306a36Sopenharmony_ci MX50_PAD_I2C3_SCL = 20, 4062306a36Sopenharmony_ci MX50_PAD_I2C3_SDA = 21, 4162306a36Sopenharmony_ci MX50_PAD_PWM1 = 22, 4262306a36Sopenharmony_ci MX50_PAD_PWM2 = 23, 4362306a36Sopenharmony_ci MX50_PAD_0WIRE = 24, 4462306a36Sopenharmony_ci MX50_PAD_EPITO = 25, 4562306a36Sopenharmony_ci MX50_PAD_WDOG = 26, 4662306a36Sopenharmony_ci MX50_PAD_SSI_TXFS = 27, 4762306a36Sopenharmony_ci MX50_PAD_SSI_TXC = 28, 4862306a36Sopenharmony_ci MX50_PAD_SSI_TXD = 29, 4962306a36Sopenharmony_ci MX50_PAD_SSI_RXD = 30, 5062306a36Sopenharmony_ci MX50_PAD_SSI_RXF = 31, 5162306a36Sopenharmony_ci MX50_PAD_SSI_RXC = 32, 5262306a36Sopenharmony_ci MX50_PAD_UART1_TXD = 33, 5362306a36Sopenharmony_ci MX50_PAD_UART1_RXD = 34, 5462306a36Sopenharmony_ci MX50_PAD_UART1_CTS = 35, 5562306a36Sopenharmony_ci MX50_PAD_UART1_RTS = 36, 5662306a36Sopenharmony_ci MX50_PAD_UART2_TXD = 37, 5762306a36Sopenharmony_ci MX50_PAD_UART2_RXD = 38, 5862306a36Sopenharmony_ci MX50_PAD_UART2_CTS = 39, 5962306a36Sopenharmony_ci MX50_PAD_UART2_RTS = 40, 6062306a36Sopenharmony_ci MX50_PAD_UART3_TXD = 41, 6162306a36Sopenharmony_ci MX50_PAD_UART3_RXD = 42, 6262306a36Sopenharmony_ci MX50_PAD_UART4_TXD = 43, 6362306a36Sopenharmony_ci MX50_PAD_UART4_RXD = 44, 6462306a36Sopenharmony_ci MX50_PAD_CSPI_CLK = 45, 6562306a36Sopenharmony_ci MX50_PAD_CSPI_MOSI = 46, 6662306a36Sopenharmony_ci MX50_PAD_CSPI_MISO = 47, 6762306a36Sopenharmony_ci MX50_PAD_CSPI_SS0 = 48, 6862306a36Sopenharmony_ci MX50_PAD_ECSPI1_CLK = 49, 6962306a36Sopenharmony_ci MX50_PAD_ECSPI1_MOSI = 50, 7062306a36Sopenharmony_ci MX50_PAD_ECSPI1_MISO = 51, 7162306a36Sopenharmony_ci MX50_PAD_ECSPI1_SS0 = 52, 7262306a36Sopenharmony_ci MX50_PAD_ECSPI2_CLK = 53, 7362306a36Sopenharmony_ci MX50_PAD_ECSPI2_MOSI = 54, 7462306a36Sopenharmony_ci MX50_PAD_ECSPI2_MISO = 55, 7562306a36Sopenharmony_ci MX50_PAD_ECSPI2_SS0 = 56, 7662306a36Sopenharmony_ci MX50_PAD_SD1_CLK = 57, 7762306a36Sopenharmony_ci MX50_PAD_SD1_CMD = 58, 7862306a36Sopenharmony_ci MX50_PAD_SD1_D0 = 59, 7962306a36Sopenharmony_ci MX50_PAD_SD1_D1 = 60, 8062306a36Sopenharmony_ci MX50_PAD_SD1_D2 = 61, 8162306a36Sopenharmony_ci MX50_PAD_SD1_D3 = 62, 8262306a36Sopenharmony_ci MX50_PAD_SD2_CLK = 63, 8362306a36Sopenharmony_ci MX50_PAD_SD2_CMD = 64, 8462306a36Sopenharmony_ci MX50_PAD_SD2_D0 = 65, 8562306a36Sopenharmony_ci MX50_PAD_SD2_D1 = 66, 8662306a36Sopenharmony_ci MX50_PAD_SD2_D2 = 67, 8762306a36Sopenharmony_ci MX50_PAD_SD2_D3 = 68, 8862306a36Sopenharmony_ci MX50_PAD_SD2_D4 = 69, 8962306a36Sopenharmony_ci MX50_PAD_SD2_D5 = 70, 9062306a36Sopenharmony_ci MX50_PAD_SD2_D6 = 71, 9162306a36Sopenharmony_ci MX50_PAD_SD2_D7 = 72, 9262306a36Sopenharmony_ci MX50_PAD_SD2_WP = 73, 9362306a36Sopenharmony_ci MX50_PAD_SD2_CD = 74, 9462306a36Sopenharmony_ci MX50_PAD_DISP_D0 = 75, 9562306a36Sopenharmony_ci MX50_PAD_DISP_D1 = 76, 9662306a36Sopenharmony_ci MX50_PAD_DISP_D2 = 77, 9762306a36Sopenharmony_ci MX50_PAD_DISP_D3 = 78, 9862306a36Sopenharmony_ci MX50_PAD_DISP_D4 = 79, 9962306a36Sopenharmony_ci MX50_PAD_DISP_D5 = 80, 10062306a36Sopenharmony_ci MX50_PAD_DISP_D6 = 81, 10162306a36Sopenharmony_ci MX50_PAD_DISP_D7 = 82, 10262306a36Sopenharmony_ci MX50_PAD_DISP_WR = 83, 10362306a36Sopenharmony_ci MX50_PAD_DISP_RD = 84, 10462306a36Sopenharmony_ci MX50_PAD_DISP_RS = 85, 10562306a36Sopenharmony_ci MX50_PAD_DISP_CS = 86, 10662306a36Sopenharmony_ci MX50_PAD_DISP_BUSY = 87, 10762306a36Sopenharmony_ci MX50_PAD_DISP_RESET = 88, 10862306a36Sopenharmony_ci MX50_PAD_SD3_CLK = 89, 10962306a36Sopenharmony_ci MX50_PAD_SD3_CMD = 90, 11062306a36Sopenharmony_ci MX50_PAD_SD3_D0 = 91, 11162306a36Sopenharmony_ci MX50_PAD_SD3_D1 = 92, 11262306a36Sopenharmony_ci MX50_PAD_SD3_D2 = 93, 11362306a36Sopenharmony_ci MX50_PAD_SD3_D3 = 94, 11462306a36Sopenharmony_ci MX50_PAD_SD3_D4 = 95, 11562306a36Sopenharmony_ci MX50_PAD_SD3_D5 = 96, 11662306a36Sopenharmony_ci MX50_PAD_SD3_D6 = 97, 11762306a36Sopenharmony_ci MX50_PAD_SD3_D7 = 98, 11862306a36Sopenharmony_ci MX50_PAD_SD3_WP = 99, 11962306a36Sopenharmony_ci MX50_PAD_DISP_D8 = 100, 12062306a36Sopenharmony_ci MX50_PAD_DISP_D9 = 101, 12162306a36Sopenharmony_ci MX50_PAD_DISP_D10 = 102, 12262306a36Sopenharmony_ci MX50_PAD_DISP_D11 = 103, 12362306a36Sopenharmony_ci MX50_PAD_DISP_D12 = 104, 12462306a36Sopenharmony_ci MX50_PAD_DISP_D13 = 105, 12562306a36Sopenharmony_ci MX50_PAD_DISP_D14 = 106, 12662306a36Sopenharmony_ci MX50_PAD_DISP_D15 = 107, 12762306a36Sopenharmony_ci MX50_PAD_EPDC_D0 = 108, 12862306a36Sopenharmony_ci MX50_PAD_EPDC_D1 = 109, 12962306a36Sopenharmony_ci MX50_PAD_EPDC_D2 = 110, 13062306a36Sopenharmony_ci MX50_PAD_EPDC_D3 = 111, 13162306a36Sopenharmony_ci MX50_PAD_EPDC_D4 = 112, 13262306a36Sopenharmony_ci MX50_PAD_EPDC_D5 = 113, 13362306a36Sopenharmony_ci MX50_PAD_EPDC_D6 = 114, 13462306a36Sopenharmony_ci MX50_PAD_EPDC_D7 = 115, 13562306a36Sopenharmony_ci MX50_PAD_EPDC_D8 = 116, 13662306a36Sopenharmony_ci MX50_PAD_EPDC_D9 = 117, 13762306a36Sopenharmony_ci MX50_PAD_EPDC_D10 = 118, 13862306a36Sopenharmony_ci MX50_PAD_EPDC_D11 = 119, 13962306a36Sopenharmony_ci MX50_PAD_EPDC_D12 = 120, 14062306a36Sopenharmony_ci MX50_PAD_EPDC_D13 = 121, 14162306a36Sopenharmony_ci MX50_PAD_EPDC_D14 = 122, 14262306a36Sopenharmony_ci MX50_PAD_EPDC_D15 = 123, 14362306a36Sopenharmony_ci MX50_PAD_EPDC_GDCLK = 124, 14462306a36Sopenharmony_ci MX50_PAD_EPDC_GDSP = 125, 14562306a36Sopenharmony_ci MX50_PAD_EPDC_GDOE = 126, 14662306a36Sopenharmony_ci MX50_PAD_EPDC_GDRL = 127, 14762306a36Sopenharmony_ci MX50_PAD_EPDC_SDCLK = 128, 14862306a36Sopenharmony_ci MX50_PAD_EPDC_SDOEZ = 129, 14962306a36Sopenharmony_ci MX50_PAD_EPDC_SDOED = 130, 15062306a36Sopenharmony_ci MX50_PAD_EPDC_SDOE = 131, 15162306a36Sopenharmony_ci MX50_PAD_EPDC_SDLE = 132, 15262306a36Sopenharmony_ci MX50_PAD_EPDC_SDCLKN = 133, 15362306a36Sopenharmony_ci MX50_PAD_EPDC_SDSHR = 134, 15462306a36Sopenharmony_ci MX50_PAD_EPDC_PWRCOM = 135, 15562306a36Sopenharmony_ci MX50_PAD_EPDC_PWRSTAT = 136, 15662306a36Sopenharmony_ci MX50_PAD_EPDC_PWRCTRL0 = 137, 15762306a36Sopenharmony_ci MX50_PAD_EPDC_PWRCTRL1 = 138, 15862306a36Sopenharmony_ci MX50_PAD_EPDC_PWRCTRL2 = 139, 15962306a36Sopenharmony_ci MX50_PAD_EPDC_PWRCTRL3 = 140, 16062306a36Sopenharmony_ci MX50_PAD_EPDC_VCOM0 = 141, 16162306a36Sopenharmony_ci MX50_PAD_EPDC_VCOM1 = 142, 16262306a36Sopenharmony_ci MX50_PAD_EPDC_BDR0 = 143, 16362306a36Sopenharmony_ci MX50_PAD_EPDC_BDR1 = 144, 16462306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE0 = 145, 16562306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE1 = 146, 16662306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE2 = 147, 16762306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE3 = 148, 16862306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE4 = 149, 16962306a36Sopenharmony_ci MX50_PAD_EPDC_SDCE5 = 150, 17062306a36Sopenharmony_ci MX50_PAD_EIM_DA0 = 151, 17162306a36Sopenharmony_ci MX50_PAD_EIM_DA1 = 152, 17262306a36Sopenharmony_ci MX50_PAD_EIM_DA2 = 153, 17362306a36Sopenharmony_ci MX50_PAD_EIM_DA3 = 154, 17462306a36Sopenharmony_ci MX50_PAD_EIM_DA4 = 155, 17562306a36Sopenharmony_ci MX50_PAD_EIM_DA5 = 156, 17662306a36Sopenharmony_ci MX50_PAD_EIM_DA6 = 157, 17762306a36Sopenharmony_ci MX50_PAD_EIM_DA7 = 158, 17862306a36Sopenharmony_ci MX50_PAD_EIM_DA8 = 159, 17962306a36Sopenharmony_ci MX50_PAD_EIM_DA9 = 160, 18062306a36Sopenharmony_ci MX50_PAD_EIM_DA10 = 161, 18162306a36Sopenharmony_ci MX50_PAD_EIM_DA11 = 162, 18262306a36Sopenharmony_ci MX50_PAD_EIM_DA12 = 163, 18362306a36Sopenharmony_ci MX50_PAD_EIM_DA13 = 164, 18462306a36Sopenharmony_ci MX50_PAD_EIM_DA14 = 165, 18562306a36Sopenharmony_ci MX50_PAD_EIM_DA15 = 166, 18662306a36Sopenharmony_ci MX50_PAD_EIM_CS2 = 167, 18762306a36Sopenharmony_ci MX50_PAD_EIM_CS1 = 168, 18862306a36Sopenharmony_ci MX50_PAD_EIM_CS0 = 169, 18962306a36Sopenharmony_ci MX50_PAD_EIM_EB0 = 170, 19062306a36Sopenharmony_ci MX50_PAD_EIM_EB1 = 171, 19162306a36Sopenharmony_ci MX50_PAD_EIM_WAIT = 172, 19262306a36Sopenharmony_ci MX50_PAD_EIM_BCLK = 173, 19362306a36Sopenharmony_ci MX50_PAD_EIM_RDY = 174, 19462306a36Sopenharmony_ci MX50_PAD_EIM_OE = 175, 19562306a36Sopenharmony_ci MX50_PAD_EIM_RW = 176, 19662306a36Sopenharmony_ci MX50_PAD_EIM_LBA = 177, 19762306a36Sopenharmony_ci MX50_PAD_EIM_CRE = 178, 19862306a36Sopenharmony_ci}; 19962306a36Sopenharmony_ci 20062306a36Sopenharmony_ci/* Pad names for the pinmux subsystem */ 20162306a36Sopenharmony_cistatic const struct pinctrl_pin_desc imx50_pinctrl_pads[] = { 20262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE0), 20362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE1), 20462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE2), 20562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE3), 20662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE4), 20762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE5), 20862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE6), 20962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_RESERVE7), 21062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_COL0), 21162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_ROW0), 21262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_COL1), 21362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_ROW1), 21462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_COL2), 21562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_ROW2), 21662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_COL3), 21762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_KEY_ROW3), 21862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C1_SCL), 21962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C1_SDA), 22062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C2_SCL), 22162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C2_SDA), 22262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C3_SCL), 22362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_I2C3_SDA), 22462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_PWM1), 22562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_PWM2), 22662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_0WIRE), 22762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPITO), 22862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_WDOG), 22962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_TXFS), 23062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_TXC), 23162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_TXD), 23262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_RXD), 23362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_RXF), 23462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SSI_RXC), 23562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART1_TXD), 23662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART1_RXD), 23762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART1_CTS), 23862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART1_RTS), 23962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART2_TXD), 24062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART2_RXD), 24162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART2_CTS), 24262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART2_RTS), 24362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART3_TXD), 24462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART3_RXD), 24562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART4_TXD), 24662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_UART4_RXD), 24762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_CSPI_CLK), 24862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_CSPI_MOSI), 24962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_CSPI_MISO), 25062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_CSPI_SS0), 25162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI1_CLK), 25262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI1_MOSI), 25362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI1_MISO), 25462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI1_SS0), 25562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI2_CLK), 25662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI2_MOSI), 25762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI2_MISO), 25862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_ECSPI2_SS0), 25962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_CLK), 26062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_CMD), 26162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_D0), 26262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_D1), 26362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_D2), 26462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD1_D3), 26562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_CLK), 26662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_CMD), 26762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D0), 26862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D1), 26962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D2), 27062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D3), 27162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D4), 27262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D5), 27362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D6), 27462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_D7), 27562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_WP), 27662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD2_CD), 27762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D0), 27862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D1), 27962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D2), 28062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D3), 28162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D4), 28262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D5), 28362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D6), 28462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D7), 28562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_WR), 28662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_RD), 28762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_RS), 28862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_CS), 28962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_BUSY), 29062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_RESET), 29162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_CLK), 29262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_CMD), 29362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D0), 29462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D1), 29562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D2), 29662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D3), 29762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D4), 29862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D5), 29962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D6), 30062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_D7), 30162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_SD3_WP), 30262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D8), 30362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D9), 30462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D10), 30562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D11), 30662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D12), 30762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D13), 30862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D14), 30962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_DISP_D15), 31062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D0), 31162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D1), 31262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D2), 31362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D3), 31462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D4), 31562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D5), 31662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D6), 31762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D7), 31862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D8), 31962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D9), 32062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D10), 32162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D11), 32262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D12), 32362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D13), 32462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D14), 32562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_D15), 32662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_GDCLK), 32762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_GDSP), 32862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_GDOE), 32962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_GDRL), 33062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCLK), 33162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDOEZ), 33262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDOED), 33362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDOE), 33462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDLE), 33562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCLKN), 33662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDSHR), 33762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRCOM), 33862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRSTAT), 33962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRCTRL0), 34062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRCTRL1), 34162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRCTRL2), 34262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_PWRCTRL3), 34362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_VCOM0), 34462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_VCOM1), 34562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_BDR0), 34662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_BDR1), 34762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE0), 34862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE1), 34962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE2), 35062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE3), 35162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE4), 35262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EPDC_SDCE5), 35362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA0), 35462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA1), 35562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA2), 35662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA3), 35762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA4), 35862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA5), 35962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA6), 36062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA7), 36162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA8), 36262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA9), 36362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA10), 36462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA11), 36562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA12), 36662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA13), 36762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA14), 36862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_DA15), 36962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_CS2), 37062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_CS1), 37162306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_CS0), 37262306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_EB0), 37362306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_EB1), 37462306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_WAIT), 37562306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_BCLK), 37662306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_RDY), 37762306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_OE), 37862306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_RW), 37962306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_LBA), 38062306a36Sopenharmony_ci IMX_PINCTRL_PIN(MX50_PAD_EIM_CRE), 38162306a36Sopenharmony_ci}; 38262306a36Sopenharmony_ci 38362306a36Sopenharmony_cistatic const struct imx_pinctrl_soc_info imx50_pinctrl_info = { 38462306a36Sopenharmony_ci .pins = imx50_pinctrl_pads, 38562306a36Sopenharmony_ci .npins = ARRAY_SIZE(imx50_pinctrl_pads), 38662306a36Sopenharmony_ci .gpr_compatible = "fsl,imx50-iomuxc-gpr", 38762306a36Sopenharmony_ci}; 38862306a36Sopenharmony_ci 38962306a36Sopenharmony_cistatic const struct of_device_id imx50_pinctrl_of_match[] = { 39062306a36Sopenharmony_ci { .compatible = "fsl,imx50-iomuxc", }, 39162306a36Sopenharmony_ci { /* sentinel */ } 39262306a36Sopenharmony_ci}; 39362306a36Sopenharmony_ci 39462306a36Sopenharmony_cistatic int imx50_pinctrl_probe(struct platform_device *pdev) 39562306a36Sopenharmony_ci{ 39662306a36Sopenharmony_ci return imx_pinctrl_probe(pdev, &imx50_pinctrl_info); 39762306a36Sopenharmony_ci} 39862306a36Sopenharmony_ci 39962306a36Sopenharmony_cistatic struct platform_driver imx50_pinctrl_driver = { 40062306a36Sopenharmony_ci .driver = { 40162306a36Sopenharmony_ci .name = "imx50-pinctrl", 40262306a36Sopenharmony_ci .of_match_table = imx50_pinctrl_of_match, 40362306a36Sopenharmony_ci .suppress_bind_attrs = true, 40462306a36Sopenharmony_ci }, 40562306a36Sopenharmony_ci .probe = imx50_pinctrl_probe, 40662306a36Sopenharmony_ci}; 40762306a36Sopenharmony_ci 40862306a36Sopenharmony_cistatic int __init imx50_pinctrl_init(void) 40962306a36Sopenharmony_ci{ 41062306a36Sopenharmony_ci return platform_driver_register(&imx50_pinctrl_driver); 41162306a36Sopenharmony_ci} 41262306a36Sopenharmony_ciarch_initcall(imx50_pinctrl_init); 413