162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2022
462306a36Sopenharmony_ci * Author(s): Jesse Taube <Mr.Bossman075@gmail.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include <linux/err.h>
862306a36Sopenharmony_ci#include <linux/init.h>
962306a36Sopenharmony_ci#include <linux/of.h>
1062306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
1162306a36Sopenharmony_ci#include <linux/platform_device.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#include "pinctrl-imx.h"
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cienum imxrt1170_pads {
1662306a36Sopenharmony_ci	IMXRT1170_PAD_RESERVE0,
1762306a36Sopenharmony_ci	IMXRT1170_PAD_RESERVE1,
1862306a36Sopenharmony_ci	IMXRT1170_PAD_RESERVE2,
1962306a36Sopenharmony_ci	IMXRT1170_PAD_RESERVE3,
2062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_00,
2162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_01,
2262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_02,
2362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_03,
2462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_04,
2562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_05,
2662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_06,
2762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_07,
2862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_08,
2962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_09,
3062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_10,
3162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_11,
3262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_12,
3362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_13,
3462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_14,
3562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_15,
3662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_16,
3762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_17,
3862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_18,
3962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_19,
4062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_20,
4162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_21,
4262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_22,
4362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_23,
4462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_24,
4562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_25,
4662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_26,
4762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_27,
4862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_28,
4962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_29,
5062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_30,
5162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_31,
5262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_32,
5362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_33,
5462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_34,
5562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_35,
5662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_36,
5762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_37,
5862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_38,
5962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_39,
6062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_40,
6162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B1_41,
6262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_00,
6362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_01,
6462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_02,
6562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_03,
6662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_04,
6762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_05,
6862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_06,
6962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_07,
7062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_08,
7162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_09,
7262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_10,
7362306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_11,
7462306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_12,
7562306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_13,
7662306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_14,
7762306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_15,
7862306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_16,
7962306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_17,
8062306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_18,
8162306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_19,
8262306a36Sopenharmony_ci	IMXRT1170_PAD_EMC_B2_20,
8362306a36Sopenharmony_ci	IMXRT1170_PAD_AD_00,
8462306a36Sopenharmony_ci	IMXRT1170_PAD_AD_01,
8562306a36Sopenharmony_ci	IMXRT1170_PAD_AD_02,
8662306a36Sopenharmony_ci	IMXRT1170_PAD_AD_03,
8762306a36Sopenharmony_ci	IMXRT1170_PAD_AD_04,
8862306a36Sopenharmony_ci	IMXRT1170_PAD_AD_05,
8962306a36Sopenharmony_ci	IMXRT1170_PAD_AD_06,
9062306a36Sopenharmony_ci	IMXRT1170_PAD_AD_07,
9162306a36Sopenharmony_ci	IMXRT1170_PAD_AD_08,
9262306a36Sopenharmony_ci	IMXRT1170_PAD_AD_09,
9362306a36Sopenharmony_ci	IMXRT1170_PAD_AD_10,
9462306a36Sopenharmony_ci	IMXRT1170_PAD_AD_11,
9562306a36Sopenharmony_ci	IMXRT1170_PAD_AD_12,
9662306a36Sopenharmony_ci	IMXRT1170_PAD_AD_13,
9762306a36Sopenharmony_ci	IMXRT1170_PAD_AD_14,
9862306a36Sopenharmony_ci	IMXRT1170_PAD_AD_15,
9962306a36Sopenharmony_ci	IMXRT1170_PAD_AD_16,
10062306a36Sopenharmony_ci	IMXRT1170_PAD_AD_17,
10162306a36Sopenharmony_ci	IMXRT1170_PAD_AD_18,
10262306a36Sopenharmony_ci	IMXRT1170_PAD_AD_19,
10362306a36Sopenharmony_ci	IMXRT1170_PAD_AD_20,
10462306a36Sopenharmony_ci	IMXRT1170_PAD_AD_21,
10562306a36Sopenharmony_ci	IMXRT1170_PAD_AD_22,
10662306a36Sopenharmony_ci	IMXRT1170_PAD_AD_23,
10762306a36Sopenharmony_ci	IMXRT1170_PAD_AD_24,
10862306a36Sopenharmony_ci	IMXRT1170_PAD_AD_25,
10962306a36Sopenharmony_ci	IMXRT1170_PAD_AD_26,
11062306a36Sopenharmony_ci	IMXRT1170_PAD_AD_27,
11162306a36Sopenharmony_ci	IMXRT1170_PAD_AD_28,
11262306a36Sopenharmony_ci	IMXRT1170_PAD_AD_29,
11362306a36Sopenharmony_ci	IMXRT1170_PAD_AD_30,
11462306a36Sopenharmony_ci	IMXRT1170_PAD_AD_31,
11562306a36Sopenharmony_ci	IMXRT1170_PAD_AD_32,
11662306a36Sopenharmony_ci	IMXRT1170_PAD_AD_33,
11762306a36Sopenharmony_ci	IMXRT1170_PAD_AD_34,
11862306a36Sopenharmony_ci	IMXRT1170_PAD_AD_35,
11962306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_00,
12062306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_01,
12162306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_02,
12262306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_03,
12362306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_04,
12462306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B1_05,
12562306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_00,
12662306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_01,
12762306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_02,
12862306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_03,
12962306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_04,
13062306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_05,
13162306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_06,
13262306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_07,
13362306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_08,
13462306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_09,
13562306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_10,
13662306a36Sopenharmony_ci	IMXRT1170_PAD_SD_B2_11,
13762306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_00,
13862306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_01,
13962306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_02,
14062306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_03,
14162306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_04,
14262306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_05,
14362306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_06,
14462306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_07,
14562306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_08,
14662306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_09,
14762306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_10,
14862306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B1_11,
14962306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_00,
15062306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_01,
15162306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_02,
15262306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_03,
15362306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_04,
15462306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_05,
15562306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_06,
15662306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_07,
15762306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_08,
15862306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_09,
15962306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_10,
16062306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_11,
16162306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_12,
16262306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_13,
16362306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_14,
16462306a36Sopenharmony_ci	IMXRT1170_PAD_DISP_B2_15,
16562306a36Sopenharmony_ci};
16662306a36Sopenharmony_ci
16762306a36Sopenharmony_ci/* Pad names for the pinmux subsystem */
16862306a36Sopenharmony_cistatic const struct pinctrl_pin_desc imxrt1170_pinctrl_pads[] = {
16962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_RESERVE0),
17062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_RESERVE1),
17162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_RESERVE2),
17262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_RESERVE3),
17362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_00),
17462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_01),
17562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_02),
17662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_03),
17762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_04),
17862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_05),
17962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_06),
18062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_07),
18162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_08),
18262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_09),
18362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_10),
18462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_11),
18562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_12),
18662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_13),
18762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_14),
18862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_15),
18962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_16),
19062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_17),
19162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_18),
19262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_19),
19362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_20),
19462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_21),
19562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_22),
19662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_23),
19762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_24),
19862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_25),
19962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_26),
20062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_27),
20162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_28),
20262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_29),
20362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_30),
20462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_31),
20562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_32),
20662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_33),
20762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_34),
20862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_35),
20962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_36),
21062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_37),
21162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_38),
21262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_39),
21362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_40),
21462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B1_41),
21562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_00),
21662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_01),
21762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_02),
21862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_03),
21962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_04),
22062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_05),
22162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_06),
22262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_07),
22362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_08),
22462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_09),
22562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_10),
22662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_11),
22762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_12),
22862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_13),
22962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_14),
23062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_15),
23162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_16),
23262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_17),
23362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_18),
23462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_19),
23562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_EMC_B2_20),
23662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_00),
23762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_01),
23862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_02),
23962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_03),
24062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_04),
24162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_05),
24262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_06),
24362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_07),
24462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_08),
24562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_09),
24662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_10),
24762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_11),
24862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_12),
24962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_13),
25062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_14),
25162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_15),
25262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_16),
25362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_17),
25462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_18),
25562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_19),
25662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_20),
25762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_21),
25862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_22),
25962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_23),
26062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_24),
26162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_25),
26262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_26),
26362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_27),
26462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_28),
26562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_29),
26662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_30),
26762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_31),
26862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_32),
26962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_33),
27062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_34),
27162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_AD_35),
27262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_00),
27362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_01),
27462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_02),
27562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_03),
27662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_04),
27762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B1_05),
27862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_00),
27962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_01),
28062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_02),
28162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_03),
28262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_04),
28362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_05),
28462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_06),
28562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_07),
28662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_08),
28762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_09),
28862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_10),
28962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_SD_B2_11),
29062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_00),
29162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_01),
29262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_02),
29362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_03),
29462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_04),
29562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_05),
29662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_06),
29762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_07),
29862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_08),
29962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_09),
30062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_10),
30162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B1_11),
30262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_00),
30362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_01),
30462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_02),
30562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_03),
30662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_04),
30762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_05),
30862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_06),
30962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_07),
31062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_08),
31162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_09),
31262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_10),
31362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_11),
31462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_12),
31562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_13),
31662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_14),
31762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1170_PAD_DISP_B2_15),
31862306a36Sopenharmony_ci};
31962306a36Sopenharmony_ci
32062306a36Sopenharmony_cistatic const struct imx_pinctrl_soc_info imxrt1170_pinctrl_info = {
32162306a36Sopenharmony_ci	.pins = imxrt1170_pinctrl_pads,
32262306a36Sopenharmony_ci	.npins = ARRAY_SIZE(imxrt1170_pinctrl_pads),
32362306a36Sopenharmony_ci	.gpr_compatible = "fsl,imxrt1170-iomuxc-gpr",
32462306a36Sopenharmony_ci};
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_cistatic const struct of_device_id imxrt1170_pinctrl_of_match[] = {
32762306a36Sopenharmony_ci	{ .compatible = "fsl,imxrt1170-iomuxc", .data = &imxrt1170_pinctrl_info, },
32862306a36Sopenharmony_ci	{ /* sentinel */ }
32962306a36Sopenharmony_ci};
33062306a36Sopenharmony_ci
33162306a36Sopenharmony_cistatic int imxrt1170_pinctrl_probe(struct platform_device *pdev)
33262306a36Sopenharmony_ci{
33362306a36Sopenharmony_ci	return imx_pinctrl_probe(pdev, &imxrt1170_pinctrl_info);
33462306a36Sopenharmony_ci}
33562306a36Sopenharmony_ci
33662306a36Sopenharmony_cistatic struct platform_driver imxrt1170_pinctrl_driver = {
33762306a36Sopenharmony_ci	.driver = {
33862306a36Sopenharmony_ci		.name = "imxrt1170-pinctrl",
33962306a36Sopenharmony_ci		.of_match_table = of_match_ptr(imxrt1170_pinctrl_of_match),
34062306a36Sopenharmony_ci		.suppress_bind_attrs = true,
34162306a36Sopenharmony_ci	},
34262306a36Sopenharmony_ci	.probe = imxrt1170_pinctrl_probe,
34362306a36Sopenharmony_ci};
34462306a36Sopenharmony_ci
34562306a36Sopenharmony_cistatic int __init imxrt1170_pinctrl_init(void)
34662306a36Sopenharmony_ci{
34762306a36Sopenharmony_ci	return platform_driver_register(&imxrt1170_pinctrl_driver);
34862306a36Sopenharmony_ci}
34962306a36Sopenharmony_ciarch_initcall(imxrt1170_pinctrl_init);
350