18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __PINCTRL_MTK_MT6397_H 38c2ecf20Sopenharmony_ci#define __PINCTRL_MTK_MT6397_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 68c2ecf20Sopenharmony_ci#include "pinctrl-mtk-common.h" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cistatic const struct mtk_desc_pin mtk_pins_mt6397[] = { 98c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(0, "INT"), 108c2ecf20Sopenharmony_ci "N2", "mt6397", 118c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 128c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO0"), 138c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "INT") 148c2ecf20Sopenharmony_ci ), 158c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(1, "SRCVOLTEN"), 168c2ecf20Sopenharmony_ci "M4", "mt6397", 178c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 188c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO1"), 198c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SRCVOLTEN"), 208c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_CK1") 218c2ecf20Sopenharmony_ci ), 228c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(2, "SRCLKEN_PERI"), 238c2ecf20Sopenharmony_ci "M2", "mt6397", 248c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 258c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO2"), 268c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SRCLKEN_PERI"), 278c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_CK2") 288c2ecf20Sopenharmony_ci ), 298c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(3, "RTC_32K1V8"), 308c2ecf20Sopenharmony_ci "K3", "mt6397", 318c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 328c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO3"), 338c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "RTC_32K1V8"), 348c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_CK3") 358c2ecf20Sopenharmony_ci ), 368c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(4, "WRAP_EVENT"), 378c2ecf20Sopenharmony_ci "J2", "mt6397", 388c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 398c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO4"), 408c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "WRAP_EVENT") 418c2ecf20Sopenharmony_ci ), 428c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"), 438c2ecf20Sopenharmony_ci "L4", "mt6397", 448c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 458c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO5"), 468c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SPI_CLK") 478c2ecf20Sopenharmony_ci ), 488c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(6, "SPI_CSN"), 498c2ecf20Sopenharmony_ci "J3", "mt6397", 508c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 518c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO6"), 528c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SPI_CSN") 538c2ecf20Sopenharmony_ci ), 548c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(7, "SPI_MOSI"), 558c2ecf20Sopenharmony_ci "J1", "mt6397", 568c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 578c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO7"), 588c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SPI_MOSI") 598c2ecf20Sopenharmony_ci ), 608c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(8, "SPI_MISO"), 618c2ecf20Sopenharmony_ci "L3", "mt6397", 628c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 638c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO8"), 648c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SPI_MISO") 658c2ecf20Sopenharmony_ci ), 668c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(9, "AUD_CLK_MOSI"), 678c2ecf20Sopenharmony_ci "H2", "mt6397", 688c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 698c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO9"), 708c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "AUD_CLK"), 718c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN0"), 728c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT0") 738c2ecf20Sopenharmony_ci ), 748c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(10, "AUD_DAT_MISO"), 758c2ecf20Sopenharmony_ci "H3", "mt6397", 768c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 778c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO10"), 788c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "AUD_MISO"), 798c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN1"), 808c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT1") 818c2ecf20Sopenharmony_ci ), 828c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(11, "AUD_DAT_MOSI"), 838c2ecf20Sopenharmony_ci "H1", "mt6397", 848c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 858c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO11"), 868c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "AUD_MOSI"), 878c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN2"), 888c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT2") 898c2ecf20Sopenharmony_ci ), 908c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(12, "COL0"), 918c2ecf20Sopenharmony_ci "F3", "mt6397", 928c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 10), 938c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO12"), 948c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL0_USBDL"), 958c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT10_1X"), 968c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM1_3X"), 978c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN3"), 988c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT3") 998c2ecf20Sopenharmony_ci ), 1008c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(13, "COL1"), 1018c2ecf20Sopenharmony_ci "G8", "mt6397", 1028c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 11), 1038c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO13"), 1048c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL1"), 1058c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT11_1X"), 1068c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL0_2X"), 1078c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN4"), 1088c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT4") 1098c2ecf20Sopenharmony_ci ), 1108c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(14, "COL2"), 1118c2ecf20Sopenharmony_ci "H4", "mt6397", 1128c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 12), 1138c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO14"), 1148c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL2"), 1158c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT12_1X"), 1168c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA0_2X"), 1178c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN5"), 1188c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT5") 1198c2ecf20Sopenharmony_ci ), 1208c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(15, "COL3"), 1218c2ecf20Sopenharmony_ci "G2", "mt6397", 1228c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 13), 1238c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO15"), 1248c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL3"), 1258c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT13_1X"), 1268c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL1_2X"), 1278c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN6"), 1288c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT6") 1298c2ecf20Sopenharmony_ci ), 1308c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(16, "COL4"), 1318c2ecf20Sopenharmony_ci "F2", "mt6397", 1328c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 14), 1338c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO16"), 1348c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL4"), 1358c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT14_1X"), 1368c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA1_2X"), 1378c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN7"), 1388c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT7") 1398c2ecf20Sopenharmony_ci ), 1408c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(17, "COL5"), 1418c2ecf20Sopenharmony_ci "G7", "mt6397", 1428c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 15), 1438c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO17"), 1448c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL5"), 1458c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT15_1X"), 1468c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL2_2X"), 1478c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN8"), 1488c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT8") 1498c2ecf20Sopenharmony_ci ), 1508c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(18, "COL6"), 1518c2ecf20Sopenharmony_ci "J6", "mt6397", 1528c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 16), 1538c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO18"), 1548c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL6"), 1558c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT16_1X"), 1568c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA2_2X"), 1578c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_0"), 1588c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_0"), 1598c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN9"), 1608c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT9") 1618c2ecf20Sopenharmony_ci ), 1628c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(19, "COL7"), 1638c2ecf20Sopenharmony_ci "J5", "mt6397", 1648c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 17), 1658c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO19"), 1668c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "COL7"), 1678c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT17_1X"), 1688c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM2_3X"), 1698c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_1"), 1708c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_1"), 1718c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN10"), 1728c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT10") 1738c2ecf20Sopenharmony_ci ), 1748c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(20, "ROW0"), 1758c2ecf20Sopenharmony_ci "L7", "mt6397", 1768c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 18), 1778c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO20"), 1788c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW0"), 1798c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT18_1X"), 1808c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL0_3X"), 1818c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN11"), 1828c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT11") 1838c2ecf20Sopenharmony_ci ), 1848c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(21, "ROW1"), 1858c2ecf20Sopenharmony_ci "P1", "mt6397", 1868c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 19), 1878c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO21"), 1888c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW1"), 1898c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT19_1X"), 1908c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA0_3X"), 1918c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "AUD_TSTCK"), 1928c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN12"), 1938c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT12") 1948c2ecf20Sopenharmony_ci ), 1958c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(22, "ROW2"), 1968c2ecf20Sopenharmony_ci "J8", "mt6397", 1978c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 20), 1988c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO22"), 1998c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW2"), 2008c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT20_1X"), 2018c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL1_3X"), 2028c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN13"), 2038c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT13") 2048c2ecf20Sopenharmony_ci ), 2058c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(23, "ROW3"), 2068c2ecf20Sopenharmony_ci "J7", "mt6397", 2078c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 21), 2088c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO23"), 2098c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW3"), 2108c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT21_1X"), 2118c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA1_3X"), 2128c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN14"), 2138c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT14") 2148c2ecf20Sopenharmony_ci ), 2158c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(24, "ROW4"), 2168c2ecf20Sopenharmony_ci "L5", "mt6397", 2178c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 22), 2188c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO24"), 2198c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW4"), 2208c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT22_1X"), 2218c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SCL2_3X"), 2228c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN15"), 2238c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT15") 2248c2ecf20Sopenharmony_ci ), 2258c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(25, "ROW5"), 2268c2ecf20Sopenharmony_ci "N6", "mt6397", 2278c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 23), 2288c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO25"), 2298c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW5"), 2308c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT23_1X"), 2318c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "SDA2_3X"), 2328c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN16"), 2338c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT16") 2348c2ecf20Sopenharmony_ci ), 2358c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(26, "ROW6"), 2368c2ecf20Sopenharmony_ci "L6", "mt6397", 2378c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 24), 2388c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO26"), 2398c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW6"), 2408c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT24_1X"), 2418c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM3_3X"), 2428c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_2"), 2438c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_2"), 2448c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN17"), 2458c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT17") 2468c2ecf20Sopenharmony_ci ), 2478c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(27, "ROW7"), 2488c2ecf20Sopenharmony_ci "P2", "mt6397", 2498c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 3), 2508c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO27"), 2518c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "ROW7"), 2528c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT3_1X"), 2538c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "CBUS"), 2548c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_3"), 2558c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_3"), 2568c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN18"), 2578c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT18") 2588c2ecf20Sopenharmony_ci ), 2598c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(28, "PWM1(VMSEL1)"), 2608c2ecf20Sopenharmony_ci "J4", "mt6397", 2618c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 4), 2628c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO28"), 2638c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "PWM1"), 2648c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT4_1X"), 2658c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_4"), 2668c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_4"), 2678c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN19"), 2688c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT19") 2698c2ecf20Sopenharmony_ci ), 2708c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(29, "PWM2(VMSEL2)"), 2718c2ecf20Sopenharmony_ci "N5", "mt6397", 2728c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 5), 2738c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO29"), 2748c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "PWM2"), 2758c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT5_1X"), 2768c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_5"), 2778c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_5"), 2788c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN20"), 2798c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT20") 2808c2ecf20Sopenharmony_ci ), 2818c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(30, "PWM3(PWM)"), 2828c2ecf20Sopenharmony_ci "R3", "mt6397", 2838c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 6), 2848c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO30"), 2858c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "PWM3"), 2868c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT6_1X"), 2878c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "COL0"), 2888c2ecf20Sopenharmony_ci MTK_FUNCTION(4, "GPIO32K_6"), 2898c2ecf20Sopenharmony_ci MTK_FUNCTION(5, "GPIO26M_6"), 2908c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN21"), 2918c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT21") 2928c2ecf20Sopenharmony_ci ), 2938c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(31, "SCL0"), 2948c2ecf20Sopenharmony_ci "N1", "mt6397", 2958c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 7), 2968c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO31"), 2978c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SCL0"), 2988c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT7_1X"), 2998c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM1_2X"), 3008c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN22"), 3018c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT22") 3028c2ecf20Sopenharmony_ci ), 3038c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(32, "SDA0"), 3048c2ecf20Sopenharmony_ci "N3", "mt6397", 3058c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 8), 3068c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO32"), 3078c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SDA0"), 3088c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT8_1X"), 3098c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN23"), 3108c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT23") 3118c2ecf20Sopenharmony_ci ), 3128c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(33, "SCL1"), 3138c2ecf20Sopenharmony_ci "T1", "mt6397", 3148c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 9), 3158c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO33"), 3168c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SCL1"), 3178c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT9_1X"), 3188c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM2_2X"), 3198c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN24"), 3208c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT24") 3218c2ecf20Sopenharmony_ci ), 3228c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(34, "SDA1"), 3238c2ecf20Sopenharmony_ci "T2", "mt6397", 3248c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 0), 3258c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO34"), 3268c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SDA1"), 3278c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT0_1X"), 3288c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN25"), 3298c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT25") 3308c2ecf20Sopenharmony_ci ), 3318c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(35, "SCL2"), 3328c2ecf20Sopenharmony_ci "T3", "mt6397", 3338c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 1), 3348c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO35"), 3358c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SCL2"), 3368c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT1_1X"), 3378c2ecf20Sopenharmony_ci MTK_FUNCTION(3, "PWM3_2X"), 3388c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN26"), 3398c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT26") 3408c2ecf20Sopenharmony_ci ), 3418c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(36, "SDA2"), 3428c2ecf20Sopenharmony_ci "U2", "mt6397", 3438c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(2, 2), 3448c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO36"), 3458c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "SDA2"), 3468c2ecf20Sopenharmony_ci MTK_FUNCTION(2, "EINT2_1X"), 3478c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN27"), 3488c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT27") 3498c2ecf20Sopenharmony_ci ), 3508c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(37, "HDMISD"), 3518c2ecf20Sopenharmony_ci "H6", "mt6397", 3528c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 3538c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO37"), 3548c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "HDMISD"), 3558c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN28"), 3568c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT28") 3578c2ecf20Sopenharmony_ci ), 3588c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(38, "HDMISCK"), 3598c2ecf20Sopenharmony_ci "H5", "mt6397", 3608c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 3618c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO38"), 3628c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "HDMISCK"), 3638c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN29"), 3648c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT29") 3658c2ecf20Sopenharmony_ci ), 3668c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(39, "HTPLG"), 3678c2ecf20Sopenharmony_ci "H7", "mt6397", 3688c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 3698c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO39"), 3708c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "HTPLG"), 3718c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN30"), 3728c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT30") 3738c2ecf20Sopenharmony_ci ), 3748c2ecf20Sopenharmony_ci MTK_PIN(PINCTRL_PIN(40, "CEC"), 3758c2ecf20Sopenharmony_ci "J9", "mt6397", 3768c2ecf20Sopenharmony_ci MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), 3778c2ecf20Sopenharmony_ci MTK_FUNCTION(0, "GPIO40"), 3788c2ecf20Sopenharmony_ci MTK_FUNCTION(1, "CEC"), 3798c2ecf20Sopenharmony_ci MTK_FUNCTION(6, "TEST_IN31"), 3808c2ecf20Sopenharmony_ci MTK_FUNCTION(7, "TEST_OUT31") 3818c2ecf20Sopenharmony_ci ), 3828c2ecf20Sopenharmony_ci}; 3838c2ecf20Sopenharmony_ci 3848c2ecf20Sopenharmony_ci#endif /* __PINCTRL_MTK_MT6397_H */ 385