162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2020
462306a36Sopenharmony_ci * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.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 imxrt1050_pads {
1662306a36Sopenharmony_ci	IMXRT1050_PAD_RESERVE0,
1762306a36Sopenharmony_ci	IMXRT1050_PAD_RESERVE1,
1862306a36Sopenharmony_ci	IMXRT1050_PAD_RESERVE2,
1962306a36Sopenharmony_ci	IMXRT1050_PAD_RESERVE3,
2062306a36Sopenharmony_ci	IMXRT1050_PAD_RESERVE4,
2162306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_00,
2262306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_01,
2362306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_02,
2462306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_03,
2562306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_04,
2662306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_05,
2762306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_06,
2862306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_07,
2962306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_08,
3062306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_09,
3162306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_10,
3262306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_11,
3362306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_12,
3462306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_13,
3562306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_14,
3662306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_15,
3762306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_16,
3862306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_17,
3962306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_18,
4062306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_19,
4162306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_20,
4262306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_21,
4362306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_22,
4462306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_23,
4562306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_24,
4662306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_25,
4762306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_26,
4862306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_27,
4962306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_28,
5062306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_29,
5162306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_30,
5262306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_31,
5362306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_32,
5462306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_33,
5562306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_34,
5662306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_35,
5762306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_36,
5862306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_37,
5962306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_38,
6062306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_39,
6162306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_40,
6262306a36Sopenharmony_ci	IMXRT1050_PAD_EMC_41,
6362306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_00,
6462306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_01,
6562306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_02,
6662306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_03,
6762306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_04,
6862306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_05,
6962306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_06,
7062306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_07,
7162306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_08,
7262306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_09,
7362306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_10,
7462306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_11,
7562306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_12,
7662306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_13,
7762306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_14,
7862306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B0_15,
7962306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_00,
8062306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_01,
8162306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_02,
8262306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_03,
8362306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_04,
8462306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_05,
8562306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_06,
8662306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_07,
8762306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_08,
8862306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_09,
8962306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_10,
9062306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_11,
9162306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_12,
9262306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_13,
9362306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_14,
9462306a36Sopenharmony_ci	IMXRT1050_PAD_AD_B1_15,
9562306a36Sopenharmony_ci	IMXRT1050_PAD_B0_00,
9662306a36Sopenharmony_ci	IMXRT1050_PAD_B0_01,
9762306a36Sopenharmony_ci	IMXRT1050_PAD_B0_02,
9862306a36Sopenharmony_ci	IMXRT1050_PAD_B0_03,
9962306a36Sopenharmony_ci	IMXRT1050_PAD_B0_04,
10062306a36Sopenharmony_ci	IMXRT1050_PAD_B0_05,
10162306a36Sopenharmony_ci	IMXRT1050_PAD_B0_06,
10262306a36Sopenharmony_ci	IMXRT1050_PAD_B0_07,
10362306a36Sopenharmony_ci	IMXRT1050_PAD_B0_08,
10462306a36Sopenharmony_ci	IMXRT1050_PAD_B0_09,
10562306a36Sopenharmony_ci	IMXRT1050_PAD_B0_10,
10662306a36Sopenharmony_ci	IMXRT1050_PAD_B0_11,
10762306a36Sopenharmony_ci	IMXRT1050_PAD_B0_12,
10862306a36Sopenharmony_ci	IMXRT1050_PAD_B0_13,
10962306a36Sopenharmony_ci	IMXRT1050_PAD_B0_14,
11062306a36Sopenharmony_ci	IMXRT1050_PAD_B0_15,
11162306a36Sopenharmony_ci	IMXRT1050_PAD_B1_00,
11262306a36Sopenharmony_ci	IMXRT1050_PAD_B1_01,
11362306a36Sopenharmony_ci	IMXRT1050_PAD_B1_02,
11462306a36Sopenharmony_ci	IMXRT1050_PAD_B1_03,
11562306a36Sopenharmony_ci	IMXRT1050_PAD_B1_04,
11662306a36Sopenharmony_ci	IMXRT1050_PAD_B1_05,
11762306a36Sopenharmony_ci	IMXRT1050_PAD_B1_06,
11862306a36Sopenharmony_ci	IMXRT1050_PAD_B1_07,
11962306a36Sopenharmony_ci	IMXRT1050_PAD_B1_08,
12062306a36Sopenharmony_ci	IMXRT1050_PAD_B1_09,
12162306a36Sopenharmony_ci	IMXRT1050_PAD_B1_10,
12262306a36Sopenharmony_ci	IMXRT1050_PAD_B1_11,
12362306a36Sopenharmony_ci	IMXRT1050_PAD_B1_12,
12462306a36Sopenharmony_ci	IMXRT1050_PAD_B1_13,
12562306a36Sopenharmony_ci	IMXRT1050_PAD_B1_14,
12662306a36Sopenharmony_ci	IMXRT1050_PAD_B1_15,
12762306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_00,
12862306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_01,
12962306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_02,
13062306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_03,
13162306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_04,
13262306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B0_05,
13362306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_00,
13462306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_01,
13562306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_02,
13662306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_03,
13762306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_04,
13862306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_05,
13962306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_06,
14062306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_07,
14162306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_08,
14262306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_09,
14362306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_10,
14462306a36Sopenharmony_ci	IMXRT1050_PAD_SD_B1_11,
14562306a36Sopenharmony_ci};
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci/* Pad names for the pinmux subsystem */
14862306a36Sopenharmony_cistatic const struct pinctrl_pin_desc imxrt1050_pinctrl_pads[] = {
14962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_RESERVE0),
15062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_RESERVE1),
15162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_RESERVE2),
15262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_RESERVE3),
15362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_RESERVE4),
15462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_00),
15562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_01),
15662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_02),
15762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_03),
15862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_04),
15962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_05),
16062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_06),
16162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_07),
16262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_08),
16362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_09),
16462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_10),
16562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_11),
16662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_12),
16762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_13),
16862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_14),
16962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_15),
17062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_16),
17162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_17),
17262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_18),
17362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_19),
17462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_20),
17562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_21),
17662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_22),
17762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_23),
17862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_24),
17962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_25),
18062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_26),
18162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_27),
18262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_28),
18362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_29),
18462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_30),
18562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_31),
18662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_32),
18762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_33),
18862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_34),
18962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_35),
19062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_36),
19162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_37),
19262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_38),
19362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_39),
19462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_40),
19562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_EMC_41),
19662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_00),
19762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_01),
19862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_02),
19962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_03),
20062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_04),
20162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_05),
20262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_06),
20362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_07),
20462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_08),
20562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_09),
20662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_10),
20762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_11),
20862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_12),
20962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_13),
21062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_14),
21162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B0_15),
21262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_00),
21362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_01),
21462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_02),
21562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_03),
21662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_04),
21762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_05),
21862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_06),
21962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_07),
22062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_08),
22162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_09),
22262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_10),
22362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_11),
22462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_12),
22562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_13),
22662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_14),
22762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_AD_B1_15),
22862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_00),
22962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_01),
23062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_02),
23162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_03),
23262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_04),
23362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_05),
23462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_06),
23562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_07),
23662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_08),
23762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_09),
23862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_10),
23962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_11),
24062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_12),
24162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_13),
24262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_14),
24362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B0_15),
24462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_00),
24562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_01),
24662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_02),
24762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_03),
24862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_04),
24962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_05),
25062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_06),
25162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_07),
25262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_08),
25362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_09),
25462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_10),
25562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_11),
25662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_12),
25762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_13),
25862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_14),
25962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_B1_15),
26062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_00),
26162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_01),
26262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_02),
26362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_03),
26462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_04),
26562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B0_05),
26662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_00),
26762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_01),
26862306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_02),
26962306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_03),
27062306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_04),
27162306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_05),
27262306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_06),
27362306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_07),
27462306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_08),
27562306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_09),
27662306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_10),
27762306a36Sopenharmony_ci	IMX_PINCTRL_PIN(IMXRT1050_PAD_SD_B1_11),
27862306a36Sopenharmony_ci};
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_cistatic const struct imx_pinctrl_soc_info imxrt1050_pinctrl_info = {
28162306a36Sopenharmony_ci	.pins = imxrt1050_pinctrl_pads,
28262306a36Sopenharmony_ci	.npins = ARRAY_SIZE(imxrt1050_pinctrl_pads),
28362306a36Sopenharmony_ci	.gpr_compatible = "fsl,imxrt1050-iomuxc-gpr",
28462306a36Sopenharmony_ci};
28562306a36Sopenharmony_ci
28662306a36Sopenharmony_cistatic const struct of_device_id imxrt1050_pinctrl_of_match[] = {
28762306a36Sopenharmony_ci	{ .compatible = "fsl,imxrt1050-iomuxc", .data = &imxrt1050_pinctrl_info, },
28862306a36Sopenharmony_ci	{ /* sentinel */ }
28962306a36Sopenharmony_ci};
29062306a36Sopenharmony_ci
29162306a36Sopenharmony_cistatic int imxrt1050_pinctrl_probe(struct platform_device *pdev)
29262306a36Sopenharmony_ci{
29362306a36Sopenharmony_ci	return imx_pinctrl_probe(pdev, &imxrt1050_pinctrl_info);
29462306a36Sopenharmony_ci}
29562306a36Sopenharmony_ci
29662306a36Sopenharmony_cistatic struct platform_driver imxrt1050_pinctrl_driver = {
29762306a36Sopenharmony_ci	.driver = {
29862306a36Sopenharmony_ci		.name = "imxrt1050-pinctrl",
29962306a36Sopenharmony_ci		.of_match_table = of_match_ptr(imxrt1050_pinctrl_of_match),
30062306a36Sopenharmony_ci		.suppress_bind_attrs = true,
30162306a36Sopenharmony_ci	},
30262306a36Sopenharmony_ci	.probe = imxrt1050_pinctrl_probe,
30362306a36Sopenharmony_ci};
30462306a36Sopenharmony_ci
30562306a36Sopenharmony_cistatic int __init imxrt1050_pinctrl_init(void)
30662306a36Sopenharmony_ci{
30762306a36Sopenharmony_ci	return platform_driver_register(&imxrt1050_pinctrl_driver);
30862306a36Sopenharmony_ci}
30962306a36Sopenharmony_ciarch_initcall(imxrt1050_pinctrl_init);
310