18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2017-2018 MediaTek Inc.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Author: Sean Wang <sean.wang@mediatek.com>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "pinctrl-moore.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define MT7622_PIN(_number, _name)					\
128c2ecf20Sopenharmony_ci	MTK_PIN(_number, _name, 1, _number, DRV_GRP0)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_mode_range[] = {
158c2ecf20Sopenharmony_ci	PIN_FIELD(0, 0, 0x320, 0x10, 16, 4),
168c2ecf20Sopenharmony_ci	PIN_FIELD(1, 4, 0x3a0, 0x10, 16, 4),
178c2ecf20Sopenharmony_ci	PIN_FIELD(5, 5, 0x320, 0x10, 0, 4),
188c2ecf20Sopenharmony_ci	PINS_FIELD(6, 7, 0x300, 0x10, 4, 4),
198c2ecf20Sopenharmony_ci	PIN_FIELD(8, 9, 0x350, 0x10, 20, 4),
208c2ecf20Sopenharmony_ci	PINS_FIELD(10, 13, 0x300, 0x10, 8, 4),
218c2ecf20Sopenharmony_ci	PIN_FIELD(14, 15, 0x320, 0x10, 4, 4),
228c2ecf20Sopenharmony_ci	PIN_FIELD(16, 17, 0x320, 0x10, 20, 4),
238c2ecf20Sopenharmony_ci	PIN_FIELD(18, 21, 0x310, 0x10, 16, 4),
248c2ecf20Sopenharmony_ci	PIN_FIELD(22, 22, 0x380, 0x10, 16, 4),
258c2ecf20Sopenharmony_ci	PINS_FIELD(23, 24, 0x300, 0x10, 24, 4),
268c2ecf20Sopenharmony_ci	PINS_FIELD(25, 36, 0x300, 0x10, 12, 4),
278c2ecf20Sopenharmony_ci	PINS_FIELD(37, 50, 0x300, 0x10, 20, 4),
288c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x330, 0x10, 4, 4),
298c2ecf20Sopenharmony_ci	PINS_FIELD(71, 72, 0x300, 0x10, 16, 4),
308c2ecf20Sopenharmony_ci	PIN_FIELD(73, 76, 0x310, 0x10, 0, 4),
318c2ecf20Sopenharmony_ci	PIN_FIELD(77, 77, 0x320, 0x10, 28, 4),
328c2ecf20Sopenharmony_ci	PIN_FIELD(78, 78, 0x320, 0x10, 12, 4),
338c2ecf20Sopenharmony_ci	PIN_FIELD(79, 82, 0x3a0, 0x10, 0, 4),
348c2ecf20Sopenharmony_ci	PIN_FIELD(83, 83, 0x350, 0x10, 28, 4),
358c2ecf20Sopenharmony_ci	PIN_FIELD(84, 84, 0x330, 0x10, 0, 4),
368c2ecf20Sopenharmony_ci	PIN_FIELD(85, 90, 0x360, 0x10, 4, 4),
378c2ecf20Sopenharmony_ci	PIN_FIELD(91, 94, 0x390, 0x10, 16, 4),
388c2ecf20Sopenharmony_ci	PIN_FIELD(95, 97, 0x380, 0x10, 20, 4),
398c2ecf20Sopenharmony_ci	PIN_FIELD(98, 101, 0x390, 0x10, 0, 4),
408c2ecf20Sopenharmony_ci	PIN_FIELD(102, 102, 0x360, 0x10, 0, 4),
418c2ecf20Sopenharmony_ci};
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_dir_range[] = {
448c2ecf20Sopenharmony_ci	PIN_FIELD(0, 102, 0x0, 0x10, 0, 1),
458c2ecf20Sopenharmony_ci};
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_di_range[] = {
488c2ecf20Sopenharmony_ci	PIN_FIELD(0, 102, 0x200, 0x10, 0, 1),
498c2ecf20Sopenharmony_ci};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_do_range[] = {
528c2ecf20Sopenharmony_ci	PIN_FIELD(0, 102, 0x100, 0x10, 0, 1),
538c2ecf20Sopenharmony_ci};
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_sr_range[] = {
568c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x910, 0x10, 0, 1),
578c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa10, 0x10, 0, 1),
588c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x810, 0x10, 0, 1),
598c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb10, 0x10, 0, 1),
608c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb10, 0x10, 4, 1),
618c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc10, 0x10, 0, 1),
628c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb10, 0x10, 18, 1),
638c2ecf20Sopenharmony_ci};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_smt_range[] = {
668c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x920, 0x10, 0, 1),
678c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa20, 0x10, 0, 1),
688c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x820, 0x10, 0, 1),
698c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb20, 0x10, 0, 1),
708c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb20, 0x10, 4, 1),
718c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc20, 0x10, 0, 1),
728c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb20, 0x10, 18, 1),
738c2ecf20Sopenharmony_ci};
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_pu_range[] = {
768c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x930, 0x10, 0, 1),
778c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa30, 0x10, 0, 1),
788c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x830, 0x10, 0, 1),
798c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb30, 0x10, 0, 1),
808c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb30, 0x10, 4, 1),
818c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc30, 0x10, 0, 1),
828c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb30, 0x10, 18, 1),
838c2ecf20Sopenharmony_ci};
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_pd_range[] = {
868c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x940, 0x10, 0, 1),
878c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa40, 0x10, 0, 1),
888c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x840, 0x10, 0, 1),
898c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb40, 0x10, 0, 1),
908c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb40, 0x10, 4, 1),
918c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc40, 0x10, 0, 1),
928c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb40, 0x10, 18, 1),
938c2ecf20Sopenharmony_ci};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_e4_range[] = {
968c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x960, 0x10, 0, 1),
978c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa60, 0x10, 0, 1),
988c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x860, 0x10, 0, 1),
998c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb60, 0x10, 0, 1),
1008c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb60, 0x10, 4, 1),
1018c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc60, 0x10, 0, 1),
1028c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb60, 0x10, 18, 1),
1038c2ecf20Sopenharmony_ci};
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_e8_range[] = {
1068c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x970, 0x10, 0, 1),
1078c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa70, 0x10, 0, 1),
1088c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x870, 0x10, 0, 1),
1098c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb70, 0x10, 0, 1),
1108c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb70, 0x10, 4, 1),
1118c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc70, 0x10, 0, 1),
1128c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb70, 0x10, 18, 1),
1138c2ecf20Sopenharmony_ci};
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_tdsel_range[] = {
1168c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x980, 0x4, 0, 4),
1178c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa80, 0x4, 0, 4),
1188c2ecf20Sopenharmony_ci	PIN_FIELD(51, 70, 0x880, 0x4, 0, 4),
1198c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb80, 0x4, 0, 4),
1208c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb80, 0x4, 16, 4),
1218c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc80, 0x4, 0, 4),
1228c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb88, 0x4, 8, 4),
1238c2ecf20Sopenharmony_ci};
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_cistatic const struct mtk_pin_field_calc mt7622_pin_rdsel_range[] = {
1268c2ecf20Sopenharmony_ci	PIN_FIELD(0, 31, 0x990, 0x4, 0, 6),
1278c2ecf20Sopenharmony_ci	PIN_FIELD(32, 50, 0xa90, 0x4, 0, 6),
1288c2ecf20Sopenharmony_ci	PIN_FIELD(51, 58, 0x890, 0x4, 0, 6),
1298c2ecf20Sopenharmony_ci	PIN_FIELD(59, 60, 0x894, 0x4, 28, 6),
1308c2ecf20Sopenharmony_ci	PIN_FIELD(61, 62, 0x894, 0x4, 16, 6),
1318c2ecf20Sopenharmony_ci	PIN_FIELD(63, 66, 0x898, 0x4, 8, 6),
1328c2ecf20Sopenharmony_ci	PIN_FIELD(67, 68, 0x89c, 0x4, 12, 6),
1338c2ecf20Sopenharmony_ci	PIN_FIELD(69, 70, 0x89c, 0x4, 0, 6),
1348c2ecf20Sopenharmony_ci	PIN_FIELD(71, 72, 0xb90, 0x4, 0, 6),
1358c2ecf20Sopenharmony_ci	PIN_FIELD(73, 86, 0xb90, 0x4, 24, 6),
1368c2ecf20Sopenharmony_ci	PIN_FIELD(87, 90, 0xc90, 0x4, 0, 6),
1378c2ecf20Sopenharmony_ci	PIN_FIELD(91, 102, 0xb9c, 0x4, 12, 6),
1388c2ecf20Sopenharmony_ci};
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_cistatic const struct mtk_pin_reg_calc mt7622_reg_cals[PINCTRL_PIN_REG_MAX] = {
1418c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_MODE] = MTK_RANGE(mt7622_pin_mode_range),
1428c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt7622_pin_dir_range),
1438c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_DI] = MTK_RANGE(mt7622_pin_di_range),
1448c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_DO] = MTK_RANGE(mt7622_pin_do_range),
1458c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_SR] = MTK_RANGE(mt7622_pin_sr_range),
1468c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_SMT] = MTK_RANGE(mt7622_pin_smt_range),
1478c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_PU] = MTK_RANGE(mt7622_pin_pu_range),
1488c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_PD] = MTK_RANGE(mt7622_pin_pd_range),
1498c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_E4] = MTK_RANGE(mt7622_pin_e4_range),
1508c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_E8] = MTK_RANGE(mt7622_pin_e8_range),
1518c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_TDSEL] = MTK_RANGE(mt7622_pin_tdsel_range),
1528c2ecf20Sopenharmony_ci	[PINCTRL_PIN_REG_RDSEL] = MTK_RANGE(mt7622_pin_rdsel_range),
1538c2ecf20Sopenharmony_ci};
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_cistatic const struct mtk_pin_desc mt7622_pins[] = {
1568c2ecf20Sopenharmony_ci	MT7622_PIN(0, "GPIO_A"),
1578c2ecf20Sopenharmony_ci	MT7622_PIN(1, "I2S1_IN"),
1588c2ecf20Sopenharmony_ci	MT7622_PIN(2, "I2S1_OUT"),
1598c2ecf20Sopenharmony_ci	MT7622_PIN(3, "I2S_BCLK"),
1608c2ecf20Sopenharmony_ci	MT7622_PIN(4, "I2S_WS"),
1618c2ecf20Sopenharmony_ci	MT7622_PIN(5, "I2S_MCLK"),
1628c2ecf20Sopenharmony_ci	MT7622_PIN(6, "TXD0"),
1638c2ecf20Sopenharmony_ci	MT7622_PIN(7, "RXD0"),
1648c2ecf20Sopenharmony_ci	MT7622_PIN(8, "SPI_WP"),
1658c2ecf20Sopenharmony_ci	MT7622_PIN(9, "SPI_HOLD"),
1668c2ecf20Sopenharmony_ci	MT7622_PIN(10, "SPI_CLK"),
1678c2ecf20Sopenharmony_ci	MT7622_PIN(11, "SPI_MOSI"),
1688c2ecf20Sopenharmony_ci	MT7622_PIN(12, "SPI_MISO"),
1698c2ecf20Sopenharmony_ci	MT7622_PIN(13, "SPI_CS"),
1708c2ecf20Sopenharmony_ci	MT7622_PIN(14, "I2C_SDA"),
1718c2ecf20Sopenharmony_ci	MT7622_PIN(15, "I2C_SCL"),
1728c2ecf20Sopenharmony_ci	MT7622_PIN(16, "I2S2_IN"),
1738c2ecf20Sopenharmony_ci	MT7622_PIN(17, "I2S3_IN"),
1748c2ecf20Sopenharmony_ci	MT7622_PIN(18, "I2S4_IN"),
1758c2ecf20Sopenharmony_ci	MT7622_PIN(19, "I2S2_OUT"),
1768c2ecf20Sopenharmony_ci	MT7622_PIN(20, "I2S3_OUT"),
1778c2ecf20Sopenharmony_ci	MT7622_PIN(21, "I2S4_OUT"),
1788c2ecf20Sopenharmony_ci	MT7622_PIN(22, "GPIO_B"),
1798c2ecf20Sopenharmony_ci	MT7622_PIN(23, "MDC"),
1808c2ecf20Sopenharmony_ci	MT7622_PIN(24, "MDIO"),
1818c2ecf20Sopenharmony_ci	MT7622_PIN(25, "G2_TXD0"),
1828c2ecf20Sopenharmony_ci	MT7622_PIN(26, "G2_TXD1"),
1838c2ecf20Sopenharmony_ci	MT7622_PIN(27, "G2_TXD2"),
1848c2ecf20Sopenharmony_ci	MT7622_PIN(28, "G2_TXD3"),
1858c2ecf20Sopenharmony_ci	MT7622_PIN(29, "G2_TXEN"),
1868c2ecf20Sopenharmony_ci	MT7622_PIN(30, "G2_TXC"),
1878c2ecf20Sopenharmony_ci	MT7622_PIN(31, "G2_RXD0"),
1888c2ecf20Sopenharmony_ci	MT7622_PIN(32, "G2_RXD1"),
1898c2ecf20Sopenharmony_ci	MT7622_PIN(33, "G2_RXD2"),
1908c2ecf20Sopenharmony_ci	MT7622_PIN(34, "G2_RXD3"),
1918c2ecf20Sopenharmony_ci	MT7622_PIN(35, "G2_RXDV"),
1928c2ecf20Sopenharmony_ci	MT7622_PIN(36, "G2_RXC"),
1938c2ecf20Sopenharmony_ci	MT7622_PIN(37, "NCEB"),
1948c2ecf20Sopenharmony_ci	MT7622_PIN(38, "NWEB"),
1958c2ecf20Sopenharmony_ci	MT7622_PIN(39, "NREB"),
1968c2ecf20Sopenharmony_ci	MT7622_PIN(40, "NDL4"),
1978c2ecf20Sopenharmony_ci	MT7622_PIN(41, "NDL5"),
1988c2ecf20Sopenharmony_ci	MT7622_PIN(42, "NDL6"),
1998c2ecf20Sopenharmony_ci	MT7622_PIN(43, "NDL7"),
2008c2ecf20Sopenharmony_ci	MT7622_PIN(44, "NRB"),
2018c2ecf20Sopenharmony_ci	MT7622_PIN(45, "NCLE"),
2028c2ecf20Sopenharmony_ci	MT7622_PIN(46, "NALE"),
2038c2ecf20Sopenharmony_ci	MT7622_PIN(47, "NDL0"),
2048c2ecf20Sopenharmony_ci	MT7622_PIN(48, "NDL1"),
2058c2ecf20Sopenharmony_ci	MT7622_PIN(49, "NDL2"),
2068c2ecf20Sopenharmony_ci	MT7622_PIN(50, "NDL3"),
2078c2ecf20Sopenharmony_ci	MT7622_PIN(51, "MDI_TP_P0"),
2088c2ecf20Sopenharmony_ci	MT7622_PIN(52, "MDI_TN_P0"),
2098c2ecf20Sopenharmony_ci	MT7622_PIN(53, "MDI_RP_P0"),
2108c2ecf20Sopenharmony_ci	MT7622_PIN(54, "MDI_RN_P0"),
2118c2ecf20Sopenharmony_ci	MT7622_PIN(55, "MDI_TP_P1"),
2128c2ecf20Sopenharmony_ci	MT7622_PIN(56, "MDI_TN_P1"),
2138c2ecf20Sopenharmony_ci	MT7622_PIN(57, "MDI_RP_P1"),
2148c2ecf20Sopenharmony_ci	MT7622_PIN(58, "MDI_RN_P1"),
2158c2ecf20Sopenharmony_ci	MT7622_PIN(59, "MDI_RP_P2"),
2168c2ecf20Sopenharmony_ci	MT7622_PIN(60, "MDI_RN_P2"),
2178c2ecf20Sopenharmony_ci	MT7622_PIN(61, "MDI_TP_P2"),
2188c2ecf20Sopenharmony_ci	MT7622_PIN(62, "MDI_TN_P2"),
2198c2ecf20Sopenharmony_ci	MT7622_PIN(63, "MDI_TP_P3"),
2208c2ecf20Sopenharmony_ci	MT7622_PIN(64, "MDI_TN_P3"),
2218c2ecf20Sopenharmony_ci	MT7622_PIN(65, "MDI_RP_P3"),
2228c2ecf20Sopenharmony_ci	MT7622_PIN(66, "MDI_RN_P3"),
2238c2ecf20Sopenharmony_ci	MT7622_PIN(67, "MDI_RP_P4"),
2248c2ecf20Sopenharmony_ci	MT7622_PIN(68, "MDI_RN_P4"),
2258c2ecf20Sopenharmony_ci	MT7622_PIN(69, "MDI_TP_P4"),
2268c2ecf20Sopenharmony_ci	MT7622_PIN(70, "MDI_TN_P4"),
2278c2ecf20Sopenharmony_ci	MT7622_PIN(71, "PMIC_SCL"),
2288c2ecf20Sopenharmony_ci	MT7622_PIN(72, "PMIC_SDA"),
2298c2ecf20Sopenharmony_ci	MT7622_PIN(73, "SPIC1_CLK"),
2308c2ecf20Sopenharmony_ci	MT7622_PIN(74, "SPIC1_MOSI"),
2318c2ecf20Sopenharmony_ci	MT7622_PIN(75, "SPIC1_MISO"),
2328c2ecf20Sopenharmony_ci	MT7622_PIN(76, "SPIC1_CS"),
2338c2ecf20Sopenharmony_ci	MT7622_PIN(77, "GPIO_D"),
2348c2ecf20Sopenharmony_ci	MT7622_PIN(78, "WATCHDOG"),
2358c2ecf20Sopenharmony_ci	MT7622_PIN(79, "RTS3_N"),
2368c2ecf20Sopenharmony_ci	MT7622_PIN(80, "CTS3_N"),
2378c2ecf20Sopenharmony_ci	MT7622_PIN(81, "TXD3"),
2388c2ecf20Sopenharmony_ci	MT7622_PIN(82, "RXD3"),
2398c2ecf20Sopenharmony_ci	MT7622_PIN(83, "PERST0_N"),
2408c2ecf20Sopenharmony_ci	MT7622_PIN(84, "PERST1_N"),
2418c2ecf20Sopenharmony_ci	MT7622_PIN(85, "WLED_N"),
2428c2ecf20Sopenharmony_ci	MT7622_PIN(86, "EPHY_LED0_N"),
2438c2ecf20Sopenharmony_ci	MT7622_PIN(87, "AUXIN0"),
2448c2ecf20Sopenharmony_ci	MT7622_PIN(88, "AUXIN1"),
2458c2ecf20Sopenharmony_ci	MT7622_PIN(89, "AUXIN2"),
2468c2ecf20Sopenharmony_ci	MT7622_PIN(90, "AUXIN3"),
2478c2ecf20Sopenharmony_ci	MT7622_PIN(91, "TXD4"),
2488c2ecf20Sopenharmony_ci	MT7622_PIN(92, "RXD4"),
2498c2ecf20Sopenharmony_ci	MT7622_PIN(93, "RTS4_N"),
2508c2ecf20Sopenharmony_ci	MT7622_PIN(94, "CTS4_N"),
2518c2ecf20Sopenharmony_ci	MT7622_PIN(95, "PWM1"),
2528c2ecf20Sopenharmony_ci	MT7622_PIN(96, "PWM2"),
2538c2ecf20Sopenharmony_ci	MT7622_PIN(97, "PWM3"),
2548c2ecf20Sopenharmony_ci	MT7622_PIN(98, "PWM4"),
2558c2ecf20Sopenharmony_ci	MT7622_PIN(99, "PWM5"),
2568c2ecf20Sopenharmony_ci	MT7622_PIN(100, "PWM6"),
2578c2ecf20Sopenharmony_ci	MT7622_PIN(101, "PWM7"),
2588c2ecf20Sopenharmony_ci	MT7622_PIN(102, "GPIO_E"),
2598c2ecf20Sopenharmony_ci};
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci/* List all groups consisting of these pins dedicated to the enablement of
2628c2ecf20Sopenharmony_ci * certain hardware block and the corresponding mode for all of the pins. The
2638c2ecf20Sopenharmony_ci * hardware probably has multiple combinations of these pinouts.
2648c2ecf20Sopenharmony_ci */
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci/* ANTSEL */
2678c2ecf20Sopenharmony_cistatic int mt7622_antsel0_pins[] = { 91, };
2688c2ecf20Sopenharmony_cistatic int mt7622_antsel0_funcs[] = { 5, };
2698c2ecf20Sopenharmony_cistatic int mt7622_antsel1_pins[] = { 92, };
2708c2ecf20Sopenharmony_cistatic int mt7622_antsel1_funcs[] = { 5, };
2718c2ecf20Sopenharmony_cistatic int mt7622_antsel2_pins[] = { 93, };
2728c2ecf20Sopenharmony_cistatic int mt7622_antsel2_funcs[] = { 5, };
2738c2ecf20Sopenharmony_cistatic int mt7622_antsel3_pins[] = { 94, };
2748c2ecf20Sopenharmony_cistatic int mt7622_antsel3_funcs[] = { 5, };
2758c2ecf20Sopenharmony_cistatic int mt7622_antsel4_pins[] = { 95, };
2768c2ecf20Sopenharmony_cistatic int mt7622_antsel4_funcs[] = { 5, };
2778c2ecf20Sopenharmony_cistatic int mt7622_antsel5_pins[] = { 96, };
2788c2ecf20Sopenharmony_cistatic int mt7622_antsel5_funcs[] = { 5, };
2798c2ecf20Sopenharmony_cistatic int mt7622_antsel6_pins[] = { 97, };
2808c2ecf20Sopenharmony_cistatic int mt7622_antsel6_funcs[] = { 5, };
2818c2ecf20Sopenharmony_cistatic int mt7622_antsel7_pins[] = { 98, };
2828c2ecf20Sopenharmony_cistatic int mt7622_antsel7_funcs[] = { 5, };
2838c2ecf20Sopenharmony_cistatic int mt7622_antsel8_pins[] = { 99, };
2848c2ecf20Sopenharmony_cistatic int mt7622_antsel8_funcs[] = { 5, };
2858c2ecf20Sopenharmony_cistatic int mt7622_antsel9_pins[] = { 100, };
2868c2ecf20Sopenharmony_cistatic int mt7622_antsel9_funcs[] = { 5, };
2878c2ecf20Sopenharmony_cistatic int mt7622_antsel10_pins[] = { 101, };
2888c2ecf20Sopenharmony_cistatic int mt7622_antsel10_funcs[] = { 5, };
2898c2ecf20Sopenharmony_cistatic int mt7622_antsel11_pins[] = { 102, };
2908c2ecf20Sopenharmony_cistatic int mt7622_antsel11_funcs[] = { 5, };
2918c2ecf20Sopenharmony_cistatic int mt7622_antsel12_pins[] = { 73, };
2928c2ecf20Sopenharmony_cistatic int mt7622_antsel12_funcs[] = { 5, };
2938c2ecf20Sopenharmony_cistatic int mt7622_antsel13_pins[] = { 74, };
2948c2ecf20Sopenharmony_cistatic int mt7622_antsel13_funcs[] = { 5, };
2958c2ecf20Sopenharmony_cistatic int mt7622_antsel14_pins[] = { 75, };
2968c2ecf20Sopenharmony_cistatic int mt7622_antsel14_funcs[] = { 5, };
2978c2ecf20Sopenharmony_cistatic int mt7622_antsel15_pins[] = { 76, };
2988c2ecf20Sopenharmony_cistatic int mt7622_antsel15_funcs[] = { 5, };
2998c2ecf20Sopenharmony_cistatic int mt7622_antsel16_pins[] = { 77, };
3008c2ecf20Sopenharmony_cistatic int mt7622_antsel16_funcs[] = { 5, };
3018c2ecf20Sopenharmony_cistatic int mt7622_antsel17_pins[] = { 22, };
3028c2ecf20Sopenharmony_cistatic int mt7622_antsel17_funcs[] = { 5, };
3038c2ecf20Sopenharmony_cistatic int mt7622_antsel18_pins[] = { 79, };
3048c2ecf20Sopenharmony_cistatic int mt7622_antsel18_funcs[] = { 5, };
3058c2ecf20Sopenharmony_cistatic int mt7622_antsel19_pins[] = { 80, };
3068c2ecf20Sopenharmony_cistatic int mt7622_antsel19_funcs[] = { 5, };
3078c2ecf20Sopenharmony_cistatic int mt7622_antsel20_pins[] = { 81, };
3088c2ecf20Sopenharmony_cistatic int mt7622_antsel20_funcs[] = { 5, };
3098c2ecf20Sopenharmony_cistatic int mt7622_antsel21_pins[] = { 82, };
3108c2ecf20Sopenharmony_cistatic int mt7622_antsel21_funcs[] = { 5, };
3118c2ecf20Sopenharmony_cistatic int mt7622_antsel22_pins[] = { 14, };
3128c2ecf20Sopenharmony_cistatic int mt7622_antsel22_funcs[] = { 5, };
3138c2ecf20Sopenharmony_cistatic int mt7622_antsel23_pins[] = { 15, };
3148c2ecf20Sopenharmony_cistatic int mt7622_antsel23_funcs[] = { 5, };
3158c2ecf20Sopenharmony_cistatic int mt7622_antsel24_pins[] = { 16, };
3168c2ecf20Sopenharmony_cistatic int mt7622_antsel24_funcs[] = { 5, };
3178c2ecf20Sopenharmony_cistatic int mt7622_antsel25_pins[] = { 17, };
3188c2ecf20Sopenharmony_cistatic int mt7622_antsel25_funcs[] = { 5, };
3198c2ecf20Sopenharmony_cistatic int mt7622_antsel26_pins[] = { 18, };
3208c2ecf20Sopenharmony_cistatic int mt7622_antsel26_funcs[] = { 5, };
3218c2ecf20Sopenharmony_cistatic int mt7622_antsel27_pins[] = { 19, };
3228c2ecf20Sopenharmony_cistatic int mt7622_antsel27_funcs[] = { 5, };
3238c2ecf20Sopenharmony_cistatic int mt7622_antsel28_pins[] = { 20, };
3248c2ecf20Sopenharmony_cistatic int mt7622_antsel28_funcs[] = { 5, };
3258c2ecf20Sopenharmony_cistatic int mt7622_antsel29_pins[] = { 21, };
3268c2ecf20Sopenharmony_cistatic int mt7622_antsel29_funcs[] = { 5, };
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ci/* EMMC */
3298c2ecf20Sopenharmony_cistatic int mt7622_emmc_pins[] = { 40, 41, 42, 43, 44, 45, 47, 48, 49, 50, };
3308c2ecf20Sopenharmony_cistatic int mt7622_emmc_funcs[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, };
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_cistatic int mt7622_emmc_rst_pins[] = { 37, };
3338c2ecf20Sopenharmony_cistatic int mt7622_emmc_rst_funcs[] = { 1, };
3348c2ecf20Sopenharmony_ci
3358c2ecf20Sopenharmony_ci/* LED for EPHY */
3368c2ecf20Sopenharmony_cistatic int mt7622_ephy_leds_pins[] = { 86, 91, 92, 93, 94, };
3378c2ecf20Sopenharmony_cistatic int mt7622_ephy_leds_funcs[] = { 0, 0, 0, 0, 0, };
3388c2ecf20Sopenharmony_cistatic int mt7622_ephy0_led_pins[] = { 86, };
3398c2ecf20Sopenharmony_cistatic int mt7622_ephy0_led_funcs[] = { 0, };
3408c2ecf20Sopenharmony_cistatic int mt7622_ephy1_led_pins[] = { 91, };
3418c2ecf20Sopenharmony_cistatic int mt7622_ephy1_led_funcs[] = { 2, };
3428c2ecf20Sopenharmony_cistatic int mt7622_ephy2_led_pins[] = { 92, };
3438c2ecf20Sopenharmony_cistatic int mt7622_ephy2_led_funcs[] = { 2, };
3448c2ecf20Sopenharmony_cistatic int mt7622_ephy3_led_pins[] = { 93, };
3458c2ecf20Sopenharmony_cistatic int mt7622_ephy3_led_funcs[] = { 2, };
3468c2ecf20Sopenharmony_cistatic int mt7622_ephy4_led_pins[] = { 94, };
3478c2ecf20Sopenharmony_cistatic int mt7622_ephy4_led_funcs[] = { 2, };
3488c2ecf20Sopenharmony_ci
3498c2ecf20Sopenharmony_ci/* Embedded Switch */
3508c2ecf20Sopenharmony_cistatic int mt7622_esw_pins[] = { 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
3518c2ecf20Sopenharmony_ci				 62, 63, 64, 65, 66, 67, 68, 69, 70, };
3528c2ecf20Sopenharmony_cistatic int mt7622_esw_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3538c2ecf20Sopenharmony_ci				  0, 0, 0, 0, 0, 0, 0, 0, 0, };
3548c2ecf20Sopenharmony_cistatic int mt7622_esw_p0_p1_pins[] = { 51, 52, 53, 54, 55, 56, 57, 58, };
3558c2ecf20Sopenharmony_cistatic int mt7622_esw_p0_p1_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
3568c2ecf20Sopenharmony_cistatic int mt7622_esw_p2_p3_p4_pins[] = { 59, 60, 61, 62, 63, 64, 65, 66, 67,
3578c2ecf20Sopenharmony_ci					  68, 69, 70, };
3588c2ecf20Sopenharmony_cistatic int mt7622_esw_p2_p3_p4_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0,
3598c2ecf20Sopenharmony_ci					   0, 0, 0, };
3608c2ecf20Sopenharmony_ci/* RGMII via ESW */
3618c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_esw_pins[] = { 59, 60, 61, 62, 63, 64, 65, 66,
3628c2ecf20Sopenharmony_ci					   67, 68, 69, 70, };
3638c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_esw_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3648c2ecf20Sopenharmony_ci					    0, };
3658c2ecf20Sopenharmony_ci
3668c2ecf20Sopenharmony_ci/* RGMII via GMAC1 */
3678c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_gmac1_pins[] = { 59, 60, 61, 62, 63, 64, 65, 66,
3688c2ecf20Sopenharmony_ci					     67, 68, 69, 70, };
3698c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_gmac1_funcs[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3708c2ecf20Sopenharmony_ci					      2, };
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci/* RGMII via GMAC2 */
3738c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_gmac2_pins[] = { 25, 26, 27, 28, 29, 30, 31, 32,
3748c2ecf20Sopenharmony_ci					     33, 34, 35, 36, };
3758c2ecf20Sopenharmony_cistatic int mt7622_rgmii_via_gmac2_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3768c2ecf20Sopenharmony_ci					      0, };
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci/* I2C */
3798c2ecf20Sopenharmony_cistatic int mt7622_i2c0_pins[] = { 14, 15, };
3808c2ecf20Sopenharmony_cistatic int mt7622_i2c0_funcs[] = { 0, 0, };
3818c2ecf20Sopenharmony_cistatic int mt7622_i2c1_0_pins[] = { 55, 56, };
3828c2ecf20Sopenharmony_cistatic int mt7622_i2c1_0_funcs[] = { 0, 0, };
3838c2ecf20Sopenharmony_cistatic int mt7622_i2c1_1_pins[] = { 73, 74, };
3848c2ecf20Sopenharmony_cistatic int mt7622_i2c1_1_funcs[] = { 3, 3, };
3858c2ecf20Sopenharmony_cistatic int mt7622_i2c1_2_pins[] = { 87, 88, };
3868c2ecf20Sopenharmony_cistatic int mt7622_i2c1_2_funcs[] = { 0, 0, };
3878c2ecf20Sopenharmony_cistatic int mt7622_i2c2_0_pins[] = { 57, 58, };
3888c2ecf20Sopenharmony_cistatic int mt7622_i2c2_0_funcs[] = { 0, 0, };
3898c2ecf20Sopenharmony_cistatic int mt7622_i2c2_1_pins[] = { 75, 76, };
3908c2ecf20Sopenharmony_cistatic int mt7622_i2c2_1_funcs[] = { 3, 3, };
3918c2ecf20Sopenharmony_cistatic int mt7622_i2c2_2_pins[] = { 89, 90, };
3928c2ecf20Sopenharmony_cistatic int mt7622_i2c2_2_funcs[] = { 0, 0, };
3938c2ecf20Sopenharmony_ci
3948c2ecf20Sopenharmony_ci/* I2S */
3958c2ecf20Sopenharmony_cistatic int mt7622_i2s_in_mclk_bclk_ws_pins[] = { 3, 4, 5, };
3968c2ecf20Sopenharmony_cistatic int mt7622_i2s_in_mclk_bclk_ws_funcs[] = { 3, 3, 0, };
3978c2ecf20Sopenharmony_cistatic int mt7622_i2s1_in_data_pins[] = { 1, };
3988c2ecf20Sopenharmony_cistatic int mt7622_i2s1_in_data_funcs[] = { 0, };
3998c2ecf20Sopenharmony_cistatic int mt7622_i2s2_in_data_pins[] = { 16, };
4008c2ecf20Sopenharmony_cistatic int mt7622_i2s2_in_data_funcs[] = { 0, };
4018c2ecf20Sopenharmony_cistatic int mt7622_i2s3_in_data_pins[] = { 17, };
4028c2ecf20Sopenharmony_cistatic int mt7622_i2s3_in_data_funcs[] = { 0, };
4038c2ecf20Sopenharmony_cistatic int mt7622_i2s4_in_data_pins[] = { 18, };
4048c2ecf20Sopenharmony_cistatic int mt7622_i2s4_in_data_funcs[] = { 0, };
4058c2ecf20Sopenharmony_cistatic int mt7622_i2s_out_mclk_bclk_ws_pins[] = { 3, 4, 5, };
4068c2ecf20Sopenharmony_cistatic int mt7622_i2s_out_mclk_bclk_ws_funcs[] = { 0, 0, 0, };
4078c2ecf20Sopenharmony_cistatic int mt7622_i2s1_out_data_pins[] = { 2, };
4088c2ecf20Sopenharmony_cistatic int mt7622_i2s1_out_data_funcs[] = { 0, };
4098c2ecf20Sopenharmony_cistatic int mt7622_i2s2_out_data_pins[] = { 19, };
4108c2ecf20Sopenharmony_cistatic int mt7622_i2s2_out_data_funcs[] = { 0, };
4118c2ecf20Sopenharmony_cistatic int mt7622_i2s3_out_data_pins[] = { 20, };
4128c2ecf20Sopenharmony_cistatic int mt7622_i2s3_out_data_funcs[] = { 0, };
4138c2ecf20Sopenharmony_cistatic int mt7622_i2s4_out_data_pins[] = { 21, };
4148c2ecf20Sopenharmony_cistatic int mt7622_i2s4_out_data_funcs[] = { 0, };
4158c2ecf20Sopenharmony_ci
4168c2ecf20Sopenharmony_ci/* IR */
4178c2ecf20Sopenharmony_cistatic int mt7622_ir_0_tx_pins[] = { 16, };
4188c2ecf20Sopenharmony_cistatic int mt7622_ir_0_tx_funcs[] = { 4, };
4198c2ecf20Sopenharmony_cistatic int mt7622_ir_1_tx_pins[] = { 59, };
4208c2ecf20Sopenharmony_cistatic int mt7622_ir_1_tx_funcs[] = { 5, };
4218c2ecf20Sopenharmony_cistatic int mt7622_ir_2_tx_pins[] = { 99, };
4228c2ecf20Sopenharmony_cistatic int mt7622_ir_2_tx_funcs[] = { 3, };
4238c2ecf20Sopenharmony_cistatic int mt7622_ir_0_rx_pins[] = { 17, };
4248c2ecf20Sopenharmony_cistatic int mt7622_ir_0_rx_funcs[] = { 4, };
4258c2ecf20Sopenharmony_cistatic int mt7622_ir_1_rx_pins[] = { 60, };
4268c2ecf20Sopenharmony_cistatic int mt7622_ir_1_rx_funcs[] = { 5, };
4278c2ecf20Sopenharmony_cistatic int mt7622_ir_2_rx_pins[] = { 100, };
4288c2ecf20Sopenharmony_cistatic int mt7622_ir_2_rx_funcs[] = { 3, };
4298c2ecf20Sopenharmony_ci
4308c2ecf20Sopenharmony_ci/* MDIO */
4318c2ecf20Sopenharmony_cistatic int mt7622_mdc_mdio_pins[] = { 23, 24, };
4328c2ecf20Sopenharmony_cistatic int mt7622_mdc_mdio_funcs[] = { 0, 0, };
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci/* PCIE */
4358c2ecf20Sopenharmony_cistatic int mt7622_pcie0_0_waken_pins[] = { 14, };
4368c2ecf20Sopenharmony_cistatic int mt7622_pcie0_0_waken_funcs[] = { 2, };
4378c2ecf20Sopenharmony_cistatic int mt7622_pcie0_0_clkreq_pins[] = { 15, };
4388c2ecf20Sopenharmony_cistatic int mt7622_pcie0_0_clkreq_funcs[] = { 2, };
4398c2ecf20Sopenharmony_cistatic int mt7622_pcie0_1_waken_pins[] = { 79, };
4408c2ecf20Sopenharmony_cistatic int mt7622_pcie0_1_waken_funcs[] = { 4, };
4418c2ecf20Sopenharmony_cistatic int mt7622_pcie0_1_clkreq_pins[] = { 80, };
4428c2ecf20Sopenharmony_cistatic int mt7622_pcie0_1_clkreq_funcs[] = { 4, };
4438c2ecf20Sopenharmony_cistatic int mt7622_pcie1_0_waken_pins[] = { 14, };
4448c2ecf20Sopenharmony_cistatic int mt7622_pcie1_0_waken_funcs[] = { 3, };
4458c2ecf20Sopenharmony_cistatic int mt7622_pcie1_0_clkreq_pins[] = { 15, };
4468c2ecf20Sopenharmony_cistatic int mt7622_pcie1_0_clkreq_funcs[] = { 3, };
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_cistatic int mt7622_pcie0_pad_perst_pins[] = { 83, };
4498c2ecf20Sopenharmony_cistatic int mt7622_pcie0_pad_perst_funcs[] = { 0, };
4508c2ecf20Sopenharmony_cistatic int mt7622_pcie1_pad_perst_pins[] = { 84, };
4518c2ecf20Sopenharmony_cistatic int mt7622_pcie1_pad_perst_funcs[] = { 0, };
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_ci/* PMIC bus */
4548c2ecf20Sopenharmony_cistatic int mt7622_pmic_bus_pins[] = { 71, 72, };
4558c2ecf20Sopenharmony_cistatic int mt7622_pmic_bus_funcs[] = { 0, 0, };
4568c2ecf20Sopenharmony_ci
4578c2ecf20Sopenharmony_ci/* Parallel NAND */
4588c2ecf20Sopenharmony_cistatic int mt7622_pnand_pins[] = { 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
4598c2ecf20Sopenharmony_ci				   48, 49, 50, };
4608c2ecf20Sopenharmony_cistatic int mt7622_pnand_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4618c2ecf20Sopenharmony_ci				    0, };
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci/* PWM */
4648c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_0_pins[] = { 51, };
4658c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_0_funcs[] = { 3, };
4668c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_1_pins[] = { 73, };
4678c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_1_funcs[] = { 4, };
4688c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_2_pins[] = { 95, };
4698c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch1_2_funcs[] = { 0, };
4708c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_0_pins[] = { 52, };
4718c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_0_funcs[] = { 3, };
4728c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_1_pins[] = { 74, };
4738c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_1_funcs[] = { 4, };
4748c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_2_pins[] = { 96, };
4758c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch2_2_funcs[] = { 0, };
4768c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_0_pins[] = { 53, };
4778c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_0_funcs[] = { 3, };
4788c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_1_pins[] = { 75, };
4798c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_1_funcs[] = { 4, };
4808c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_2_pins[] = { 97, };
4818c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch3_2_funcs[] = { 0, };
4828c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_0_pins[] = { 54, };
4838c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_0_funcs[] = { 3, };
4848c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_1_pins[] = { 67, };
4858c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_1_funcs[] = { 3, };
4868c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_2_pins[] = { 76, };
4878c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_2_funcs[] = { 4, };
4888c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_3_pins[] = { 98, };
4898c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch4_3_funcs[] = { 0, };
4908c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_0_pins[] = { 68, };
4918c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_0_funcs[] = { 3, };
4928c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_1_pins[] = { 77, };
4938c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_1_funcs[] = { 4, };
4948c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_2_pins[] = { 99, };
4958c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch5_2_funcs[] = { 0, };
4968c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_0_pins[] = { 69, };
4978c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_0_funcs[] = { 3, };
4988c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_1_pins[] = { 78, };
4998c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_1_funcs[] = { 4, };
5008c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_2_pins[] = { 81, };
5018c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_2_funcs[] = { 4, };
5028c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_3_pins[] = { 100, };
5038c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch6_3_funcs[] = { 0, };
5048c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_0_pins[] = { 70, };
5058c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_0_funcs[] = { 3, };
5068c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_1_pins[] = { 82, };
5078c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_1_funcs[] = { 4, };
5088c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_2_pins[] = { 101, };
5098c2ecf20Sopenharmony_cistatic int mt7622_pwm_ch7_2_funcs[] = { 0, };
5108c2ecf20Sopenharmony_ci
5118c2ecf20Sopenharmony_ci/* SD */
5128c2ecf20Sopenharmony_cistatic int mt7622_sd_0_pins[] = { 16, 17, 18, 19, 20, 21, };
5138c2ecf20Sopenharmony_cistatic int mt7622_sd_0_funcs[] = { 2, 2, 2, 2, 2, 2, };
5148c2ecf20Sopenharmony_cistatic int mt7622_sd_1_pins[] = { 25, 26, 27, 28, 29, 30, };
5158c2ecf20Sopenharmony_cistatic int mt7622_sd_1_funcs[] = { 2, 2, 2, 2, 2, 2, };
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_ci/* Serial NAND */
5188c2ecf20Sopenharmony_cistatic int mt7622_snfi_pins[] = { 8, 9, 10, 11, 12, 13, };
5198c2ecf20Sopenharmony_cistatic int mt7622_snfi_funcs[] = { 2, 2, 2, 2, 2, 2, };
5208c2ecf20Sopenharmony_ci
5218c2ecf20Sopenharmony_ci/* SPI NOR */
5228c2ecf20Sopenharmony_cistatic int mt7622_spi_pins[] = { 8, 9, 10, 11, 12, 13 };
5238c2ecf20Sopenharmony_cistatic int mt7622_spi_funcs[] = { 0, 0, 0, 0, 0, 0, };
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_ci/* SPIC */
5268c2ecf20Sopenharmony_cistatic int mt7622_spic0_0_pins[] = { 63, 64, 65, 66, };
5278c2ecf20Sopenharmony_cistatic int mt7622_spic0_0_funcs[] = { 4, 4, 4, 4, };
5288c2ecf20Sopenharmony_cistatic int mt7622_spic0_1_pins[] = { 79, 80, 81, 82, };
5298c2ecf20Sopenharmony_cistatic int mt7622_spic0_1_funcs[] = { 3, 3, 3, 3, };
5308c2ecf20Sopenharmony_cistatic int mt7622_spic1_0_pins[] = { 67, 68, 69, 70, };
5318c2ecf20Sopenharmony_cistatic int mt7622_spic1_0_funcs[] = { 4, 4, 4, 4, };
5328c2ecf20Sopenharmony_cistatic int mt7622_spic1_1_pins[] = { 73, 74, 75, 76, };
5338c2ecf20Sopenharmony_cistatic int mt7622_spic1_1_funcs[] = { 0, 0, 0, 0, };
5348c2ecf20Sopenharmony_cistatic int mt7622_spic2_0_pins[] = { 10, 11, 12, 13, };
5358c2ecf20Sopenharmony_cistatic int mt7622_spic2_0_funcs[] = { 0, 0, 0, 0, };
5368c2ecf20Sopenharmony_cistatic int mt7622_spic2_0_wp_hold_pins[] = { 8, 9, };
5378c2ecf20Sopenharmony_cistatic int mt7622_spic2_0_wp_hold_funcs[] = { 0, 0, };
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci/* TDM */
5408c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_out_mclk_bclk_ws_pins[] = { 8, 9, 10, };
5418c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_out_mclk_bclk_ws_funcs[] = { 3, 3, 3, };
5428c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_in_mclk_bclk_ws_pins[] = { 11, 12, 13, };
5438c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_in_mclk_bclk_ws_funcs[] = { 3, 3, 3, };
5448c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_out_data_pins[] = { 20, };
5458c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_out_data_funcs[] = { 3, };
5468c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_in_data_pins[] = { 21, };
5478c2ecf20Sopenharmony_cistatic int mt7622_tdm_0_in_data_funcs[] = { 3, };
5488c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_out_mclk_bclk_ws_pins[] = { 57, 58, 59, };
5498c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_out_mclk_bclk_ws_funcs[] = { 3, 3, 3, };
5508c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_in_mclk_bclk_ws_pins[] = { 60, 61, 62, };
5518c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_in_mclk_bclk_ws_funcs[] = { 3, 3, 3, };
5528c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_out_data_pins[] = { 55, };
5538c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_out_data_funcs[] = { 3, };
5548c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_in_data_pins[] = { 56, };
5558c2ecf20Sopenharmony_cistatic int mt7622_tdm_1_in_data_funcs[] = { 3, };
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_ci/* UART */
5588c2ecf20Sopenharmony_cistatic int mt7622_uart0_0_tx_rx_pins[] = { 6, 7, };
5598c2ecf20Sopenharmony_cistatic int mt7622_uart0_0_tx_rx_funcs[] = { 0, 0, };
5608c2ecf20Sopenharmony_cistatic int mt7622_uart1_0_tx_rx_pins[] = { 55, 56, };
5618c2ecf20Sopenharmony_cistatic int mt7622_uart1_0_tx_rx_funcs[] = { 2, 2, };
5628c2ecf20Sopenharmony_cistatic int mt7622_uart1_0_rts_cts_pins[] = { 57, 58, };
5638c2ecf20Sopenharmony_cistatic int mt7622_uart1_0_rts_cts_funcs[] = { 2, 2, };
5648c2ecf20Sopenharmony_cistatic int mt7622_uart1_1_tx_rx_pins[] = { 73, 74, };
5658c2ecf20Sopenharmony_cistatic int mt7622_uart1_1_tx_rx_funcs[] = { 2, 2, };
5668c2ecf20Sopenharmony_cistatic int mt7622_uart1_1_rts_cts_pins[] = { 75, 76, };
5678c2ecf20Sopenharmony_cistatic int mt7622_uart1_1_rts_cts_funcs[] = { 2, 2, };
5688c2ecf20Sopenharmony_cistatic int mt7622_uart2_0_tx_rx_pins[] = { 3, 4, };
5698c2ecf20Sopenharmony_cistatic int mt7622_uart2_0_tx_rx_funcs[] = { 2, 2, };
5708c2ecf20Sopenharmony_cistatic int mt7622_uart2_0_rts_cts_pins[] = { 1, 2, };
5718c2ecf20Sopenharmony_cistatic int mt7622_uart2_0_rts_cts_funcs[] = { 2, 2, };
5728c2ecf20Sopenharmony_cistatic int mt7622_uart2_1_tx_rx_pins[] = { 51, 52, };
5738c2ecf20Sopenharmony_cistatic int mt7622_uart2_1_tx_rx_funcs[] = { 0, 0, };
5748c2ecf20Sopenharmony_cistatic int mt7622_uart2_1_rts_cts_pins[] = { 53, 54, };
5758c2ecf20Sopenharmony_cistatic int mt7622_uart2_1_rts_cts_funcs[] = { 0, 0, };
5768c2ecf20Sopenharmony_cistatic int mt7622_uart2_2_tx_rx_pins[] = { 59, 60, };
5778c2ecf20Sopenharmony_cistatic int mt7622_uart2_2_tx_rx_funcs[] = { 4, 4, };
5788c2ecf20Sopenharmony_cistatic int mt7622_uart2_2_rts_cts_pins[] = { 61, 62, };
5798c2ecf20Sopenharmony_cistatic int mt7622_uart2_2_rts_cts_funcs[] = { 4, 4, };
5808c2ecf20Sopenharmony_cistatic int mt7622_uart2_3_tx_rx_pins[] = { 95, 96, };
5818c2ecf20Sopenharmony_cistatic int mt7622_uart2_3_tx_rx_funcs[] = { 3, 3, };
5828c2ecf20Sopenharmony_cistatic int mt7622_uart3_0_tx_rx_pins[] = { 57, 58, };
5838c2ecf20Sopenharmony_cistatic int mt7622_uart3_0_tx_rx_funcs[] = { 5, 5, };
5848c2ecf20Sopenharmony_cistatic int mt7622_uart3_1_tx_rx_pins[] = { 81, 82, };
5858c2ecf20Sopenharmony_cistatic int mt7622_uart3_1_tx_rx_funcs[] = { 0, 0, };
5868c2ecf20Sopenharmony_cistatic int mt7622_uart3_1_rts_cts_pins[] = { 79, 80, };
5878c2ecf20Sopenharmony_cistatic int mt7622_uart3_1_rts_cts_funcs[] = { 0, 0, };
5888c2ecf20Sopenharmony_cistatic int mt7622_uart4_0_tx_rx_pins[] = { 61, 62, };
5898c2ecf20Sopenharmony_cistatic int mt7622_uart4_0_tx_rx_funcs[] = { 5, 5, };
5908c2ecf20Sopenharmony_cistatic int mt7622_uart4_1_tx_rx_pins[] = { 91, 92, };
5918c2ecf20Sopenharmony_cistatic int mt7622_uart4_1_tx_rx_funcs[] = { 0, 0, };
5928c2ecf20Sopenharmony_cistatic int mt7622_uart4_1_rts_cts_pins[] = { 93, 94 };
5938c2ecf20Sopenharmony_cistatic int mt7622_uart4_1_rts_cts_funcs[] = { 0, 0, };
5948c2ecf20Sopenharmony_cistatic int mt7622_uart4_2_tx_rx_pins[] = { 97, 98, };
5958c2ecf20Sopenharmony_cistatic int mt7622_uart4_2_tx_rx_funcs[] = { 2, 2, };
5968c2ecf20Sopenharmony_cistatic int mt7622_uart4_2_rts_cts_pins[] = { 95, 96 };
5978c2ecf20Sopenharmony_cistatic int mt7622_uart4_2_rts_cts_funcs[] = { 2, 2, };
5988c2ecf20Sopenharmony_ci
5998c2ecf20Sopenharmony_ci/* Watchdog */
6008c2ecf20Sopenharmony_cistatic int mt7622_watchdog_pins[] = { 78, };
6018c2ecf20Sopenharmony_cistatic int mt7622_watchdog_funcs[] = { 0, };
6028c2ecf20Sopenharmony_ci
6038c2ecf20Sopenharmony_ci/* WLAN LED */
6048c2ecf20Sopenharmony_cistatic int mt7622_wled_pins[] = { 85, };
6058c2ecf20Sopenharmony_cistatic int mt7622_wled_funcs[] = { 0, };
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_cistatic const struct group_desc mt7622_groups[] = {
6088c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel0", mt7622_antsel0),
6098c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel1", mt7622_antsel1),
6108c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel2", mt7622_antsel2),
6118c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel3", mt7622_antsel3),
6128c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel4", mt7622_antsel4),
6138c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel5", mt7622_antsel5),
6148c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel6", mt7622_antsel6),
6158c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel7", mt7622_antsel7),
6168c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel8", mt7622_antsel8),
6178c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel9", mt7622_antsel9),
6188c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel10", mt7622_antsel10),
6198c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel11", mt7622_antsel11),
6208c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel12", mt7622_antsel12),
6218c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel13", mt7622_antsel13),
6228c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel14", mt7622_antsel14),
6238c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel15", mt7622_antsel15),
6248c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel16", mt7622_antsel16),
6258c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel17", mt7622_antsel17),
6268c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel18", mt7622_antsel18),
6278c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel19", mt7622_antsel19),
6288c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel20", mt7622_antsel20),
6298c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel21", mt7622_antsel21),
6308c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel22", mt7622_antsel22),
6318c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel23", mt7622_antsel23),
6328c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel24", mt7622_antsel24),
6338c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel25", mt7622_antsel25),
6348c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel26", mt7622_antsel26),
6358c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel27", mt7622_antsel27),
6368c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel28", mt7622_antsel28),
6378c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("antsel29", mt7622_antsel29),
6388c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("emmc", mt7622_emmc),
6398c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("emmc_rst", mt7622_emmc_rst),
6408c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy_leds", mt7622_ephy_leds),
6418c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy0_led", mt7622_ephy0_led),
6428c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy1_led", mt7622_ephy1_led),
6438c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy2_led", mt7622_ephy2_led),
6448c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy3_led", mt7622_ephy3_led),
6458c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ephy4_led", mt7622_ephy4_led),
6468c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("esw", mt7622_esw),
6478c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("esw_p0_p1", mt7622_esw_p0_p1),
6488c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("esw_p2_p3_p4", mt7622_esw_p2_p3_p4),
6498c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("rgmii_via_esw", mt7622_rgmii_via_esw),
6508c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("rgmii_via_gmac1", mt7622_rgmii_via_gmac1),
6518c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("rgmii_via_gmac2", mt7622_rgmii_via_gmac2),
6528c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c0", mt7622_i2c0),
6538c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c1_0", mt7622_i2c1_0),
6548c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c1_1", mt7622_i2c1_1),
6558c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c1_2", mt7622_i2c1_2),
6568c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c2_0", mt7622_i2c2_0),
6578c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c2_1", mt7622_i2c2_1),
6588c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2c2_2", mt7622_i2c2_2),
6598c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s_out_mclk_bclk_ws", mt7622_i2s_out_mclk_bclk_ws),
6608c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s_in_mclk_bclk_ws", mt7622_i2s_in_mclk_bclk_ws),
6618c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s1_in_data", mt7622_i2s1_in_data),
6628c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s2_in_data", mt7622_i2s2_in_data),
6638c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s3_in_data", mt7622_i2s3_in_data),
6648c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s4_in_data", mt7622_i2s4_in_data),
6658c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s1_out_data", mt7622_i2s1_out_data),
6668c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s2_out_data", mt7622_i2s2_out_data),
6678c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s3_out_data", mt7622_i2s3_out_data),
6688c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("i2s4_out_data", mt7622_i2s4_out_data),
6698c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_0_tx", mt7622_ir_0_tx),
6708c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_1_tx", mt7622_ir_1_tx),
6718c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_2_tx", mt7622_ir_2_tx),
6728c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_0_rx", mt7622_ir_0_rx),
6738c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_1_rx", mt7622_ir_1_rx),
6748c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("ir_2_rx", mt7622_ir_2_rx),
6758c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("mdc_mdio", mt7622_mdc_mdio),
6768c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie0_0_waken", mt7622_pcie0_0_waken),
6778c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie0_0_clkreq", mt7622_pcie0_0_clkreq),
6788c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie0_1_waken", mt7622_pcie0_1_waken),
6798c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie0_1_clkreq", mt7622_pcie0_1_clkreq),
6808c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie1_0_waken", mt7622_pcie1_0_waken),
6818c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie1_0_clkreq", mt7622_pcie1_0_clkreq),
6828c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie0_pad_perst", mt7622_pcie0_pad_perst),
6838c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pcie1_pad_perst", mt7622_pcie1_pad_perst),
6848c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("par_nand", mt7622_pnand),
6858c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pmic_bus", mt7622_pmic_bus),
6868c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch1_0", mt7622_pwm_ch1_0),
6878c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch1_1", mt7622_pwm_ch1_1),
6888c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch1_2", mt7622_pwm_ch1_2),
6898c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch2_0", mt7622_pwm_ch2_0),
6908c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch2_1", mt7622_pwm_ch2_1),
6918c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch2_2", mt7622_pwm_ch2_2),
6928c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch3_0", mt7622_pwm_ch3_0),
6938c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch3_1", mt7622_pwm_ch3_1),
6948c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch3_2", mt7622_pwm_ch3_2),
6958c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch4_0", mt7622_pwm_ch4_0),
6968c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch4_1", mt7622_pwm_ch4_1),
6978c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch4_2", mt7622_pwm_ch4_2),
6988c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch4_3", mt7622_pwm_ch4_3),
6998c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch5_0", mt7622_pwm_ch5_0),
7008c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch5_1", mt7622_pwm_ch5_1),
7018c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch5_2", mt7622_pwm_ch5_2),
7028c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch6_0", mt7622_pwm_ch6_0),
7038c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch6_1", mt7622_pwm_ch6_1),
7048c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch6_2", mt7622_pwm_ch6_2),
7058c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch6_3", mt7622_pwm_ch6_3),
7068c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch7_0", mt7622_pwm_ch7_0),
7078c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch7_1", mt7622_pwm_ch7_1),
7088c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("pwm_ch7_2", mt7622_pwm_ch7_2),
7098c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("sd_0", mt7622_sd_0),
7108c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("sd_1", mt7622_sd_1),
7118c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("snfi", mt7622_snfi),
7128c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spi_nor", mt7622_spi),
7138c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic0_0", mt7622_spic0_0),
7148c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic0_1", mt7622_spic0_1),
7158c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic1_0", mt7622_spic1_0),
7168c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic1_1", mt7622_spic1_1),
7178c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic2_0", mt7622_spic2_0),
7188c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("spic2_0_wp_hold", mt7622_spic2_0_wp_hold),
7198c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_0_out_mclk_bclk_ws",
7208c2ecf20Sopenharmony_ci			  mt7622_tdm_0_out_mclk_bclk_ws),
7218c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_0_in_mclk_bclk_ws",
7228c2ecf20Sopenharmony_ci			  mt7622_tdm_0_in_mclk_bclk_ws),
7238c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_0_out_data",  mt7622_tdm_0_out_data),
7248c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_0_in_data", mt7622_tdm_0_in_data),
7258c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_1_out_mclk_bclk_ws",
7268c2ecf20Sopenharmony_ci			  mt7622_tdm_1_out_mclk_bclk_ws),
7278c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_1_in_mclk_bclk_ws",
7288c2ecf20Sopenharmony_ci			  mt7622_tdm_1_in_mclk_bclk_ws),
7298c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_1_out_data",  mt7622_tdm_1_out_data),
7308c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("tdm_1_in_data", mt7622_tdm_1_in_data),
7318c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart0_0_tx_rx", mt7622_uart0_0_tx_rx),
7328c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart1_0_tx_rx", mt7622_uart1_0_tx_rx),
7338c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart1_0_rts_cts", mt7622_uart1_0_rts_cts),
7348c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart1_1_tx_rx", mt7622_uart1_1_tx_rx),
7358c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart1_1_rts_cts", mt7622_uart1_1_rts_cts),
7368c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_0_tx_rx", mt7622_uart2_0_tx_rx),
7378c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_0_rts_cts", mt7622_uart2_0_rts_cts),
7388c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_1_tx_rx", mt7622_uart2_1_tx_rx),
7398c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_1_rts_cts", mt7622_uart2_1_rts_cts),
7408c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_2_tx_rx", mt7622_uart2_2_tx_rx),
7418c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_2_rts_cts", mt7622_uart2_2_rts_cts),
7428c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart2_3_tx_rx", mt7622_uart2_3_tx_rx),
7438c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart3_0_tx_rx", mt7622_uart3_0_tx_rx),
7448c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart3_1_tx_rx", mt7622_uart3_1_tx_rx),
7458c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart3_1_rts_cts", mt7622_uart3_1_rts_cts),
7468c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart4_0_tx_rx", mt7622_uart4_0_tx_rx),
7478c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart4_1_tx_rx", mt7622_uart4_1_tx_rx),
7488c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart4_1_rts_cts", mt7622_uart4_1_rts_cts),
7498c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart4_2_tx_rx", mt7622_uart4_2_tx_rx),
7508c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("uart4_2_rts_cts", mt7622_uart4_2_rts_cts),
7518c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("watchdog", mt7622_watchdog),
7528c2ecf20Sopenharmony_ci	PINCTRL_PIN_GROUP("wled", mt7622_wled),
7538c2ecf20Sopenharmony_ci};
7548c2ecf20Sopenharmony_ci
7558c2ecf20Sopenharmony_ci/* Joint those groups owning the same capability in user point of view which
7568c2ecf20Sopenharmony_ci * allows that people tend to use through the device tree.
7578c2ecf20Sopenharmony_ci */
7588c2ecf20Sopenharmony_cistatic const char *mt7622_antsel_groups[] = { "antsel0", "antsel1", "antsel2",
7598c2ecf20Sopenharmony_ci					      "antsel3", "antsel4", "antsel5",
7608c2ecf20Sopenharmony_ci					      "antsel6", "antsel7", "antsel8",
7618c2ecf20Sopenharmony_ci					      "antsel9", "antsel10", "antsel11",
7628c2ecf20Sopenharmony_ci					      "antsel12", "antsel13", "antsel14",
7638c2ecf20Sopenharmony_ci					      "antsel15", "antsel16", "antsel17",
7648c2ecf20Sopenharmony_ci					      "antsel18", "antsel19", "antsel20",
7658c2ecf20Sopenharmony_ci					      "antsel21", "antsel22", "antsel23",
7668c2ecf20Sopenharmony_ci					      "antsel24", "antsel25", "antsel26",
7678c2ecf20Sopenharmony_ci					      "antsel27", "antsel28", "antsel29",};
7688c2ecf20Sopenharmony_cistatic const char *mt7622_emmc_groups[] = { "emmc", "emmc_rst", };
7698c2ecf20Sopenharmony_cistatic const char *mt7622_ethernet_groups[] = { "esw", "esw_p0_p1",
7708c2ecf20Sopenharmony_ci						"esw_p2_p3_p4", "mdc_mdio",
7718c2ecf20Sopenharmony_ci						"rgmii_via_gmac1",
7728c2ecf20Sopenharmony_ci						"rgmii_via_gmac2",
7738c2ecf20Sopenharmony_ci						"rgmii_via_esw", };
7748c2ecf20Sopenharmony_cistatic const char *mt7622_i2c_groups[] = { "i2c0", "i2c1_0", "i2c1_1",
7758c2ecf20Sopenharmony_ci					   "i2c1_2", "i2c2_0", "i2c2_1",
7768c2ecf20Sopenharmony_ci					   "i2c2_2", };
7778c2ecf20Sopenharmony_cistatic const char *mt7622_i2s_groups[] = { "i2s_out_mclk_bclk_ws",
7788c2ecf20Sopenharmony_ci					   "i2s_in_mclk_bclk_ws",
7798c2ecf20Sopenharmony_ci					   "i2s1_in_data", "i2s2_in_data",
7808c2ecf20Sopenharmony_ci					   "i2s3_in_data", "i2s4_in_data",
7818c2ecf20Sopenharmony_ci					   "i2s1_out_data", "i2s2_out_data",
7828c2ecf20Sopenharmony_ci					   "i2s3_out_data", "i2s4_out_data", };
7838c2ecf20Sopenharmony_cistatic const char *mt7622_ir_groups[] = { "ir_0_tx", "ir_1_tx", "ir_2_tx",
7848c2ecf20Sopenharmony_ci					  "ir_0_rx", "ir_1_rx", "ir_2_rx"};
7858c2ecf20Sopenharmony_cistatic const char *mt7622_led_groups[] = { "ephy_leds", "ephy0_led",
7868c2ecf20Sopenharmony_ci					   "ephy1_led", "ephy2_led",
7878c2ecf20Sopenharmony_ci					   "ephy3_led", "ephy4_led",
7888c2ecf20Sopenharmony_ci					   "wled", };
7898c2ecf20Sopenharmony_cistatic const char *mt7622_flash_groups[] = { "par_nand", "snfi", "spi_nor"};
7908c2ecf20Sopenharmony_cistatic const char *mt7622_pcie_groups[] = { "pcie0_0_waken", "pcie0_0_clkreq",
7918c2ecf20Sopenharmony_ci					    "pcie0_1_waken", "pcie0_1_clkreq",
7928c2ecf20Sopenharmony_ci					    "pcie1_0_waken", "pcie1_0_clkreq",
7938c2ecf20Sopenharmony_ci					    "pcie0_pad_perst",
7948c2ecf20Sopenharmony_ci					    "pcie1_pad_perst", };
7958c2ecf20Sopenharmony_cistatic const char *mt7622_pmic_bus_groups[] = { "pmic_bus", };
7968c2ecf20Sopenharmony_cistatic const char *mt7622_pwm_groups[] = { "pwm_ch1_0", "pwm_ch1_1",
7978c2ecf20Sopenharmony_ci					   "pwm_ch1_2", "pwm_ch2_0",
7988c2ecf20Sopenharmony_ci					   "pwm_ch2_1", "pwm_ch2_2",
7998c2ecf20Sopenharmony_ci					   "pwm_ch3_0", "pwm_ch3_1",
8008c2ecf20Sopenharmony_ci					   "pwm_ch3_2", "pwm_ch4_0",
8018c2ecf20Sopenharmony_ci					   "pwm_ch4_1", "pwm_ch4_2",
8028c2ecf20Sopenharmony_ci					   "pwm_ch4_3", "pwm_ch5_0",
8038c2ecf20Sopenharmony_ci					   "pwm_ch5_1", "pwm_ch5_2",
8048c2ecf20Sopenharmony_ci					   "pwm_ch6_0", "pwm_ch6_1",
8058c2ecf20Sopenharmony_ci					   "pwm_ch6_2", "pwm_ch6_3",
8068c2ecf20Sopenharmony_ci					   "pwm_ch7_0", "pwm_ch7_1",
8078c2ecf20Sopenharmony_ci					   "pwm_ch7_2", };
8088c2ecf20Sopenharmony_cistatic const char *mt7622_sd_groups[] = { "sd_0", "sd_1", };
8098c2ecf20Sopenharmony_cistatic const char *mt7622_spic_groups[] = { "spic0_0", "spic0_1", "spic1_0",
8108c2ecf20Sopenharmony_ci					    "spic1_1", "spic2_0",
8118c2ecf20Sopenharmony_ci					    "spic2_0_wp_hold", };
8128c2ecf20Sopenharmony_cistatic const char *mt7622_tdm_groups[] = { "tdm_0_out_mclk_bclk_ws",
8138c2ecf20Sopenharmony_ci					   "tdm_0_in_mclk_bclk_ws",
8148c2ecf20Sopenharmony_ci					   "tdm_0_out_data",
8158c2ecf20Sopenharmony_ci					   "tdm_0_in_data",
8168c2ecf20Sopenharmony_ci					   "tdm_1_out_mclk_bclk_ws",
8178c2ecf20Sopenharmony_ci					   "tdm_1_in_mclk_bclk_ws",
8188c2ecf20Sopenharmony_ci					   "tdm_1_out_data",
8198c2ecf20Sopenharmony_ci					   "tdm_1_in_data", };
8208c2ecf20Sopenharmony_ci
8218c2ecf20Sopenharmony_cistatic const char *mt7622_uart_groups[] = { "uart0_0_tx_rx",
8228c2ecf20Sopenharmony_ci					    "uart1_0_tx_rx", "uart1_0_rts_cts",
8238c2ecf20Sopenharmony_ci					    "uart1_1_tx_rx", "uart1_1_rts_cts",
8248c2ecf20Sopenharmony_ci					    "uart2_0_tx_rx", "uart2_0_rts_cts",
8258c2ecf20Sopenharmony_ci					    "uart2_1_tx_rx", "uart2_1_rts_cts",
8268c2ecf20Sopenharmony_ci					    "uart2_2_tx_rx", "uart2_2_rts_cts",
8278c2ecf20Sopenharmony_ci					    "uart2_3_tx_rx",
8288c2ecf20Sopenharmony_ci					    "uart3_0_tx_rx",
8298c2ecf20Sopenharmony_ci					    "uart3_1_tx_rx", "uart3_1_rts_cts",
8308c2ecf20Sopenharmony_ci					    "uart4_0_tx_rx",
8318c2ecf20Sopenharmony_ci					    "uart4_1_tx_rx", "uart4_1_rts_cts",
8328c2ecf20Sopenharmony_ci					    "uart4_2_tx_rx",
8338c2ecf20Sopenharmony_ci					    "uart4_2_rts_cts",};
8348c2ecf20Sopenharmony_cistatic const char *mt7622_wdt_groups[] = { "watchdog", };
8358c2ecf20Sopenharmony_ci
8368c2ecf20Sopenharmony_cistatic const struct function_desc mt7622_functions[] = {
8378c2ecf20Sopenharmony_ci	{"antsel", mt7622_antsel_groups, ARRAY_SIZE(mt7622_antsel_groups)},
8388c2ecf20Sopenharmony_ci	{"emmc", mt7622_emmc_groups, ARRAY_SIZE(mt7622_emmc_groups)},
8398c2ecf20Sopenharmony_ci	{"eth",	mt7622_ethernet_groups, ARRAY_SIZE(mt7622_ethernet_groups)},
8408c2ecf20Sopenharmony_ci	{"i2c", mt7622_i2c_groups, ARRAY_SIZE(mt7622_i2c_groups)},
8418c2ecf20Sopenharmony_ci	{"i2s",	mt7622_i2s_groups, ARRAY_SIZE(mt7622_i2s_groups)},
8428c2ecf20Sopenharmony_ci	{"ir", mt7622_ir_groups, ARRAY_SIZE(mt7622_ir_groups)},
8438c2ecf20Sopenharmony_ci	{"led",	mt7622_led_groups, ARRAY_SIZE(mt7622_led_groups)},
8448c2ecf20Sopenharmony_ci	{"flash", mt7622_flash_groups, ARRAY_SIZE(mt7622_flash_groups)},
8458c2ecf20Sopenharmony_ci	{"pcie", mt7622_pcie_groups, ARRAY_SIZE(mt7622_pcie_groups)},
8468c2ecf20Sopenharmony_ci	{"pmic", mt7622_pmic_bus_groups, ARRAY_SIZE(mt7622_pmic_bus_groups)},
8478c2ecf20Sopenharmony_ci	{"pwm",	mt7622_pwm_groups, ARRAY_SIZE(mt7622_pwm_groups)},
8488c2ecf20Sopenharmony_ci	{"sd", mt7622_sd_groups, ARRAY_SIZE(mt7622_sd_groups)},
8498c2ecf20Sopenharmony_ci	{"spi",	mt7622_spic_groups, ARRAY_SIZE(mt7622_spic_groups)},
8508c2ecf20Sopenharmony_ci	{"tdm",	mt7622_tdm_groups, ARRAY_SIZE(mt7622_tdm_groups)},
8518c2ecf20Sopenharmony_ci	{"uart", mt7622_uart_groups, ARRAY_SIZE(mt7622_uart_groups)},
8528c2ecf20Sopenharmony_ci	{"watchdog", mt7622_wdt_groups, ARRAY_SIZE(mt7622_wdt_groups)},
8538c2ecf20Sopenharmony_ci};
8548c2ecf20Sopenharmony_ci
8558c2ecf20Sopenharmony_cistatic const struct mtk_eint_hw mt7622_eint_hw = {
8568c2ecf20Sopenharmony_ci	.port_mask = 7,
8578c2ecf20Sopenharmony_ci	.ports     = 7,
8588c2ecf20Sopenharmony_ci	.ap_num    = ARRAY_SIZE(mt7622_pins),
8598c2ecf20Sopenharmony_ci	.db_cnt    = 20,
8608c2ecf20Sopenharmony_ci};
8618c2ecf20Sopenharmony_ci
8628c2ecf20Sopenharmony_cistatic const struct mtk_pin_soc mt7622_data = {
8638c2ecf20Sopenharmony_ci	.reg_cal = mt7622_reg_cals,
8648c2ecf20Sopenharmony_ci	.pins = mt7622_pins,
8658c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(mt7622_pins),
8668c2ecf20Sopenharmony_ci	.grps = mt7622_groups,
8678c2ecf20Sopenharmony_ci	.ngrps = ARRAY_SIZE(mt7622_groups),
8688c2ecf20Sopenharmony_ci	.funcs = mt7622_functions,
8698c2ecf20Sopenharmony_ci	.nfuncs = ARRAY_SIZE(mt7622_functions),
8708c2ecf20Sopenharmony_ci	.eint_hw = &mt7622_eint_hw,
8718c2ecf20Sopenharmony_ci	.gpio_m	= 1,
8728c2ecf20Sopenharmony_ci	.ies_present = false,
8738c2ecf20Sopenharmony_ci	.base_names = mtk_default_register_base_names,
8748c2ecf20Sopenharmony_ci	.nbase_names = ARRAY_SIZE(mtk_default_register_base_names),
8758c2ecf20Sopenharmony_ci	.bias_disable_set = mtk_pinconf_bias_disable_set,
8768c2ecf20Sopenharmony_ci	.bias_disable_get = mtk_pinconf_bias_disable_get,
8778c2ecf20Sopenharmony_ci	.bias_set = mtk_pinconf_bias_set,
8788c2ecf20Sopenharmony_ci	.bias_get = mtk_pinconf_bias_get,
8798c2ecf20Sopenharmony_ci	.drive_set = mtk_pinconf_drive_set,
8808c2ecf20Sopenharmony_ci	.drive_get = mtk_pinconf_drive_get,
8818c2ecf20Sopenharmony_ci};
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_cistatic const struct of_device_id mt7622_pinctrl_of_match[] = {
8848c2ecf20Sopenharmony_ci	{ .compatible = "mediatek,mt7622-pinctrl", },
8858c2ecf20Sopenharmony_ci	{ }
8868c2ecf20Sopenharmony_ci};
8878c2ecf20Sopenharmony_ci
8888c2ecf20Sopenharmony_cistatic int mt7622_pinctrl_probe(struct platform_device *pdev)
8898c2ecf20Sopenharmony_ci{
8908c2ecf20Sopenharmony_ci	return mtk_moore_pinctrl_probe(pdev, &mt7622_data);
8918c2ecf20Sopenharmony_ci}
8928c2ecf20Sopenharmony_ci
8938c2ecf20Sopenharmony_cistatic struct platform_driver mt7622_pinctrl_driver = {
8948c2ecf20Sopenharmony_ci	.driver = {
8958c2ecf20Sopenharmony_ci		.name = "mt7622-pinctrl",
8968c2ecf20Sopenharmony_ci		.of_match_table = mt7622_pinctrl_of_match,
8978c2ecf20Sopenharmony_ci	},
8988c2ecf20Sopenharmony_ci	.probe = mt7622_pinctrl_probe,
8998c2ecf20Sopenharmony_ci};
9008c2ecf20Sopenharmony_ci
9018c2ecf20Sopenharmony_cistatic int __init mt7622_pinctrl_init(void)
9028c2ecf20Sopenharmony_ci{
9038c2ecf20Sopenharmony_ci	return platform_driver_register(&mt7622_pinctrl_driver);
9048c2ecf20Sopenharmony_ci}
9058c2ecf20Sopenharmony_ciarch_initcall(mt7622_pinctrl_init);
906