162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+
262306a36Sopenharmony_ci//
362306a36Sopenharmony_ci// imx6q 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 imx6q_pads {
2062306a36Sopenharmony_ci	MX6Q_PAD_RESERVE0 = 0,
2162306a36Sopenharmony_ci	MX6Q_PAD_RESERVE1 = 1,
2262306a36Sopenharmony_ci	MX6Q_PAD_RESERVE2 = 2,
2362306a36Sopenharmony_ci	MX6Q_PAD_RESERVE3 = 3,
2462306a36Sopenharmony_ci	MX6Q_PAD_RESERVE4 = 4,
2562306a36Sopenharmony_ci	MX6Q_PAD_RESERVE5 = 5,
2662306a36Sopenharmony_ci	MX6Q_PAD_RESERVE6 = 6,
2762306a36Sopenharmony_ci	MX6Q_PAD_RESERVE7 = 7,
2862306a36Sopenharmony_ci	MX6Q_PAD_RESERVE8 = 8,
2962306a36Sopenharmony_ci	MX6Q_PAD_RESERVE9 = 9,
3062306a36Sopenharmony_ci	MX6Q_PAD_RESERVE10 = 10,
3162306a36Sopenharmony_ci	MX6Q_PAD_RESERVE11 = 11,
3262306a36Sopenharmony_ci	MX6Q_PAD_RESERVE12 = 12,
3362306a36Sopenharmony_ci	MX6Q_PAD_RESERVE13 = 13,
3462306a36Sopenharmony_ci	MX6Q_PAD_RESERVE14 = 14,
3562306a36Sopenharmony_ci	MX6Q_PAD_RESERVE15 = 15,
3662306a36Sopenharmony_ci	MX6Q_PAD_RESERVE16 = 16,
3762306a36Sopenharmony_ci	MX6Q_PAD_RESERVE17 = 17,
3862306a36Sopenharmony_ci	MX6Q_PAD_RESERVE18 = 18,
3962306a36Sopenharmony_ci	MX6Q_PAD_SD2_DAT1 = 19,
4062306a36Sopenharmony_ci	MX6Q_PAD_SD2_DAT2 = 20,
4162306a36Sopenharmony_ci	MX6Q_PAD_SD2_DAT0 = 21,
4262306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TXC = 22,
4362306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TD0 = 23,
4462306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TD1 = 24,
4562306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TD2 = 25,
4662306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TD3 = 26,
4762306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RX_CTL = 27,
4862306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RD0 = 28,
4962306a36Sopenharmony_ci	MX6Q_PAD_RGMII_TX_CTL = 29,
5062306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RD1 = 30,
5162306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RD2 = 31,
5262306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RD3 = 32,
5362306a36Sopenharmony_ci	MX6Q_PAD_RGMII_RXC = 33,
5462306a36Sopenharmony_ci	MX6Q_PAD_EIM_A25 = 34,
5562306a36Sopenharmony_ci	MX6Q_PAD_EIM_EB2 = 35,
5662306a36Sopenharmony_ci	MX6Q_PAD_EIM_D16 = 36,
5762306a36Sopenharmony_ci	MX6Q_PAD_EIM_D17 = 37,
5862306a36Sopenharmony_ci	MX6Q_PAD_EIM_D18 = 38,
5962306a36Sopenharmony_ci	MX6Q_PAD_EIM_D19 = 39,
6062306a36Sopenharmony_ci	MX6Q_PAD_EIM_D20 = 40,
6162306a36Sopenharmony_ci	MX6Q_PAD_EIM_D21 = 41,
6262306a36Sopenharmony_ci	MX6Q_PAD_EIM_D22 = 42,
6362306a36Sopenharmony_ci	MX6Q_PAD_EIM_D23 = 43,
6462306a36Sopenharmony_ci	MX6Q_PAD_EIM_EB3 = 44,
6562306a36Sopenharmony_ci	MX6Q_PAD_EIM_D24 = 45,
6662306a36Sopenharmony_ci	MX6Q_PAD_EIM_D25 = 46,
6762306a36Sopenharmony_ci	MX6Q_PAD_EIM_D26 = 47,
6862306a36Sopenharmony_ci	MX6Q_PAD_EIM_D27 = 48,
6962306a36Sopenharmony_ci	MX6Q_PAD_EIM_D28 = 49,
7062306a36Sopenharmony_ci	MX6Q_PAD_EIM_D29 = 50,
7162306a36Sopenharmony_ci	MX6Q_PAD_EIM_D30 = 51,
7262306a36Sopenharmony_ci	MX6Q_PAD_EIM_D31 = 52,
7362306a36Sopenharmony_ci	MX6Q_PAD_EIM_A24 = 53,
7462306a36Sopenharmony_ci	MX6Q_PAD_EIM_A23 = 54,
7562306a36Sopenharmony_ci	MX6Q_PAD_EIM_A22 = 55,
7662306a36Sopenharmony_ci	MX6Q_PAD_EIM_A21 = 56,
7762306a36Sopenharmony_ci	MX6Q_PAD_EIM_A20 = 57,
7862306a36Sopenharmony_ci	MX6Q_PAD_EIM_A19 = 58,
7962306a36Sopenharmony_ci	MX6Q_PAD_EIM_A18 = 59,
8062306a36Sopenharmony_ci	MX6Q_PAD_EIM_A17 = 60,
8162306a36Sopenharmony_ci	MX6Q_PAD_EIM_A16 = 61,
8262306a36Sopenharmony_ci	MX6Q_PAD_EIM_CS0 = 62,
8362306a36Sopenharmony_ci	MX6Q_PAD_EIM_CS1 = 63,
8462306a36Sopenharmony_ci	MX6Q_PAD_EIM_OE = 64,
8562306a36Sopenharmony_ci	MX6Q_PAD_EIM_RW = 65,
8662306a36Sopenharmony_ci	MX6Q_PAD_EIM_LBA = 66,
8762306a36Sopenharmony_ci	MX6Q_PAD_EIM_EB0 = 67,
8862306a36Sopenharmony_ci	MX6Q_PAD_EIM_EB1 = 68,
8962306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA0 = 69,
9062306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA1 = 70,
9162306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA2 = 71,
9262306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA3 = 72,
9362306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA4 = 73,
9462306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA5 = 74,
9562306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA6 = 75,
9662306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA7 = 76,
9762306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA8 = 77,
9862306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA9 = 78,
9962306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA10 = 79,
10062306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA11 = 80,
10162306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA12 = 81,
10262306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA13 = 82,
10362306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA14 = 83,
10462306a36Sopenharmony_ci	MX6Q_PAD_EIM_DA15 = 84,
10562306a36Sopenharmony_ci	MX6Q_PAD_EIM_WAIT = 85,
10662306a36Sopenharmony_ci	MX6Q_PAD_EIM_BCLK = 86,
10762306a36Sopenharmony_ci	MX6Q_PAD_DI0_DISP_CLK = 87,
10862306a36Sopenharmony_ci	MX6Q_PAD_DI0_PIN15 = 88,
10962306a36Sopenharmony_ci	MX6Q_PAD_DI0_PIN2 = 89,
11062306a36Sopenharmony_ci	MX6Q_PAD_DI0_PIN3 = 90,
11162306a36Sopenharmony_ci	MX6Q_PAD_DI0_PIN4 = 91,
11262306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT0 = 92,
11362306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT1 = 93,
11462306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT2 = 94,
11562306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT3 = 95,
11662306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT4 = 96,
11762306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT5 = 97,
11862306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT6 = 98,
11962306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT7 = 99,
12062306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT8 = 100,
12162306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT9 = 101,
12262306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT10 = 102,
12362306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT11 = 103,
12462306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT12 = 104,
12562306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT13 = 105,
12662306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT14 = 106,
12762306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT15 = 107,
12862306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT16 = 108,
12962306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT17 = 109,
13062306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT18 = 110,
13162306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT19 = 111,
13262306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT20 = 112,
13362306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT21 = 113,
13462306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT22 = 114,
13562306a36Sopenharmony_ci	MX6Q_PAD_DISP0_DAT23 = 115,
13662306a36Sopenharmony_ci	MX6Q_PAD_ENET_MDIO = 116,
13762306a36Sopenharmony_ci	MX6Q_PAD_ENET_REF_CLK = 117,
13862306a36Sopenharmony_ci	MX6Q_PAD_ENET_RX_ER = 118,
13962306a36Sopenharmony_ci	MX6Q_PAD_ENET_CRS_DV = 119,
14062306a36Sopenharmony_ci	MX6Q_PAD_ENET_RXD1 = 120,
14162306a36Sopenharmony_ci	MX6Q_PAD_ENET_RXD0 = 121,
14262306a36Sopenharmony_ci	MX6Q_PAD_ENET_TX_EN = 122,
14362306a36Sopenharmony_ci	MX6Q_PAD_ENET_TXD1 = 123,
14462306a36Sopenharmony_ci	MX6Q_PAD_ENET_TXD0 = 124,
14562306a36Sopenharmony_ci	MX6Q_PAD_ENET_MDC = 125,
14662306a36Sopenharmony_ci	MX6Q_PAD_KEY_COL0 = 126,
14762306a36Sopenharmony_ci	MX6Q_PAD_KEY_ROW0 = 127,
14862306a36Sopenharmony_ci	MX6Q_PAD_KEY_COL1 = 128,
14962306a36Sopenharmony_ci	MX6Q_PAD_KEY_ROW1 = 129,
15062306a36Sopenharmony_ci	MX6Q_PAD_KEY_COL2 = 130,
15162306a36Sopenharmony_ci	MX6Q_PAD_KEY_ROW2 = 131,
15262306a36Sopenharmony_ci	MX6Q_PAD_KEY_COL3 = 132,
15362306a36Sopenharmony_ci	MX6Q_PAD_KEY_ROW3 = 133,
15462306a36Sopenharmony_ci	MX6Q_PAD_KEY_COL4 = 134,
15562306a36Sopenharmony_ci	MX6Q_PAD_KEY_ROW4 = 135,
15662306a36Sopenharmony_ci	MX6Q_PAD_GPIO_0 = 136,
15762306a36Sopenharmony_ci	MX6Q_PAD_GPIO_1 = 137,
15862306a36Sopenharmony_ci	MX6Q_PAD_GPIO_9 = 138,
15962306a36Sopenharmony_ci	MX6Q_PAD_GPIO_3 = 139,
16062306a36Sopenharmony_ci	MX6Q_PAD_GPIO_6 = 140,
16162306a36Sopenharmony_ci	MX6Q_PAD_GPIO_2 = 141,
16262306a36Sopenharmony_ci	MX6Q_PAD_GPIO_4 = 142,
16362306a36Sopenharmony_ci	MX6Q_PAD_GPIO_5 = 143,
16462306a36Sopenharmony_ci	MX6Q_PAD_GPIO_7 = 144,
16562306a36Sopenharmony_ci	MX6Q_PAD_GPIO_8 = 145,
16662306a36Sopenharmony_ci	MX6Q_PAD_GPIO_16 = 146,
16762306a36Sopenharmony_ci	MX6Q_PAD_GPIO_17 = 147,
16862306a36Sopenharmony_ci	MX6Q_PAD_GPIO_18 = 148,
16962306a36Sopenharmony_ci	MX6Q_PAD_GPIO_19 = 149,
17062306a36Sopenharmony_ci	MX6Q_PAD_CSI0_PIXCLK = 150,
17162306a36Sopenharmony_ci	MX6Q_PAD_CSI0_MCLK = 151,
17262306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DATA_EN = 152,
17362306a36Sopenharmony_ci	MX6Q_PAD_CSI0_VSYNC = 153,
17462306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT4 = 154,
17562306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT5 = 155,
17662306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT6 = 156,
17762306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT7 = 157,
17862306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT8 = 158,
17962306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT9 = 159,
18062306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT10 = 160,
18162306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT11 = 161,
18262306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT12 = 162,
18362306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT13 = 163,
18462306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT14 = 164,
18562306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT15 = 165,
18662306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT16 = 166,
18762306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT17 = 167,
18862306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT18 = 168,
18962306a36Sopenharmony_ci	MX6Q_PAD_CSI0_DAT19 = 169,
19062306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT7 = 170,
19162306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT6 = 171,
19262306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT5 = 172,
19362306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT4 = 173,
19462306a36Sopenharmony_ci	MX6Q_PAD_SD3_CMD = 174,
19562306a36Sopenharmony_ci	MX6Q_PAD_SD3_CLK = 175,
19662306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT0 = 176,
19762306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT1 = 177,
19862306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT2 = 178,
19962306a36Sopenharmony_ci	MX6Q_PAD_SD3_DAT3 = 179,
20062306a36Sopenharmony_ci	MX6Q_PAD_SD3_RST = 180,
20162306a36Sopenharmony_ci	MX6Q_PAD_NANDF_CLE = 181,
20262306a36Sopenharmony_ci	MX6Q_PAD_NANDF_ALE = 182,
20362306a36Sopenharmony_ci	MX6Q_PAD_NANDF_WP_B = 183,
20462306a36Sopenharmony_ci	MX6Q_PAD_NANDF_RB0 = 184,
20562306a36Sopenharmony_ci	MX6Q_PAD_NANDF_CS0 = 185,
20662306a36Sopenharmony_ci	MX6Q_PAD_NANDF_CS1 = 186,
20762306a36Sopenharmony_ci	MX6Q_PAD_NANDF_CS2 = 187,
20862306a36Sopenharmony_ci	MX6Q_PAD_NANDF_CS3 = 188,
20962306a36Sopenharmony_ci	MX6Q_PAD_SD4_CMD = 189,
21062306a36Sopenharmony_ci	MX6Q_PAD_SD4_CLK = 190,
21162306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D0 = 191,
21262306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D1 = 192,
21362306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D2 = 193,
21462306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D3 = 194,
21562306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D4 = 195,
21662306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D5 = 196,
21762306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D6 = 197,
21862306a36Sopenharmony_ci	MX6Q_PAD_NANDF_D7 = 198,
21962306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT0 = 199,
22062306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT1 = 200,
22162306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT2 = 201,
22262306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT3 = 202,
22362306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT4 = 203,
22462306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT5 = 204,
22562306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT6 = 205,
22662306a36Sopenharmony_ci	MX6Q_PAD_SD4_DAT7 = 206,
22762306a36Sopenharmony_ci	MX6Q_PAD_SD1_DAT1 = 207,
22862306a36Sopenharmony_ci	MX6Q_PAD_SD1_DAT0 = 208,
22962306a36Sopenharmony_ci	MX6Q_PAD_SD1_DAT3 = 209,
23062306a36Sopenharmony_ci	MX6Q_PAD_SD1_CMD = 210,
23162306a36Sopenharmony_ci	MX6Q_PAD_SD1_DAT2 = 211,
23262306a36Sopenharmony_ci	MX6Q_PAD_SD1_CLK = 212,
23362306a36Sopenharmony_ci	MX6Q_PAD_SD2_CLK = 213,
23462306a36Sopenharmony_ci	MX6Q_PAD_SD2_CMD = 214,
23562306a36Sopenharmony_ci	MX6Q_PAD_SD2_DAT3 = 215,
23662306a36Sopenharmony_ci};
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ci/* Pad names for the pinmux subsystem */
23962306a36Sopenharmony_cistatic const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = {
24062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE0),
24162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE1),
24262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE2),
24362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE3),
24462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE4),
24562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE5),
24662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE6),
24762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE7),
24862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE8),
24962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE9),
25062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE10),
25162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE11),
25262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE12),
25362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE13),
25462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE14),
25562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE15),
25662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE16),
25762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE17),
25862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RESERVE18),
25962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT1),
26062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT2),
26162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT0),
26262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TXC),
26362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD0),
26462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD1),
26562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD2),
26662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TD3),
26762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RX_CTL),
26862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD0),
26962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_TX_CTL),
27062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD1),
27162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD2),
27262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RD3),
27362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_RGMII_RXC),
27462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A25),
27562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB2),
27662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D16),
27762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D17),
27862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D18),
27962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D19),
28062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D20),
28162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D21),
28262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D22),
28362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D23),
28462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB3),
28562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D24),
28662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D25),
28762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D26),
28862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D27),
28962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D28),
29062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D29),
29162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D30),
29262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_D31),
29362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A24),
29462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A23),
29562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A22),
29662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A21),
29762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A20),
29862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A19),
29962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A18),
30062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A17),
30162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_A16),
30262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS0),
30362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_CS1),
30462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_OE),
30562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_RW),
30662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_LBA),
30762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB0),
30862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_EB1),
30962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA0),
31062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA1),
31162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA2),
31262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA3),
31362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA4),
31462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA5),
31562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA6),
31662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA7),
31762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA8),
31862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA9),
31962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA10),
32062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA11),
32162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA12),
32262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA13),
32362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA14),
32462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_DA15),
32562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_WAIT),
32662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_EIM_BCLK),
32762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_DISP_CLK),
32862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN15),
32962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN2),
33062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN3),
33162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DI0_PIN4),
33262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT0),
33362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT1),
33462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT2),
33562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT3),
33662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT4),
33762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT5),
33862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT6),
33962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT7),
34062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT8),
34162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT9),
34262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT10),
34362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT11),
34462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT12),
34562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT13),
34662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT14),
34762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT15),
34862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT16),
34962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT17),
35062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT18),
35162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT19),
35262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT20),
35362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT21),
35462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT22),
35562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_DISP0_DAT23),
35662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDIO),
35762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_REF_CLK),
35862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RX_ER),
35962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_CRS_DV),
36062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD1),
36162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_RXD0),
36262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TX_EN),
36362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD1),
36462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_TXD0),
36562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_ENET_MDC),
36662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL0),
36762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW0),
36862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL1),
36962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW1),
37062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL2),
37162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW2),
37262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL3),
37362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW3),
37462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_COL4),
37562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_KEY_ROW4),
37662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_0),
37762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_1),
37862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_9),
37962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_3),
38062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_6),
38162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_2),
38262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_4),
38362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_5),
38462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_7),
38562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_8),
38662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_16),
38762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_17),
38862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_18),
38962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_GPIO_19),
39062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_PIXCLK),
39162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_MCLK),
39262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DATA_EN),
39362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_VSYNC),
39462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT4),
39562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT5),
39662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT6),
39762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT7),
39862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT8),
39962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT9),
40062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT10),
40162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT11),
40262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT12),
40362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT13),
40462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT14),
40562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT15),
40662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT16),
40762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT17),
40862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT18),
40962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_CSI0_DAT19),
41062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT7),
41162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT6),
41262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT5),
41362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT4),
41462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CMD),
41562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_CLK),
41662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT0),
41762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT1),
41862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT2),
41962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_DAT3),
42062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD3_RST),
42162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CLE),
42262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_ALE),
42362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_WP_B),
42462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_RB0),
42562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS0),
42662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS1),
42762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS2),
42862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_CS3),
42962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CMD),
43062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_CLK),
43162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D0),
43262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D1),
43362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D2),
43462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D3),
43562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D4),
43662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D5),
43762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D6),
43862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_NANDF_D7),
43962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT0),
44062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT1),
44162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT2),
44262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT3),
44362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT4),
44462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT5),
44562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT6),
44662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD4_DAT7),
44762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT1),
44862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT0),
44962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT3),
45062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CMD),
45162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_DAT2),
45262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD1_CLK),
45362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CLK),
45462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_CMD),
45562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT3),
45662306a36Sopenharmony_ci};
45762306a36Sopenharmony_ci
45862306a36Sopenharmony_cistatic const struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
45962306a36Sopenharmony_ci	.pins = imx6q_pinctrl_pads,
46062306a36Sopenharmony_ci	.npins = ARRAY_SIZE(imx6q_pinctrl_pads),
46162306a36Sopenharmony_ci	.gpr_compatible = "fsl,imx6q-iomuxc-gpr",
46262306a36Sopenharmony_ci};
46362306a36Sopenharmony_ci
46462306a36Sopenharmony_cistatic const struct of_device_id imx6q_pinctrl_of_match[] = {
46562306a36Sopenharmony_ci	{ .compatible = "fsl,imx6q-iomuxc", },
46662306a36Sopenharmony_ci	{ /* sentinel */ }
46762306a36Sopenharmony_ci};
46862306a36Sopenharmony_ci
46962306a36Sopenharmony_cistatic int imx6q_pinctrl_probe(struct platform_device *pdev)
47062306a36Sopenharmony_ci{
47162306a36Sopenharmony_ci	return imx_pinctrl_probe(pdev, &imx6q_pinctrl_info);
47262306a36Sopenharmony_ci}
47362306a36Sopenharmony_ci
47462306a36Sopenharmony_cistatic struct platform_driver imx6q_pinctrl_driver = {
47562306a36Sopenharmony_ci	.driver = {
47662306a36Sopenharmony_ci		.name = "imx6q-pinctrl",
47762306a36Sopenharmony_ci		.of_match_table = imx6q_pinctrl_of_match,
47862306a36Sopenharmony_ci		.suppress_bind_attrs = true,
47962306a36Sopenharmony_ci	},
48062306a36Sopenharmony_ci	.probe = imx6q_pinctrl_probe,
48162306a36Sopenharmony_ci};
48262306a36Sopenharmony_ci
48362306a36Sopenharmony_cistatic int __init imx6q_pinctrl_init(void)
48462306a36Sopenharmony_ci{
48562306a36Sopenharmony_ci	return platform_driver_register(&imx6q_pinctrl_driver);
48662306a36Sopenharmony_ci}
48762306a36Sopenharmony_ciarch_initcall(imx6q_pinctrl_init);
488