1edad3b2aSLinus Walleij /* 2edad3b2aSLinus Walleij * imx6q pinctrl driver based on imx pinmux core 3edad3b2aSLinus Walleij * 4edad3b2aSLinus Walleij * Copyright (C) 2012 Freescale Semiconductor, Inc. 5edad3b2aSLinus Walleij * Copyright (C) 2012 Linaro, Inc. 6edad3b2aSLinus Walleij * 7edad3b2aSLinus Walleij * Author: Dong Aisheng <dong.aisheng@linaro.org> 8edad3b2aSLinus Walleij * 9edad3b2aSLinus Walleij * This program is free software; you can redistribute it and/or modify 10edad3b2aSLinus Walleij * it under the terms of the GNU General Public License as published by 11edad3b2aSLinus Walleij * the Free Software Foundation; either version 2 of the License, or 12edad3b2aSLinus Walleij * (at your option) any later version. 13edad3b2aSLinus Walleij */ 14edad3b2aSLinus Walleij 15edad3b2aSLinus Walleij #include <linux/err.h> 16edad3b2aSLinus Walleij #include <linux/init.h> 17edad3b2aSLinus Walleij #include <linux/io.h> 18edad3b2aSLinus Walleij #include <linux/of.h> 19edad3b2aSLinus Walleij #include <linux/of_device.h> 20edad3b2aSLinus Walleij #include <linux/pinctrl/pinctrl.h> 21edad3b2aSLinus Walleij 22edad3b2aSLinus Walleij #include "pinctrl-imx.h" 23edad3b2aSLinus Walleij 24edad3b2aSLinus Walleij enum imx6q_pads { 25edad3b2aSLinus Walleij MX6Q_PAD_RESERVE0 = 0, 26edad3b2aSLinus Walleij MX6Q_PAD_RESERVE1 = 1, 27edad3b2aSLinus Walleij MX6Q_PAD_RESERVE2 = 2, 28edad3b2aSLinus Walleij MX6Q_PAD_RESERVE3 = 3, 29edad3b2aSLinus Walleij MX6Q_PAD_RESERVE4 = 4, 30edad3b2aSLinus Walleij MX6Q_PAD_RESERVE5 = 5, 31edad3b2aSLinus Walleij MX6Q_PAD_RESERVE6 = 6, 32edad3b2aSLinus Walleij MX6Q_PAD_RESERVE7 = 7, 33edad3b2aSLinus Walleij MX6Q_PAD_RESERVE8 = 8, 34edad3b2aSLinus Walleij MX6Q_PAD_RESERVE9 = 9, 35edad3b2aSLinus Walleij MX6Q_PAD_RESERVE10 = 10, 36edad3b2aSLinus Walleij MX6Q_PAD_RESERVE11 = 11, 37edad3b2aSLinus Walleij MX6Q_PAD_RESERVE12 = 12, 38edad3b2aSLinus Walleij MX6Q_PAD_RESERVE13 = 13, 39edad3b2aSLinus Walleij MX6Q_PAD_RESERVE14 = 14, 40edad3b2aSLinus Walleij MX6Q_PAD_RESERVE15 = 15, 41edad3b2aSLinus Walleij MX6Q_PAD_RESERVE16 = 16, 42edad3b2aSLinus Walleij MX6Q_PAD_RESERVE17 = 17, 43edad3b2aSLinus Walleij MX6Q_PAD_RESERVE18 = 18, 44edad3b2aSLinus Walleij MX6Q_PAD_SD2_DAT1 = 19, 45edad3b2aSLinus Walleij MX6Q_PAD_SD2_DAT2 = 20, 46edad3b2aSLinus Walleij MX6Q_PAD_SD2_DAT0 = 21, 47edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TXC = 22, 48edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TD0 = 23, 49edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TD1 = 24, 50edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TD2 = 25, 51edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TD3 = 26, 52edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RX_CTL = 27, 53edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RD0 = 28, 54edad3b2aSLinus Walleij MX6Q_PAD_RGMII_TX_CTL = 29, 55edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RD1 = 30, 56edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RD2 = 31, 57edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RD3 = 32, 58edad3b2aSLinus Walleij MX6Q_PAD_RGMII_RXC = 33, 59edad3b2aSLinus Walleij MX6Q_PAD_EIM_A25 = 34, 60edad3b2aSLinus Walleij MX6Q_PAD_EIM_EB2 = 35, 61edad3b2aSLinus Walleij MX6Q_PAD_EIM_D16 = 36, 62edad3b2aSLinus Walleij MX6Q_PAD_EIM_D17 = 37, 63edad3b2aSLinus Walleij MX6Q_PAD_EIM_D18 = 38, 64edad3b2aSLinus Walleij MX6Q_PAD_EIM_D19 = 39, 65edad3b2aSLinus Walleij MX6Q_PAD_EIM_D20 = 40, 66edad3b2aSLinus Walleij MX6Q_PAD_EIM_D21 = 41, 67edad3b2aSLinus Walleij MX6Q_PAD_EIM_D22 = 42, 68edad3b2aSLinus Walleij MX6Q_PAD_EIM_D23 = 43, 69edad3b2aSLinus Walleij MX6Q_PAD_EIM_EB3 = 44, 70edad3b2aSLinus Walleij MX6Q_PAD_EIM_D24 = 45, 71edad3b2aSLinus Walleij MX6Q_PAD_EIM_D25 = 46, 72edad3b2aSLinus Walleij MX6Q_PAD_EIM_D26 = 47, 73edad3b2aSLinus Walleij MX6Q_PAD_EIM_D27 = 48, 74edad3b2aSLinus Walleij MX6Q_PAD_EIM_D28 = 49, 75edad3b2aSLinus Walleij MX6Q_PAD_EIM_D29 = 50, 76edad3b2aSLinus Walleij MX6Q_PAD_EIM_D30 = 51, 77edad3b2aSLinus Walleij MX6Q_PAD_EIM_D31 = 52, 78edad3b2aSLinus Walleij MX6Q_PAD_EIM_A24 = 53, 79edad3b2aSLinus Walleij MX6Q_PAD_EIM_A23 = 54, 80edad3b2aSLinus Walleij MX6Q_PAD_EIM_A22 = 55, 81edad3b2aSLinus Walleij MX6Q_PAD_EIM_A21 = 56, 82edad3b2aSLinus Walleij MX6Q_PAD_EIM_A20 = 57, 83edad3b2aSLinus Walleij MX6Q_PAD_EIM_A19 = 58, 84edad3b2aSLinus Walleij MX6Q_PAD_EIM_A18 = 59, 85edad3b2aSLinus Walleij MX6Q_PAD_EIM_A17 = 60, 86edad3b2aSLinus Walleij MX6Q_PAD_EIM_A16 = 61, 87edad3b2aSLinus Walleij MX6Q_PAD_EIM_CS0 = 62, 88edad3b2aSLinus Walleij MX6Q_PAD_EIM_CS1 = 63, 89edad3b2aSLinus Walleij MX6Q_PAD_EIM_OE = 64, 90edad3b2aSLinus Walleij MX6Q_PAD_EIM_RW = 65, 91edad3b2aSLinus Walleij MX6Q_PAD_EIM_LBA = 66, 92edad3b2aSLinus Walleij MX6Q_PAD_EIM_EB0 = 67, 93edad3b2aSLinus Walleij MX6Q_PAD_EIM_EB1 = 68, 94edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA0 = 69, 95edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA1 = 70, 96edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA2 = 71, 97edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA3 = 72, 98edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA4 = 73, 99edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA5 = 74, 100edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA6 = 75, 101edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA7 = 76, 102edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA8 = 77, 103edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA9 = 78, 104edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA10 = 79, 105edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA11 = 80, 106edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA12 = 81, 107edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA13 = 82, 108edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA14 = 83, 109edad3b2aSLinus Walleij MX6Q_PAD_EIM_DA15 = 84, 110edad3b2aSLinus Walleij MX6Q_PAD_EIM_WAIT = 85, 111edad3b2aSLinus Walleij MX6Q_PAD_EIM_BCLK = 86, 112edad3b2aSLinus Walleij MX6Q_PAD_DI0_DISP_CLK = 87, 113edad3b2aSLinus Walleij MX6Q_PAD_DI0_PIN15 = 88, 114edad3b2aSLinus Walleij MX6Q_PAD_DI0_PIN2 = 89, 115edad3b2aSLinus Walleij MX6Q_PAD_DI0_PIN3 = 90, 116edad3b2aSLinus Walleij MX6Q_PAD_DI0_PIN4 = 91, 117edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT0 = 92, 118edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT1 = 93, 119edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT2 = 94, 120edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT3 = 95, 121edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT4 = 96, 122edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT5 = 97, 123edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT6 = 98, 124edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT7 = 99, 125edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT8 = 100, 126edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT9 = 101, 127edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT10 = 102, 128edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT11 = 103, 129edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT12 = 104, 130edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT13 = 105, 131edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT14 = 106, 132edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT15 = 107, 133edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT16 = 108, 134edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT17 = 109, 135edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT18 = 110, 136edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT19 = 111, 137edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT20 = 112, 138edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT21 = 113, 139edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT22 = 114, 140edad3b2aSLinus Walleij MX6Q_PAD_DISP0_DAT23 = 115, 141edad3b2aSLinus Walleij MX6Q_PAD_ENET_MDIO = 116, 142edad3b2aSLinus Walleij MX6Q_PAD_ENET_REF_CLK = 117, 143edad3b2aSLinus Walleij MX6Q_PAD_ENET_RX_ER = 118, 144edad3b2aSLinus Walleij MX6Q_PAD_ENET_CRS_DV = 119, 145edad3b2aSLinus Walleij MX6Q_PAD_ENET_RXD1 = 120, 146edad3b2aSLinus Walleij MX6Q_PAD_ENET_RXD0 = 121, 147edad3b2aSLinus Walleij MX6Q_PAD_ENET_TX_EN = 122, 148edad3b2aSLinus Walleij MX6Q_PAD_ENET_TXD1 = 123, 149edad3b2aSLinus Walleij MX6Q_PAD_ENET_TXD0 = 124, 150edad3b2aSLinus Walleij MX6Q_PAD_ENET_MDC = 125, 151edad3b2aSLinus Walleij MX6Q_PAD_KEY_COL0 = 126, 152edad3b2aSLinus Walleij MX6Q_PAD_KEY_ROW0 = 127, 153edad3b2aSLinus Walleij MX6Q_PAD_KEY_COL1 = 128, 154edad3b2aSLinus Walleij MX6Q_PAD_KEY_ROW1 = 129, 155edad3b2aSLinus Walleij MX6Q_PAD_KEY_COL2 = 130, 156edad3b2aSLinus Walleij MX6Q_PAD_KEY_ROW2 = 131, 157edad3b2aSLinus Walleij MX6Q_PAD_KEY_COL3 = 132, 158edad3b2aSLinus Walleij MX6Q_PAD_KEY_ROW3 = 133, 159edad3b2aSLinus Walleij MX6Q_PAD_KEY_COL4 = 134, 160edad3b2aSLinus Walleij MX6Q_PAD_KEY_ROW4 = 135, 161edad3b2aSLinus Walleij MX6Q_PAD_GPIO_0 = 136, 162edad3b2aSLinus Walleij MX6Q_PAD_GPIO_1 = 137, 163edad3b2aSLinus Walleij MX6Q_PAD_GPIO_9 = 138, 164edad3b2aSLinus Walleij MX6Q_PAD_GPIO_3 = 139, 165edad3b2aSLinus Walleij MX6Q_PAD_GPIO_6 = 140, 166edad3b2aSLinus Walleij MX6Q_PAD_GPIO_2 = 141, 167edad3b2aSLinus Walleij MX6Q_PAD_GPIO_4 = 142, 168edad3b2aSLinus Walleij MX6Q_PAD_GPIO_5 = 143, 169edad3b2aSLinus Walleij MX6Q_PAD_GPIO_7 = 144, 170edad3b2aSLinus Walleij MX6Q_PAD_GPIO_8 = 145, 171edad3b2aSLinus Walleij MX6Q_PAD_GPIO_16 = 146, 172edad3b2aSLinus Walleij MX6Q_PAD_GPIO_17 = 147, 173edad3b2aSLinus Walleij MX6Q_PAD_GPIO_18 = 148, 174edad3b2aSLinus Walleij MX6Q_PAD_GPIO_19 = 149, 175edad3b2aSLinus Walleij MX6Q_PAD_CSI0_PIXCLK = 150, 176edad3b2aSLinus Walleij MX6Q_PAD_CSI0_MCLK = 151, 177edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DATA_EN = 152, 178edad3b2aSLinus Walleij MX6Q_PAD_CSI0_VSYNC = 153, 179edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT4 = 154, 180edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT5 = 155, 181edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT6 = 156, 182edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT7 = 157, 183edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT8 = 158, 184edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT9 = 159, 185edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT10 = 160, 186edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT11 = 161, 187edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT12 = 162, 188edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT13 = 163, 189edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT14 = 164, 190edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT15 = 165, 191edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT16 = 166, 192edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT17 = 167, 193edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT18 = 168, 194edad3b2aSLinus Walleij MX6Q_PAD_CSI0_DAT19 = 169, 195edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT7 = 170, 196edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT6 = 171, 197edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT5 = 172, 198edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT4 = 173, 199edad3b2aSLinus Walleij MX6Q_PAD_SD3_CMD = 174, 200edad3b2aSLinus Walleij MX6Q_PAD_SD3_CLK = 175, 201edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT0 = 176, 202edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT1 = 177, 203edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT2 = 178, 204edad3b2aSLinus Walleij MX6Q_PAD_SD3_DAT3 = 179, 205edad3b2aSLinus Walleij MX6Q_PAD_SD3_RST = 180, 206edad3b2aSLinus Walleij MX6Q_PAD_NANDF_CLE = 181, 207edad3b2aSLinus Walleij MX6Q_PAD_NANDF_ALE = 182, 208edad3b2aSLinus Walleij MX6Q_PAD_NANDF_WP_B = 183, 209edad3b2aSLinus Walleij MX6Q_PAD_NANDF_RB0 = 184, 210edad3b2aSLinus Walleij MX6Q_PAD_NANDF_CS0 = 185, 211edad3b2aSLinus Walleij MX6Q_PAD_NANDF_CS1 = 186, 212edad3b2aSLinus Walleij MX6Q_PAD_NANDF_CS2 = 187, 213edad3b2aSLinus Walleij MX6Q_PAD_NANDF_CS3 = 188, 214edad3b2aSLinus Walleij MX6Q_PAD_SD4_CMD = 189, 215edad3b2aSLinus Walleij MX6Q_PAD_SD4_CLK = 190, 216edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D0 = 191, 217edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D1 = 192, 218edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D2 = 193, 219edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D3 = 194, 220edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D4 = 195, 221edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D5 = 196, 222edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D6 = 197, 223edad3b2aSLinus Walleij MX6Q_PAD_NANDF_D7 = 198, 224edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT0 = 199, 225edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT1 = 200, 226edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT2 = 201, 227edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT3 = 202, 228edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT4 = 203, 229edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT5 = 204, 230edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT6 = 205, 231edad3b2aSLinus Walleij MX6Q_PAD_SD4_DAT7 = 206, 232edad3b2aSLinus Walleij MX6Q_PAD_SD1_DAT1 = 207, 233edad3b2aSLinus Walleij MX6Q_PAD_SD1_DAT0 = 208, 234edad3b2aSLinus Walleij MX6Q_PAD_SD1_DAT3 = 209, 235edad3b2aSLinus Walleij MX6Q_PAD_SD1_CMD = 210, 236edad3b2aSLinus Walleij MX6Q_PAD_SD1_DAT2 = 211, 237edad3b2aSLinus Walleij MX6Q_PAD_SD1_CLK = 212, 238edad3b2aSLinus Walleij MX6Q_PAD_SD2_CLK = 213, 239edad3b2aSLinus Walleij MX6Q_PAD_SD2_CMD = 214, 240edad3b2aSLinus Walleij MX6Q_PAD_SD2_DAT3 = 215, 241edad3b2aSLinus Walleij }; 242edad3b2aSLinus Walleij 243edad3b2aSLinus Walleij /* Pad names for the pinmux subsystem */ 244edad3b2aSLinus Walleij static const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = { 245edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE0), 246edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE1), 247edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE2), 248edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE3), 249edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE4), 250edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE5), 251edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE6), 252edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE7), 253edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE8), 254edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE9), 255edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE10), 256edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE11), 257edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE12), 258edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE13), 259edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE14), 260edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE15), 261edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE16), 262edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE17), 263edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE18), 264edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT1), 265edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT2), 266edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT0), 267edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TXC), 268edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD0), 269edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD1), 270edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD2), 271edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD3), 272edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RX_CTL), 273edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD0), 274edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TX_CTL), 275edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD1), 276edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD2), 277edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD3), 278edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RXC), 279edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A25), 280edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB2), 281edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D16), 282edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D17), 283edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D18), 284edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D19), 285edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D20), 286edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D21), 287edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D22), 288edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D23), 289edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB3), 290edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D24), 291edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D25), 292edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D26), 293edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D27), 294edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D28), 295edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D29), 296edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D30), 297edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D31), 298edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A24), 299edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A23), 300edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A22), 301edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A21), 302edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A20), 303edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A19), 304edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A18), 305edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A17), 306edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A16), 307edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS0), 308edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS1), 309edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_OE), 310edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_RW), 311edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_LBA), 312edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB0), 313edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB1), 314edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA0), 315edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA1), 316edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA2), 317edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA3), 318edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA4), 319edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA5), 320edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA6), 321edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA7), 322edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA8), 323edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA9), 324edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA10), 325edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA11), 326edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA12), 327edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA13), 328edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA14), 329edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA15), 330edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_WAIT), 331edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_EIM_BCLK), 332edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DI0_DISP_CLK), 333edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN15), 334edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN2), 335edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN3), 336edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN4), 337edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT0), 338edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT1), 339edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT2), 340edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT3), 341edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT4), 342edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT5), 343edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT6), 344edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT7), 345edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT8), 346edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT9), 347edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT10), 348edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT11), 349edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT12), 350edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT13), 351edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT14), 352edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT15), 353edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT16), 354edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT17), 355edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT18), 356edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT19), 357edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT20), 358edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT21), 359edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT22), 360edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT23), 361edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDIO), 362edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_REF_CLK), 363edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RX_ER), 364edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_CRS_DV), 365edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD1), 366edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD0), 367edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TX_EN), 368edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD1), 369edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD0), 370edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDC), 371edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL0), 372edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW0), 373edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL1), 374edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW1), 375edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL2), 376edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW2), 377edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL3), 378edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW3), 379edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL4), 380edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW4), 381edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_0), 382edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_1), 383edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_9), 384edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_3), 385edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_6), 386edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_2), 387edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_4), 388edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_5), 389edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_7), 390edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_8), 391edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_16), 392edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_17), 393edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_18), 394edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_19), 395edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_PIXCLK), 396edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_MCLK), 397edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DATA_EN), 398edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_VSYNC), 399edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT4), 400edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT5), 401edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT6), 402edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT7), 403edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT8), 404edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT9), 405edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT10), 406edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT11), 407edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT12), 408edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT13), 409edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT14), 410edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT15), 411edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT16), 412edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT17), 413edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT18), 414edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT19), 415edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT7), 416edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT6), 417edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT5), 418edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT4), 419edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CMD), 420edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CLK), 421edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT0), 422edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT1), 423edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT2), 424edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT3), 425edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD3_RST), 426edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CLE), 427edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_ALE), 428edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_WP_B), 429edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_RB0), 430edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS0), 431edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS1), 432edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS2), 433edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS3), 434edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CMD), 435edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CLK), 436edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D0), 437edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D1), 438edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D2), 439edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D3), 440edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D4), 441edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D5), 442edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D6), 443edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D7), 444edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT0), 445edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT1), 446edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT2), 447edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT3), 448edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT4), 449edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT5), 450edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT6), 451edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT7), 452edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT1), 453edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT0), 454edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT3), 455edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CMD), 456edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT2), 457edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CLK), 458edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CLK), 459edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CMD), 460edad3b2aSLinus Walleij IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT3), 461edad3b2aSLinus Walleij }; 462edad3b2aSLinus Walleij 463*7c017687SStefan Agner static const struct imx_pinctrl_soc_info imx6q_pinctrl_info = { 464edad3b2aSLinus Walleij .pins = imx6q_pinctrl_pads, 465edad3b2aSLinus Walleij .npins = ARRAY_SIZE(imx6q_pinctrl_pads), 4668626ada8SPhilipp Zabel .gpr_compatible = "fsl,imx6q-iomuxc-gpr", 467edad3b2aSLinus Walleij }; 468edad3b2aSLinus Walleij 469edad3b2aSLinus Walleij static const struct of_device_id imx6q_pinctrl_of_match[] = { 470edad3b2aSLinus Walleij { .compatible = "fsl,imx6q-iomuxc", }, 471edad3b2aSLinus Walleij { /* sentinel */ } 472edad3b2aSLinus Walleij }; 473edad3b2aSLinus Walleij 474edad3b2aSLinus Walleij static int imx6q_pinctrl_probe(struct platform_device *pdev) 475edad3b2aSLinus Walleij { 476edad3b2aSLinus Walleij return imx_pinctrl_probe(pdev, &imx6q_pinctrl_info); 477edad3b2aSLinus Walleij } 478edad3b2aSLinus Walleij 479edad3b2aSLinus Walleij static struct platform_driver imx6q_pinctrl_driver = { 480edad3b2aSLinus Walleij .driver = { 481edad3b2aSLinus Walleij .name = "imx6q-pinctrl", 482edad3b2aSLinus Walleij .of_match_table = imx6q_pinctrl_of_match, 483edad3b2aSLinus Walleij }, 484edad3b2aSLinus Walleij .probe = imx6q_pinctrl_probe, 485edad3b2aSLinus Walleij }; 486edad3b2aSLinus Walleij 487edad3b2aSLinus Walleij static int __init imx6q_pinctrl_init(void) 488edad3b2aSLinus Walleij { 489edad3b2aSLinus Walleij return platform_driver_register(&imx6q_pinctrl_driver); 490edad3b2aSLinus Walleij } 491edad3b2aSLinus Walleij arch_initcall(imx6q_pinctrl_init); 492