18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+
28c2ecf20Sopenharmony_ci//
38c2ecf20Sopenharmony_ci// imx6q pinctrl driver based on imx pinmux core
48c2ecf20Sopenharmony_ci//
58c2ecf20Sopenharmony_ci// Copyright (C) 2012 Freescale Semiconductor, Inc.
68c2ecf20Sopenharmony_ci// Copyright (C) 2012 Linaro, Inc.
78c2ecf20Sopenharmony_ci//
88c2ecf20Sopenharmony_ci// Author: Dong Aisheng <dong.aisheng@linaro.org>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/err.h>
118c2ecf20Sopenharmony_ci#include <linux/init.h>
128c2ecf20Sopenharmony_ci#include <linux/io.h>
138c2ecf20Sopenharmony_ci#include <linux/of.h>
148c2ecf20Sopenharmony_ci#include <linux/of_device.h>
158c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include "pinctrl-imx.h"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cienum imx6q_pads {
208c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE0 = 0,
218c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE1 = 1,
228c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE2 = 2,
238c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE3 = 3,
248c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE4 = 4,
258c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE5 = 5,
268c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE6 = 6,
278c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE7 = 7,
288c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE8 = 8,
298c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE9 = 9,
308c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE10 = 10,
318c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE11 = 11,
328c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE12 = 12,
338c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE13 = 13,
348c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE14 = 14,
358c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE15 = 15,
368c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE16 = 16,
378c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE17 = 17,
388c2ecf20Sopenharmony_ci	MX6Q_PAD_RESERVE18 = 18,
398c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_DAT1 = 19,
408c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_DAT2 = 20,
418c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_DAT0 = 21,
428c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TXC = 22,
438c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TD0 = 23,
448c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TD1 = 24,
458c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TD2 = 25,
468c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TD3 = 26,
478c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RX_CTL = 27,
488c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RD0 = 28,
498c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_TX_CTL = 29,
508c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RD1 = 30,
518c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RD2 = 31,
528c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RD3 = 32,
538c2ecf20Sopenharmony_ci	MX6Q_PAD_RGMII_RXC = 33,
548c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A25 = 34,
558c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_EB2 = 35,
568c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D16 = 36,
578c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D17 = 37,
588c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D18 = 38,
598c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D19 = 39,
608c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D20 = 40,
618c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D21 = 41,
628c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D22 = 42,
638c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D23 = 43,
648c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_EB3 = 44,
658c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D24 = 45,
668c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D25 = 46,
678c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D26 = 47,
688c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D27 = 48,
698c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D28 = 49,
708c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D29 = 50,
718c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D30 = 51,
728c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_D31 = 52,
738c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A24 = 53,
748c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A23 = 54,
758c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A22 = 55,
768c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A21 = 56,
778c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A20 = 57,
788c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A19 = 58,
798c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A18 = 59,
808c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A17 = 60,
818c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_A16 = 61,
828c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_CS0 = 62,
838c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_CS1 = 63,
848c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_OE = 64,
858c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_RW = 65,
868c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_LBA = 66,
878c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_EB0 = 67,
888c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_EB1 = 68,
898c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA0 = 69,
908c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA1 = 70,
918c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA2 = 71,
928c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA3 = 72,
938c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA4 = 73,
948c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA5 = 74,
958c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA6 = 75,
968c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA7 = 76,
978c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA8 = 77,
988c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA9 = 78,
998c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA10 = 79,
1008c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA11 = 80,
1018c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA12 = 81,
1028c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA13 = 82,
1038c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA14 = 83,
1048c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_DA15 = 84,
1058c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_WAIT = 85,
1068c2ecf20Sopenharmony_ci	MX6Q_PAD_EIM_BCLK = 86,
1078c2ecf20Sopenharmony_ci	MX6Q_PAD_DI0_DISP_CLK = 87,
1088c2ecf20Sopenharmony_ci	MX6Q_PAD_DI0_PIN15 = 88,
1098c2ecf20Sopenharmony_ci	MX6Q_PAD_DI0_PIN2 = 89,
1108c2ecf20Sopenharmony_ci	MX6Q_PAD_DI0_PIN3 = 90,
1118c2ecf20Sopenharmony_ci	MX6Q_PAD_DI0_PIN4 = 91,
1128c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT0 = 92,
1138c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT1 = 93,
1148c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT2 = 94,
1158c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT3 = 95,
1168c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT4 = 96,
1178c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT5 = 97,
1188c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT6 = 98,
1198c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT7 = 99,
1208c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT8 = 100,
1218c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT9 = 101,
1228c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT10 = 102,
1238c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT11 = 103,
1248c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT12 = 104,
1258c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT13 = 105,
1268c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT14 = 106,
1278c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT15 = 107,
1288c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT16 = 108,
1298c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT17 = 109,
1308c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT18 = 110,
1318c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT19 = 111,
1328c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT20 = 112,
1338c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT21 = 113,
1348c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT22 = 114,
1358c2ecf20Sopenharmony_ci	MX6Q_PAD_DISP0_DAT23 = 115,
1368c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_MDIO = 116,
1378c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_REF_CLK = 117,
1388c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_RX_ER = 118,
1398c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_CRS_DV = 119,
1408c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_RXD1 = 120,
1418c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_RXD0 = 121,
1428c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_TX_EN = 122,
1438c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_TXD1 = 123,
1448c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_TXD0 = 124,
1458c2ecf20Sopenharmony_ci	MX6Q_PAD_ENET_MDC = 125,
1468c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_COL0 = 126,
1478c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_ROW0 = 127,
1488c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_COL1 = 128,
1498c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_ROW1 = 129,
1508c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_COL2 = 130,
1518c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_ROW2 = 131,
1528c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_COL3 = 132,
1538c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_ROW3 = 133,
1548c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_COL4 = 134,
1558c2ecf20Sopenharmony_ci	MX6Q_PAD_KEY_ROW4 = 135,
1568c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_0 = 136,
1578c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_1 = 137,
1588c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_9 = 138,
1598c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_3 = 139,
1608c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_6 = 140,
1618c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_2 = 141,
1628c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_4 = 142,
1638c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_5 = 143,
1648c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_7 = 144,
1658c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_8 = 145,
1668c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_16 = 146,
1678c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_17 = 147,
1688c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_18 = 148,
1698c2ecf20Sopenharmony_ci	MX6Q_PAD_GPIO_19 = 149,
1708c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_PIXCLK = 150,
1718c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_MCLK = 151,
1728c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DATA_EN = 152,
1738c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_VSYNC = 153,
1748c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT4 = 154,
1758c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT5 = 155,
1768c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT6 = 156,
1778c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT7 = 157,
1788c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT8 = 158,
1798c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT9 = 159,
1808c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT10 = 160,
1818c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT11 = 161,
1828c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT12 = 162,
1838c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT13 = 163,
1848c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT14 = 164,
1858c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT15 = 165,
1868c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT16 = 166,
1878c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT17 = 167,
1888c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT18 = 168,
1898c2ecf20Sopenharmony_ci	MX6Q_PAD_CSI0_DAT19 = 169,
1908c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT7 = 170,
1918c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT6 = 171,
1928c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT5 = 172,
1938c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT4 = 173,
1948c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_CMD = 174,
1958c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_CLK = 175,
1968c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT0 = 176,
1978c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT1 = 177,
1988c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT2 = 178,
1998c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_DAT3 = 179,
2008c2ecf20Sopenharmony_ci	MX6Q_PAD_SD3_RST = 180,
2018c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_CLE = 181,
2028c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_ALE = 182,
2038c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_WP_B = 183,
2048c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_RB0 = 184,
2058c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_CS0 = 185,
2068c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_CS1 = 186,
2078c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_CS2 = 187,
2088c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_CS3 = 188,
2098c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_CMD = 189,
2108c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_CLK = 190,
2118c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D0 = 191,
2128c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D1 = 192,
2138c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D2 = 193,
2148c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D3 = 194,
2158c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D4 = 195,
2168c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D5 = 196,
2178c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D6 = 197,
2188c2ecf20Sopenharmony_ci	MX6Q_PAD_NANDF_D7 = 198,
2198c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT0 = 199,
2208c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT1 = 200,
2218c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT2 = 201,
2228c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT3 = 202,
2238c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT4 = 203,
2248c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT5 = 204,
2258c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT6 = 205,
2268c2ecf20Sopenharmony_ci	MX6Q_PAD_SD4_DAT7 = 206,
2278c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_DAT1 = 207,
2288c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_DAT0 = 208,
2298c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_DAT3 = 209,
2308c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_CMD = 210,
2318c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_DAT2 = 211,
2328c2ecf20Sopenharmony_ci	MX6Q_PAD_SD1_CLK = 212,
2338c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_CLK = 213,
2348c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_CMD = 214,
2358c2ecf20Sopenharmony_ci	MX6Q_PAD_SD2_DAT3 = 215,
2368c2ecf20Sopenharmony_ci};
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci/* Pad names for the pinmux subsystem */
2398c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = {
2408c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE0),
2418c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE1),
2428c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE2),
2438c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE3),
2448c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE4),
2458c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE5),
2468c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE6),
2478c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE7),
2488c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE8),
2498c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE9),
2508c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE10),
2518c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE11),
2528c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE12),
2538c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE13),
2548c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE14),
2558c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE15),
2568c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE16),
2578c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE17),
2588c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE18),
2598c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT1),
2608c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT2),
2618c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT0),
2628c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TXC),
2638c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD0),
2648c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD1),
2658c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD2),
2668c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD3),
2678c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RX_CTL),
2688c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD0),
2698c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TX_CTL),
2708c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD1),
2718c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD2),
2728c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD3),
2738c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RXC),
2748c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A25),
2758c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB2),
2768c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D16),
2778c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D17),
2788c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D18),
2798c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D19),
2808c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D20),
2818c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D21),
2828c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D22),
2838c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D23),
2848c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB3),
2858c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D24),
2868c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D25),
2878c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D26),
2888c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D27),
2898c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D28),
2908c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D29),
2918c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D30),
2928c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D31),
2938c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A24),
2948c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A23),
2958c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A22),
2968c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A21),
2978c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A20),
2988c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A19),
2998c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A18),
3008c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A17),
3018c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A16),
3028c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS0),
3038c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS1),
3048c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_OE),
3058c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_RW),
3068c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_LBA),
3078c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB0),
3088c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB1),
3098c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA0),
3108c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA1),
3118c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA2),
3128c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA3),
3138c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA4),
3148c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA5),
3158c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA6),
3168c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA7),
3178c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA8),
3188c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA9),
3198c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA10),
3208c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA11),
3218c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA12),
3228c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA13),
3238c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA14),
3248c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA15),
3258c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_WAIT),
3268c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_BCLK),
3278c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_DISP_CLK),
3288c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN15),
3298c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN2),
3308c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN3),
3318c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN4),
3328c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT0),
3338c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT1),
3348c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT2),
3358c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT3),
3368c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT4),
3378c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT5),
3388c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT6),
3398c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT7),
3408c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT8),
3418c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT9),
3428c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT10),
3438c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT11),
3448c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT12),
3458c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT13),
3468c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT14),
3478c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT15),
3488c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT16),
3498c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT17),
3508c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT18),
3518c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT19),
3528c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT20),
3538c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT21),
3548c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT22),
3558c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT23),
3568c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDIO),
3578c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_REF_CLK),
3588c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RX_ER),
3598c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_CRS_DV),
3608c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD1),
3618c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD0),
3628c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TX_EN),
3638c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD1),
3648c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD0),
3658c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDC),
3668c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL0),
3678c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW0),
3688c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL1),
3698c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW1),
3708c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL2),
3718c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW2),
3728c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL3),
3738c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW3),
3748c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL4),
3758c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW4),
3768c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_0),
3778c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_1),
3788c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_9),
3798c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_3),
3808c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_6),
3818c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_2),
3828c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_4),
3838c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_5),
3848c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_7),
3858c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_8),
3868c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_16),
3878c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_17),
3888c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_18),
3898c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_19),
3908c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_PIXCLK),
3918c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_MCLK),
3928c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DATA_EN),
3938c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_VSYNC),
3948c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT4),
3958c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT5),
3968c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT6),
3978c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT7),
3988c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT8),
3998c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT9),
4008c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT10),
4018c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT11),
4028c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT12),
4038c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT13),
4048c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT14),
4058c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT15),
4068c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT16),
4078c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT17),
4088c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT18),
4098c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT19),
4108c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT7),
4118c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT6),
4128c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT5),
4138c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT4),
4148c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CMD),
4158c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CLK),
4168c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT0),
4178c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT1),
4188c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT2),
4198c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT3),
4208c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_RST),
4218c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CLE),
4228c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_ALE),
4238c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_WP_B),
4248c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_RB0),
4258c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS0),
4268c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS1),
4278c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS2),
4288c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS3),
4298c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CMD),
4308c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CLK),
4318c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D0),
4328c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D1),
4338c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D2),
4348c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D3),
4358c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D4),
4368c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D5),
4378c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D6),
4388c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D7),
4398c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT0),
4408c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT1),
4418c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT2),
4428c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT3),
4438c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT4),
4448c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT5),
4458c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT6),
4468c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT7),
4478c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT1),
4488c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT0),
4498c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT3),
4508c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CMD),
4518c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT2),
4528c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CLK),
4538c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CLK),
4548c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CMD),
4558c2ecf20Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT3),
4568c2ecf20Sopenharmony_ci};
4578c2ecf20Sopenharmony_ci
4588c2ecf20Sopenharmony_cistatic const struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
4598c2ecf20Sopenharmony_ci	.pins = imx6q_pinctrl_pads,
4608c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(imx6q_pinctrl_pads),
4618c2ecf20Sopenharmony_ci	.gpr_compatible = "fsl,imx6q-iomuxc-gpr",
4628c2ecf20Sopenharmony_ci};
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_cistatic const struct of_device_id imx6q_pinctrl_of_match[] = {
4658c2ecf20Sopenharmony_ci	{ .compatible = "fsl,imx6q-iomuxc", },
4668c2ecf20Sopenharmony_ci	{ /* sentinel */ }
4678c2ecf20Sopenharmony_ci};
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_cistatic int imx6q_pinctrl_probe(struct platform_device *pdev)
4708c2ecf20Sopenharmony_ci{
4718c2ecf20Sopenharmony_ci	return imx_pinctrl_probe(pdev, &imx6q_pinctrl_info);
4728c2ecf20Sopenharmony_ci}
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_cistatic struct platform_driver imx6q_pinctrl_driver = {
4758c2ecf20Sopenharmony_ci	.driver = {
4768c2ecf20Sopenharmony_ci		.name = "imx6q-pinctrl",
4778c2ecf20Sopenharmony_ci		.of_match_table = imx6q_pinctrl_of_match,
4788c2ecf20Sopenharmony_ci	},
4798c2ecf20Sopenharmony_ci	.probe = imx6q_pinctrl_probe,
4808c2ecf20Sopenharmony_ci};
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_cistatic int __init imx6q_pinctrl_init(void)
4838c2ecf20Sopenharmony_ci{
4848c2ecf20Sopenharmony_ci	return platform_driver_register(&imx6q_pinctrl_driver);
4858c2ecf20Sopenharmony_ci}
4868c2ecf20Sopenharmony_ciarch_initcall(imx6q_pinctrl_init);
487