162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __PINCTRL_MTK_MT6397_H
362306a36Sopenharmony_ci#define __PINCTRL_MTK_MT6397_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
662306a36Sopenharmony_ci#include "pinctrl-mtk-common.h"
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistatic const struct mtk_desc_pin mtk_pins_mt6397[] = {
962306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(0, "INT"),
1062306a36Sopenharmony_ci		"N2", "mt6397",
1162306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1262306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO0"),
1362306a36Sopenharmony_ci		MTK_FUNCTION(1, "INT")
1462306a36Sopenharmony_ci	),
1562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(1, "SRCVOLTEN"),
1662306a36Sopenharmony_ci		"M4", "mt6397",
1762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO1"),
1962306a36Sopenharmony_ci		MTK_FUNCTION(1, "SRCVOLTEN"),
2062306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_CK1")
2162306a36Sopenharmony_ci	),
2262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(2, "SRCLKEN_PERI"),
2362306a36Sopenharmony_ci		"M2", "mt6397",
2462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
2562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO2"),
2662306a36Sopenharmony_ci		MTK_FUNCTION(1, "SRCLKEN_PERI"),
2762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_CK2")
2862306a36Sopenharmony_ci	),
2962306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(3, "RTC_32K1V8"),
3062306a36Sopenharmony_ci		"K3", "mt6397",
3162306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
3262306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO3"),
3362306a36Sopenharmony_ci		MTK_FUNCTION(1, "RTC_32K1V8"),
3462306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_CK3")
3562306a36Sopenharmony_ci	),
3662306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(4, "WRAP_EVENT"),
3762306a36Sopenharmony_ci		"J2", "mt6397",
3862306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
3962306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO4"),
4062306a36Sopenharmony_ci		MTK_FUNCTION(1, "WRAP_EVENT")
4162306a36Sopenharmony_ci	),
4262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
4362306a36Sopenharmony_ci		"L4", "mt6397",
4462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
4562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO5"),
4662306a36Sopenharmony_ci		MTK_FUNCTION(1, "SPI_CLK")
4762306a36Sopenharmony_ci	),
4862306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(6, "SPI_CSN"),
4962306a36Sopenharmony_ci		"J3", "mt6397",
5062306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
5162306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO6"),
5262306a36Sopenharmony_ci		MTK_FUNCTION(1, "SPI_CSN")
5362306a36Sopenharmony_ci	),
5462306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(7, "SPI_MOSI"),
5562306a36Sopenharmony_ci		"J1", "mt6397",
5662306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
5762306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO7"),
5862306a36Sopenharmony_ci		MTK_FUNCTION(1, "SPI_MOSI")
5962306a36Sopenharmony_ci	),
6062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(8, "SPI_MISO"),
6162306a36Sopenharmony_ci		"L3", "mt6397",
6262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
6362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO8"),
6462306a36Sopenharmony_ci		MTK_FUNCTION(1, "SPI_MISO")
6562306a36Sopenharmony_ci	),
6662306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(9, "AUD_CLK_MOSI"),
6762306a36Sopenharmony_ci		"H2", "mt6397",
6862306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
6962306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO9"),
7062306a36Sopenharmony_ci		MTK_FUNCTION(1, "AUD_CLK"),
7162306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN0"),
7262306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT0")
7362306a36Sopenharmony_ci	),
7462306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(10, "AUD_DAT_MISO"),
7562306a36Sopenharmony_ci		"H3", "mt6397",
7662306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
7762306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO10"),
7862306a36Sopenharmony_ci		MTK_FUNCTION(1, "AUD_MISO"),
7962306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN1"),
8062306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT1")
8162306a36Sopenharmony_ci	),
8262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(11, "AUD_DAT_MOSI"),
8362306a36Sopenharmony_ci		"H1", "mt6397",
8462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
8562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO11"),
8662306a36Sopenharmony_ci		MTK_FUNCTION(1, "AUD_MOSI"),
8762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN2"),
8862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT2")
8962306a36Sopenharmony_ci	),
9062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(12, "COL0"),
9162306a36Sopenharmony_ci		"F3", "mt6397",
9262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 10),
9362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO12"),
9462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL0_USBDL"),
9562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT10_1X"),
9662306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM1_3X"),
9762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN3"),
9862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT3")
9962306a36Sopenharmony_ci	),
10062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(13, "COL1"),
10162306a36Sopenharmony_ci		"G8", "mt6397",
10262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 11),
10362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO13"),
10462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL1"),
10562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT11_1X"),
10662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL0_2X"),
10762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN4"),
10862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT4")
10962306a36Sopenharmony_ci	),
11062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(14, "COL2"),
11162306a36Sopenharmony_ci		"H4", "mt6397",
11262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 12),
11362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO14"),
11462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL2"),
11562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT12_1X"),
11662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA0_2X"),
11762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN5"),
11862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT5")
11962306a36Sopenharmony_ci	),
12062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(15, "COL3"),
12162306a36Sopenharmony_ci		"G2", "mt6397",
12262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 13),
12362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO15"),
12462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL3"),
12562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT13_1X"),
12662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL1_2X"),
12762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN6"),
12862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT6")
12962306a36Sopenharmony_ci	),
13062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(16, "COL4"),
13162306a36Sopenharmony_ci		"F2", "mt6397",
13262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 14),
13362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO16"),
13462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL4"),
13562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT14_1X"),
13662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA1_2X"),
13762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN7"),
13862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT7")
13962306a36Sopenharmony_ci	),
14062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(17, "COL5"),
14162306a36Sopenharmony_ci		"G7", "mt6397",
14262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 15),
14362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO17"),
14462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL5"),
14562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT15_1X"),
14662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL2_2X"),
14762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN8"),
14862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT8")
14962306a36Sopenharmony_ci	),
15062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(18, "COL6"),
15162306a36Sopenharmony_ci		"J6", "mt6397",
15262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 16),
15362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO18"),
15462306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL6"),
15562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT16_1X"),
15662306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA2_2X"),
15762306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_0"),
15862306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_0"),
15962306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN9"),
16062306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT9")
16162306a36Sopenharmony_ci	),
16262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(19, "COL7"),
16362306a36Sopenharmony_ci		"J5", "mt6397",
16462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 17),
16562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO19"),
16662306a36Sopenharmony_ci		MTK_FUNCTION(1, "COL7"),
16762306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT17_1X"),
16862306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM2_3X"),
16962306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_1"),
17062306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_1"),
17162306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN10"),
17262306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT10")
17362306a36Sopenharmony_ci	),
17462306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(20, "ROW0"),
17562306a36Sopenharmony_ci		"L7", "mt6397",
17662306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 18),
17762306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO20"),
17862306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW0"),
17962306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT18_1X"),
18062306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL0_3X"),
18162306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN11"),
18262306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT11")
18362306a36Sopenharmony_ci	),
18462306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(21, "ROW1"),
18562306a36Sopenharmony_ci		"P1", "mt6397",
18662306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 19),
18762306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO21"),
18862306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW1"),
18962306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT19_1X"),
19062306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA0_3X"),
19162306a36Sopenharmony_ci		MTK_FUNCTION(4, "AUD_TSTCK"),
19262306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN12"),
19362306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT12")
19462306a36Sopenharmony_ci	),
19562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(22, "ROW2"),
19662306a36Sopenharmony_ci		"J8", "mt6397",
19762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 20),
19862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO22"),
19962306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW2"),
20062306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT20_1X"),
20162306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL1_3X"),
20262306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN13"),
20362306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT13")
20462306a36Sopenharmony_ci	),
20562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(23, "ROW3"),
20662306a36Sopenharmony_ci		"J7", "mt6397",
20762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 21),
20862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO23"),
20962306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW3"),
21062306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT21_1X"),
21162306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA1_3X"),
21262306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN14"),
21362306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT14")
21462306a36Sopenharmony_ci	),
21562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(24, "ROW4"),
21662306a36Sopenharmony_ci		"L5", "mt6397",
21762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 22),
21862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO24"),
21962306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW4"),
22062306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT22_1X"),
22162306a36Sopenharmony_ci		MTK_FUNCTION(3, "SCL2_3X"),
22262306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN15"),
22362306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT15")
22462306a36Sopenharmony_ci	),
22562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(25, "ROW5"),
22662306a36Sopenharmony_ci		"N6", "mt6397",
22762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 23),
22862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO25"),
22962306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW5"),
23062306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT23_1X"),
23162306a36Sopenharmony_ci		MTK_FUNCTION(3, "SDA2_3X"),
23262306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN16"),
23362306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT16")
23462306a36Sopenharmony_ci	),
23562306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(26, "ROW6"),
23662306a36Sopenharmony_ci		"L6", "mt6397",
23762306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 24),
23862306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO26"),
23962306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW6"),
24062306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT24_1X"),
24162306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM3_3X"),
24262306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_2"),
24362306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_2"),
24462306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN17"),
24562306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT17")
24662306a36Sopenharmony_ci	),
24762306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(27, "ROW7"),
24862306a36Sopenharmony_ci		"P2", "mt6397",
24962306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 3),
25062306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO27"),
25162306a36Sopenharmony_ci		MTK_FUNCTION(1, "ROW7"),
25262306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT3_1X"),
25362306a36Sopenharmony_ci		MTK_FUNCTION(3, "CBUS"),
25462306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_3"),
25562306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_3"),
25662306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN18"),
25762306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT18")
25862306a36Sopenharmony_ci	),
25962306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(28, "PWM1(VMSEL1)"),
26062306a36Sopenharmony_ci		"J4", "mt6397",
26162306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 4),
26262306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO28"),
26362306a36Sopenharmony_ci		MTK_FUNCTION(1, "PWM1"),
26462306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT4_1X"),
26562306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_4"),
26662306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_4"),
26762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN19"),
26862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT19")
26962306a36Sopenharmony_ci	),
27062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(29, "PWM2(VMSEL2)"),
27162306a36Sopenharmony_ci		"N5", "mt6397",
27262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 5),
27362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO29"),
27462306a36Sopenharmony_ci		MTK_FUNCTION(1, "PWM2"),
27562306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT5_1X"),
27662306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_5"),
27762306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_5"),
27862306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN20"),
27962306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT20")
28062306a36Sopenharmony_ci	),
28162306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(30, "PWM3(PWM)"),
28262306a36Sopenharmony_ci		"R3", "mt6397",
28362306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 6),
28462306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO30"),
28562306a36Sopenharmony_ci		MTK_FUNCTION(1, "PWM3"),
28662306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT6_1X"),
28762306a36Sopenharmony_ci		MTK_FUNCTION(3, "COL0"),
28862306a36Sopenharmony_ci		MTK_FUNCTION(4, "GPIO32K_6"),
28962306a36Sopenharmony_ci		MTK_FUNCTION(5, "GPIO26M_6"),
29062306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN21"),
29162306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT21")
29262306a36Sopenharmony_ci	),
29362306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(31, "SCL0"),
29462306a36Sopenharmony_ci		"N1", "mt6397",
29562306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 7),
29662306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO31"),
29762306a36Sopenharmony_ci		MTK_FUNCTION(1, "SCL0"),
29862306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT7_1X"),
29962306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM1_2X"),
30062306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN22"),
30162306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT22")
30262306a36Sopenharmony_ci	),
30362306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(32, "SDA0"),
30462306a36Sopenharmony_ci		"N3", "mt6397",
30562306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 8),
30662306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO32"),
30762306a36Sopenharmony_ci		MTK_FUNCTION(1, "SDA0"),
30862306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT8_1X"),
30962306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN23"),
31062306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT23")
31162306a36Sopenharmony_ci	),
31262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(33, "SCL1"),
31362306a36Sopenharmony_ci		"T1", "mt6397",
31462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 9),
31562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO33"),
31662306a36Sopenharmony_ci		MTK_FUNCTION(1, "SCL1"),
31762306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT9_1X"),
31862306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM2_2X"),
31962306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN24"),
32062306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT24")
32162306a36Sopenharmony_ci	),
32262306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(34, "SDA1"),
32362306a36Sopenharmony_ci		"T2", "mt6397",
32462306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 0),
32562306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO34"),
32662306a36Sopenharmony_ci		MTK_FUNCTION(1, "SDA1"),
32762306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT0_1X"),
32862306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN25"),
32962306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT25")
33062306a36Sopenharmony_ci	),
33162306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(35, "SCL2"),
33262306a36Sopenharmony_ci		"T3", "mt6397",
33362306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 1),
33462306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO35"),
33562306a36Sopenharmony_ci		MTK_FUNCTION(1, "SCL2"),
33662306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT1_1X"),
33762306a36Sopenharmony_ci		MTK_FUNCTION(3, "PWM3_2X"),
33862306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN26"),
33962306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT26")
34062306a36Sopenharmony_ci	),
34162306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(36, "SDA2"),
34262306a36Sopenharmony_ci		"U2", "mt6397",
34362306a36Sopenharmony_ci		MTK_EINT_FUNCTION(2, 2),
34462306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO36"),
34562306a36Sopenharmony_ci		MTK_FUNCTION(1, "SDA2"),
34662306a36Sopenharmony_ci		MTK_FUNCTION(2, "EINT2_1X"),
34762306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN27"),
34862306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT27")
34962306a36Sopenharmony_ci	),
35062306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(37, "HDMISD"),
35162306a36Sopenharmony_ci		"H6", "mt6397",
35262306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
35362306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO37"),
35462306a36Sopenharmony_ci		MTK_FUNCTION(1, "HDMISD"),
35562306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN28"),
35662306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT28")
35762306a36Sopenharmony_ci	),
35862306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(38, "HDMISCK"),
35962306a36Sopenharmony_ci		"H5", "mt6397",
36062306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
36162306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO38"),
36262306a36Sopenharmony_ci		MTK_FUNCTION(1, "HDMISCK"),
36362306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN29"),
36462306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT29")
36562306a36Sopenharmony_ci	),
36662306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(39, "HTPLG"),
36762306a36Sopenharmony_ci		"H7", "mt6397",
36862306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
36962306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO39"),
37062306a36Sopenharmony_ci		MTK_FUNCTION(1, "HTPLG"),
37162306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN30"),
37262306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT30")
37362306a36Sopenharmony_ci	),
37462306a36Sopenharmony_ci	MTK_PIN(PINCTRL_PIN(40, "CEC"),
37562306a36Sopenharmony_ci		"J9", "mt6397",
37662306a36Sopenharmony_ci		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
37762306a36Sopenharmony_ci		MTK_FUNCTION(0, "GPIO40"),
37862306a36Sopenharmony_ci		MTK_FUNCTION(1, "CEC"),
37962306a36Sopenharmony_ci		MTK_FUNCTION(6, "TEST_IN31"),
38062306a36Sopenharmony_ci		MTK_FUNCTION(7, "TEST_OUT31")
38162306a36Sopenharmony_ci	),
38262306a36Sopenharmony_ci};
38362306a36Sopenharmony_ci
38462306a36Sopenharmony_ci#endif /* __PINCTRL_MTK_MT6397_H */
385