Commit e6c462d3 authored by Zhiyong Tao's avatar Zhiyong Tao Committed by Linus Walleij

pinctrl: mtk: fix check warnings.

This patch fixes check warnings.
Signed-off-by: default avatarZhiyong Tao <zhiyong.tao@mediatek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6af8df4c
...@@ -19,53 +19,46 @@ ...@@ -19,53 +19,46 @@
#include "pinctrl-mtk-common.h" #include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt2701[] = { static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_PIN( MTK_PIN(PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 148), MTK_EINT_FUNCTION(0, 148),
MTK_FUNCTION(0, "GPIO0"), MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "PWRAP_SPIDO"), MTK_FUNCTION(1, "PWRAP_SPIDO"),
MTK_FUNCTION(2, "PWRAP_SPIDI") MTK_FUNCTION(2, "PWRAP_SPIDI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 149), MTK_EINT_FUNCTION(0, 149),
MTK_FUNCTION(0, "GPIO1"), MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "PWRAP_SPIDI"), MTK_FUNCTION(1, "PWRAP_SPIDI"),
MTK_FUNCTION(2, "PWRAP_SPIDO") MTK_FUNCTION(2, "PWRAP_SPIDO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(2, "PWRAP_INT"),
PINCTRL_PIN(2, "PWRAP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 150), MTK_EINT_FUNCTION(0, 150),
MTK_FUNCTION(0, "GPIO2"), MTK_FUNCTION(0, "GPIO2"),
MTK_FUNCTION(1, "PWRAP_INT") MTK_FUNCTION(1, "PWRAP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 151), MTK_EINT_FUNCTION(0, 151),
MTK_FUNCTION(0, "GPIO3"), MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "PWRAP_SPICK_I") MTK_FUNCTION(1, "PWRAP_SPICK_I")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 152), MTK_EINT_FUNCTION(0, 152),
MTK_FUNCTION(0, "GPIO4"), MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "PWRAP_SPICS_B_I") MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 153), MTK_EINT_FUNCTION(0, 153),
MTK_FUNCTION(0, "GPIO5"), MTK_FUNCTION(0, "GPIO5"),
MTK_FUNCTION(1, "PWRAP_SPICK2_I"), MTK_FUNCTION(1, "PWRAP_SPICK2_I"),
MTK_FUNCTION(5, "ANT_SEL1") MTK_FUNCTION(5, "ANT_SEL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 154), MTK_EINT_FUNCTION(0, 154),
MTK_FUNCTION(0, "GPIO6"), MTK_FUNCTION(0, "GPIO6"),
...@@ -73,8 +66,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -73,8 +66,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "ANT_SEL0"), MTK_FUNCTION(5, "ANT_SEL0"),
MTK_FUNCTION(7, "DBG_MON_A[0]") MTK_FUNCTION(7, "DBG_MON_A[0]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(7, "SPI1_CSN"),
PINCTRL_PIN(7, "SPI1_CSN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 155), MTK_EINT_FUNCTION(0, 155),
MTK_FUNCTION(0, "GPIO7"), MTK_FUNCTION(0, "GPIO7"),
...@@ -82,8 +74,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -82,8 +74,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "KCOL0"), MTK_FUNCTION(4, "KCOL0"),
MTK_FUNCTION(7, "DBG_MON_B[12]") MTK_FUNCTION(7, "DBG_MON_B[12]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(8, "SPI1_MI"),
PINCTRL_PIN(8, "SPI1_MI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 156), MTK_EINT_FUNCTION(0, 156),
MTK_FUNCTION(0, "GPIO8"), MTK_FUNCTION(0, "GPIO8"),
...@@ -92,8 +83,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -92,8 +83,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "KCOL1"), MTK_FUNCTION(4, "KCOL1"),
MTK_FUNCTION(7, "DBG_MON_B[13]") MTK_FUNCTION(7, "DBG_MON_B[13]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(9, "SPI1_MO"),
PINCTRL_PIN(9, "SPI1_MO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 157), MTK_EINT_FUNCTION(0, 157),
MTK_FUNCTION(0, "GPIO9"), MTK_FUNCTION(0, "GPIO9"),
...@@ -103,36 +93,31 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -103,36 +93,31 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "KCOL2"), MTK_FUNCTION(4, "KCOL2"),
MTK_FUNCTION(7, "DBG_MON_B[14]") MTK_FUNCTION(7, "DBG_MON_B[14]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(10, "RTC32K_CK"),
PINCTRL_PIN(10, "RTC32K_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 158), MTK_EINT_FUNCTION(0, 158),
MTK_FUNCTION(0, "GPIO10"), MTK_FUNCTION(0, "GPIO10"),
MTK_FUNCTION(1, "RTC32K_CK") MTK_FUNCTION(1, "RTC32K_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(11, "WATCHDOG"),
PINCTRL_PIN(11, "WATCHDOG"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 159), MTK_EINT_FUNCTION(0, 159),
MTK_FUNCTION(0, "GPIO11"), MTK_FUNCTION(0, "GPIO11"),
MTK_FUNCTION(1, "WATCHDOG") MTK_FUNCTION(1, "WATCHDOG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(12, "SRCLKENA"),
PINCTRL_PIN(12, "SRCLKENA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 160), MTK_EINT_FUNCTION(0, 160),
MTK_FUNCTION(0, "GPIO12"), MTK_FUNCTION(0, "GPIO12"),
MTK_FUNCTION(1, "SRCLKENA") MTK_FUNCTION(1, "SRCLKENA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(13, "SRCLKENAI"),
PINCTRL_PIN(13, "SRCLKENAI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 161), MTK_EINT_FUNCTION(0, 161),
MTK_FUNCTION(0, "GPIO13"), MTK_FUNCTION(0, "GPIO13"),
MTK_FUNCTION(1, "SRCLKENAI") MTK_FUNCTION(1, "SRCLKENAI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(14, "URXD2"),
PINCTRL_PIN(14, "URXD2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 162), MTK_EINT_FUNCTION(0, 162),
MTK_FUNCTION(0, "GPIO14"), MTK_FUNCTION(0, "GPIO14"),
...@@ -141,8 +126,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -141,8 +126,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "SRCCLKENAI2"), MTK_FUNCTION(5, "SRCCLKENAI2"),
MTK_FUNCTION(7, "DBG_MON_B[30]") MTK_FUNCTION(7, "DBG_MON_B[30]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(15, "UTXD2"),
PINCTRL_PIN(15, "UTXD2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 163), MTK_EINT_FUNCTION(0, 163),
MTK_FUNCTION(0, "GPIO15"), MTK_FUNCTION(0, "GPIO15"),
...@@ -150,8 +134,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -150,8 +134,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "URXD2"), MTK_FUNCTION(2, "URXD2"),
MTK_FUNCTION(7, "DBG_MON_B[31]") MTK_FUNCTION(7, "DBG_MON_B[31]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(16, "I2S5_DATA_IN"),
PINCTRL_PIN(16, "I2S5_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 164), MTK_EINT_FUNCTION(0, 164),
MTK_FUNCTION(0, "GPIO16"), MTK_FUNCTION(0, "GPIO16"),
...@@ -159,8 +142,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -159,8 +142,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_RX"), MTK_FUNCTION(3, "PCM_RX"),
MTK_FUNCTION(4, "ANT_SEL4") MTK_FUNCTION(4, "ANT_SEL4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(17, "I2S5_BCK"),
PINCTRL_PIN(17, "I2S5_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 165), MTK_EINT_FUNCTION(0, 165),
MTK_FUNCTION(0, "GPIO17"), MTK_FUNCTION(0, "GPIO17"),
...@@ -168,8 +150,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -168,8 +150,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_CLK0"), MTK_FUNCTION(3, "PCM_CLK0"),
MTK_FUNCTION(4, "ANT_SEL2") MTK_FUNCTION(4, "ANT_SEL2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(18, "PCM_CLK"),
PINCTRL_PIN(18, "PCM_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 166), MTK_EINT_FUNCTION(0, 166),
MTK_FUNCTION(0, "GPIO18"), MTK_FUNCTION(0, "GPIO18"),
...@@ -180,8 +161,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -180,8 +161,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_CLKO"), MTK_FUNCTION(6, "WCN_PCM_CLKO"),
MTK_FUNCTION(7, "DBG_MON_A[3]") MTK_FUNCTION(7, "DBG_MON_A[3]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(19, "PCM_SYNC"),
PINCTRL_PIN(19, "PCM_SYNC"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 167), MTK_EINT_FUNCTION(0, 167),
MTK_FUNCTION(0, "GPIO19"), MTK_FUNCTION(0, "GPIO19"),
...@@ -191,8 +171,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -191,8 +171,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_SYNC"), MTK_FUNCTION(6, "WCN_PCM_SYNC"),
MTK_FUNCTION(7, "DBG_MON_A[5]") MTK_FUNCTION(7, "DBG_MON_A[5]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(20, "PCM_RX"),
PINCTRL_PIN(20, "PCM_RX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO20"), MTK_FUNCTION(0, "GPIO20"),
...@@ -204,8 +183,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -204,8 +183,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_RX"), MTK_FUNCTION(6, "WCN_PCM_RX"),
MTK_FUNCTION(7, "DBG_MON_A[4]") MTK_FUNCTION(7, "DBG_MON_A[4]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(21, "PCM_TX"),
PINCTRL_PIN(21, "PCM_TX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO21"), MTK_FUNCTION(0, "GPIO21"),
...@@ -217,8 +195,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -217,8 +195,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_TX"), MTK_FUNCTION(6, "WCN_PCM_TX"),
MTK_FUNCTION(7, "DBG_MON_A[2]") MTK_FUNCTION(7, "DBG_MON_A[2]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(22, "EINT0"),
PINCTRL_PIN(22, "EINT0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 0), MTK_EINT_FUNCTION(0, 0),
MTK_FUNCTION(0, "GPIO22"), MTK_FUNCTION(0, "GPIO22"),
...@@ -231,8 +208,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -231,8 +208,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[30]"), MTK_FUNCTION(7, "DBG_MON_A[30]"),
MTK_FUNCTION(10, "PCIE0_PERST_N") MTK_FUNCTION(10, "PCIE0_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(23, "EINT1"),
PINCTRL_PIN(23, "EINT1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 1), MTK_EINT_FUNCTION(0, 1),
MTK_FUNCTION(0, "GPIO23"), MTK_FUNCTION(0, "GPIO23"),
...@@ -245,8 +221,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -245,8 +221,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[29]"), MTK_FUNCTION(7, "DBG_MON_A[29]"),
MTK_FUNCTION(10, "PCIE1_PERST_N") MTK_FUNCTION(10, "PCIE1_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(24, "EINT2"),
PINCTRL_PIN(24, "EINT2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 2), MTK_EINT_FUNCTION(0, 2),
MTK_FUNCTION(0, "GPIO24"), MTK_FUNCTION(0, "GPIO24"),
...@@ -258,8 +233,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -258,8 +233,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[28]"), MTK_FUNCTION(7, "DBG_MON_A[28]"),
MTK_FUNCTION(10, "PCIE2_PERST_N") MTK_FUNCTION(10, "PCIE2_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(25, "EINT3"),
PINCTRL_PIN(25, "EINT3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 3), MTK_EINT_FUNCTION(0, 3),
MTK_FUNCTION(0, "GPIO25"), MTK_FUNCTION(0, "GPIO25"),
...@@ -268,8 +242,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -268,8 +242,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "CONN_MCU_DBGI_N"), MTK_FUNCTION(4, "CONN_MCU_DBGI_N"),
MTK_FUNCTION(7, "DBG_MON_A[27]") MTK_FUNCTION(7, "DBG_MON_A[27]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(26, "EINT4"),
PINCTRL_PIN(26, "EINT4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 4), MTK_EINT_FUNCTION(0, 4),
MTK_FUNCTION(0, "GPIO26"), MTK_FUNCTION(0, "GPIO26"),
...@@ -281,8 +254,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -281,8 +254,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PCIE2_WAKE_N"), MTK_FUNCTION(6, "PCIE2_WAKE_N"),
MTK_FUNCTION(7, "DBG_MON_A[26]") MTK_FUNCTION(7, "DBG_MON_A[26]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(27, "EINT5"),
PINCTRL_PIN(27, "EINT5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 5), MTK_EINT_FUNCTION(0, 5),
MTK_FUNCTION(0, "GPIO27"), MTK_FUNCTION(0, "GPIO27"),
...@@ -293,8 +265,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -293,8 +265,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PCIE1_WAKE_N"), MTK_FUNCTION(6, "PCIE1_WAKE_N"),
MTK_FUNCTION(7, "DBG_MON_A[25]") MTK_FUNCTION(7, "DBG_MON_A[25]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(28, "EINT6"),
PINCTRL_PIN(28, "EINT6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 6), MTK_EINT_FUNCTION(0, 6),
MTK_FUNCTION(0, "GPIO28"), MTK_FUNCTION(0, "GPIO28"),
...@@ -304,8 +275,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -304,8 +275,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PCIE0_WAKE_N"), MTK_FUNCTION(6, "PCIE0_WAKE_N"),
MTK_FUNCTION(7, "DBG_MON_A[24]") MTK_FUNCTION(7, "DBG_MON_A[24]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(29, "EINT7"),
PINCTRL_PIN(29, "EINT7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 7), MTK_EINT_FUNCTION(0, 7),
MTK_FUNCTION(0, "GPIO29"), MTK_FUNCTION(0, "GPIO29"),
...@@ -319,8 +289,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -319,8 +289,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[23]"), MTK_FUNCTION(7, "DBG_MON_A[23]"),
MTK_FUNCTION(14, "PCIE2_PERST_N") MTK_FUNCTION(14, "PCIE2_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(30, "I2S5_LRCK"),
PINCTRL_PIN(30, "I2S5_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 12), MTK_EINT_FUNCTION(0, 12),
MTK_FUNCTION(0, "GPIO30"), MTK_FUNCTION(0, "GPIO30"),
...@@ -328,16 +297,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -328,16 +297,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_SYNC"), MTK_FUNCTION(3, "PCM_SYNC"),
MTK_FUNCTION(4, "ANT_SEL1") MTK_FUNCTION(4, "ANT_SEL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(31, "I2S5_MCLK"),
PINCTRL_PIN(31, "I2S5_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 13), MTK_EINT_FUNCTION(0, 13),
MTK_FUNCTION(0, "GPIO31"), MTK_FUNCTION(0, "GPIO31"),
MTK_FUNCTION(1, "I2S5_MCLK"), MTK_FUNCTION(1, "I2S5_MCLK"),
MTK_FUNCTION(4, "ANT_SEL0") MTK_FUNCTION(4, "ANT_SEL0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(32, "I2S5_DATA"),
PINCTRL_PIN(32, "I2S5_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 14), MTK_EINT_FUNCTION(0, 14),
MTK_FUNCTION(0, "GPIO32"), MTK_FUNCTION(0, "GPIO32"),
...@@ -346,8 +313,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -346,8 +313,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_TX"), MTK_FUNCTION(3, "PCM_TX"),
MTK_FUNCTION(4, "ANT_SEL3") MTK_FUNCTION(4, "ANT_SEL3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(33, "I2S1_DATA"),
PINCTRL_PIN(33, "I2S1_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 15), MTK_EINT_FUNCTION(0, 15),
MTK_FUNCTION(0, "GPIO33"), MTK_FUNCTION(0, "GPIO33"),
...@@ -359,8 +325,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -359,8 +325,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_TX"), MTK_FUNCTION(6, "WCN_PCM_TX"),
MTK_FUNCTION(7, "DBG_MON_B[8]") MTK_FUNCTION(7, "DBG_MON_B[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(34, "I2S1_DATA_IN"),
PINCTRL_PIN(34, "I2S1_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 16), MTK_EINT_FUNCTION(0, 16),
MTK_FUNCTION(0, "GPIO34"), MTK_FUNCTION(0, "GPIO34"),
...@@ -371,8 +336,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -371,8 +336,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_RX"), MTK_FUNCTION(6, "WCN_PCM_RX"),
MTK_FUNCTION(7, "DBG_MON_B[7]") MTK_FUNCTION(7, "DBG_MON_B[7]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(35, "I2S1_BCK"),
PINCTRL_PIN(35, "I2S1_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 17), MTK_EINT_FUNCTION(0, 17),
MTK_FUNCTION(0, "GPIO35"), MTK_FUNCTION(0, "GPIO35"),
...@@ -382,8 +346,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -382,8 +346,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_CLKO"), MTK_FUNCTION(6, "WCN_PCM_CLKO"),
MTK_FUNCTION(7, "DBG_MON_B[9]") MTK_FUNCTION(7, "DBG_MON_B[9]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(36, "I2S1_LRCK"),
PINCTRL_PIN(36, "I2S1_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 18), MTK_EINT_FUNCTION(0, 18),
MTK_FUNCTION(0, "GPIO36"), MTK_FUNCTION(0, "GPIO36"),
...@@ -393,8 +356,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -393,8 +356,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_PCM_SYNC"), MTK_FUNCTION(6, "WCN_PCM_SYNC"),
MTK_FUNCTION(7, "DBG_MON_B[10]") MTK_FUNCTION(7, "DBG_MON_B[10]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(37, "I2S1_MCLK"),
PINCTRL_PIN(37, "I2S1_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 19), MTK_EINT_FUNCTION(0, 19),
MTK_FUNCTION(0, "GPIO37"), MTK_FUNCTION(0, "GPIO37"),
...@@ -402,8 +364,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -402,8 +364,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "G1_RXDV"), MTK_FUNCTION(5, "G1_RXDV"),
MTK_FUNCTION(7, "DBG_MON_B[11]") MTK_FUNCTION(7, "DBG_MON_B[11]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(38, "I2S2_DATA"),
PINCTRL_PIN(38, "I2S2_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 20), MTK_EINT_FUNCTION(0, 20),
MTK_FUNCTION(0, "GPIO38"), MTK_FUNCTION(0, "GPIO38"),
...@@ -411,8 +372,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -411,8 +372,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_TX"), MTK_FUNCTION(3, "PCM_TX"),
MTK_FUNCTION(4, "DMIC_DAT0") MTK_FUNCTION(4, "DMIC_DAT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(39, "JTMS"),
PINCTRL_PIN(39, "JTMS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 21), MTK_EINT_FUNCTION(0, 21),
MTK_FUNCTION(0, "GPIO39"), MTK_FUNCTION(0, "GPIO39"),
...@@ -421,8 +381,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -421,8 +381,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC"), MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC"),
MTK_FUNCTION(4, "DFD_TMS_XI") MTK_FUNCTION(4, "DFD_TMS_XI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(40, "JTCK"),
PINCTRL_PIN(40, "JTCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 22), MTK_EINT_FUNCTION(0, 22),
MTK_FUNCTION(0, "GPIO40"), MTK_FUNCTION(0, "GPIO40"),
...@@ -431,8 +390,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -431,8 +390,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC"), MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC"),
MTK_FUNCTION(4, "DFD_TCK_XI") MTK_FUNCTION(4, "DFD_TCK_XI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(41, "JTDI"),
PINCTRL_PIN(41, "JTDI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 23), MTK_EINT_FUNCTION(0, 23),
MTK_FUNCTION(0, "GPIO41"), MTK_FUNCTION(0, "GPIO41"),
...@@ -440,8 +398,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -440,8 +398,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "CONN_MCU_TDI"), MTK_FUNCTION(2, "CONN_MCU_TDI"),
MTK_FUNCTION(4, "DFD_TDI_XI") MTK_FUNCTION(4, "DFD_TDI_XI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(42, "JTDO"),
PINCTRL_PIN(42, "JTDO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 24), MTK_EINT_FUNCTION(0, 24),
MTK_FUNCTION(0, "GPIO42"), MTK_FUNCTION(0, "GPIO42"),
...@@ -449,55 +406,48 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -449,55 +406,48 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "CONN_MCU_TDO"), MTK_FUNCTION(2, "CONN_MCU_TDO"),
MTK_FUNCTION(4, "DFD_TDO") MTK_FUNCTION(4, "DFD_TDO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(43, "NCLE"),
PINCTRL_PIN(43, "NCLE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 25), MTK_EINT_FUNCTION(0, 25),
MTK_FUNCTION(0, "GPIO43"), MTK_FUNCTION(0, "GPIO43"),
MTK_FUNCTION(1, "NCLE"), MTK_FUNCTION(1, "NCLE"),
MTK_FUNCTION(2, "EXT_XCS2") MTK_FUNCTION(2, "EXT_XCS2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(44, "NCEB1"),
PINCTRL_PIN(44, "NCEB1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 26), MTK_EINT_FUNCTION(0, 26),
MTK_FUNCTION(0, "GPIO44"), MTK_FUNCTION(0, "GPIO44"),
MTK_FUNCTION(1, "NCEB1"), MTK_FUNCTION(1, "NCEB1"),
MTK_FUNCTION(2, "IDDIG") MTK_FUNCTION(2, "IDDIG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(45, "NCEB0"),
PINCTRL_PIN(45, "NCEB0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 27), MTK_EINT_FUNCTION(0, 27),
MTK_FUNCTION(0, "GPIO45"), MTK_FUNCTION(0, "GPIO45"),
MTK_FUNCTION(1, "NCEB0"), MTK_FUNCTION(1, "NCEB0"),
MTK_FUNCTION(2, "DRV_VBUS") MTK_FUNCTION(2, "DRV_VBUS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(46, "IR"),
PINCTRL_PIN(46, "IR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 28), MTK_EINT_FUNCTION(0, 28),
MTK_FUNCTION(0, "GPIO46"), MTK_FUNCTION(0, "GPIO46"),
MTK_FUNCTION(1, "IR") MTK_FUNCTION(1, "IR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(47, "NREB"),
PINCTRL_PIN(47, "NREB"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 29), MTK_EINT_FUNCTION(0, 29),
MTK_FUNCTION(0, "GPIO47"), MTK_FUNCTION(0, "GPIO47"),
MTK_FUNCTION(1, "NREB"), MTK_FUNCTION(1, "NREB"),
MTK_FUNCTION(2, "IDDIG_P1") MTK_FUNCTION(2, "IDDIG_P1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(48, "NRNB"),
PINCTRL_PIN(48, "NRNB"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 30), MTK_EINT_FUNCTION(0, 30),
MTK_FUNCTION(0, "GPIO48"), MTK_FUNCTION(0, "GPIO48"),
MTK_FUNCTION(1, "NRNB"), MTK_FUNCTION(1, "NRNB"),
MTK_FUNCTION(2, "DRV_VBUS_P1") MTK_FUNCTION(2, "DRV_VBUS_P1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(49, "I2S0_DATA"),
PINCTRL_PIN(49, "I2S0_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 31), MTK_EINT_FUNCTION(0, 31),
MTK_FUNCTION(0, "GPIO49"), MTK_FUNCTION(0, "GPIO49"),
...@@ -507,8 +457,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -507,8 +457,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_I2S_DO"), MTK_FUNCTION(6, "WCN_I2S_DO"),
MTK_FUNCTION(7, "DBG_MON_B[3]") MTK_FUNCTION(7, "DBG_MON_B[3]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(50, "I2S2_BCK"),
PINCTRL_PIN(50, "I2S2_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 32), MTK_EINT_FUNCTION(0, 32),
MTK_FUNCTION(0, "GPIO50"), MTK_FUNCTION(0, "GPIO50"),
...@@ -516,8 +465,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -516,8 +465,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_CLK0"), MTK_FUNCTION(3, "PCM_CLK0"),
MTK_FUNCTION(4, "DMIC_SCK1") MTK_FUNCTION(4, "DMIC_SCK1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(51, "I2S2_DATA_IN"),
PINCTRL_PIN(51, "I2S2_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 33), MTK_EINT_FUNCTION(0, 33),
MTK_FUNCTION(0, "GPIO51"), MTK_FUNCTION(0, "GPIO51"),
...@@ -525,8 +473,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -525,8 +473,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_RX"), MTK_FUNCTION(3, "PCM_RX"),
MTK_FUNCTION(4, "DMIC_SCK0") MTK_FUNCTION(4, "DMIC_SCK0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(52, "I2S2_LRCK"),
PINCTRL_PIN(52, "I2S2_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 34), MTK_EINT_FUNCTION(0, 34),
MTK_FUNCTION(0, "GPIO52"), MTK_FUNCTION(0, "GPIO52"),
...@@ -534,8 +481,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -534,8 +481,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "PCM_SYNC"), MTK_FUNCTION(3, "PCM_SYNC"),
MTK_FUNCTION(4, "DMIC_DAT1") MTK_FUNCTION(4, "DMIC_DAT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(53, "SPI0_CSN"),
PINCTRL_PIN(53, "SPI0_CSN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 35), MTK_EINT_FUNCTION(0, 35),
MTK_FUNCTION(0, "GPIO53"), MTK_FUNCTION(0, "GPIO53"),
...@@ -545,8 +491,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -545,8 +491,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "PWM1"), MTK_FUNCTION(5, "PWM1"),
MTK_FUNCTION(7, "DBG_MON_A[7]") MTK_FUNCTION(7, "DBG_MON_A[7]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(54, "SPI0_CK"),
PINCTRL_PIN(54, "SPI0_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 36), MTK_EINT_FUNCTION(0, 36),
MTK_FUNCTION(0, "GPIO54"), MTK_FUNCTION(0, "GPIO54"),
...@@ -555,8 +500,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -555,8 +500,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "ADC_DAT_IN"), MTK_FUNCTION(4, "ADC_DAT_IN"),
MTK_FUNCTION(7, "DBG_MON_A[10]") MTK_FUNCTION(7, "DBG_MON_A[10]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(55, "SPI0_MI"),
PINCTRL_PIN(55, "SPI0_MI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 37), MTK_EINT_FUNCTION(0, 37),
MTK_FUNCTION(0, "GPIO55"), MTK_FUNCTION(0, "GPIO55"),
...@@ -567,8 +511,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -567,8 +511,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "PWM2"), MTK_FUNCTION(5, "PWM2"),
MTK_FUNCTION(7, "DBG_MON_A[8]") MTK_FUNCTION(7, "DBG_MON_A[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(56, "SPI0_MO"),
PINCTRL_PIN(56, "SPI0_MO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 38), MTK_EINT_FUNCTION(0, 38),
MTK_FUNCTION(0, "GPIO56"), MTK_FUNCTION(0, "GPIO56"),
...@@ -577,77 +520,67 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -577,77 +520,67 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SPDIF_IN0"), MTK_FUNCTION(3, "SPDIF_IN0"),
MTK_FUNCTION(7, "DBG_MON_A[9]") MTK_FUNCTION(7, "DBG_MON_A[9]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(57, "SDA1"),
PINCTRL_PIN(57, "SDA1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 39), MTK_EINT_FUNCTION(0, 39),
MTK_FUNCTION(0, "GPIO57"), MTK_FUNCTION(0, "GPIO57"),
MTK_FUNCTION(1, "SDA1") MTK_FUNCTION(1, "SDA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(58, "SCL1"),
PINCTRL_PIN(58, "SCL1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 40), MTK_EINT_FUNCTION(0, 40),
MTK_FUNCTION(0, "GPIO58"), MTK_FUNCTION(0, "GPIO58"),
MTK_FUNCTION(1, "SCL1") MTK_FUNCTION(1, "SCL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(59, "RAMBUF_I_CLK"),
PINCTRL_PIN(59, "RAMBUF_I_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO59"), MTK_FUNCTION(0, "GPIO59"),
MTK_FUNCTION(1, "RAMBUF_I_CLK") MTK_FUNCTION(1, "RAMBUF_I_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(60, "WB_RSTB"),
PINCTRL_PIN(60, "WB_RSTB"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 41), MTK_EINT_FUNCTION(0, 41),
MTK_FUNCTION(0, "GPIO60"), MTK_FUNCTION(0, "GPIO60"),
MTK_FUNCTION(1, "WB_RSTB"), MTK_FUNCTION(1, "WB_RSTB"),
MTK_FUNCTION(7, "DBG_MON_A[11]") MTK_FUNCTION(7, "DBG_MON_A[11]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(61, "F2W_DATA"),
PINCTRL_PIN(61, "F2W_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 42), MTK_EINT_FUNCTION(0, 42),
MTK_FUNCTION(0, "GPIO61"), MTK_FUNCTION(0, "GPIO61"),
MTK_FUNCTION(1, "F2W_DATA"), MTK_FUNCTION(1, "F2W_DATA"),
MTK_FUNCTION(7, "DBG_MON_A[16]") MTK_FUNCTION(7, "DBG_MON_A[16]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(62, "F2W_CLK"),
PINCTRL_PIN(62, "F2W_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 43), MTK_EINT_FUNCTION(0, 43),
MTK_FUNCTION(0, "GPIO62"), MTK_FUNCTION(0, "GPIO62"),
MTK_FUNCTION(1, "F2W_CK"), MTK_FUNCTION(1, "F2W_CK"),
MTK_FUNCTION(7, "DBG_MON_A[15]") MTK_FUNCTION(7, "DBG_MON_A[15]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(63, "WB_SCLK"),
PINCTRL_PIN(63, "WB_SCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 44), MTK_EINT_FUNCTION(0, 44),
MTK_FUNCTION(0, "GPIO63"), MTK_FUNCTION(0, "GPIO63"),
MTK_FUNCTION(1, "WB_SCLK"), MTK_FUNCTION(1, "WB_SCLK"),
MTK_FUNCTION(7, "DBG_MON_A[13]") MTK_FUNCTION(7, "DBG_MON_A[13]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(64, "WB_SDATA"),
PINCTRL_PIN(64, "WB_SDATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 45), MTK_EINT_FUNCTION(0, 45),
MTK_FUNCTION(0, "GPIO64"), MTK_FUNCTION(0, "GPIO64"),
MTK_FUNCTION(1, "WB_SDATA"), MTK_FUNCTION(1, "WB_SDATA"),
MTK_FUNCTION(7, "DBG_MON_A[12]") MTK_FUNCTION(7, "DBG_MON_A[12]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(65, "WB_SEN"),
PINCTRL_PIN(65, "WB_SEN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 46), MTK_EINT_FUNCTION(0, 46),
MTK_FUNCTION(0, "GPIO65"), MTK_FUNCTION(0, "GPIO65"),
MTK_FUNCTION(1, "WB_SEN"), MTK_FUNCTION(1, "WB_SEN"),
MTK_FUNCTION(7, "DBG_MON_A[14]") MTK_FUNCTION(7, "DBG_MON_A[14]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(66, "WB_CRTL0"),
PINCTRL_PIN(66, "WB_CRTL0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 47), MTK_EINT_FUNCTION(0, 47),
MTK_FUNCTION(0, "GPIO66"), MTK_FUNCTION(0, "GPIO66"),
...@@ -655,8 +588,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -655,8 +588,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "DFD_NTRST_XI"), MTK_FUNCTION(5, "DFD_NTRST_XI"),
MTK_FUNCTION(7, "DBG_MON_A[17]") MTK_FUNCTION(7, "DBG_MON_A[17]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(67, "WB_CRTL1"),
PINCTRL_PIN(67, "WB_CRTL1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 48), MTK_EINT_FUNCTION(0, 48),
MTK_FUNCTION(0, "GPIO67"), MTK_FUNCTION(0, "GPIO67"),
...@@ -664,8 +596,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -664,8 +596,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "DFD_TMS_XI"), MTK_FUNCTION(5, "DFD_TMS_XI"),
MTK_FUNCTION(7, "DBG_MON_A[18]") MTK_FUNCTION(7, "DBG_MON_A[18]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(68, "WB_CRTL2"),
PINCTRL_PIN(68, "WB_CRTL2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 49), MTK_EINT_FUNCTION(0, 49),
MTK_FUNCTION(0, "GPIO68"), MTK_FUNCTION(0, "GPIO68"),
...@@ -673,8 +604,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -673,8 +604,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "DFD_TCK_XI"), MTK_FUNCTION(5, "DFD_TCK_XI"),
MTK_FUNCTION(7, "DBG_MON_A[19]") MTK_FUNCTION(7, "DBG_MON_A[19]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(69, "WB_CRTL3"),
PINCTRL_PIN(69, "WB_CRTL3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 50), MTK_EINT_FUNCTION(0, 50),
MTK_FUNCTION(0, "GPIO69"), MTK_FUNCTION(0, "GPIO69"),
...@@ -682,8 +612,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -682,8 +612,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "DFD_TDI_XI"), MTK_FUNCTION(5, "DFD_TDI_XI"),
MTK_FUNCTION(7, "DBG_MON_A[20]") MTK_FUNCTION(7, "DBG_MON_A[20]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(70, "WB_CRTL4"),
PINCTRL_PIN(70, "WB_CRTL4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 51), MTK_EINT_FUNCTION(0, 51),
MTK_FUNCTION(0, "GPIO70"), MTK_FUNCTION(0, "GPIO70"),
...@@ -691,16 +620,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -691,16 +620,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "DFD_TDO"), MTK_FUNCTION(5, "DFD_TDO"),
MTK_FUNCTION(7, "DBG_MON_A[21]") MTK_FUNCTION(7, "DBG_MON_A[21]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(71, "WB_CRTL5"),
PINCTRL_PIN(71, "WB_CRTL5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 52), MTK_EINT_FUNCTION(0, 52),
MTK_FUNCTION(0, "GPIO71"), MTK_FUNCTION(0, "GPIO71"),
MTK_FUNCTION(1, "WB_CRTL5"), MTK_FUNCTION(1, "WB_CRTL5"),
MTK_FUNCTION(7, "DBG_MON_A[22]") MTK_FUNCTION(7, "DBG_MON_A[22]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(72, "I2S0_DATA_IN"),
PINCTRL_PIN(72, "I2S0_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 53), MTK_EINT_FUNCTION(0, 53),
MTK_FUNCTION(0, "GPIO72"), MTK_FUNCTION(0, "GPIO72"),
...@@ -711,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -711,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_I2S_DI"), MTK_FUNCTION(6, "WCN_I2S_DI"),
MTK_FUNCTION(7, "DBG_MON_B[2]") MTK_FUNCTION(7, "DBG_MON_B[2]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(73, "I2S0_LRCK"),
PINCTRL_PIN(73, "I2S0_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 54), MTK_EINT_FUNCTION(0, 54),
MTK_FUNCTION(0, "GPIO73"), MTK_FUNCTION(0, "GPIO73"),
...@@ -721,8 +647,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -721,8 +647,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_I2S_LRCK"), MTK_FUNCTION(6, "WCN_I2S_LRCK"),
MTK_FUNCTION(7, "DBG_MON_B[5]") MTK_FUNCTION(7, "DBG_MON_B[5]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(74, "I2S0_BCK"),
PINCTRL_PIN(74, "I2S0_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 55), MTK_EINT_FUNCTION(0, 55),
MTK_FUNCTION(0, "GPIO74"), MTK_FUNCTION(0, "GPIO74"),
...@@ -731,68 +656,59 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -731,68 +656,59 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_I2S_BCK"), MTK_FUNCTION(6, "WCN_I2S_BCK"),
MTK_FUNCTION(7, "DBG_MON_B[4]") MTK_FUNCTION(7, "DBG_MON_B[4]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(75, "SDA0"),
PINCTRL_PIN(75, "SDA0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 56), MTK_EINT_FUNCTION(0, 56),
MTK_FUNCTION(0, "GPIO75"), MTK_FUNCTION(0, "GPIO75"),
MTK_FUNCTION(1, "SDA0") MTK_FUNCTION(1, "SDA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(76, "SCL0"),
PINCTRL_PIN(76, "SCL0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 57), MTK_EINT_FUNCTION(0, 57),
MTK_FUNCTION(0, "GPIO76"), MTK_FUNCTION(0, "GPIO76"),
MTK_FUNCTION(1, "SCL0") MTK_FUNCTION(1, "SCL0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(77, "SDA2"),
PINCTRL_PIN(77, "SDA2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 58), MTK_EINT_FUNCTION(0, 58),
MTK_FUNCTION(0, "GPIO77"), MTK_FUNCTION(0, "GPIO77"),
MTK_FUNCTION(1, "SDA2") MTK_FUNCTION(1, "SDA2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(78, "SCL2"),
PINCTRL_PIN(78, "SCL2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 59), MTK_EINT_FUNCTION(0, 59),
MTK_FUNCTION(0, "GPIO78"), MTK_FUNCTION(0, "GPIO78"),
MTK_FUNCTION(1, "SCL2") MTK_FUNCTION(1, "SCL2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(79, "URXD0"),
PINCTRL_PIN(79, "URXD0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 60), MTK_EINT_FUNCTION(0, 60),
MTK_FUNCTION(0, "GPIO79"), MTK_FUNCTION(0, "GPIO79"),
MTK_FUNCTION(1, "URXD0"), MTK_FUNCTION(1, "URXD0"),
MTK_FUNCTION(2, "UTXD0") MTK_FUNCTION(2, "UTXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(80, "UTXD0"),
PINCTRL_PIN(80, "UTXD0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 61), MTK_EINT_FUNCTION(0, 61),
MTK_FUNCTION(0, "GPIO80"), MTK_FUNCTION(0, "GPIO80"),
MTK_FUNCTION(1, "UTXD0"), MTK_FUNCTION(1, "UTXD0"),
MTK_FUNCTION(2, "URXD0") MTK_FUNCTION(2, "URXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(81, "URXD1"),
PINCTRL_PIN(81, "URXD1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 62), MTK_EINT_FUNCTION(0, 62),
MTK_FUNCTION(0, "GPIO81"), MTK_FUNCTION(0, "GPIO81"),
MTK_FUNCTION(1, "URXD1"), MTK_FUNCTION(1, "URXD1"),
MTK_FUNCTION(2, "UTXD1") MTK_FUNCTION(2, "UTXD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(82, "UTXD1"),
PINCTRL_PIN(82, "UTXD1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 63), MTK_EINT_FUNCTION(0, 63),
MTK_FUNCTION(0, "GPIO82"), MTK_FUNCTION(0, "GPIO82"),
MTK_FUNCTION(1, "UTXD1"), MTK_FUNCTION(1, "UTXD1"),
MTK_FUNCTION(2, "URXD1") MTK_FUNCTION(2, "URXD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(83, "LCM_RST"),
PINCTRL_PIN(83, "LCM_RST"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 64), MTK_EINT_FUNCTION(0, 64),
MTK_FUNCTION(0, "GPIO83"), MTK_FUNCTION(0, "GPIO83"),
...@@ -800,16 +716,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -800,16 +716,14 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "VDAC_CK_XI"), MTK_FUNCTION(2, "VDAC_CK_XI"),
MTK_FUNCTION(7, "DBG_MON_B[1]") MTK_FUNCTION(7, "DBG_MON_B[1]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(84, "DSI_TE"),
PINCTRL_PIN(84, "DSI_TE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 65), MTK_EINT_FUNCTION(0, 65),
MTK_FUNCTION(0, "GPIO84"), MTK_FUNCTION(0, "GPIO84"),
MTK_FUNCTION(1, "DSI_TE"), MTK_FUNCTION(1, "DSI_TE"),
MTK_FUNCTION(7, "DBG_MON_B[0]") MTK_FUNCTION(7, "DBG_MON_B[0]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(85, "MSDC2_CMD"),
PINCTRL_PIN(85, "MSDC2_CMD"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 66), MTK_EINT_FUNCTION(0, 66),
MTK_FUNCTION(0, "GPIO85"), MTK_FUNCTION(0, "GPIO85"),
...@@ -818,8 +732,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -818,8 +732,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SDA1"), MTK_FUNCTION(3, "SDA1"),
MTK_FUNCTION(6, "I2SOUT_BCK") MTK_FUNCTION(6, "I2SOUT_BCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(86, "MSDC2_CLK"),
PINCTRL_PIN(86, "MSDC2_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 67), MTK_EINT_FUNCTION(0, 67),
MTK_FUNCTION(0, "GPIO86"), MTK_FUNCTION(0, "GPIO86"),
...@@ -828,8 +741,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -828,8 +741,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SCL1"), MTK_FUNCTION(3, "SCL1"),
MTK_FUNCTION(6, "I2SOUT_LRCK") MTK_FUNCTION(6, "I2SOUT_LRCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(87, "MSDC2_DAT0"),
PINCTRL_PIN(87, "MSDC2_DAT0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 68), MTK_EINT_FUNCTION(0, 68),
MTK_FUNCTION(0, "GPIO87"), MTK_FUNCTION(0, "GPIO87"),
...@@ -838,8 +750,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -838,8 +750,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "UTXD0"), MTK_FUNCTION(5, "UTXD0"),
MTK_FUNCTION(6, "I2SOUT_DATA_OUT") MTK_FUNCTION(6, "I2SOUT_DATA_OUT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(88, "MSDC2_DAT1"),
PINCTRL_PIN(88, "MSDC2_DAT1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 71), MTK_EINT_FUNCTION(0, 71),
MTK_FUNCTION(0, "GPIO88"), MTK_FUNCTION(0, "GPIO88"),
...@@ -849,8 +760,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -849,8 +760,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "URXD0"), MTK_FUNCTION(5, "URXD0"),
MTK_FUNCTION(6, "PWM1") MTK_FUNCTION(6, "PWM1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(89, "MSDC2_DAT2"),
PINCTRL_PIN(89, "MSDC2_DAT2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 72), MTK_EINT_FUNCTION(0, 72),
MTK_FUNCTION(0, "GPIO89"), MTK_FUNCTION(0, "GPIO89"),
...@@ -860,8 +770,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -860,8 +770,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "UTXD1"), MTK_FUNCTION(5, "UTXD1"),
MTK_FUNCTION(6, "PWM2") MTK_FUNCTION(6, "PWM2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(90, "MSDC2_DAT3"),
PINCTRL_PIN(90, "MSDC2_DAT3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 73), MTK_EINT_FUNCTION(0, 73),
MTK_FUNCTION(0, "GPIO90"), MTK_FUNCTION(0, "GPIO90"),
...@@ -872,78 +781,67 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -872,78 +781,67 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "URXD1"), MTK_FUNCTION(5, "URXD1"),
MTK_FUNCTION(6, "PWM3") MTK_FUNCTION(6, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(91, "TDN3"),
PINCTRL_PIN(91, "TDN3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI91"), MTK_FUNCTION(0, "GPI91"),
MTK_FUNCTION(1, "TDN3") MTK_FUNCTION(1, "TDN3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(92, "TDP3"),
PINCTRL_PIN(92, "TDP3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI92"), MTK_FUNCTION(0, "GPI92"),
MTK_FUNCTION(1, "TDP3") MTK_FUNCTION(1, "TDP3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(93, "TDN2"),
PINCTRL_PIN(93, "TDN2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI93"), MTK_FUNCTION(0, "GPI93"),
MTK_FUNCTION(1, "TDN2") MTK_FUNCTION(1, "TDN2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(94, "TDP2"),
PINCTRL_PIN(94, "TDP2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI94"), MTK_FUNCTION(0, "GPI94"),
MTK_FUNCTION(1, "TDP2") MTK_FUNCTION(1, "TDP2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(95, "TCN"),
PINCTRL_PIN(95, "TCN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI95"), MTK_FUNCTION(0, "GPI95"),
MTK_FUNCTION(1, "TCN") MTK_FUNCTION(1, "TCN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(96, "TCP"),
PINCTRL_PIN(96, "TCP"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI96"), MTK_FUNCTION(0, "GPI96"),
MTK_FUNCTION(1, "TCP") MTK_FUNCTION(1, "TCP")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(97, "TDN1"),
PINCTRL_PIN(97, "TDN1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI97"), MTK_FUNCTION(0, "GPI97"),
MTK_FUNCTION(1, "TDN1") MTK_FUNCTION(1, "TDN1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(98, "TDP1"),
PINCTRL_PIN(98, "TDP1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI98"), MTK_FUNCTION(0, "GPI98"),
MTK_FUNCTION(1, "TDP1") MTK_FUNCTION(1, "TDP1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(99, "TDN0"),
PINCTRL_PIN(99, "TDN0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI99"), MTK_FUNCTION(0, "GPI99"),
MTK_FUNCTION(1, "TDN0") MTK_FUNCTION(1, "TDN0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(100, "TDP0"),
PINCTRL_PIN(100, "TDP0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPI100"), MTK_FUNCTION(0, "GPI100"),
MTK_FUNCTION(1, "TDP0") MTK_FUNCTION(1, "TDP0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(101, "SPI2_CSN"),
PINCTRL_PIN(101, "SPI2_CSN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 74), MTK_EINT_FUNCTION(0, 74),
MTK_FUNCTION(0, "GPIO101"), MTK_FUNCTION(0, "GPIO101"),
...@@ -951,8 +849,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -951,8 +849,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SCL3"), MTK_FUNCTION(3, "SCL3"),
MTK_FUNCTION(4, "KROW0") MTK_FUNCTION(4, "KROW0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(102, "SPI2_MI"),
PINCTRL_PIN(102, "SPI2_MI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 75), MTK_EINT_FUNCTION(0, 75),
MTK_FUNCTION(0, "GPIO102"), MTK_FUNCTION(0, "GPIO102"),
...@@ -961,8 +858,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -961,8 +858,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SDA3"), MTK_FUNCTION(3, "SDA3"),
MTK_FUNCTION(4, "KROW1") MTK_FUNCTION(4, "KROW1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(103, "SPI2_MO"),
PINCTRL_PIN(103, "SPI2_MO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 76), MTK_EINT_FUNCTION(0, 76),
MTK_FUNCTION(0, "GPIO103"), MTK_FUNCTION(0, "GPIO103"),
...@@ -971,8 +867,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -971,8 +867,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SCL3"), MTK_FUNCTION(3, "SCL3"),
MTK_FUNCTION(4, "KROW2") MTK_FUNCTION(4, "KROW2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(104, "SPI2_CLK"),
PINCTRL_PIN(104, "SPI2_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 77), MTK_EINT_FUNCTION(0, 77),
MTK_FUNCTION(0, "GPIO104"), MTK_FUNCTION(0, "GPIO104"),
...@@ -980,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -980,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(3, "SDA3"), MTK_FUNCTION(3, "SDA3"),
MTK_FUNCTION(4, "KROW3") MTK_FUNCTION(4, "KROW3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(105, "MSDC1_CMD"),
PINCTRL_PIN(105, "MSDC1_CMD"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 78), MTK_EINT_FUNCTION(0, 78),
MTK_FUNCTION(0, "GPIO105"), MTK_FUNCTION(0, "GPIO105"),
...@@ -991,8 +885,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -991,8 +885,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "I2SOUT_BCK"), MTK_FUNCTION(6, "I2SOUT_BCK"),
MTK_FUNCTION(7, "DBG_MON_B[27]") MTK_FUNCTION(7, "DBG_MON_B[27]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(106, "MSDC1_CLK"),
PINCTRL_PIN(106, "MSDC1_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 79), MTK_EINT_FUNCTION(0, 79),
MTK_FUNCTION(0, "GPIO106"), MTK_FUNCTION(0, "GPIO106"),
...@@ -1002,8 +895,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1002,8 +895,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "I2SOUT_LRCK"), MTK_FUNCTION(6, "I2SOUT_LRCK"),
MTK_FUNCTION(7, "DBG_MON_B[28]") MTK_FUNCTION(7, "DBG_MON_B[28]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(107, "MSDC1_DAT0"),
PINCTRL_PIN(107, "MSDC1_DAT0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 80), MTK_EINT_FUNCTION(0, 80),
MTK_FUNCTION(0, "GPIO107"), MTK_FUNCTION(0, "GPIO107"),
...@@ -1013,8 +905,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1013,8 +905,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "I2SOUT_DATA_OUT"), MTK_FUNCTION(6, "I2SOUT_DATA_OUT"),
MTK_FUNCTION(7, "DBG_MON_B[26]") MTK_FUNCTION(7, "DBG_MON_B[26]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(108, "MSDC1_DAT1"),
PINCTRL_PIN(108, "MSDC1_DAT1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 81), MTK_EINT_FUNCTION(0, 81),
MTK_FUNCTION(0, "GPIO108"), MTK_FUNCTION(0, "GPIO108"),
...@@ -1025,8 +916,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1025,8 +916,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PWM1"), MTK_FUNCTION(6, "PWM1"),
MTK_FUNCTION(7, "DBG_MON_B[25]") MTK_FUNCTION(7, "DBG_MON_B[25]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(109, "MSDC1_DAT2"),
PINCTRL_PIN(109, "MSDC1_DAT2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 82), MTK_EINT_FUNCTION(0, 82),
MTK_FUNCTION(0, "GPIO109"), MTK_FUNCTION(0, "GPIO109"),
...@@ -1037,8 +927,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1037,8 +927,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PWM2"), MTK_FUNCTION(6, "PWM2"),
MTK_FUNCTION(7, "DBG_MON_B[24]") MTK_FUNCTION(7, "DBG_MON_B[24]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(110, "MSDC1_DAT3"),
PINCTRL_PIN(110, "MSDC1_DAT3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 83), MTK_EINT_FUNCTION(0, 83),
MTK_FUNCTION(0, "GPIO110"), MTK_FUNCTION(0, "GPIO110"),
...@@ -1050,88 +939,77 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1050,88 +939,77 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "PWM3"), MTK_FUNCTION(6, "PWM3"),
MTK_FUNCTION(7, "DBG_MON_B[23]") MTK_FUNCTION(7, "DBG_MON_B[23]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(111, "MSDC0_DAT7"),
PINCTRL_PIN(111, "MSDC0_DAT7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 84), MTK_EINT_FUNCTION(0, 84),
MTK_FUNCTION(0, "GPIO111"), MTK_FUNCTION(0, "GPIO111"),
MTK_FUNCTION(1, "MSDC0_DAT7"), MTK_FUNCTION(1, "MSDC0_DAT7"),
MTK_FUNCTION(4, "NLD7") MTK_FUNCTION(4, "NLD7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(112, "MSDC0_DAT6"),
PINCTRL_PIN(112, "MSDC0_DAT6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 85), MTK_EINT_FUNCTION(0, 85),
MTK_FUNCTION(0, "GPIO112"), MTK_FUNCTION(0, "GPIO112"),
MTK_FUNCTION(1, "MSDC0_DAT6"), MTK_FUNCTION(1, "MSDC0_DAT6"),
MTK_FUNCTION(4, "NLD6") MTK_FUNCTION(4, "NLD6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(113, "MSDC0_DAT5"),
PINCTRL_PIN(113, "MSDC0_DAT5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 86), MTK_EINT_FUNCTION(0, 86),
MTK_FUNCTION(0, "GPIO113"), MTK_FUNCTION(0, "GPIO113"),
MTK_FUNCTION(1, "MSDC0_DAT5"), MTK_FUNCTION(1, "MSDC0_DAT5"),
MTK_FUNCTION(4, "NLD5") MTK_FUNCTION(4, "NLD5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(114, "MSDC0_DAT4"),
PINCTRL_PIN(114, "MSDC0_DAT4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 87), MTK_EINT_FUNCTION(0, 87),
MTK_FUNCTION(0, "GPIO114"), MTK_FUNCTION(0, "GPIO114"),
MTK_FUNCTION(1, "MSDC0_DAT4"), MTK_FUNCTION(1, "MSDC0_DAT4"),
MTK_FUNCTION(4, "NLD4") MTK_FUNCTION(4, "NLD4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(115, "MSDC0_RSTB"),
PINCTRL_PIN(115, "MSDC0_RSTB"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 88), MTK_EINT_FUNCTION(0, 88),
MTK_FUNCTION(0, "GPIO115"), MTK_FUNCTION(0, "GPIO115"),
MTK_FUNCTION(1, "MSDC0_RSTB"), MTK_FUNCTION(1, "MSDC0_RSTB"),
MTK_FUNCTION(4, "NLD8") MTK_FUNCTION(4, "NLD8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(116, "MSDC0_CMD"),
PINCTRL_PIN(116, "MSDC0_CMD"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 89), MTK_EINT_FUNCTION(0, 89),
MTK_FUNCTION(0, "GPIO116"), MTK_FUNCTION(0, "GPIO116"),
MTK_FUNCTION(1, "MSDC0_CMD"), MTK_FUNCTION(1, "MSDC0_CMD"),
MTK_FUNCTION(4, "NALE") MTK_FUNCTION(4, "NALE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(117, "MSDC0_CLK"),
PINCTRL_PIN(117, "MSDC0_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 90), MTK_EINT_FUNCTION(0, 90),
MTK_FUNCTION(0, "GPIO117"), MTK_FUNCTION(0, "GPIO117"),
MTK_FUNCTION(1, "MSDC0_CLK"), MTK_FUNCTION(1, "MSDC0_CLK"),
MTK_FUNCTION(4, "NWEB") MTK_FUNCTION(4, "NWEB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(118, "MSDC0_DAT3"),
PINCTRL_PIN(118, "MSDC0_DAT3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 91), MTK_EINT_FUNCTION(0, 91),
MTK_FUNCTION(0, "GPIO118"), MTK_FUNCTION(0, "GPIO118"),
MTK_FUNCTION(1, "MSDC0_DAT3"), MTK_FUNCTION(1, "MSDC0_DAT3"),
MTK_FUNCTION(4, "NLD3") MTK_FUNCTION(4, "NLD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(119, "MSDC0_DAT2"),
PINCTRL_PIN(119, "MSDC0_DAT2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 92), MTK_EINT_FUNCTION(0, 92),
MTK_FUNCTION(0, "GPIO119"), MTK_FUNCTION(0, "GPIO119"),
MTK_FUNCTION(1, "MSDC0_DAT2"), MTK_FUNCTION(1, "MSDC0_DAT2"),
MTK_FUNCTION(4, "NLD2") MTK_FUNCTION(4, "NLD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(120, "MSDC0_DAT1"),
PINCTRL_PIN(120, "MSDC0_DAT1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 93), MTK_EINT_FUNCTION(0, 93),
MTK_FUNCTION(0, "GPIO120"), MTK_FUNCTION(0, "GPIO120"),
MTK_FUNCTION(1, "MSDC0_DAT1"), MTK_FUNCTION(1, "MSDC0_DAT1"),
MTK_FUNCTION(4, "NLD1") MTK_FUNCTION(4, "NLD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(121, "MSDC0_DAT0"),
PINCTRL_PIN(121, "MSDC0_DAT0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 94), MTK_EINT_FUNCTION(0, 94),
MTK_FUNCTION(0, "GPIO121"), MTK_FUNCTION(0, "GPIO121"),
...@@ -1139,8 +1017,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1139,8 +1017,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "NLD0"), MTK_FUNCTION(4, "NLD0"),
MTK_FUNCTION(5, "WATCHDOG") MTK_FUNCTION(5, "WATCHDOG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(122, "CEC"),
PINCTRL_PIN(122, "CEC"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 95), MTK_EINT_FUNCTION(0, 95),
MTK_FUNCTION(0, "GPIO122"), MTK_FUNCTION(0, "GPIO122"),
...@@ -1148,8 +1025,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1148,8 +1025,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SDA2"), MTK_FUNCTION(4, "SDA2"),
MTK_FUNCTION(5, "URXD0") MTK_FUNCTION(5, "URXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(123, "HTPLG"),
PINCTRL_PIN(123, "HTPLG"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 96), MTK_EINT_FUNCTION(0, 96),
MTK_FUNCTION(0, "GPIO123"), MTK_FUNCTION(0, "GPIO123"),
...@@ -1157,8 +1033,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1157,8 +1033,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SCL2"), MTK_FUNCTION(4, "SCL2"),
MTK_FUNCTION(5, "UTXD0") MTK_FUNCTION(5, "UTXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(124, "HDMISCK"),
PINCTRL_PIN(124, "HDMISCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 97), MTK_EINT_FUNCTION(0, 97),
MTK_FUNCTION(0, "GPIO124"), MTK_FUNCTION(0, "GPIO124"),
...@@ -1166,8 +1041,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1166,8 +1041,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SDA1"), MTK_FUNCTION(4, "SDA1"),
MTK_FUNCTION(5, "PWM3") MTK_FUNCTION(5, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(125, "HDMISD"),
PINCTRL_PIN(125, "HDMISD"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 98), MTK_EINT_FUNCTION(0, 98),
MTK_FUNCTION(0, "GPIO125"), MTK_FUNCTION(0, "GPIO125"),
...@@ -1175,8 +1049,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1175,8 +1049,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SCL1"), MTK_FUNCTION(4, "SCL1"),
MTK_FUNCTION(5, "PWM4") MTK_FUNCTION(5, "PWM4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(126, "I2S0_MCLK"),
PINCTRL_PIN(126, "I2S0_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 99), MTK_EINT_FUNCTION(0, 99),
MTK_FUNCTION(0, "GPIO126"), MTK_FUNCTION(0, "GPIO126"),
...@@ -1184,481 +1057,413 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1184,481 +1057,413 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "WCN_I2S_MCLK"), MTK_FUNCTION(6, "WCN_I2S_MCLK"),
MTK_FUNCTION(7, "DBG_MON_B[6]") MTK_FUNCTION(7, "DBG_MON_B[6]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(127, "RAMBUF_IDATA0"),
PINCTRL_PIN(127, "RAMBUF_IDATA0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO127"), MTK_FUNCTION(0, "GPIO127"),
MTK_FUNCTION(1, "RAMBUF_IDATA0") MTK_FUNCTION(1, "RAMBUF_IDATA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(128, "RAMBUF_IDATA1"),
PINCTRL_PIN(128, "RAMBUF_IDATA1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO128"), MTK_FUNCTION(0, "GPIO128"),
MTK_FUNCTION(1, "RAMBUF_IDATA1") MTK_FUNCTION(1, "RAMBUF_IDATA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(129, "RAMBUF_IDATA2"),
PINCTRL_PIN(129, "RAMBUF_IDATA2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO129"), MTK_FUNCTION(0, "GPIO129"),
MTK_FUNCTION(1, "RAMBUF_IDATA2") MTK_FUNCTION(1, "RAMBUF_IDATA2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(130, "RAMBUF_IDATA3"),
PINCTRL_PIN(130, "RAMBUF_IDATA3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO130"), MTK_FUNCTION(0, "GPIO130"),
MTK_FUNCTION(1, "RAMBUF_IDATA3") MTK_FUNCTION(1, "RAMBUF_IDATA3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(131, "RAMBUF_IDATA4"),
PINCTRL_PIN(131, "RAMBUF_IDATA4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO131"), MTK_FUNCTION(0, "GPIO131"),
MTK_FUNCTION(1, "RAMBUF_IDATA4") MTK_FUNCTION(1, "RAMBUF_IDATA4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(132, "RAMBUF_IDATA5"),
PINCTRL_PIN(132, "RAMBUF_IDATA5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO132"), MTK_FUNCTION(0, "GPIO132"),
MTK_FUNCTION(1, "RAMBUF_IDATA5") MTK_FUNCTION(1, "RAMBUF_IDATA5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(133, "RAMBUF_IDATA6"),
PINCTRL_PIN(133, "RAMBUF_IDATA6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO133"), MTK_FUNCTION(0, "GPIO133"),
MTK_FUNCTION(1, "RAMBUF_IDATA6") MTK_FUNCTION(1, "RAMBUF_IDATA6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(134, "RAMBUF_IDATA7"),
PINCTRL_PIN(134, "RAMBUF_IDATA7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO134"), MTK_FUNCTION(0, "GPIO134"),
MTK_FUNCTION(1, "RAMBUF_IDATA7") MTK_FUNCTION(1, "RAMBUF_IDATA7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(135, "RAMBUF_IDATA8"),
PINCTRL_PIN(135, "RAMBUF_IDATA8"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO135"), MTK_FUNCTION(0, "GPIO135"),
MTK_FUNCTION(1, "RAMBUF_IDATA8") MTK_FUNCTION(1, "RAMBUF_IDATA8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(136, "RAMBUF_IDATA9"),
PINCTRL_PIN(136, "RAMBUF_IDATA9"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO136"), MTK_FUNCTION(0, "GPIO136"),
MTK_FUNCTION(1, "RAMBUF_IDATA9") MTK_FUNCTION(1, "RAMBUF_IDATA9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(137, "RAMBUF_IDATA10"),
PINCTRL_PIN(137, "RAMBUF_IDATA10"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO137"), MTK_FUNCTION(0, "GPIO137"),
MTK_FUNCTION(1, "RAMBUF_IDATA10") MTK_FUNCTION(1, "RAMBUF_IDATA10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(138, "RAMBUF_IDATA11"),
PINCTRL_PIN(138, "RAMBUF_IDATA11"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO138"), MTK_FUNCTION(0, "GPIO138"),
MTK_FUNCTION(1, "RAMBUF_IDATA11") MTK_FUNCTION(1, "RAMBUF_IDATA11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(139, "RAMBUF_IDATA12"),
PINCTRL_PIN(139, "RAMBUF_IDATA12"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO139"), MTK_FUNCTION(0, "GPIO139"),
MTK_FUNCTION(1, "RAMBUF_IDATA12") MTK_FUNCTION(1, "RAMBUF_IDATA12")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(140, "RAMBUF_IDATA13"),
PINCTRL_PIN(140, "RAMBUF_IDATA13"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO140"), MTK_FUNCTION(0, "GPIO140"),
MTK_FUNCTION(1, "RAMBUF_IDATA13") MTK_FUNCTION(1, "RAMBUF_IDATA13")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(141, "RAMBUF_IDATA14"),
PINCTRL_PIN(141, "RAMBUF_IDATA14"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO141"), MTK_FUNCTION(0, "GPIO141"),
MTK_FUNCTION(1, "RAMBUF_IDATA14") MTK_FUNCTION(1, "RAMBUF_IDATA14")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(142, "RAMBUF_IDATA15"),
PINCTRL_PIN(142, "RAMBUF_IDATA15"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO142"), MTK_FUNCTION(0, "GPIO142"),
MTK_FUNCTION(1, "RAMBUF_IDATA15") MTK_FUNCTION(1, "RAMBUF_IDATA15")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(143, "RAMBUF_ODATA0"),
PINCTRL_PIN(143, "RAMBUF_ODATA0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO143"), MTK_FUNCTION(0, "GPIO143"),
MTK_FUNCTION(1, "RAMBUF_ODATA0") MTK_FUNCTION(1, "RAMBUF_ODATA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(144, "RAMBUF_ODATA1"),
PINCTRL_PIN(144, "RAMBUF_ODATA1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO144"), MTK_FUNCTION(0, "GPIO144"),
MTK_FUNCTION(1, "RAMBUF_ODATA1") MTK_FUNCTION(1, "RAMBUF_ODATA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(145, "RAMBUF_ODATA2"),
PINCTRL_PIN(145, "RAMBUF_ODATA2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO145"), MTK_FUNCTION(0, "GPIO145"),
MTK_FUNCTION(1, "RAMBUF_ODATA2") MTK_FUNCTION(1, "RAMBUF_ODATA2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(146, "RAMBUF_ODATA3"),
PINCTRL_PIN(146, "RAMBUF_ODATA3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO146"), MTK_FUNCTION(0, "GPIO146"),
MTK_FUNCTION(1, "RAMBUF_ODATA3") MTK_FUNCTION(1, "RAMBUF_ODATA3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(147, "RAMBUF_ODATA4"),
PINCTRL_PIN(147, "RAMBUF_ODATA4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO147"), MTK_FUNCTION(0, "GPIO147"),
MTK_FUNCTION(1, "RAMBUF_ODATA4") MTK_FUNCTION(1, "RAMBUF_ODATA4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(148, "RAMBUF_ODATA5"),
PINCTRL_PIN(148, "RAMBUF_ODATA5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO148"), MTK_FUNCTION(0, "GPIO148"),
MTK_FUNCTION(1, "RAMBUF_ODATA5") MTK_FUNCTION(1, "RAMBUF_ODATA5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(149, "RAMBUF_ODATA6"),
PINCTRL_PIN(149, "RAMBUF_ODATA6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO149"), MTK_FUNCTION(0, "GPIO149"),
MTK_FUNCTION(1, "RAMBUF_ODATA6") MTK_FUNCTION(1, "RAMBUF_ODATA6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(150, "RAMBUF_ODATA7"),
PINCTRL_PIN(150, "RAMBUF_ODATA7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO150"), MTK_FUNCTION(0, "GPIO150"),
MTK_FUNCTION(1, "RAMBUF_ODATA7") MTK_FUNCTION(1, "RAMBUF_ODATA7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(151, "RAMBUF_ODATA8"),
PINCTRL_PIN(151, "RAMBUF_ODATA8"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO151"), MTK_FUNCTION(0, "GPIO151"),
MTK_FUNCTION(1, "RAMBUF_ODATA8") MTK_FUNCTION(1, "RAMBUF_ODATA8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(152, "RAMBUF_ODATA9"),
PINCTRL_PIN(152, "RAMBUF_ODATA9"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO152"), MTK_FUNCTION(0, "GPIO152"),
MTK_FUNCTION(1, "RAMBUF_ODATA9") MTK_FUNCTION(1, "RAMBUF_ODATA9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(153, "RAMBUF_ODATA10"),
PINCTRL_PIN(153, "RAMBUF_ODATA10"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO153"), MTK_FUNCTION(0, "GPIO153"),
MTK_FUNCTION(1, "RAMBUF_ODATA10") MTK_FUNCTION(1, "RAMBUF_ODATA10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(154, "RAMBUF_ODATA11"),
PINCTRL_PIN(154, "RAMBUF_ODATA11"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO154"), MTK_FUNCTION(0, "GPIO154"),
MTK_FUNCTION(1, "RAMBUF_ODATA11") MTK_FUNCTION(1, "RAMBUF_ODATA11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(155, "RAMBUF_ODATA12"),
PINCTRL_PIN(155, "RAMBUF_ODATA12"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO155"), MTK_FUNCTION(0, "GPIO155"),
MTK_FUNCTION(1, "RAMBUF_ODATA12") MTK_FUNCTION(1, "RAMBUF_ODATA12")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(156, "RAMBUF_ODATA13"),
PINCTRL_PIN(156, "RAMBUF_ODATA13"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO156"), MTK_FUNCTION(0, "GPIO156"),
MTK_FUNCTION(1, "RAMBUF_ODATA13") MTK_FUNCTION(1, "RAMBUF_ODATA13")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(157, "RAMBUF_ODATA14"),
PINCTRL_PIN(157, "RAMBUF_ODATA14"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO157"), MTK_FUNCTION(0, "GPIO157"),
MTK_FUNCTION(1, "RAMBUF_ODATA14") MTK_FUNCTION(1, "RAMBUF_ODATA14")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(158, "RAMBUF_ODATA15"),
PINCTRL_PIN(158, "RAMBUF_ODATA15"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO158"), MTK_FUNCTION(0, "GPIO158"),
MTK_FUNCTION(1, "RAMBUF_ODATA15") MTK_FUNCTION(1, "RAMBUF_ODATA15")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(159, "RAMBUF_BE0"),
PINCTRL_PIN(159, "RAMBUF_BE0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO159"), MTK_FUNCTION(0, "GPIO159"),
MTK_FUNCTION(1, "RAMBUF_BE0") MTK_FUNCTION(1, "RAMBUF_BE0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(160, "RAMBUF_BE1"),
PINCTRL_PIN(160, "RAMBUF_BE1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO160"), MTK_FUNCTION(0, "GPIO160"),
MTK_FUNCTION(1, "RAMBUF_BE1") MTK_FUNCTION(1, "RAMBUF_BE1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(161, "AP2PT_INT"),
PINCTRL_PIN(161, "AP2PT_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO161"), MTK_FUNCTION(0, "GPIO161"),
MTK_FUNCTION(1, "AP2PT_INT") MTK_FUNCTION(1, "AP2PT_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(162, "AP2PT_INT_CLR"),
PINCTRL_PIN(162, "AP2PT_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO162"), MTK_FUNCTION(0, "GPIO162"),
MTK_FUNCTION(1, "AP2PT_INT_CLR") MTK_FUNCTION(1, "AP2PT_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(163, "PT2AP_INT"),
PINCTRL_PIN(163, "PT2AP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO163"), MTK_FUNCTION(0, "GPIO163"),
MTK_FUNCTION(1, "PT2AP_INT") MTK_FUNCTION(1, "PT2AP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(164, "PT2AP_INT_CLR"),
PINCTRL_PIN(164, "PT2AP_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO164"), MTK_FUNCTION(0, "GPIO164"),
MTK_FUNCTION(1, "PT2AP_INT_CLR") MTK_FUNCTION(1, "PT2AP_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(165, "AP2UP_INT"),
PINCTRL_PIN(165, "AP2UP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO165"), MTK_FUNCTION(0, "GPIO165"),
MTK_FUNCTION(1, "AP2UP_INT") MTK_FUNCTION(1, "AP2UP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(166, "AP2UP_INT_CLR"),
PINCTRL_PIN(166, "AP2UP_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO166"), MTK_FUNCTION(0, "GPIO166"),
MTK_FUNCTION(1, "AP2UP_INT_CLR") MTK_FUNCTION(1, "AP2UP_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(167, "UP2AP_INT"),
PINCTRL_PIN(167, "UP2AP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO167"), MTK_FUNCTION(0, "GPIO167"),
MTK_FUNCTION(1, "UP2AP_INT") MTK_FUNCTION(1, "UP2AP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(168, "UP2AP_INT_CLR"),
PINCTRL_PIN(168, "UP2AP_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO168"), MTK_FUNCTION(0, "GPIO168"),
MTK_FUNCTION(1, "UP2AP_INT_CLR") MTK_FUNCTION(1, "UP2AP_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(169, "RAMBUF_ADDR0"),
PINCTRL_PIN(169, "RAMBUF_ADDR0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO169"), MTK_FUNCTION(0, "GPIO169"),
MTK_FUNCTION(1, "RAMBUF_ADDR0") MTK_FUNCTION(1, "RAMBUF_ADDR0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(170, "RAMBUF_ADDR1"),
PINCTRL_PIN(170, "RAMBUF_ADDR1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO170"), MTK_FUNCTION(0, "GPIO170"),
MTK_FUNCTION(1, "RAMBUF_ADDR1") MTK_FUNCTION(1, "RAMBUF_ADDR1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(171, "RAMBUF_ADDR2"),
PINCTRL_PIN(171, "RAMBUF_ADDR2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO171"), MTK_FUNCTION(0, "GPIO171"),
MTK_FUNCTION(1, "RAMBUF_ADDR2") MTK_FUNCTION(1, "RAMBUF_ADDR2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(172, "RAMBUF_ADDR3"),
PINCTRL_PIN(172, "RAMBUF_ADDR3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO172"), MTK_FUNCTION(0, "GPIO172"),
MTK_FUNCTION(1, "RAMBUF_ADDR3") MTK_FUNCTION(1, "RAMBUF_ADDR3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(173, "RAMBUF_ADDR4"),
PINCTRL_PIN(173, "RAMBUF_ADDR4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO173"), MTK_FUNCTION(0, "GPIO173"),
MTK_FUNCTION(1, "RAMBUF_ADDR4") MTK_FUNCTION(1, "RAMBUF_ADDR4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(174, "RAMBUF_ADDR5"),
PINCTRL_PIN(174, "RAMBUF_ADDR5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO174"), MTK_FUNCTION(0, "GPIO174"),
MTK_FUNCTION(1, "RAMBUF_ADDR5") MTK_FUNCTION(1, "RAMBUF_ADDR5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(175, "RAMBUF_ADDR6"),
PINCTRL_PIN(175, "RAMBUF_ADDR6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO175"), MTK_FUNCTION(0, "GPIO175"),
MTK_FUNCTION(1, "RAMBUF_ADDR6") MTK_FUNCTION(1, "RAMBUF_ADDR6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(176, "RAMBUF_ADDR7"),
PINCTRL_PIN(176, "RAMBUF_ADDR7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO176"), MTK_FUNCTION(0, "GPIO176"),
MTK_FUNCTION(1, "RAMBUF_ADDR7") MTK_FUNCTION(1, "RAMBUF_ADDR7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(177, "RAMBUF_ADDR8"),
PINCTRL_PIN(177, "RAMBUF_ADDR8"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO177"), MTK_FUNCTION(0, "GPIO177"),
MTK_FUNCTION(1, "RAMBUF_ADDR8") MTK_FUNCTION(1, "RAMBUF_ADDR8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(178, "RAMBUF_ADDR9"),
PINCTRL_PIN(178, "RAMBUF_ADDR9"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO178"), MTK_FUNCTION(0, "GPIO178"),
MTK_FUNCTION(1, "RAMBUF_ADDR9") MTK_FUNCTION(1, "RAMBUF_ADDR9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(179, "RAMBUF_ADDR10"),
PINCTRL_PIN(179, "RAMBUF_ADDR10"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO179"), MTK_FUNCTION(0, "GPIO179"),
MTK_FUNCTION(1, "RAMBUF_ADDR10") MTK_FUNCTION(1, "RAMBUF_ADDR10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(180, "RAMBUF_RW"),
PINCTRL_PIN(180, "RAMBUF_RW"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO180"), MTK_FUNCTION(0, "GPIO180"),
MTK_FUNCTION(1, "RAMBUF_RW") MTK_FUNCTION(1, "RAMBUF_RW")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(181, "RAMBUF_LAST"),
PINCTRL_PIN(181, "RAMBUF_LAST"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO181"), MTK_FUNCTION(0, "GPIO181"),
MTK_FUNCTION(1, "RAMBUF_LAST") MTK_FUNCTION(1, "RAMBUF_LAST")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(182, "RAMBUF_HP"),
PINCTRL_PIN(182, "RAMBUF_HP"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO182"), MTK_FUNCTION(0, "GPIO182"),
MTK_FUNCTION(1, "RAMBUF_HP") MTK_FUNCTION(1, "RAMBUF_HP")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(183, "RAMBUF_REQ"),
PINCTRL_PIN(183, "RAMBUF_REQ"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO183"), MTK_FUNCTION(0, "GPIO183"),
MTK_FUNCTION(1, "RAMBUF_REQ") MTK_FUNCTION(1, "RAMBUF_REQ")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(184, "RAMBUF_ALE"),
PINCTRL_PIN(184, "RAMBUF_ALE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO184"), MTK_FUNCTION(0, "GPIO184"),
MTK_FUNCTION(1, "RAMBUF_ALE") MTK_FUNCTION(1, "RAMBUF_ALE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(185, "RAMBUF_DLE"),
PINCTRL_PIN(185, "RAMBUF_DLE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO185"), MTK_FUNCTION(0, "GPIO185"),
MTK_FUNCTION(1, "RAMBUF_DLE") MTK_FUNCTION(1, "RAMBUF_DLE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(186, "RAMBUF_WDLE"),
PINCTRL_PIN(186, "RAMBUF_WDLE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO186"), MTK_FUNCTION(0, "GPIO186"),
MTK_FUNCTION(1, "RAMBUF_WDLE") MTK_FUNCTION(1, "RAMBUF_WDLE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(187, "RAMBUF_O_CLK"),
PINCTRL_PIN(187, "RAMBUF_O_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO187"), MTK_FUNCTION(0, "GPIO187"),
MTK_FUNCTION(1, "RAMBUF_O_CLK") MTK_FUNCTION(1, "RAMBUF_O_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(188, "I2S2_MCLK"),
PINCTRL_PIN(188, "I2S2_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 100), MTK_EINT_FUNCTION(0, 100),
MTK_FUNCTION(0, "GPIO188"), MTK_FUNCTION(0, "GPIO188"),
MTK_FUNCTION(1, "I2S2_MCLK") MTK_FUNCTION(1, "I2S2_MCLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(189, "I2S3_DATA"),
PINCTRL_PIN(189, "I2S3_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 101), MTK_EINT_FUNCTION(0, 101),
MTK_FUNCTION(0, "GPIO189"), MTK_FUNCTION(0, "GPIO189"),
MTK_FUNCTION(2, "I2S3_DATA_BYPS"), MTK_FUNCTION(2, "I2S3_DATA_BYPS"),
MTK_FUNCTION(3, "PCM_TX") MTK_FUNCTION(3, "PCM_TX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(190, "I2S3_DATA_IN"),
PINCTRL_PIN(190, "I2S3_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 102), MTK_EINT_FUNCTION(0, 102),
MTK_FUNCTION(0, "GPIO190"), MTK_FUNCTION(0, "GPIO190"),
MTK_FUNCTION(1, "I2S3_DATA_IN"), MTK_FUNCTION(1, "I2S3_DATA_IN"),
MTK_FUNCTION(3, "PCM_RX") MTK_FUNCTION(3, "PCM_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(191, "I2S3_BCK"),
PINCTRL_PIN(191, "I2S3_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 103), MTK_EINT_FUNCTION(0, 103),
MTK_FUNCTION(0, "GPIO191"), MTK_FUNCTION(0, "GPIO191"),
MTK_FUNCTION(1, "I2S3_BCK"), MTK_FUNCTION(1, "I2S3_BCK"),
MTK_FUNCTION(3, "PCM_CLK0") MTK_FUNCTION(3, "PCM_CLK0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(192, "I2S3_LRCK"),
PINCTRL_PIN(192, "I2S3_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 104), MTK_EINT_FUNCTION(0, 104),
MTK_FUNCTION(0, "GPIO192"), MTK_FUNCTION(0, "GPIO192"),
MTK_FUNCTION(1, "I2S3_LRCK"), MTK_FUNCTION(1, "I2S3_LRCK"),
MTK_FUNCTION(3, "PCM_SYNC") MTK_FUNCTION(3, "PCM_SYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(193, "I2S3_MCLK"),
PINCTRL_PIN(193, "I2S3_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 105), MTK_EINT_FUNCTION(0, 105),
MTK_FUNCTION(0, "GPIO193"), MTK_FUNCTION(0, "GPIO193"),
MTK_FUNCTION(1, "I2S3_MCLK") MTK_FUNCTION(1, "I2S3_MCLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(194, "I2S4_DATA"),
PINCTRL_PIN(194, "I2S4_DATA"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 106), MTK_EINT_FUNCTION(0, 106),
MTK_FUNCTION(0, "GPIO194"), MTK_FUNCTION(0, "GPIO194"),
...@@ -1666,39 +1471,34 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1666,39 +1471,34 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "I2S4_DATA_BYPS"), MTK_FUNCTION(2, "I2S4_DATA_BYPS"),
MTK_FUNCTION(3, "PCM_TX") MTK_FUNCTION(3, "PCM_TX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(195, "I2S4_DATA_IN"),
PINCTRL_PIN(195, "I2S4_DATA_IN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 107), MTK_EINT_FUNCTION(0, 107),
MTK_FUNCTION(0, "GPIO195"), MTK_FUNCTION(0, "GPIO195"),
MTK_FUNCTION(1, "I2S4_DATA_IN"), MTK_FUNCTION(1, "I2S4_DATA_IN"),
MTK_FUNCTION(3, "PCM_RX") MTK_FUNCTION(3, "PCM_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(196, "I2S4_BCK"),
PINCTRL_PIN(196, "I2S4_BCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 108), MTK_EINT_FUNCTION(0, 108),
MTK_FUNCTION(0, "GPIO196"), MTK_FUNCTION(0, "GPIO196"),
MTK_FUNCTION(1, "I2S4_BCK"), MTK_FUNCTION(1, "I2S4_BCK"),
MTK_FUNCTION(3, "PCM_CLK0") MTK_FUNCTION(3, "PCM_CLK0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(197, "I2S4_LRCK"),
PINCTRL_PIN(197, "I2S4_LRCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 109), MTK_EINT_FUNCTION(0, 109),
MTK_FUNCTION(0, "GPIO197"), MTK_FUNCTION(0, "GPIO197"),
MTK_FUNCTION(1, "I2S4_LRCK"), MTK_FUNCTION(1, "I2S4_LRCK"),
MTK_FUNCTION(3, "PCM_SYNC") MTK_FUNCTION(3, "PCM_SYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(198, "I2S4_MCLK"),
PINCTRL_PIN(198, "I2S4_MCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 110), MTK_EINT_FUNCTION(0, 110),
MTK_FUNCTION(0, "GPIO198"), MTK_FUNCTION(0, "GPIO198"),
MTK_FUNCTION(1, "I2S4_MCLK") MTK_FUNCTION(1, "I2S4_MCLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(199, "SPI1_CLK"),
PINCTRL_PIN(199, "SPI1_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 111), MTK_EINT_FUNCTION(0, 111),
MTK_FUNCTION(0, "GPIO199"), MTK_FUNCTION(0, "GPIO199"),
...@@ -1707,8 +1507,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1707,8 +1507,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "KCOL3"), MTK_FUNCTION(4, "KCOL3"),
MTK_FUNCTION(7, "DBG_MON_B[15]") MTK_FUNCTION(7, "DBG_MON_B[15]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(200, "SPDIF_OUT"),
PINCTRL_PIN(200, "SPDIF_OUT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 112), MTK_EINT_FUNCTION(0, 112),
MTK_FUNCTION(0, "GPIO200"), MTK_FUNCTION(0, "GPIO200"),
...@@ -1717,8 +1516,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1717,8 +1516,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "URXD2"), MTK_FUNCTION(6, "URXD2"),
MTK_FUNCTION(7, "DBG_MON_B[16]") MTK_FUNCTION(7, "DBG_MON_B[16]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(201, "SPDIF_IN0"),
PINCTRL_PIN(201, "SPDIF_IN0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 113), MTK_EINT_FUNCTION(0, 113),
MTK_FUNCTION(0, "GPIO201"), MTK_FUNCTION(0, "GPIO201"),
...@@ -1727,15 +1525,13 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1727,15 +1525,13 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(6, "UTXD2"), MTK_FUNCTION(6, "UTXD2"),
MTK_FUNCTION(7, "DBG_MON_B[17]") MTK_FUNCTION(7, "DBG_MON_B[17]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(202, "SPDIF_IN1"),
PINCTRL_PIN(202, "SPDIF_IN1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 114), MTK_EINT_FUNCTION(0, 114),
MTK_FUNCTION(0, "GPIO202"), MTK_FUNCTION(0, "GPIO202"),
MTK_FUNCTION(1, "SPDIF_IN1") MTK_FUNCTION(1, "SPDIF_IN1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(203, "PWM0"),
PINCTRL_PIN(203, "PWM0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 115), MTK_EINT_FUNCTION(0, 115),
MTK_FUNCTION(0, "GPIO203"), MTK_FUNCTION(0, "GPIO203"),
...@@ -1745,8 +1541,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1745,8 +1541,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_B[18]"), MTK_FUNCTION(7, "DBG_MON_B[18]"),
MTK_FUNCTION(9, "I2S2_DATA") MTK_FUNCTION(9, "I2S2_DATA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(204, "PWM1"),
PINCTRL_PIN(204, "PWM1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 116), MTK_EINT_FUNCTION(0, 116),
MTK_FUNCTION(0, "GPIO204"), MTK_FUNCTION(0, "GPIO204"),
...@@ -1756,8 +1551,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1756,8 +1551,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_B[19]"), MTK_FUNCTION(7, "DBG_MON_B[19]"),
MTK_FUNCTION(9, "I2S3_DATA") MTK_FUNCTION(9, "I2S3_DATA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(205, "PWM2"),
PINCTRL_PIN(205, "PWM2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 117), MTK_EINT_FUNCTION(0, 117),
MTK_FUNCTION(0, "GPIO205"), MTK_FUNCTION(0, "GPIO205"),
...@@ -1766,8 +1560,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1766,8 +1560,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "G1_TXD0"), MTK_FUNCTION(5, "G1_TXD0"),
MTK_FUNCTION(7, "DBG_MON_B[20]") MTK_FUNCTION(7, "DBG_MON_B[20]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(206, "PWM3"),
PINCTRL_PIN(206, "PWM3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 118), MTK_EINT_FUNCTION(0, 118),
MTK_FUNCTION(0, "GPIO206"), MTK_FUNCTION(0, "GPIO206"),
...@@ -1777,8 +1570,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1777,8 +1570,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "G1_TXC"), MTK_FUNCTION(5, "G1_TXC"),
MTK_FUNCTION(7, "DBG_MON_B[21]") MTK_FUNCTION(7, "DBG_MON_B[21]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(207, "PWM4"),
PINCTRL_PIN(207, "PWM4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 119), MTK_EINT_FUNCTION(0, 119),
MTK_FUNCTION(0, "GPIO207"), MTK_FUNCTION(0, "GPIO207"),
...@@ -1788,8 +1580,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1788,8 +1580,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(5, "G1_RXC"), MTK_FUNCTION(5, "G1_RXC"),
MTK_FUNCTION(7, "DBG_MON_B[22]") MTK_FUNCTION(7, "DBG_MON_B[22]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(208, "AUD_EXT_CK1"),
PINCTRL_PIN(208, "AUD_EXT_CK1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 120), MTK_EINT_FUNCTION(0, 120),
MTK_FUNCTION(0, "GPIO208"), MTK_FUNCTION(0, "GPIO208"),
...@@ -1802,8 +1593,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1802,8 +1593,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[31]"), MTK_FUNCTION(7, "DBG_MON_A[31]"),
MTK_FUNCTION(11, "PCIE0_PERST_N") MTK_FUNCTION(11, "PCIE0_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(209, "AUD_EXT_CK2"),
PINCTRL_PIN(209, "AUD_EXT_CK2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 121), MTK_EINT_FUNCTION(0, 121),
MTK_FUNCTION(0, "GPIO209"), MTK_FUNCTION(0, "GPIO209"),
...@@ -1815,190 +1605,163 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -1815,190 +1605,163 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(7, "DBG_MON_A[32]"), MTK_FUNCTION(7, "DBG_MON_A[32]"),
MTK_FUNCTION(11, "PCIE1_PERST_N") MTK_FUNCTION(11, "PCIE1_PERST_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(210, "AUD_CLOCK"),
PINCTRL_PIN(210, "AUD_CLOCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO210"), MTK_FUNCTION(0, "GPIO210"),
MTK_FUNCTION(1, "AUD_CLOCK") MTK_FUNCTION(1, "AUD_CLOCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(211, "DVP_RESET"),
PINCTRL_PIN(211, "DVP_RESET"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO211"), MTK_FUNCTION(0, "GPIO211"),
MTK_FUNCTION(1, "DVP_RESET") MTK_FUNCTION(1, "DVP_RESET")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(212, "DVP_CLOCK"),
PINCTRL_PIN(212, "DVP_CLOCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO212"), MTK_FUNCTION(0, "GPIO212"),
MTK_FUNCTION(1, "DVP_CLOCK") MTK_FUNCTION(1, "DVP_CLOCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(213, "DVP_CS"),
PINCTRL_PIN(213, "DVP_CS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO213"), MTK_FUNCTION(0, "GPIO213"),
MTK_FUNCTION(1, "DVP_CS") MTK_FUNCTION(1, "DVP_CS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(214, "DVP_CK"),
PINCTRL_PIN(214, "DVP_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO214"), MTK_FUNCTION(0, "GPIO214"),
MTK_FUNCTION(1, "DVP_CK") MTK_FUNCTION(1, "DVP_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(215, "DVP_DI"),
PINCTRL_PIN(215, "DVP_DI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO215"), MTK_FUNCTION(0, "GPIO215"),
MTK_FUNCTION(1, "DVP_DI") MTK_FUNCTION(1, "DVP_DI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(216, "DVP_DO"),
PINCTRL_PIN(216, "DVP_DO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO216"), MTK_FUNCTION(0, "GPIO216"),
MTK_FUNCTION(1, "DVP_DO") MTK_FUNCTION(1, "DVP_DO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(217, "AP_CS"),
PINCTRL_PIN(217, "AP_CS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO217"), MTK_FUNCTION(0, "GPIO217"),
MTK_FUNCTION(1, "AP_CS") MTK_FUNCTION(1, "AP_CS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(218, "AP_CK"),
PINCTRL_PIN(218, "AP_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO218"), MTK_FUNCTION(0, "GPIO218"),
MTK_FUNCTION(1, "AP_CK") MTK_FUNCTION(1, "AP_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(219, "AP_DI"),
PINCTRL_PIN(219, "AP_DI"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO219"), MTK_FUNCTION(0, "GPIO219"),
MTK_FUNCTION(1, "AP_DI") MTK_FUNCTION(1, "AP_DI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(220, "AP_DO"),
PINCTRL_PIN(220, "AP_DO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO220"), MTK_FUNCTION(0, "GPIO220"),
MTK_FUNCTION(1, "AP_DO") MTK_FUNCTION(1, "AP_DO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(221, "DVD_BCLK"),
PINCTRL_PIN(221, "DVD_BCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO221"), MTK_FUNCTION(0, "GPIO221"),
MTK_FUNCTION(1, "DVD_BCLK") MTK_FUNCTION(1, "DVD_BCLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(222, "T8032_CLK"),
PINCTRL_PIN(222, "T8032_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO222"), MTK_FUNCTION(0, "GPIO222"),
MTK_FUNCTION(1, "T8032_CLK") MTK_FUNCTION(1, "T8032_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(223, "AP_BCLK"),
PINCTRL_PIN(223, "AP_BCLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO223"), MTK_FUNCTION(0, "GPIO223"),
MTK_FUNCTION(1, "AP_BCLK") MTK_FUNCTION(1, "AP_BCLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(224, "HOST_CS"),
PINCTRL_PIN(224, "HOST_CS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO224"), MTK_FUNCTION(0, "GPIO224"),
MTK_FUNCTION(1, "HOST_CS") MTK_FUNCTION(1, "HOST_CS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(225, "HOST_CK"),
PINCTRL_PIN(225, "HOST_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO225"), MTK_FUNCTION(0, "GPIO225"),
MTK_FUNCTION(1, "HOST_CK") MTK_FUNCTION(1, "HOST_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(226, "HOST_DO0"),
PINCTRL_PIN(226, "HOST_DO0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO226"), MTK_FUNCTION(0, "GPIO226"),
MTK_FUNCTION(1, "HOST_DO0") MTK_FUNCTION(1, "HOST_DO0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(227, "HOST_DO1"),
PINCTRL_PIN(227, "HOST_DO1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO227"), MTK_FUNCTION(0, "GPIO227"),
MTK_FUNCTION(1, "HOST_DO1") MTK_FUNCTION(1, "HOST_DO1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(228, "SLV_CS"),
PINCTRL_PIN(228, "SLV_CS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO228"), MTK_FUNCTION(0, "GPIO228"),
MTK_FUNCTION(1, "SLV_CS") MTK_FUNCTION(1, "SLV_CS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(229, "SLV_CK"),
PINCTRL_PIN(229, "SLV_CK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO229"), MTK_FUNCTION(0, "GPIO229"),
MTK_FUNCTION(1, "SLV_CK") MTK_FUNCTION(1, "SLV_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(230, "SLV_DI0"),
PINCTRL_PIN(230, "SLV_DI0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO230"), MTK_FUNCTION(0, "GPIO230"),
MTK_FUNCTION(1, "SLV_DI0") MTK_FUNCTION(1, "SLV_DI0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(231, "SLV_DI1"),
PINCTRL_PIN(231, "SLV_DI1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO231"), MTK_FUNCTION(0, "GPIO231"),
MTK_FUNCTION(1, "SLV_DI1") MTK_FUNCTION(1, "SLV_DI1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(232, "AP2DSP_INT"),
PINCTRL_PIN(232, "AP2DSP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO232"), MTK_FUNCTION(0, "GPIO232"),
MTK_FUNCTION(1, "AP2DSP_INT") MTK_FUNCTION(1, "AP2DSP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(233, "AP2DSP_INT_CLR"),
PINCTRL_PIN(233, "AP2DSP_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO233"), MTK_FUNCTION(0, "GPIO233"),
MTK_FUNCTION(1, "AP2DSP_INT_CLR") MTK_FUNCTION(1, "AP2DSP_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(234, "DSP2AP_INT"),
PINCTRL_PIN(234, "DSP2AP_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO234"), MTK_FUNCTION(0, "GPIO234"),
MTK_FUNCTION(1, "DSP2AP_INT") MTK_FUNCTION(1, "DSP2AP_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(235, "DSP2AP_INT_CLR"),
PINCTRL_PIN(235, "DSP2AP_INT_CLR"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO235"), MTK_FUNCTION(0, "GPIO235"),
MTK_FUNCTION(1, "DSP2AP_INT_CLR") MTK_FUNCTION(1, "DSP2AP_INT_CLR")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(236, "EXT_SDIO3"),
PINCTRL_PIN(236, "EXT_SDIO3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 122), MTK_EINT_FUNCTION(0, 122),
MTK_FUNCTION(0, "GPIO236"), MTK_FUNCTION(0, "GPIO236"),
...@@ -2006,46 +1769,40 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -2006,46 +1769,40 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(2, "IDDIG"), MTK_FUNCTION(2, "IDDIG"),
MTK_FUNCTION(7, "DBG_MON_A[1]") MTK_FUNCTION(7, "DBG_MON_A[1]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(237, "EXT_SDIO2"),
PINCTRL_PIN(237, "EXT_SDIO2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 123), MTK_EINT_FUNCTION(0, 123),
MTK_FUNCTION(0, "GPIO237"), MTK_FUNCTION(0, "GPIO237"),
MTK_FUNCTION(1, "EXT_SDIO2"), MTK_FUNCTION(1, "EXT_SDIO2"),
MTK_FUNCTION(2, "DRV_VBUS") MTK_FUNCTION(2, "DRV_VBUS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(238, "EXT_SDIO1"),
PINCTRL_PIN(238, "EXT_SDIO1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 124), MTK_EINT_FUNCTION(0, 124),
MTK_FUNCTION(0, "GPIO238"), MTK_FUNCTION(0, "GPIO238"),
MTK_FUNCTION(1, "EXT_SDIO1"), MTK_FUNCTION(1, "EXT_SDIO1"),
MTK_FUNCTION(2, "IDDIG_P1") MTK_FUNCTION(2, "IDDIG_P1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(239, "EXT_SDIO0"),
PINCTRL_PIN(239, "EXT_SDIO0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 125), MTK_EINT_FUNCTION(0, 125),
MTK_FUNCTION(0, "GPIO239"), MTK_FUNCTION(0, "GPIO239"),
MTK_FUNCTION(1, "EXT_SDIO0"), MTK_FUNCTION(1, "EXT_SDIO0"),
MTK_FUNCTION(2, "DRV_VBUS_P1") MTK_FUNCTION(2, "DRV_VBUS_P1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(240, "EXT_XCS"),
PINCTRL_PIN(240, "EXT_XCS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 126), MTK_EINT_FUNCTION(0, 126),
MTK_FUNCTION(0, "GPIO240"), MTK_FUNCTION(0, "GPIO240"),
MTK_FUNCTION(1, "EXT_XCS") MTK_FUNCTION(1, "EXT_XCS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(241, "EXT_SCK"),
PINCTRL_PIN(241, "EXT_SCK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 127), MTK_EINT_FUNCTION(0, 127),
MTK_FUNCTION(0, "GPIO241"), MTK_FUNCTION(0, "GPIO241"),
MTK_FUNCTION(1, "EXT_SCK") MTK_FUNCTION(1, "EXT_SCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(242, "URTS2"),
PINCTRL_PIN(242, "URTS2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 128), MTK_EINT_FUNCTION(0, 128),
MTK_FUNCTION(0, "GPIO242"), MTK_FUNCTION(0, "GPIO242"),
...@@ -2055,8 +1812,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -2055,8 +1812,7 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SCL1"), MTK_FUNCTION(4, "SCL1"),
MTK_FUNCTION(7, "DBG_MON_B[32]") MTK_FUNCTION(7, "DBG_MON_B[32]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(243, "UCTS2"),
PINCTRL_PIN(243, "UCTS2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 129), MTK_EINT_FUNCTION(0, 129),
MTK_FUNCTION(0, "GPIO243"), MTK_FUNCTION(0, "GPIO243"),
...@@ -2066,265 +1822,229 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = { ...@@ -2066,265 +1822,229 @@ static const struct mtk_desc_pin mtk_pins_mt2701[] = {
MTK_FUNCTION(4, "SDA1"), MTK_FUNCTION(4, "SDA1"),
MTK_FUNCTION(7, "DBG_MON_A[6]") MTK_FUNCTION(7, "DBG_MON_A[6]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(244, "HDMI_SDA_RX"),
PINCTRL_PIN(244, "HDMI_SDA_RX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 130), MTK_EINT_FUNCTION(0, 130),
MTK_FUNCTION(0, "GPIO244"), MTK_FUNCTION(0, "GPIO244"),
MTK_FUNCTION(1, "HDMI_SDA_RX") MTK_FUNCTION(1, "HDMI_SDA_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(245, "HDMI_SCL_RX"),
PINCTRL_PIN(245, "HDMI_SCL_RX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 131), MTK_EINT_FUNCTION(0, 131),
MTK_FUNCTION(0, "GPIO245"), MTK_FUNCTION(0, "GPIO245"),
MTK_FUNCTION(1, "HDMI_SCL_RX") MTK_FUNCTION(1, "HDMI_SCL_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(246, "MHL_SENCE"),
PINCTRL_PIN(246, "MHL_SENCE"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 132), MTK_EINT_FUNCTION(0, 132),
MTK_FUNCTION(0, "GPIO246") MTK_FUNCTION(0, "GPIO246")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(247, "HDMI_HPD_CBUS_RX"),
PINCTRL_PIN(247, "HDMI_HPD_CBUS_RX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 69), MTK_EINT_FUNCTION(0, 69),
MTK_FUNCTION(0, "GPIO247"), MTK_FUNCTION(0, "GPIO247"),
MTK_FUNCTION(1, "HDMI_HPD_RX") MTK_FUNCTION(1, "HDMI_HPD_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(248, "HDMI_TESTOUTP_RX"),
PINCTRL_PIN(248, "HDMI_TESTOUTP_RX"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 133), MTK_EINT_FUNCTION(0, 133),
MTK_FUNCTION(0, "GPIO248"), MTK_FUNCTION(0, "GPIO248"),
MTK_FUNCTION(1, "HDMI_TESTOUTP_RX") MTK_FUNCTION(1, "HDMI_TESTOUTP_RX")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(249, "MSDC0E_RSTB"),
PINCTRL_PIN(249, "MSDC0E_RSTB"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 134), MTK_EINT_FUNCTION(0, 134),
MTK_FUNCTION(0, "GPIO249"), MTK_FUNCTION(0, "GPIO249"),
MTK_FUNCTION(1, "MSDC0E_RSTB") MTK_FUNCTION(1, "MSDC0E_RSTB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(250, "MSDC0E_DAT7"),
PINCTRL_PIN(250, "MSDC0E_DAT7"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 135), MTK_EINT_FUNCTION(0, 135),
MTK_FUNCTION(0, "GPIO250"), MTK_FUNCTION(0, "GPIO250"),
MTK_FUNCTION(1, "MSDC3_DAT7"), MTK_FUNCTION(1, "MSDC3_DAT7"),
MTK_FUNCTION(6, "PCIE0_CLKREQ_N") MTK_FUNCTION(6, "PCIE0_CLKREQ_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(251, "MSDC0E_DAT6"),
PINCTRL_PIN(251, "MSDC0E_DAT6"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 136), MTK_EINT_FUNCTION(0, 136),
MTK_FUNCTION(0, "GPIO251"), MTK_FUNCTION(0, "GPIO251"),
MTK_FUNCTION(1, "MSDC3_DAT6"), MTK_FUNCTION(1, "MSDC3_DAT6"),
MTK_FUNCTION(6, "PCIE0_WAKE_N") MTK_FUNCTION(6, "PCIE0_WAKE_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(252, "MSDC0E_DAT5"),
PINCTRL_PIN(252, "MSDC0E_DAT5"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 137), MTK_EINT_FUNCTION(0, 137),
MTK_FUNCTION(0, "GPIO252"), MTK_FUNCTION(0, "GPIO252"),
MTK_FUNCTION(1, "MSDC3_DAT5"), MTK_FUNCTION(1, "MSDC3_DAT5"),
MTK_FUNCTION(6, "PCIE1_CLKREQ_N") MTK_FUNCTION(6, "PCIE1_CLKREQ_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(253, "MSDC0E_DAT4"),
PINCTRL_PIN(253, "MSDC0E_DAT4"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 138), MTK_EINT_FUNCTION(0, 138),
MTK_FUNCTION(0, "GPIO253"), MTK_FUNCTION(0, "GPIO253"),
MTK_FUNCTION(1, "MSDC3_DAT4"), MTK_FUNCTION(1, "MSDC3_DAT4"),
MTK_FUNCTION(6, "PCIE1_WAKE_N") MTK_FUNCTION(6, "PCIE1_WAKE_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(254, "MSDC0E_DAT3"),
PINCTRL_PIN(254, "MSDC0E_DAT3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 139), MTK_EINT_FUNCTION(0, 139),
MTK_FUNCTION(0, "GPIO254"), MTK_FUNCTION(0, "GPIO254"),
MTK_FUNCTION(1, "MSDC3_DAT3"), MTK_FUNCTION(1, "MSDC3_DAT3"),
MTK_FUNCTION(6, "PCIE2_CLKREQ_N") MTK_FUNCTION(6, "PCIE2_CLKREQ_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(255, "MSDC0E_DAT2"),
PINCTRL_PIN(255, "MSDC0E_DAT2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 140), MTK_EINT_FUNCTION(0, 140),
MTK_FUNCTION(0, "GPIO255"), MTK_FUNCTION(0, "GPIO255"),
MTK_FUNCTION(1, "MSDC3_DAT2"), MTK_FUNCTION(1, "MSDC3_DAT2"),
MTK_FUNCTION(6, "PCIE2_WAKE_N") MTK_FUNCTION(6, "PCIE2_WAKE_N")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(256, "MSDC0E_DAT1"),
PINCTRL_PIN(256, "MSDC0E_DAT1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 141), MTK_EINT_FUNCTION(0, 141),
MTK_FUNCTION(0, "GPIO256"), MTK_FUNCTION(0, "GPIO256"),
MTK_FUNCTION(1, "MSDC3_DAT1") MTK_FUNCTION(1, "MSDC3_DAT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(257, "MSDC0E_DAT0"),
PINCTRL_PIN(257, "MSDC0E_DAT0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 142), MTK_EINT_FUNCTION(0, 142),
MTK_FUNCTION(0, "GPIO257"), MTK_FUNCTION(0, "GPIO257"),
MTK_FUNCTION(1, "MSDC3_DAT0") MTK_FUNCTION(1, "MSDC3_DAT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(258, "MSDC0E_CMD"),
PINCTRL_PIN(258, "MSDC0E_CMD"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 143), MTK_EINT_FUNCTION(0, 143),
MTK_FUNCTION(0, "GPIO258"), MTK_FUNCTION(0, "GPIO258"),
MTK_FUNCTION(1, "MSDC3_CMD") MTK_FUNCTION(1, "MSDC3_CMD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(259, "MSDC0E_CLK"),
PINCTRL_PIN(259, "MSDC0E_CLK"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 144), MTK_EINT_FUNCTION(0, 144),
MTK_FUNCTION(0, "GPIO259"), MTK_FUNCTION(0, "GPIO259"),
MTK_FUNCTION(1, "MSDC3_CLK") MTK_FUNCTION(1, "MSDC3_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(260, "MSDC0E_DSL"),
PINCTRL_PIN(260, "MSDC0E_DSL"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 145), MTK_EINT_FUNCTION(0, 145),
MTK_FUNCTION(0, "GPIO260"), MTK_FUNCTION(0, "GPIO260"),
MTK_FUNCTION(1, "MSDC3_DSL") MTK_FUNCTION(1, "MSDC3_DSL")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(261, "MSDC1_INS"),
PINCTRL_PIN(261, "MSDC1_INS"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 146), MTK_EINT_FUNCTION(0, 146),
MTK_FUNCTION(0, "GPIO261"), MTK_FUNCTION(0, "GPIO261"),
MTK_FUNCTION(1, "MSDC1_INS"), MTK_FUNCTION(1, "MSDC1_INS"),
MTK_FUNCTION(7, "DBG_MON_B[29]") MTK_FUNCTION(7, "DBG_MON_B[29]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(262, "G2_TXEN"),
PINCTRL_PIN(262, "G2_TXEN"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 8), MTK_EINT_FUNCTION(0, 8),
MTK_FUNCTION(0, "GPIO262"), MTK_FUNCTION(0, "GPIO262"),
MTK_FUNCTION(1, "G2_TXEN") MTK_FUNCTION(1, "G2_TXEN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(263, "G2_TXD3"),
PINCTRL_PIN(263, "G2_TXD3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 9), MTK_EINT_FUNCTION(0, 9),
MTK_FUNCTION(0, "GPIO263"), MTK_FUNCTION(0, "GPIO263"),
MTK_FUNCTION(1, "G2_TXD3"), MTK_FUNCTION(1, "G2_TXD3"),
MTK_FUNCTION(6, "ANT_SEL5") MTK_FUNCTION(6, "ANT_SEL5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(264, "G2_TXD2"),
PINCTRL_PIN(264, "G2_TXD2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 10), MTK_EINT_FUNCTION(0, 10),
MTK_FUNCTION(0, "GPIO264"), MTK_FUNCTION(0, "GPIO264"),
MTK_FUNCTION(1, "G2_TXD2"), MTK_FUNCTION(1, "G2_TXD2"),
MTK_FUNCTION(6, "ANT_SEL4") MTK_FUNCTION(6, "ANT_SEL4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(265, "G2_TXD1"),
PINCTRL_PIN(265, "G2_TXD1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 11), MTK_EINT_FUNCTION(0, 11),
MTK_FUNCTION(0, "GPIO265"), MTK_FUNCTION(0, "GPIO265"),
MTK_FUNCTION(1, "G2_TXD1"), MTK_FUNCTION(1, "G2_TXD1"),
MTK_FUNCTION(6, "ANT_SEL3") MTK_FUNCTION(6, "ANT_SEL3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(266, "G2_TXD0"),
PINCTRL_PIN(266, "G2_TXD0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO266"), MTK_FUNCTION(0, "GPIO266"),
MTK_FUNCTION(1, "G2_TXD0"), MTK_FUNCTION(1, "G2_TXD0"),
MTK_FUNCTION(6, "ANT_SEL2") MTK_FUNCTION(6, "ANT_SEL2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(267, "G2_TXC"),
PINCTRL_PIN(267, "G2_TXC"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO267"), MTK_FUNCTION(0, "GPIO267"),
MTK_FUNCTION(1, "G2_TXC") MTK_FUNCTION(1, "G2_TXC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(268, "G2_RXC"),
PINCTRL_PIN(268, "G2_RXC"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO268"), MTK_FUNCTION(0, "GPIO268"),
MTK_FUNCTION(1, "G2_RXC") MTK_FUNCTION(1, "G2_RXC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(269, "G2_RXD0"),
PINCTRL_PIN(269, "G2_RXD0"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO269"), MTK_FUNCTION(0, "GPIO269"),
MTK_FUNCTION(1, "G2_RXD0") MTK_FUNCTION(1, "G2_RXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(270, "G2_RXD1"),
PINCTRL_PIN(270, "G2_RXD1"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO270"), MTK_FUNCTION(0, "GPIO270"),
MTK_FUNCTION(1, "G2_RXD1") MTK_FUNCTION(1, "G2_RXD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(271, "G2_RXD2"),
PINCTRL_PIN(271, "G2_RXD2"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO271"), MTK_FUNCTION(0, "GPIO271"),
MTK_FUNCTION(1, "G2_RXD2") MTK_FUNCTION(1, "G2_RXD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(272, "G2_RXD3"),
PINCTRL_PIN(272, "G2_RXD3"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO272"), MTK_FUNCTION(0, "GPIO272"),
MTK_FUNCTION(1, "G2_RXD3") MTK_FUNCTION(1, "G2_RXD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(273, "ESW_INT"),
PINCTRL_PIN(273, "ESW_INT"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 168), MTK_EINT_FUNCTION(0, 168),
MTK_FUNCTION(0, "GPIO273"), MTK_FUNCTION(0, "GPIO273"),
MTK_FUNCTION(1, "ESW_INT") MTK_FUNCTION(1, "ESW_INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(274, "G2_RXDV"),
PINCTRL_PIN(274, "G2_RXDV"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO274"), MTK_FUNCTION(0, "GPIO274"),
MTK_FUNCTION(1, "G2_RXDV") MTK_FUNCTION(1, "G2_RXDV")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(275, "MDC"),
PINCTRL_PIN(275, "MDC"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO275"), MTK_FUNCTION(0, "GPIO275"),
MTK_FUNCTION(1, "MDC"), MTK_FUNCTION(1, "MDC"),
MTK_FUNCTION(6, "ANT_SEL0") MTK_FUNCTION(6, "ANT_SEL0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(276, "MDIO"),
PINCTRL_PIN(276, "MDIO"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO276"), MTK_FUNCTION(0, "GPIO276"),
MTK_FUNCTION(1, "MDIO"), MTK_FUNCTION(1, "MDIO"),
MTK_FUNCTION(6, "ANT_SEL1") MTK_FUNCTION(6, "ANT_SEL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(277, "ESW_RST"),
PINCTRL_PIN(277, "ESW_RST"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO277"), MTK_FUNCTION(0, "GPIO277"),
MTK_FUNCTION(1, "ESW_RST") MTK_FUNCTION(1, "ESW_RST")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(278, "JTAG_RESET"),
PINCTRL_PIN(278, "JTAG_RESET"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(0, 147), MTK_EINT_FUNCTION(0, 147),
MTK_FUNCTION(0, "GPIO278"), MTK_FUNCTION(0, "GPIO278"),
MTK_FUNCTION(1, "JTAG_RESET") MTK_FUNCTION(1, "JTAG_RESET")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(279, "USB3_RES_BOND"),
PINCTRL_PIN(279, "USB3_RES_BOND"),
NULL, "mt2701", NULL, "mt2701",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO279"), MTK_FUNCTION(0, "GPIO279"),
......
...@@ -6,74 +6,64 @@ ...@@ -6,74 +6,64 @@
#include "pinctrl-mtk-common.h" #include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt6397[] = { static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_PIN( MTK_PIN(PINCTRL_PIN(0, "INT"),
PINCTRL_PIN(0, "INT"),
"N2", "mt6397", "N2", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO0"), MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "INT") MTK_FUNCTION(1, "INT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(1, "SRCVOLTEN"),
PINCTRL_PIN(1, "SRCVOLTEN"),
"M4", "mt6397", "M4", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO1"), MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "SRCVOLTEN"), MTK_FUNCTION(1, "SRCVOLTEN"),
MTK_FUNCTION(6, "TEST_CK1") MTK_FUNCTION(6, "TEST_CK1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(2, "SRCLKEN_PERI"),
PINCTRL_PIN(2, "SRCLKEN_PERI"),
"M2", "mt6397", "M2", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO2"), MTK_FUNCTION(0, "GPIO2"),
MTK_FUNCTION(1, "SRCLKEN_PERI"), MTK_FUNCTION(1, "SRCLKEN_PERI"),
MTK_FUNCTION(6, "TEST_CK2") MTK_FUNCTION(6, "TEST_CK2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(3, "RTC_32K1V8"),
PINCTRL_PIN(3, "RTC_32K1V8"),
"K3", "mt6397", "K3", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO3"), MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "RTC_32K1V8"), MTK_FUNCTION(1, "RTC_32K1V8"),
MTK_FUNCTION(6, "TEST_CK3") MTK_FUNCTION(6, "TEST_CK3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(4, "WRAP_EVENT"),
PINCTRL_PIN(4, "WRAP_EVENT"),
"J2", "mt6397", "J2", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO4"), MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "WRAP_EVENT") MTK_FUNCTION(1, "WRAP_EVENT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
PINCTRL_PIN(5, "SPI_CLK"),
"L4", "mt6397", "L4", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO5"), MTK_FUNCTION(0, "GPIO5"),
MTK_FUNCTION(1, "SPI_CLK") MTK_FUNCTION(1, "SPI_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(6, "SPI_CSN"),
PINCTRL_PIN(6, "SPI_CSN"),
"J3", "mt6397", "J3", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO6"), MTK_FUNCTION(0, "GPIO6"),
MTK_FUNCTION(1, "SPI_CSN") MTK_FUNCTION(1, "SPI_CSN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(7, "SPI_MOSI"),
PINCTRL_PIN(7, "SPI_MOSI"),
"J1", "mt6397", "J1", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO7"), MTK_FUNCTION(0, "GPIO7"),
MTK_FUNCTION(1, "SPI_MOSI") MTK_FUNCTION(1, "SPI_MOSI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(8, "SPI_MISO"),
PINCTRL_PIN(8, "SPI_MISO"),
"L3", "mt6397", "L3", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO8"), MTK_FUNCTION(0, "GPIO8"),
MTK_FUNCTION(1, "SPI_MISO") MTK_FUNCTION(1, "SPI_MISO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(9, "AUD_CLK_MOSI"),
PINCTRL_PIN(9, "AUD_CLK_MOSI"),
"H2", "mt6397", "H2", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO9"), MTK_FUNCTION(0, "GPIO9"),
...@@ -81,8 +71,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -81,8 +71,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN0"), MTK_FUNCTION(6, "TEST_IN0"),
MTK_FUNCTION(7, "TEST_OUT0") MTK_FUNCTION(7, "TEST_OUT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(10, "AUD_DAT_MISO"),
PINCTRL_PIN(10, "AUD_DAT_MISO"),
"H3", "mt6397", "H3", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO10"), MTK_FUNCTION(0, "GPIO10"),
...@@ -90,8 +79,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -90,8 +79,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN1"), MTK_FUNCTION(6, "TEST_IN1"),
MTK_FUNCTION(7, "TEST_OUT1") MTK_FUNCTION(7, "TEST_OUT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(11, "AUD_DAT_MOSI"),
PINCTRL_PIN(11, "AUD_DAT_MOSI"),
"H1", "mt6397", "H1", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO11"), MTK_FUNCTION(0, "GPIO11"),
...@@ -99,8 +87,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -99,8 +87,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN2"), MTK_FUNCTION(6, "TEST_IN2"),
MTK_FUNCTION(7, "TEST_OUT2") MTK_FUNCTION(7, "TEST_OUT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(12, "COL0"),
PINCTRL_PIN(12, "COL0"),
"F3", "mt6397", "F3", "mt6397",
MTK_EINT_FUNCTION(2, 10), MTK_EINT_FUNCTION(2, 10),
MTK_FUNCTION(0, "GPIO12"), MTK_FUNCTION(0, "GPIO12"),
...@@ -110,8 +97,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -110,8 +97,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN3"), MTK_FUNCTION(6, "TEST_IN3"),
MTK_FUNCTION(7, "TEST_OUT3") MTK_FUNCTION(7, "TEST_OUT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(13, "COL1"),
PINCTRL_PIN(13, "COL1"),
"G8", "mt6397", "G8", "mt6397",
MTK_EINT_FUNCTION(2, 11), MTK_EINT_FUNCTION(2, 11),
MTK_FUNCTION(0, "GPIO13"), MTK_FUNCTION(0, "GPIO13"),
...@@ -121,8 +107,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -121,8 +107,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN4"), MTK_FUNCTION(6, "TEST_IN4"),
MTK_FUNCTION(7, "TEST_OUT4") MTK_FUNCTION(7, "TEST_OUT4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(14, "COL2"),
PINCTRL_PIN(14, "COL2"),
"H4", "mt6397", "H4", "mt6397",
MTK_EINT_FUNCTION(2, 12), MTK_EINT_FUNCTION(2, 12),
MTK_FUNCTION(0, "GPIO14"), MTK_FUNCTION(0, "GPIO14"),
...@@ -132,8 +117,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -132,8 +117,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN5"), MTK_FUNCTION(6, "TEST_IN5"),
MTK_FUNCTION(7, "TEST_OUT5") MTK_FUNCTION(7, "TEST_OUT5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(15, "COL3"),
PINCTRL_PIN(15, "COL3"),
"G2", "mt6397", "G2", "mt6397",
MTK_EINT_FUNCTION(2, 13), MTK_EINT_FUNCTION(2, 13),
MTK_FUNCTION(0, "GPIO15"), MTK_FUNCTION(0, "GPIO15"),
...@@ -143,8 +127,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -143,8 +127,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN6"), MTK_FUNCTION(6, "TEST_IN6"),
MTK_FUNCTION(7, "TEST_OUT6") MTK_FUNCTION(7, "TEST_OUT6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(16, "COL4"),
PINCTRL_PIN(16, "COL4"),
"F2", "mt6397", "F2", "mt6397",
MTK_EINT_FUNCTION(2, 14), MTK_EINT_FUNCTION(2, 14),
MTK_FUNCTION(0, "GPIO16"), MTK_FUNCTION(0, "GPIO16"),
...@@ -154,8 +137,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -154,8 +137,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN7"), MTK_FUNCTION(6, "TEST_IN7"),
MTK_FUNCTION(7, "TEST_OUT7") MTK_FUNCTION(7, "TEST_OUT7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(17, "COL5"),
PINCTRL_PIN(17, "COL5"),
"G7", "mt6397", "G7", "mt6397",
MTK_EINT_FUNCTION(2, 15), MTK_EINT_FUNCTION(2, 15),
MTK_FUNCTION(0, "GPIO17"), MTK_FUNCTION(0, "GPIO17"),
...@@ -165,8 +147,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -165,8 +147,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN8"), MTK_FUNCTION(6, "TEST_IN8"),
MTK_FUNCTION(7, "TEST_OUT8") MTK_FUNCTION(7, "TEST_OUT8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(18, "COL6"),
PINCTRL_PIN(18, "COL6"),
"J6", "mt6397", "J6", "mt6397",
MTK_EINT_FUNCTION(2, 16), MTK_EINT_FUNCTION(2, 16),
MTK_FUNCTION(0, "GPIO18"), MTK_FUNCTION(0, "GPIO18"),
...@@ -178,8 +159,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -178,8 +159,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN9"), MTK_FUNCTION(6, "TEST_IN9"),
MTK_FUNCTION(7, "TEST_OUT9") MTK_FUNCTION(7, "TEST_OUT9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(19, "COL7"),
PINCTRL_PIN(19, "COL7"),
"J5", "mt6397", "J5", "mt6397",
MTK_EINT_FUNCTION(2, 17), MTK_EINT_FUNCTION(2, 17),
MTK_FUNCTION(0, "GPIO19"), MTK_FUNCTION(0, "GPIO19"),
...@@ -191,8 +171,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -191,8 +171,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN10"), MTK_FUNCTION(6, "TEST_IN10"),
MTK_FUNCTION(7, "TEST_OUT10") MTK_FUNCTION(7, "TEST_OUT10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(20, "ROW0"),
PINCTRL_PIN(20, "ROW0"),
"L7", "mt6397", "L7", "mt6397",
MTK_EINT_FUNCTION(2, 18), MTK_EINT_FUNCTION(2, 18),
MTK_FUNCTION(0, "GPIO20"), MTK_FUNCTION(0, "GPIO20"),
...@@ -202,8 +181,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -202,8 +181,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN11"), MTK_FUNCTION(6, "TEST_IN11"),
MTK_FUNCTION(7, "TEST_OUT11") MTK_FUNCTION(7, "TEST_OUT11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(21, "ROW1"),
PINCTRL_PIN(21, "ROW1"),
"P1", "mt6397", "P1", "mt6397",
MTK_EINT_FUNCTION(2, 19), MTK_EINT_FUNCTION(2, 19),
MTK_FUNCTION(0, "GPIO21"), MTK_FUNCTION(0, "GPIO21"),
...@@ -214,8 +192,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -214,8 +192,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN12"), MTK_FUNCTION(6, "TEST_IN12"),
MTK_FUNCTION(7, "TEST_OUT12") MTK_FUNCTION(7, "TEST_OUT12")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(22, "ROW2"),
PINCTRL_PIN(22, "ROW2"),
"J8", "mt6397", "J8", "mt6397",
MTK_EINT_FUNCTION(2, 20), MTK_EINT_FUNCTION(2, 20),
MTK_FUNCTION(0, "GPIO22"), MTK_FUNCTION(0, "GPIO22"),
...@@ -225,8 +202,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -225,8 +202,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN13"), MTK_FUNCTION(6, "TEST_IN13"),
MTK_FUNCTION(7, "TEST_OUT13") MTK_FUNCTION(7, "TEST_OUT13")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(23, "ROW3"),
PINCTRL_PIN(23, "ROW3"),
"J7", "mt6397", "J7", "mt6397",
MTK_EINT_FUNCTION(2, 21), MTK_EINT_FUNCTION(2, 21),
MTK_FUNCTION(0, "GPIO23"), MTK_FUNCTION(0, "GPIO23"),
...@@ -236,8 +212,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -236,8 +212,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN14"), MTK_FUNCTION(6, "TEST_IN14"),
MTK_FUNCTION(7, "TEST_OUT14") MTK_FUNCTION(7, "TEST_OUT14")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(24, "ROW4"),
PINCTRL_PIN(24, "ROW4"),
"L5", "mt6397", "L5", "mt6397",
MTK_EINT_FUNCTION(2, 22), MTK_EINT_FUNCTION(2, 22),
MTK_FUNCTION(0, "GPIO24"), MTK_FUNCTION(0, "GPIO24"),
...@@ -247,8 +222,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -247,8 +222,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN15"), MTK_FUNCTION(6, "TEST_IN15"),
MTK_FUNCTION(7, "TEST_OUT15") MTK_FUNCTION(7, "TEST_OUT15")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(25, "ROW5"),
PINCTRL_PIN(25, "ROW5"),
"N6", "mt6397", "N6", "mt6397",
MTK_EINT_FUNCTION(2, 23), MTK_EINT_FUNCTION(2, 23),
MTK_FUNCTION(0, "GPIO25"), MTK_FUNCTION(0, "GPIO25"),
...@@ -258,8 +232,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -258,8 +232,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN16"), MTK_FUNCTION(6, "TEST_IN16"),
MTK_FUNCTION(7, "TEST_OUT16") MTK_FUNCTION(7, "TEST_OUT16")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(26, "ROW6"),
PINCTRL_PIN(26, "ROW6"),
"L6", "mt6397", "L6", "mt6397",
MTK_EINT_FUNCTION(2, 24), MTK_EINT_FUNCTION(2, 24),
MTK_FUNCTION(0, "GPIO26"), MTK_FUNCTION(0, "GPIO26"),
...@@ -271,8 +244,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -271,8 +244,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN17"), MTK_FUNCTION(6, "TEST_IN17"),
MTK_FUNCTION(7, "TEST_OUT17") MTK_FUNCTION(7, "TEST_OUT17")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(27, "ROW7"),
PINCTRL_PIN(27, "ROW7"),
"P2", "mt6397", "P2", "mt6397",
MTK_EINT_FUNCTION(2, 3), MTK_EINT_FUNCTION(2, 3),
MTK_FUNCTION(0, "GPIO27"), MTK_FUNCTION(0, "GPIO27"),
...@@ -284,8 +256,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -284,8 +256,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN18"), MTK_FUNCTION(6, "TEST_IN18"),
MTK_FUNCTION(7, "TEST_OUT18") MTK_FUNCTION(7, "TEST_OUT18")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(28, "PWM1(VMSEL1)"),
PINCTRL_PIN(28, "PWM1(VMSEL1)"),
"J4", "mt6397", "J4", "mt6397",
MTK_EINT_FUNCTION(2, 4), MTK_EINT_FUNCTION(2, 4),
MTK_FUNCTION(0, "GPIO28"), MTK_FUNCTION(0, "GPIO28"),
...@@ -296,8 +267,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -296,8 +267,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN19"), MTK_FUNCTION(6, "TEST_IN19"),
MTK_FUNCTION(7, "TEST_OUT19") MTK_FUNCTION(7, "TEST_OUT19")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(29, "PWM2(VMSEL2)"),
PINCTRL_PIN(29, "PWM2(VMSEL2)"),
"N5", "mt6397", "N5", "mt6397",
MTK_EINT_FUNCTION(2, 5), MTK_EINT_FUNCTION(2, 5),
MTK_FUNCTION(0, "GPIO29"), MTK_FUNCTION(0, "GPIO29"),
...@@ -308,8 +278,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -308,8 +278,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN20"), MTK_FUNCTION(6, "TEST_IN20"),
MTK_FUNCTION(7, "TEST_OUT20") MTK_FUNCTION(7, "TEST_OUT20")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(30, "PWM3(PWM)"),
PINCTRL_PIN(30, "PWM3(PWM)"),
"R3", "mt6397", "R3", "mt6397",
MTK_EINT_FUNCTION(2, 6), MTK_EINT_FUNCTION(2, 6),
MTK_FUNCTION(0, "GPIO30"), MTK_FUNCTION(0, "GPIO30"),
...@@ -321,8 +290,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -321,8 +290,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN21"), MTK_FUNCTION(6, "TEST_IN21"),
MTK_FUNCTION(7, "TEST_OUT21") MTK_FUNCTION(7, "TEST_OUT21")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(31, "SCL0"),
PINCTRL_PIN(31, "SCL0"),
"N1", "mt6397", "N1", "mt6397",
MTK_EINT_FUNCTION(2, 7), MTK_EINT_FUNCTION(2, 7),
MTK_FUNCTION(0, "GPIO31"), MTK_FUNCTION(0, "GPIO31"),
...@@ -332,8 +300,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -332,8 +300,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN22"), MTK_FUNCTION(6, "TEST_IN22"),
MTK_FUNCTION(7, "TEST_OUT22") MTK_FUNCTION(7, "TEST_OUT22")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(32, "SDA0"),
PINCTRL_PIN(32, "SDA0"),
"N3", "mt6397", "N3", "mt6397",
MTK_EINT_FUNCTION(2, 8), MTK_EINT_FUNCTION(2, 8),
MTK_FUNCTION(0, "GPIO32"), MTK_FUNCTION(0, "GPIO32"),
...@@ -342,8 +309,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -342,8 +309,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN23"), MTK_FUNCTION(6, "TEST_IN23"),
MTK_FUNCTION(7, "TEST_OUT23") MTK_FUNCTION(7, "TEST_OUT23")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(33, "SCL1"),
PINCTRL_PIN(33, "SCL1"),
"T1", "mt6397", "T1", "mt6397",
MTK_EINT_FUNCTION(2, 9), MTK_EINT_FUNCTION(2, 9),
MTK_FUNCTION(0, "GPIO33"), MTK_FUNCTION(0, "GPIO33"),
...@@ -353,8 +319,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -353,8 +319,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN24"), MTK_FUNCTION(6, "TEST_IN24"),
MTK_FUNCTION(7, "TEST_OUT24") MTK_FUNCTION(7, "TEST_OUT24")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(34, "SDA1"),
PINCTRL_PIN(34, "SDA1"),
"T2", "mt6397", "T2", "mt6397",
MTK_EINT_FUNCTION(2, 0), MTK_EINT_FUNCTION(2, 0),
MTK_FUNCTION(0, "GPIO34"), MTK_FUNCTION(0, "GPIO34"),
...@@ -363,8 +328,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -363,8 +328,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN25"), MTK_FUNCTION(6, "TEST_IN25"),
MTK_FUNCTION(7, "TEST_OUT25") MTK_FUNCTION(7, "TEST_OUT25")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(35, "SCL2"),
PINCTRL_PIN(35, "SCL2"),
"T3", "mt6397", "T3", "mt6397",
MTK_EINT_FUNCTION(2, 1), MTK_EINT_FUNCTION(2, 1),
MTK_FUNCTION(0, "GPIO35"), MTK_FUNCTION(0, "GPIO35"),
...@@ -374,8 +338,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -374,8 +338,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN26"), MTK_FUNCTION(6, "TEST_IN26"),
MTK_FUNCTION(7, "TEST_OUT26") MTK_FUNCTION(7, "TEST_OUT26")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(36, "SDA2"),
PINCTRL_PIN(36, "SDA2"),
"U2", "mt6397", "U2", "mt6397",
MTK_EINT_FUNCTION(2, 2), MTK_EINT_FUNCTION(2, 2),
MTK_FUNCTION(0, "GPIO36"), MTK_FUNCTION(0, "GPIO36"),
...@@ -384,8 +347,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -384,8 +347,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN27"), MTK_FUNCTION(6, "TEST_IN27"),
MTK_FUNCTION(7, "TEST_OUT27") MTK_FUNCTION(7, "TEST_OUT27")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(37, "HDMISD"),
PINCTRL_PIN(37, "HDMISD"),
"H6", "mt6397", "H6", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO37"), MTK_FUNCTION(0, "GPIO37"),
...@@ -393,8 +355,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -393,8 +355,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN28"), MTK_FUNCTION(6, "TEST_IN28"),
MTK_FUNCTION(7, "TEST_OUT28") MTK_FUNCTION(7, "TEST_OUT28")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(38, "HDMISCK"),
PINCTRL_PIN(38, "HDMISCK"),
"H5", "mt6397", "H5", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO38"), MTK_FUNCTION(0, "GPIO38"),
...@@ -402,8 +363,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -402,8 +363,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN29"), MTK_FUNCTION(6, "TEST_IN29"),
MTK_FUNCTION(7, "TEST_OUT29") MTK_FUNCTION(7, "TEST_OUT29")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(39, "HTPLG"),
PINCTRL_PIN(39, "HTPLG"),
"H7", "mt6397", "H7", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO39"), MTK_FUNCTION(0, "GPIO39"),
...@@ -411,8 +371,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = { ...@@ -411,8 +371,7 @@ static const struct mtk_desc_pin mtk_pins_mt6397[] = {
MTK_FUNCTION(6, "TEST_IN30"), MTK_FUNCTION(6, "TEST_IN30"),
MTK_FUNCTION(7, "TEST_OUT30") MTK_FUNCTION(7, "TEST_OUT30")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(40, "CEC"),
PINCTRL_PIN(40, "CEC"),
"J9", "mt6397", "J9", "mt6397",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO40"), MTK_FUNCTION(0, "GPIO40"),
......
...@@ -6,44 +6,38 @@ ...@@ -6,44 +6,38 @@
#include "pinctrl-mtk-common.h" #include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt8127[] = { static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_PIN( MTK_PIN(PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
"P22", "mt8127", "P22", "mt8127",
MTK_EINT_FUNCTION(0, 22), MTK_EINT_FUNCTION(0, 22),
MTK_FUNCTION(0, "GPIO0"), MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "PWRAP_SPIDO"), MTK_FUNCTION(1, "PWRAP_SPIDO"),
MTK_FUNCTION(2, "PWRAP_SPIDI") MTK_FUNCTION(2, "PWRAP_SPIDI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
"M22", "mt8127", "M22", "mt8127",
MTK_EINT_FUNCTION(0, 23), MTK_EINT_FUNCTION(0, 23),
MTK_FUNCTION(0, "GPIO1"), MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "PWRAP_SPIDI"), MTK_FUNCTION(1, "PWRAP_SPIDI"),
MTK_FUNCTION(2, "PWRAP_SPIDO") MTK_FUNCTION(2, "PWRAP_SPIDO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(2, "PWRAP_INT"),
PINCTRL_PIN(2, "PWRAP_INT"),
"L23", "mt8127", "L23", "mt8127",
MTK_EINT_FUNCTION(0, 24), MTK_EINT_FUNCTION(0, 24),
MTK_FUNCTION(0, "GPIO2") MTK_FUNCTION(0, "GPIO2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
"N23", "mt8127", "N23", "mt8127",
MTK_EINT_FUNCTION(0, 25), MTK_EINT_FUNCTION(0, 25),
MTK_FUNCTION(0, "GPIO3"), MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "PWRAP_SPICK_I") MTK_FUNCTION(1, "PWRAP_SPICK_I")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
"N22", "mt8127", "N22", "mt8127",
MTK_EINT_FUNCTION(0, 26), MTK_EINT_FUNCTION(0, 26),
MTK_FUNCTION(0, "GPIO4"), MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "PWRAP_SPICS_B_I") MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
"L19", "mt8127", "L19", "mt8127",
MTK_EINT_FUNCTION(0, 27), MTK_EINT_FUNCTION(0, 27),
MTK_FUNCTION(0, "GPIO5"), MTK_FUNCTION(0, "GPIO5"),
...@@ -52,8 +46,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -52,8 +46,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "VDEC_TEST_CK"), MTK_FUNCTION(3, "VDEC_TEST_CK"),
MTK_FUNCTION(7, "DBG_MON_B[0]") MTK_FUNCTION(7, "DBG_MON_B[0]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
"M23", "mt8127", "M23", "mt8127",
MTK_EINT_FUNCTION(0, 28), MTK_EINT_FUNCTION(0, 28),
MTK_FUNCTION(0, "GPIO6"), MTK_FUNCTION(0, "GPIO6"),
...@@ -62,16 +55,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -62,16 +55,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "MM_TEST_CK"), MTK_FUNCTION(3, "MM_TEST_CK"),
MTK_FUNCTION(7, "DBG_MON_B[1]") MTK_FUNCTION(7, "DBG_MON_B[1]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(7, "AUD_CLK_MOSI"),
PINCTRL_PIN(7, "AUD_CLK_MOSI"),
"K23", "mt8127", "K23", "mt8127",
MTK_EINT_FUNCTION(0, 29), MTK_EINT_FUNCTION(0, 29),
MTK_FUNCTION(0, "GPIO7"), MTK_FUNCTION(0, "GPIO7"),
MTK_FUNCTION(1, "AUD_CLK"), MTK_FUNCTION(1, "AUD_CLK"),
MTK_FUNCTION(2, "ADC_CK") MTK_FUNCTION(2, "ADC_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(8, "AUD_DAT_MISO"),
PINCTRL_PIN(8, "AUD_DAT_MISO"),
"K24", "mt8127", "K24", "mt8127",
MTK_EINT_FUNCTION(0, 30), MTK_EINT_FUNCTION(0, 30),
MTK_FUNCTION(0, "GPIO8"), MTK_FUNCTION(0, "GPIO8"),
...@@ -79,8 +70,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -79,8 +70,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "ADC_DAT_IN"), MTK_FUNCTION(2, "ADC_DAT_IN"),
MTK_FUNCTION(3, "AUD_MOSI") MTK_FUNCTION(3, "AUD_MOSI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(9, "AUD_DAT_MOSI"),
PINCTRL_PIN(9, "AUD_DAT_MOSI"),
"K22", "mt8127", "K22", "mt8127",
MTK_EINT_FUNCTION(0, 31), MTK_EINT_FUNCTION(0, 31),
MTK_FUNCTION(0, "GPIO9"), MTK_FUNCTION(0, "GPIO9"),
...@@ -88,36 +78,31 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -88,36 +78,31 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "ADC_WS"), MTK_FUNCTION(2, "ADC_WS"),
MTK_FUNCTION(3, "AUD_MISO") MTK_FUNCTION(3, "AUD_MISO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(10, "RTC32K_CK"),
PINCTRL_PIN(10, "RTC32K_CK"),
"R21", "mt8127", "R21", "mt8127",
MTK_EINT_FUNCTION(0, 32), MTK_EINT_FUNCTION(0, 32),
MTK_FUNCTION(0, "GPIO10"), MTK_FUNCTION(0, "GPIO10"),
MTK_FUNCTION(1, "RTC32K_CK") MTK_FUNCTION(1, "RTC32K_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(11, "WATCHDOG"),
PINCTRL_PIN(11, "WATCHDOG"),
"P24", "mt8127", "P24", "mt8127",
MTK_EINT_FUNCTION(0, 33), MTK_EINT_FUNCTION(0, 33),
MTK_FUNCTION(0, "GPIO11"), MTK_FUNCTION(0, "GPIO11"),
MTK_FUNCTION(1, "WATCHDOG") MTK_FUNCTION(1, "WATCHDOG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(12, "SRCLKENA"),
PINCTRL_PIN(12, "SRCLKENA"),
"R22", "mt8127", "R22", "mt8127",
MTK_EINT_FUNCTION(0, 34), MTK_EINT_FUNCTION(0, 34),
MTK_FUNCTION(0, "GPIO12"), MTK_FUNCTION(0, "GPIO12"),
MTK_FUNCTION(1, "SRCLKENA") MTK_FUNCTION(1, "SRCLKENA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(13, "SRCLKENAI"),
PINCTRL_PIN(13, "SRCLKENAI"),
"P23", "mt8127", "P23", "mt8127",
MTK_EINT_FUNCTION(0, 35), MTK_EINT_FUNCTION(0, 35),
MTK_FUNCTION(0, "GPIO13"), MTK_FUNCTION(0, "GPIO13"),
MTK_FUNCTION(1, "SRCLKENAI") MTK_FUNCTION(1, "SRCLKENAI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(14, "URXD2"),
PINCTRL_PIN(14, "URXD2"),
"U19", "mt8127", "U19", "mt8127",
MTK_EINT_FUNCTION(0, 36), MTK_EINT_FUNCTION(0, 36),
MTK_FUNCTION(0, "GPIO14"), MTK_FUNCTION(0, "GPIO14"),
...@@ -127,8 +112,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -127,8 +112,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(5, "SRCCLKENAI2"), MTK_FUNCTION(5, "SRCCLKENAI2"),
MTK_FUNCTION(6, "KROW4") MTK_FUNCTION(6, "KROW4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(15, "UTXD2"),
PINCTRL_PIN(15, "UTXD2"),
"U20", "mt8127", "U20", "mt8127",
MTK_EINT_FUNCTION(0, 37), MTK_EINT_FUNCTION(0, 37),
MTK_FUNCTION(0, "GPIO15"), MTK_FUNCTION(0, "GPIO15"),
...@@ -137,8 +121,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -137,8 +121,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "URXD2"), MTK_FUNCTION(3, "URXD2"),
MTK_FUNCTION(6, "KROW5") MTK_FUNCTION(6, "KROW5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(16, "URXD3"),
PINCTRL_PIN(16, "URXD3"),
"U18", "mt8127", "U18", "mt8127",
MTK_EINT_FUNCTION(0, 38), MTK_EINT_FUNCTION(0, 38),
MTK_FUNCTION(0, "GPIO16"), MTK_FUNCTION(0, "GPIO16"),
...@@ -149,8 +132,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -149,8 +132,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(5, "PWM3"), MTK_FUNCTION(5, "PWM3"),
MTK_FUNCTION(6, "KROW6") MTK_FUNCTION(6, "KROW6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(17, "UTXD3"),
PINCTRL_PIN(17, "UTXD3"),
"R18", "mt8127", "R18", "mt8127",
MTK_EINT_FUNCTION(0, 39), MTK_EINT_FUNCTION(0, 39),
MTK_FUNCTION(0, "GPIO17"), MTK_FUNCTION(0, "GPIO17"),
...@@ -161,8 +143,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -161,8 +143,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(5, "PWM4"), MTK_FUNCTION(5, "PWM4"),
MTK_FUNCTION(6, "KROW7") MTK_FUNCTION(6, "KROW7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(18, "PCM_CLK"),
PINCTRL_PIN(18, "PCM_CLK"),
"U22", "mt8127", "U22", "mt8127",
MTK_EINT_FUNCTION(0, 40), MTK_EINT_FUNCTION(0, 40),
MTK_FUNCTION(0, "GPIO18"), MTK_FUNCTION(0, "GPIO18"),
...@@ -174,8 +155,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -174,8 +155,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "IR"), MTK_FUNCTION(6, "IR"),
MTK_FUNCTION(7, "DBG_MON_A[0]") MTK_FUNCTION(7, "DBG_MON_A[0]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(19, "PCM_SYNC"),
PINCTRL_PIN(19, "PCM_SYNC"),
"U23", "mt8127", "U23", "mt8127",
MTK_EINT_FUNCTION(0, 41), MTK_EINT_FUNCTION(0, 41),
MTK_FUNCTION(0, "GPIO19"), MTK_FUNCTION(0, "GPIO19"),
...@@ -187,8 +167,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -187,8 +167,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "EXT_COL"), MTK_FUNCTION(6, "EXT_COL"),
MTK_FUNCTION(7, "DBG_MON_A[1]") MTK_FUNCTION(7, "DBG_MON_A[1]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(20, "PCM_RX"),
PINCTRL_PIN(20, "PCM_RX"),
"V22", "mt8127", "V22", "mt8127",
MTK_EINT_FUNCTION(0, 42), MTK_EINT_FUNCTION(0, 42),
MTK_FUNCTION(0, "GPIO20"), MTK_FUNCTION(0, "GPIO20"),
...@@ -200,8 +179,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -200,8 +179,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "EXT_MDIO"), MTK_FUNCTION(6, "EXT_MDIO"),
MTK_FUNCTION(7, "DBG_MON_A[2]") MTK_FUNCTION(7, "DBG_MON_A[2]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(21, "PCM_TX"),
PINCTRL_PIN(21, "PCM_TX"),
"U21", "mt8127", "U21", "mt8127",
MTK_EINT_FUNCTION(0, 43), MTK_EINT_FUNCTION(0, 43),
MTK_FUNCTION(0, "GPIO21"), MTK_FUNCTION(0, "GPIO21"),
...@@ -213,8 +191,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -213,8 +191,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "EXT_MDC"), MTK_FUNCTION(6, "EXT_MDC"),
MTK_FUNCTION(7, "DBG_MON_A[3]") MTK_FUNCTION(7, "DBG_MON_A[3]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(22, "EINT0"),
PINCTRL_PIN(22, "EINT0"),
"AB19", "mt8127", "AB19", "mt8127",
MTK_EINT_FUNCTION(0, 0), MTK_EINT_FUNCTION(0, 0),
MTK_FUNCTION(0, "GPIO22"), MTK_FUNCTION(0, "GPIO22"),
...@@ -224,8 +201,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -224,8 +201,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(5, "CONN_DSP_JDO"), MTK_FUNCTION(5, "CONN_DSP_JDO"),
MTK_FUNCTION(7, "DBG_MON_A[4]") MTK_FUNCTION(7, "DBG_MON_A[4]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(23, "EINT1"),
PINCTRL_PIN(23, "EINT1"),
"AA21", "mt8127", "AA21", "mt8127",
MTK_EINT_FUNCTION(0, 1), MTK_EINT_FUNCTION(0, 1),
MTK_FUNCTION(0, "GPIO23"), MTK_FUNCTION(0, "GPIO23"),
...@@ -235,8 +211,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -235,8 +211,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(5, "CONN_MCU_TDO"), MTK_FUNCTION(5, "CONN_MCU_TDO"),
MTK_FUNCTION(7, "DBG_MON_A[5]") MTK_FUNCTION(7, "DBG_MON_A[5]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(24, "EINT2"),
PINCTRL_PIN(24, "EINT2"),
"AA19", "mt8127", "AA19", "mt8127",
MTK_EINT_FUNCTION(0, 2), MTK_EINT_FUNCTION(0, 2),
MTK_FUNCTION(0, "GPIO24"), MTK_FUNCTION(0, "GPIO24"),
...@@ -247,8 +222,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -247,8 +222,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "KCOL4"), MTK_FUNCTION(6, "KCOL4"),
MTK_FUNCTION(7, "DBG_MON_A[6]") MTK_FUNCTION(7, "DBG_MON_A[6]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(25, "EINT3"),
PINCTRL_PIN(25, "EINT3"),
"Y19", "mt8127", "Y19", "mt8127",
MTK_EINT_FUNCTION(0, 3), MTK_EINT_FUNCTION(0, 3),
MTK_FUNCTION(0, "GPIO25"), MTK_FUNCTION(0, "GPIO25"),
...@@ -260,8 +234,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -260,8 +234,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "KCOL5"), MTK_FUNCTION(6, "KCOL5"),
MTK_FUNCTION(7, "DBG_MON_A[7]") MTK_FUNCTION(7, "DBG_MON_A[7]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(26, "EINT4"),
PINCTRL_PIN(26, "EINT4"),
"V21", "mt8127", "V21", "mt8127",
MTK_EINT_FUNCTION(0, 4), MTK_EINT_FUNCTION(0, 4),
MTK_FUNCTION(0, "GPIO26"), MTK_FUNCTION(0, "GPIO26"),
...@@ -273,8 +246,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -273,8 +246,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "CONN_MCU_AICE_JCKC"), MTK_FUNCTION(6, "CONN_MCU_AICE_JCKC"),
MTK_FUNCTION(7, "DBG_MON_A[8]") MTK_FUNCTION(7, "DBG_MON_A[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(27, "EINT5"),
PINCTRL_PIN(27, "EINT5"),
"AB22", "mt8127", "AB22", "mt8127",
MTK_EINT_FUNCTION(0, 5), MTK_EINT_FUNCTION(0, 5),
MTK_FUNCTION(0, "GPIO27"), MTK_FUNCTION(0, "GPIO27"),
...@@ -286,8 +258,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -286,8 +258,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "KCOL6"), MTK_FUNCTION(6, "KCOL6"),
MTK_FUNCTION(7, "DBG_MON_A[9]") MTK_FUNCTION(7, "DBG_MON_A[9]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(28, "EINT6"),
PINCTRL_PIN(28, "EINT6"),
"AA23", "mt8127", "AA23", "mt8127",
MTK_EINT_FUNCTION(0, 6), MTK_EINT_FUNCTION(0, 6),
MTK_FUNCTION(0, "GPIO28"), MTK_FUNCTION(0, "GPIO28"),
...@@ -299,8 +270,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -299,8 +270,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "KCOL7"), MTK_FUNCTION(6, "KCOL7"),
MTK_FUNCTION(7, "DBG_MON_A[10]") MTK_FUNCTION(7, "DBG_MON_A[10]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(29, "EINT7"),
PINCTRL_PIN(29, "EINT7"),
"Y23", "mt8127", "Y23", "mt8127",
MTK_EINT_FUNCTION(0, 7), MTK_EINT_FUNCTION(0, 7),
MTK_FUNCTION(0, "GPIO29"), MTK_FUNCTION(0, "GPIO29"),
...@@ -312,8 +282,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -312,8 +282,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "CONN_MCU_AICE_JMSC"), MTK_FUNCTION(6, "CONN_MCU_AICE_JMSC"),
MTK_FUNCTION(7, "DBG_MON_A[11]") MTK_FUNCTION(7, "DBG_MON_A[11]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(30, "EINT8"),
PINCTRL_PIN(30, "EINT8"),
"Y24", "mt8127", "Y24", "mt8127",
MTK_EINT_FUNCTION(0, 8), MTK_EINT_FUNCTION(0, 8),
MTK_FUNCTION(0, "GPIO30"), MTK_FUNCTION(0, "GPIO30"),
...@@ -325,8 +294,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -325,8 +294,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "DPI_D7"), MTK_FUNCTION(6, "DPI_D7"),
MTK_FUNCTION(7, "DBG_MON_B[2]") MTK_FUNCTION(7, "DBG_MON_B[2]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(31, "EINT9"),
PINCTRL_PIN(31, "EINT9"),
"W23", "mt8127", "W23", "mt8127",
MTK_EINT_FUNCTION(0, 9), MTK_EINT_FUNCTION(0, 9),
MTK_FUNCTION(0, "GPIO31"), MTK_FUNCTION(0, "GPIO31"),
...@@ -338,8 +306,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -338,8 +306,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "DPI_D8"), MTK_FUNCTION(6, "DPI_D8"),
MTK_FUNCTION(7, "DBG_MON_B[3]") MTK_FUNCTION(7, "DBG_MON_B[3]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(32, "EINT10"),
PINCTRL_PIN(32, "EINT10"),
"W24", "mt8127", "W24", "mt8127",
MTK_EINT_FUNCTION(0, 10), MTK_EINT_FUNCTION(0, 10),
MTK_FUNCTION(0, "GPIO32"), MTK_FUNCTION(0, "GPIO32"),
...@@ -351,8 +318,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -351,8 +318,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "DPI_D9"), MTK_FUNCTION(6, "DPI_D9"),
MTK_FUNCTION(7, "DBG_MON_B[4]") MTK_FUNCTION(7, "DBG_MON_B[4]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(33, "KPROW0"),
PINCTRL_PIN(33, "KPROW0"),
"AB24", "mt8127", "AB24", "mt8127",
MTK_EINT_FUNCTION(0, 44), MTK_EINT_FUNCTION(0, 44),
MTK_FUNCTION(0, "GPIO33"), MTK_FUNCTION(0, "GPIO33"),
...@@ -360,8 +326,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -360,8 +326,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "IMG_TEST_CK"), MTK_FUNCTION(4, "IMG_TEST_CK"),
MTK_FUNCTION(7, "DBG_MON_A[12]") MTK_FUNCTION(7, "DBG_MON_A[12]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(34, "KPROW1"),
PINCTRL_PIN(34, "KPROW1"),
"AC24", "mt8127", "AC24", "mt8127",
MTK_EINT_FUNCTION(0, 45), MTK_EINT_FUNCTION(0, 45),
MTK_FUNCTION(0, "GPIO34"), MTK_FUNCTION(0, "GPIO34"),
...@@ -371,8 +336,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -371,8 +336,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "MFG_TEST_CK"), MTK_FUNCTION(4, "MFG_TEST_CK"),
MTK_FUNCTION(7, "DBG_MON_B[5]") MTK_FUNCTION(7, "DBG_MON_B[5]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(35, "KPROW2"),
PINCTRL_PIN(35, "KPROW2"),
"AD24", "mt8127", "AD24", "mt8127",
MTK_EINT_FUNCTION(0, 46), MTK_EINT_FUNCTION(0, 46),
MTK_FUNCTION(0, "GPIO35"), MTK_FUNCTION(0, "GPIO35"),
...@@ -382,24 +346,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -382,24 +346,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "CONN_TEST_CK"), MTK_FUNCTION(4, "CONN_TEST_CK"),
MTK_FUNCTION(7, "DBG_MON_B[6]") MTK_FUNCTION(7, "DBG_MON_B[6]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(36, "KPCOL0"),
PINCTRL_PIN(36, "KPCOL0"),
"AB23", "mt8127", "AB23", "mt8127",
MTK_EINT_FUNCTION(0, 47), MTK_EINT_FUNCTION(0, 47),
MTK_FUNCTION(0, "GPIO36"), MTK_FUNCTION(0, "GPIO36"),
MTK_FUNCTION(1, "KCOL0"), MTK_FUNCTION(1, "KCOL0"),
MTK_FUNCTION(7, "DBG_MON_A[13]") MTK_FUNCTION(7, "DBG_MON_A[13]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(37, "KPCOL1"),
PINCTRL_PIN(37, "KPCOL1"),
"AC22", "mt8127", "AC22", "mt8127",
MTK_EINT_FUNCTION(0, 48), MTK_EINT_FUNCTION(0, 48),
MTK_FUNCTION(0, "GPIO37"), MTK_FUNCTION(0, "GPIO37"),
MTK_FUNCTION(1, "KCOL1"), MTK_FUNCTION(1, "KCOL1"),
MTK_FUNCTION(7, "DBG_MON_B[7]") MTK_FUNCTION(7, "DBG_MON_B[7]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(38, "KPCOL2"),
PINCTRL_PIN(38, "KPCOL2"),
"AC23", "mt8127", "AC23", "mt8127",
MTK_EINT_FUNCTION(0, 49), MTK_EINT_FUNCTION(0, 49),
MTK_FUNCTION(0, "GPIO38"), MTK_FUNCTION(0, "GPIO38"),
...@@ -408,8 +369,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -408,8 +369,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "EXT_FRAME_SYNC"), MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
MTK_FUNCTION(7, "DBG_MON_B[8]") MTK_FUNCTION(7, "DBG_MON_B[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(39, "JTMS"),
PINCTRL_PIN(39, "JTMS"),
"V18", "mt8127", "V18", "mt8127",
MTK_EINT_FUNCTION(0, 50), MTK_EINT_FUNCTION(0, 50),
MTK_FUNCTION(0, "GPIO39"), MTK_FUNCTION(0, "GPIO39"),
...@@ -417,8 +377,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -417,8 +377,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "CONN_MCU_TMS"), MTK_FUNCTION(2, "CONN_MCU_TMS"),
MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC") MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(40, "JTCK"),
PINCTRL_PIN(40, "JTCK"),
"AA18", "mt8127", "AA18", "mt8127",
MTK_EINT_FUNCTION(0, 51), MTK_EINT_FUNCTION(0, 51),
MTK_FUNCTION(0, "GPIO40"), MTK_FUNCTION(0, "GPIO40"),
...@@ -426,24 +385,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -426,24 +385,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "CONN_MCU_TCK1"), MTK_FUNCTION(2, "CONN_MCU_TCK1"),
MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC") MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(41, "JTDI"),
PINCTRL_PIN(41, "JTDI"),
"W18", "mt8127", "W18", "mt8127",
MTK_EINT_FUNCTION(0, 52), MTK_EINT_FUNCTION(0, 52),
MTK_FUNCTION(0, "GPIO41"), MTK_FUNCTION(0, "GPIO41"),
MTK_FUNCTION(1, "JTDI"), MTK_FUNCTION(1, "JTDI"),
MTK_FUNCTION(2, "CONN_MCU_TDI") MTK_FUNCTION(2, "CONN_MCU_TDI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(42, "JTDO"),
PINCTRL_PIN(42, "JTDO"),
"Y18", "mt8127", "Y18", "mt8127",
MTK_EINT_FUNCTION(0, 53), MTK_EINT_FUNCTION(0, 53),
MTK_FUNCTION(0, "GPIO42"), MTK_FUNCTION(0, "GPIO42"),
MTK_FUNCTION(1, "JTDO"), MTK_FUNCTION(1, "JTDO"),
MTK_FUNCTION(2, "CONN_MCU_TDO") MTK_FUNCTION(2, "CONN_MCU_TDO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(43, "EINT11"),
PINCTRL_PIN(43, "EINT11"),
"W22", "mt8127", "W22", "mt8127",
MTK_EINT_FUNCTION(0, 11), MTK_EINT_FUNCTION(0, 11),
MTK_FUNCTION(0, "GPIO43"), MTK_FUNCTION(0, "GPIO43"),
...@@ -455,8 +411,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -455,8 +411,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "EXT_RXD3"), MTK_FUNCTION(6, "EXT_RXD3"),
MTK_FUNCTION(7, "DBG_MON_B[9]") MTK_FUNCTION(7, "DBG_MON_B[9]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(44, "EINT12"),
PINCTRL_PIN(44, "EINT12"),
"V23", "mt8127", "V23", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO44"), MTK_FUNCTION(0, "GPIO44"),
...@@ -468,8 +423,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -468,8 +423,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "EXT_TXEN"), MTK_FUNCTION(6, "EXT_TXEN"),
MTK_FUNCTION(7, "DBG_MON_B[10]") MTK_FUNCTION(7, "DBG_MON_B[10]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(45, "EINT13"),
PINCTRL_PIN(45, "EINT13"),
"Y21", "mt8127", "Y21", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO45"), MTK_FUNCTION(0, "GPIO45"),
...@@ -478,8 +432,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -478,8 +432,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "SPDIF"), MTK_FUNCTION(6, "SPDIF"),
MTK_FUNCTION(7, "DBG_MON_B[11]") MTK_FUNCTION(7, "DBG_MON_B[11]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(46, "EINT14"),
PINCTRL_PIN(46, "EINT14"),
"F23", "mt8127", "F23", "mt8127",
MTK_EINT_FUNCTION(0, 14), MTK_EINT_FUNCTION(0, 14),
MTK_FUNCTION(0, "GPIO46"), MTK_FUNCTION(0, "GPIO46"),
...@@ -489,8 +442,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -489,8 +442,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "NCLE"), MTK_FUNCTION(6, "NCLE"),
MTK_FUNCTION(7, "DBG_MON_A[14]") MTK_FUNCTION(7, "DBG_MON_A[14]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(47, "EINT15"),
PINCTRL_PIN(47, "EINT15"),
"G23", "mt8127", "G23", "mt8127",
MTK_EINT_FUNCTION(0, 15), MTK_EINT_FUNCTION(0, 15),
MTK_FUNCTION(0, "GPIO47"), MTK_FUNCTION(0, "GPIO47"),
...@@ -500,8 +452,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -500,8 +452,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "NCEB1"), MTK_FUNCTION(6, "NCEB1"),
MTK_FUNCTION(7, "DBG_MON_A[15]") MTK_FUNCTION(7, "DBG_MON_A[15]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(48, "EINT16"),
PINCTRL_PIN(48, "EINT16"),
"H23", "mt8127", "H23", "mt8127",
MTK_EINT_FUNCTION(0, 16), MTK_EINT_FUNCTION(0, 16),
MTK_FUNCTION(0, "GPIO48"), MTK_FUNCTION(0, "GPIO48"),
...@@ -511,8 +462,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -511,8 +462,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "NCEB0"), MTK_FUNCTION(6, "NCEB0"),
MTK_FUNCTION(7, "DBG_MON_A[16]") MTK_FUNCTION(7, "DBG_MON_A[16]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(49, "EINT17"),
PINCTRL_PIN(49, "EINT17"),
"J22", "mt8127", "J22", "mt8127",
MTK_EINT_FUNCTION(0, 17), MTK_EINT_FUNCTION(0, 17),
MTK_FUNCTION(0, "GPIO49"), MTK_FUNCTION(0, "GPIO49"),
...@@ -523,8 +473,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -523,8 +473,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "NREB"), MTK_FUNCTION(6, "NREB"),
MTK_FUNCTION(7, "DBG_MON_A[17]") MTK_FUNCTION(7, "DBG_MON_A[17]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(50, "EINT18"),
PINCTRL_PIN(50, "EINT18"),
"AD20", "mt8127", "AD20", "mt8127",
MTK_EINT_FUNCTION(0, 18), MTK_EINT_FUNCTION(0, 18),
MTK_FUNCTION(0, "GPIO50"), MTK_FUNCTION(0, "GPIO50"),
...@@ -536,8 +485,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -536,8 +485,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_CK"), MTK_FUNCTION(6, "ADC_CK"),
MTK_FUNCTION(7, "DBG_MON_B[12]") MTK_FUNCTION(7, "DBG_MON_B[12]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(51, "EINT19"),
PINCTRL_PIN(51, "EINT19"),
"AC21", "mt8127", "AC21", "mt8127",
MTK_EINT_FUNCTION(0, 19), MTK_EINT_FUNCTION(0, 19),
MTK_FUNCTION(0, "GPIO51"), MTK_FUNCTION(0, "GPIO51"),
...@@ -548,8 +496,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -548,8 +496,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_DAT_IN"), MTK_FUNCTION(6, "ADC_DAT_IN"),
MTK_FUNCTION(7, "DBG_MON_B[13]") MTK_FUNCTION(7, "DBG_MON_B[13]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(52, "EINT20"),
PINCTRL_PIN(52, "EINT20"),
"V20", "mt8127", "V20", "mt8127",
MTK_EINT_FUNCTION(0, 20), MTK_EINT_FUNCTION(0, 20),
MTK_FUNCTION(0, "GPIO52"), MTK_FUNCTION(0, "GPIO52"),
...@@ -561,8 +508,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -561,8 +508,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_WS"), MTK_FUNCTION(6, "ADC_WS"),
MTK_FUNCTION(7, "DBG_MON_B[14]") MTK_FUNCTION(7, "DBG_MON_B[14]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(53, "SPI_CS"),
PINCTRL_PIN(53, "SPI_CS"),
"AD19", "mt8127", "AD19", "mt8127",
MTK_EINT_FUNCTION(0, 54), MTK_EINT_FUNCTION(0, 54),
MTK_FUNCTION(0, "GPIO53"), MTK_FUNCTION(0, "GPIO53"),
...@@ -571,8 +517,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -571,8 +517,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "ADC_CK"), MTK_FUNCTION(4, "ADC_CK"),
MTK_FUNCTION(7, "DBG_MON_B[15]") MTK_FUNCTION(7, "DBG_MON_B[15]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(54, "SPI_CK"),
PINCTRL_PIN(54, "SPI_CK"),
"AC18", "mt8127", "AC18", "mt8127",
MTK_EINT_FUNCTION(0, 55), MTK_EINT_FUNCTION(0, 55),
MTK_FUNCTION(0, "GPIO54"), MTK_FUNCTION(0, "GPIO54"),
...@@ -581,8 +526,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -581,8 +526,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "ADC_DAT_IN"), MTK_FUNCTION(4, "ADC_DAT_IN"),
MTK_FUNCTION(7, "DBG_MON_B[16]") MTK_FUNCTION(7, "DBG_MON_B[16]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(55, "SPI_MI"),
PINCTRL_PIN(55, "SPI_MI"),
"AC19", "mt8127", "AC19", "mt8127",
MTK_EINT_FUNCTION(0, 56), MTK_EINT_FUNCTION(0, 56),
MTK_FUNCTION(0, "GPIO55"), MTK_FUNCTION(0, "GPIO55"),
...@@ -592,8 +536,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -592,8 +536,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "ADC_WS"), MTK_FUNCTION(4, "ADC_WS"),
MTK_FUNCTION(7, "DBG_MON_B[17]") MTK_FUNCTION(7, "DBG_MON_B[17]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(56, "SPI_MO"),
PINCTRL_PIN(56, "SPI_MO"),
"AD18", "mt8127", "AD18", "mt8127",
MTK_EINT_FUNCTION(0, 57), MTK_EINT_FUNCTION(0, 57),
MTK_FUNCTION(0, "GPIO56"), MTK_FUNCTION(0, "GPIO56"),
...@@ -601,22 +544,19 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -601,22 +544,19 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "SPI_MI"), MTK_FUNCTION(2, "SPI_MI"),
MTK_FUNCTION(7, "DBG_MON_B[18]") MTK_FUNCTION(7, "DBG_MON_B[18]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(57, "SDA1"),
PINCTRL_PIN(57, "SDA1"),
"AE23", "mt8127", "AE23", "mt8127",
MTK_EINT_FUNCTION(0, 58), MTK_EINT_FUNCTION(0, 58),
MTK_FUNCTION(0, "GPIO57"), MTK_FUNCTION(0, "GPIO57"),
MTK_FUNCTION(1, "SDA1") MTK_FUNCTION(1, "SDA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(58, "SCL1"),
PINCTRL_PIN(58, "SCL1"),
"AD23", "mt8127", "AD23", "mt8127",
MTK_EINT_FUNCTION(0, 59), MTK_EINT_FUNCTION(0, 59),
MTK_FUNCTION(0, "GPIO58"), MTK_FUNCTION(0, "GPIO58"),
MTK_FUNCTION(1, "SCL1") MTK_FUNCTION(1, "SCL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(59, "DISP_PWM"),
PINCTRL_PIN(59, "DISP_PWM"),
"AC20", "mt8127", "AC20", "mt8127",
MTK_EINT_FUNCTION(0, 60), MTK_EINT_FUNCTION(0, 60),
MTK_FUNCTION(0, "GPIO59"), MTK_FUNCTION(0, "GPIO59"),
...@@ -624,56 +564,49 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -624,56 +564,49 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "PWM1"), MTK_FUNCTION(2, "PWM1"),
MTK_FUNCTION(7, "DBG_MON_A[18]") MTK_FUNCTION(7, "DBG_MON_A[18]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(60, "WB_RSTB"),
PINCTRL_PIN(60, "WB_RSTB"),
"AD7", "mt8127", "AD7", "mt8127",
MTK_EINT_FUNCTION(0, 61), MTK_EINT_FUNCTION(0, 61),
MTK_FUNCTION(0, "GPIO60"), MTK_FUNCTION(0, "GPIO60"),
MTK_FUNCTION(1, "WB_RSTB"), MTK_FUNCTION(1, "WB_RSTB"),
MTK_FUNCTION(7, "DBG_MON_A[19]") MTK_FUNCTION(7, "DBG_MON_A[19]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(61, "F2W_DATA"),
PINCTRL_PIN(61, "F2W_DATA"),
"Y10", "mt8127", "Y10", "mt8127",
MTK_EINT_FUNCTION(0, 62), MTK_EINT_FUNCTION(0, 62),
MTK_FUNCTION(0, "GPIO61"), MTK_FUNCTION(0, "GPIO61"),
MTK_FUNCTION(1, "F2W_DATA"), MTK_FUNCTION(1, "F2W_DATA"),
MTK_FUNCTION(7, "DBG_MON_A[20]") MTK_FUNCTION(7, "DBG_MON_A[20]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(62, "F2W_CLK"),
PINCTRL_PIN(62, "F2W_CLK"),
"W10", "mt8127", "W10", "mt8127",
MTK_EINT_FUNCTION(0, 63), MTK_EINT_FUNCTION(0, 63),
MTK_FUNCTION(0, "GPIO62"), MTK_FUNCTION(0, "GPIO62"),
MTK_FUNCTION(1, "F2W_CK"), MTK_FUNCTION(1, "F2W_CK"),
MTK_FUNCTION(7, "DBG_MON_A[21]") MTK_FUNCTION(7, "DBG_MON_A[21]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(63, "WB_SCLK"),
PINCTRL_PIN(63, "WB_SCLK"),
"AB7", "mt8127", "AB7", "mt8127",
MTK_EINT_FUNCTION(0, 64), MTK_EINT_FUNCTION(0, 64),
MTK_FUNCTION(0, "GPIO63"), MTK_FUNCTION(0, "GPIO63"),
MTK_FUNCTION(1, "WB_SCLK"), MTK_FUNCTION(1, "WB_SCLK"),
MTK_FUNCTION(7, "DBG_MON_A[22]") MTK_FUNCTION(7, "DBG_MON_A[22]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(64, "WB_SDATA"),
PINCTRL_PIN(64, "WB_SDATA"),
"AA7", "mt8127", "AA7", "mt8127",
MTK_EINT_FUNCTION(0, 65), MTK_EINT_FUNCTION(0, 65),
MTK_FUNCTION(0, "GPIO64"), MTK_FUNCTION(0, "GPIO64"),
MTK_FUNCTION(1, "WB_SDATA"), MTK_FUNCTION(1, "WB_SDATA"),
MTK_FUNCTION(7, "DBG_MON_A[23]") MTK_FUNCTION(7, "DBG_MON_A[23]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(65, "WB_SEN"),
PINCTRL_PIN(65, "WB_SEN"),
"Y7", "mt8127", "Y7", "mt8127",
MTK_EINT_FUNCTION(0, 66), MTK_EINT_FUNCTION(0, 66),
MTK_FUNCTION(0, "GPIO65"), MTK_FUNCTION(0, "GPIO65"),
MTK_FUNCTION(1, "WB_SEN"), MTK_FUNCTION(1, "WB_SEN"),
MTK_FUNCTION(7, "DBG_MON_A[24]") MTK_FUNCTION(7, "DBG_MON_A[24]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(66, "WB_CRTL0"),
PINCTRL_PIN(66, "WB_CRTL0"),
"AA1", "mt8127", "AA1", "mt8127",
MTK_EINT_FUNCTION(0, 67), MTK_EINT_FUNCTION(0, 67),
MTK_FUNCTION(0, "GPIO66"), MTK_FUNCTION(0, "GPIO66"),
...@@ -681,8 +614,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -681,8 +614,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "DFD_NTRST_XI"), MTK_FUNCTION(2, "DFD_NTRST_XI"),
MTK_FUNCTION(7, "DBG_MON_A[25]") MTK_FUNCTION(7, "DBG_MON_A[25]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(67, "WB_CRTL1"),
PINCTRL_PIN(67, "WB_CRTL1"),
"AA2", "mt8127", "AA2", "mt8127",
MTK_EINT_FUNCTION(0, 68), MTK_EINT_FUNCTION(0, 68),
MTK_FUNCTION(0, "GPIO67"), MTK_FUNCTION(0, "GPIO67"),
...@@ -690,8 +622,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -690,8 +622,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "DFD_TMS_XI"), MTK_FUNCTION(2, "DFD_TMS_XI"),
MTK_FUNCTION(7, "DBG_MON_A[26]") MTK_FUNCTION(7, "DBG_MON_A[26]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(68, "WB_CRTL2"),
PINCTRL_PIN(68, "WB_CRTL2"),
"Y1", "mt8127", "Y1", "mt8127",
MTK_EINT_FUNCTION(0, 69), MTK_EINT_FUNCTION(0, 69),
MTK_FUNCTION(0, "GPIO68"), MTK_FUNCTION(0, "GPIO68"),
...@@ -699,8 +630,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -699,8 +630,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "DFD_TCK_XI"), MTK_FUNCTION(2, "DFD_TCK_XI"),
MTK_FUNCTION(7, "DBG_MON_A[27]") MTK_FUNCTION(7, "DBG_MON_A[27]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(69, "WB_CRTL3"),
PINCTRL_PIN(69, "WB_CRTL3"),
"Y2", "mt8127", "Y2", "mt8127",
MTK_EINT_FUNCTION(0, 70), MTK_EINT_FUNCTION(0, 70),
MTK_FUNCTION(0, "GPIO69"), MTK_FUNCTION(0, "GPIO69"),
...@@ -708,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -708,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "DFD_TDI_XI"), MTK_FUNCTION(2, "DFD_TDI_XI"),
MTK_FUNCTION(7, "DBG_MON_A[28]") MTK_FUNCTION(7, "DBG_MON_A[28]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(70, "WB_CRTL4"),
PINCTRL_PIN(70, "WB_CRTL4"),
"Y3", "mt8127", "Y3", "mt8127",
MTK_EINT_FUNCTION(0, 71), MTK_EINT_FUNCTION(0, 71),
MTK_FUNCTION(0, "GPIO70"), MTK_FUNCTION(0, "GPIO70"),
...@@ -717,16 +646,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -717,16 +646,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "DFD_TDO"), MTK_FUNCTION(2, "DFD_TDO"),
MTK_FUNCTION(7, "DBG_MON_A[29]") MTK_FUNCTION(7, "DBG_MON_A[29]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(71, "WB_CRTL5"),
PINCTRL_PIN(71, "WB_CRTL5"),
"Y4", "mt8127", "Y4", "mt8127",
MTK_EINT_FUNCTION(0, 72), MTK_EINT_FUNCTION(0, 72),
MTK_FUNCTION(0, "GPIO71"), MTK_FUNCTION(0, "GPIO71"),
MTK_FUNCTION(1, "WB_CRTL5"), MTK_FUNCTION(1, "WB_CRTL5"),
MTK_FUNCTION(7, "DBG_MON_A[30]") MTK_FUNCTION(7, "DBG_MON_A[30]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(72, "I2S_DATA_IN"),
PINCTRL_PIN(72, "I2S_DATA_IN"),
"K21", "mt8127", "K21", "mt8127",
MTK_EINT_FUNCTION(0, 73), MTK_EINT_FUNCTION(0, 73),
MTK_FUNCTION(0, "GPIO72"), MTK_FUNCTION(0, "GPIO72"),
...@@ -738,8 +665,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -738,8 +665,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_CK"), MTK_FUNCTION(6, "ADC_CK"),
MTK_FUNCTION(7, "DBG_MON_B[19]") MTK_FUNCTION(7, "DBG_MON_B[19]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(73, "I2S_LRCK"),
PINCTRL_PIN(73, "I2S_LRCK"),
"L21", "mt8127", "L21", "mt8127",
MTK_EINT_FUNCTION(0, 74), MTK_EINT_FUNCTION(0, 74),
MTK_FUNCTION(0, "GPIO73"), MTK_FUNCTION(0, "GPIO73"),
...@@ -751,8 +677,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -751,8 +677,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_DAT_IN"), MTK_FUNCTION(6, "ADC_DAT_IN"),
MTK_FUNCTION(7, "DBG_MON_B[20]") MTK_FUNCTION(7, "DBG_MON_B[20]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(74, "I2S_BCK"),
PINCTRL_PIN(74, "I2S_BCK"),
"L20", "mt8127", "L20", "mt8127",
MTK_EINT_FUNCTION(0, 75), MTK_EINT_FUNCTION(0, 75),
MTK_FUNCTION(0, "GPIO74"), MTK_FUNCTION(0, "GPIO74"),
...@@ -764,70 +689,61 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -764,70 +689,61 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "ADC_WS"), MTK_FUNCTION(6, "ADC_WS"),
MTK_FUNCTION(7, "DBG_MON_B[21]") MTK_FUNCTION(7, "DBG_MON_B[21]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(75, "SDA0"),
PINCTRL_PIN(75, "SDA0"),
"W3", "mt8127", "W3", "mt8127",
MTK_EINT_FUNCTION(0, 76), MTK_EINT_FUNCTION(0, 76),
MTK_FUNCTION(0, "GPIO75"), MTK_FUNCTION(0, "GPIO75"),
MTK_FUNCTION(1, "SDA0") MTK_FUNCTION(1, "SDA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(76, "SCL0"),
PINCTRL_PIN(76, "SCL0"),
"W4", "mt8127", "W4", "mt8127",
MTK_EINT_FUNCTION(0, 77), MTK_EINT_FUNCTION(0, 77),
MTK_FUNCTION(0, "GPIO76"), MTK_FUNCTION(0, "GPIO76"),
MTK_FUNCTION(1, "SCL0") MTK_FUNCTION(1, "SCL0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(77, "SDA2"),
PINCTRL_PIN(77, "SDA2"),
"K19", "mt8127", "K19", "mt8127",
MTK_EINT_FUNCTION(0, 78), MTK_EINT_FUNCTION(0, 78),
MTK_FUNCTION(0, "GPIO77"), MTK_FUNCTION(0, "GPIO77"),
MTK_FUNCTION(1, "SDA2"), MTK_FUNCTION(1, "SDA2"),
MTK_FUNCTION(2, "PWM1") MTK_FUNCTION(2, "PWM1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(78, "SCL2"),
PINCTRL_PIN(78, "SCL2"),
"K20", "mt8127", "K20", "mt8127",
MTK_EINT_FUNCTION(0, 79), MTK_EINT_FUNCTION(0, 79),
MTK_FUNCTION(0, "GPIO78"), MTK_FUNCTION(0, "GPIO78"),
MTK_FUNCTION(1, "SCL2"), MTK_FUNCTION(1, "SCL2"),
MTK_FUNCTION(2, "PWM2") MTK_FUNCTION(2, "PWM2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(79, "URXD0"),
PINCTRL_PIN(79, "URXD0"),
"K18", "mt8127", "K18", "mt8127",
MTK_EINT_FUNCTION(0, 80), MTK_EINT_FUNCTION(0, 80),
MTK_FUNCTION(0, "GPIO79"), MTK_FUNCTION(0, "GPIO79"),
MTK_FUNCTION(1, "URXD0"), MTK_FUNCTION(1, "URXD0"),
MTK_FUNCTION(2, "UTXD0") MTK_FUNCTION(2, "UTXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(80, "UTXD0"),
PINCTRL_PIN(80, "UTXD0"),
"K17", "mt8127", "K17", "mt8127",
MTK_EINT_FUNCTION(0, 81), MTK_EINT_FUNCTION(0, 81),
MTK_FUNCTION(0, "GPIO80"), MTK_FUNCTION(0, "GPIO80"),
MTK_FUNCTION(1, "UTXD0"), MTK_FUNCTION(1, "UTXD0"),
MTK_FUNCTION(2, "URXD0") MTK_FUNCTION(2, "URXD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(81, "URXD1"),
PINCTRL_PIN(81, "URXD1"),
"L17", "mt8127", "L17", "mt8127",
MTK_EINT_FUNCTION(0, 82), MTK_EINT_FUNCTION(0, 82),
MTK_FUNCTION(0, "GPIO81"), MTK_FUNCTION(0, "GPIO81"),
MTK_FUNCTION(1, "URXD1"), MTK_FUNCTION(1, "URXD1"),
MTK_FUNCTION(2, "UTXD1") MTK_FUNCTION(2, "UTXD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(82, "UTXD1"),
PINCTRL_PIN(82, "UTXD1"),
"L18", "mt8127", "L18", "mt8127",
MTK_EINT_FUNCTION(0, 83), MTK_EINT_FUNCTION(0, 83),
MTK_FUNCTION(0, "GPIO82"), MTK_FUNCTION(0, "GPIO82"),
MTK_FUNCTION(1, "UTXD1"), MTK_FUNCTION(1, "UTXD1"),
MTK_FUNCTION(2, "URXD1") MTK_FUNCTION(2, "URXD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(83, "LCM_RST"),
PINCTRL_PIN(83, "LCM_RST"),
"W5", "mt8127", "W5", "mt8127",
MTK_EINT_FUNCTION(0, 84), MTK_EINT_FUNCTION(0, 84),
MTK_FUNCTION(0, "GPIO83"), MTK_FUNCTION(0, "GPIO83"),
...@@ -835,16 +751,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -835,16 +751,14 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "VDAC_CK_XI"), MTK_FUNCTION(2, "VDAC_CK_XI"),
MTK_FUNCTION(7, "DBG_MON_A[31]") MTK_FUNCTION(7, "DBG_MON_A[31]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(84, "DSI_TE"),
PINCTRL_PIN(84, "DSI_TE"),
"W6", "mt8127", "W6", "mt8127",
MTK_EINT_FUNCTION(0, 85), MTK_EINT_FUNCTION(0, 85),
MTK_FUNCTION(0, "GPIO84"), MTK_FUNCTION(0, "GPIO84"),
MTK_FUNCTION(1, "DSI_TE"), MTK_FUNCTION(1, "DSI_TE"),
MTK_FUNCTION(7, "DBG_MON_A[32]") MTK_FUNCTION(7, "DBG_MON_A[32]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(85, "MSDC2_CMD"),
PINCTRL_PIN(85, "MSDC2_CMD"),
"U7", "mt8127", "U7", "mt8127",
MTK_EINT_FUNCTION(0, 86), MTK_EINT_FUNCTION(0, 86),
MTK_FUNCTION(0, "GPIO85"), MTK_FUNCTION(0, "GPIO85"),
...@@ -854,8 +768,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -854,8 +768,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "I2SOUT_BCK"), MTK_FUNCTION(6, "I2SOUT_BCK"),
MTK_FUNCTION(7, "DBG_MON_B[22]") MTK_FUNCTION(7, "DBG_MON_B[22]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(86, "MSDC2_CLK"),
PINCTRL_PIN(86, "MSDC2_CLK"),
"T8", "mt8127", "T8", "mt8127",
MTK_EINT_FUNCTION(0, 87), MTK_EINT_FUNCTION(0, 87),
MTK_FUNCTION(0, "GPIO86"), MTK_FUNCTION(0, "GPIO86"),
...@@ -865,8 +778,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -865,8 +778,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "I2SOUT_LRCK"), MTK_FUNCTION(6, "I2SOUT_LRCK"),
MTK_FUNCTION(7, "DBG_MON_B[23]") MTK_FUNCTION(7, "DBG_MON_B[23]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(87, "MSDC2_DAT0"),
PINCTRL_PIN(87, "MSDC2_DAT0"),
"V3", "mt8127", "V3", "mt8127",
MTK_EINT_FUNCTION(0, 88), MTK_EINT_FUNCTION(0, 88),
MTK_FUNCTION(0, "GPIO87"), MTK_FUNCTION(0, "GPIO87"),
...@@ -876,8 +788,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -876,8 +788,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "I2SOUT_DATA_OUT"), MTK_FUNCTION(6, "I2SOUT_DATA_OUT"),
MTK_FUNCTION(7, "DBG_MON_B[24]") MTK_FUNCTION(7, "DBG_MON_B[24]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(88, "MSDC2_DAT1"),
PINCTRL_PIN(88, "MSDC2_DAT1"),
"V4", "mt8127", "V4", "mt8127",
MTK_EINT_FUNCTION(0, 89), MTK_EINT_FUNCTION(0, 89),
MTK_FUNCTION(0, "GPIO88"), MTK_FUNCTION(0, "GPIO88"),
...@@ -888,8 +799,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -888,8 +799,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "PWM1"), MTK_FUNCTION(6, "PWM1"),
MTK_FUNCTION(7, "DBG_MON_B[25]") MTK_FUNCTION(7, "DBG_MON_B[25]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(89, "MSDC2_DAT2"),
PINCTRL_PIN(89, "MSDC2_DAT2"),
"U5", "mt8127", "U5", "mt8127",
MTK_EINT_FUNCTION(0, 90), MTK_EINT_FUNCTION(0, 90),
MTK_FUNCTION(0, "GPIO89"), MTK_FUNCTION(0, "GPIO89"),
...@@ -900,8 +810,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -900,8 +810,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "PWM2"), MTK_FUNCTION(6, "PWM2"),
MTK_FUNCTION(7, "DBG_MON_B[26]") MTK_FUNCTION(7, "DBG_MON_B[26]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(90, "MSDC2_DAT3"),
PINCTRL_PIN(90, "MSDC2_DAT3"),
"U6", "mt8127", "U6", "mt8127",
MTK_EINT_FUNCTION(0, 91), MTK_EINT_FUNCTION(0, 91),
MTK_FUNCTION(0, "GPIO90"), MTK_FUNCTION(0, "GPIO90"),
...@@ -913,168 +822,145 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -913,168 +822,145 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(6, "PWM3"), MTK_FUNCTION(6, "PWM3"),
MTK_FUNCTION(7, "DBG_MON_B[27]") MTK_FUNCTION(7, "DBG_MON_B[27]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(91, "TDN3"),
PINCTRL_PIN(91, "TDN3"),
"U2", "mt8127", "U2", "mt8127",
MTK_EINT_FUNCTION(0, 92), MTK_EINT_FUNCTION(0, 92),
MTK_FUNCTION(0, "GPI91"), MTK_FUNCTION(0, "GPI91"),
MTK_FUNCTION(1, "TDN3") MTK_FUNCTION(1, "TDN3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(92, "TDP3"),
PINCTRL_PIN(92, "TDP3"),
"U1", "mt8127", "U1", "mt8127",
MTK_EINT_FUNCTION(0, 93), MTK_EINT_FUNCTION(0, 93),
MTK_FUNCTION(0, "GPI92"), MTK_FUNCTION(0, "GPI92"),
MTK_FUNCTION(1, "TDP3") MTK_FUNCTION(1, "TDP3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(93, "TDN2"),
PINCTRL_PIN(93, "TDN2"),
"T2", "mt8127", "T2", "mt8127",
MTK_EINT_FUNCTION(0, 94), MTK_EINT_FUNCTION(0, 94),
MTK_FUNCTION(0, "GPI93"), MTK_FUNCTION(0, "GPI93"),
MTK_FUNCTION(1, "TDN2") MTK_FUNCTION(1, "TDN2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(94, "TDP2"),
PINCTRL_PIN(94, "TDP2"),
"T1", "mt8127", "T1", "mt8127",
MTK_EINT_FUNCTION(0, 95), MTK_EINT_FUNCTION(0, 95),
MTK_FUNCTION(0, "GPI94"), MTK_FUNCTION(0, "GPI94"),
MTK_FUNCTION(1, "TDP2") MTK_FUNCTION(1, "TDP2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(95, "TCN"),
PINCTRL_PIN(95, "TCN"),
"R5", "mt8127", "R5", "mt8127",
MTK_EINT_FUNCTION(0, 96), MTK_EINT_FUNCTION(0, 96),
MTK_FUNCTION(0, "GPI95"), MTK_FUNCTION(0, "GPI95"),
MTK_FUNCTION(1, "TCN") MTK_FUNCTION(1, "TCN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(96, "TCP"),
PINCTRL_PIN(96, "TCP"),
"R4", "mt8127", "R4", "mt8127",
MTK_EINT_FUNCTION(0, 97), MTK_EINT_FUNCTION(0, 97),
MTK_FUNCTION(0, "GPI96"), MTK_FUNCTION(0, "GPI96"),
MTK_FUNCTION(1, "TCP") MTK_FUNCTION(1, "TCP")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(97, "TDN1"),
PINCTRL_PIN(97, "TDN1"),
"R3", "mt8127", "R3", "mt8127",
MTK_EINT_FUNCTION(0, 98), MTK_EINT_FUNCTION(0, 98),
MTK_FUNCTION(0, "GPI97"), MTK_FUNCTION(0, "GPI97"),
MTK_FUNCTION(1, "TDN1") MTK_FUNCTION(1, "TDN1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(98, "TDP1"),
PINCTRL_PIN(98, "TDP1"),
"R2", "mt8127", "R2", "mt8127",
MTK_EINT_FUNCTION(0, 99), MTK_EINT_FUNCTION(0, 99),
MTK_FUNCTION(0, "GPI98"), MTK_FUNCTION(0, "GPI98"),
MTK_FUNCTION(1, "TDP1") MTK_FUNCTION(1, "TDP1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(99, "TDN0"),
PINCTRL_PIN(99, "TDN0"),
"P3", "mt8127", "P3", "mt8127",
MTK_EINT_FUNCTION(0, 100), MTK_EINT_FUNCTION(0, 100),
MTK_FUNCTION(0, "GPI99"), MTK_FUNCTION(0, "GPI99"),
MTK_FUNCTION(1, "TDN0") MTK_FUNCTION(1, "TDN0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(100, "TDP0"),
PINCTRL_PIN(100, "TDP0"),
"P2", "mt8127", "P2", "mt8127",
MTK_EINT_FUNCTION(0, 101), MTK_EINT_FUNCTION(0, 101),
MTK_FUNCTION(0, "GPI100"), MTK_FUNCTION(0, "GPI100"),
MTK_FUNCTION(1, "TDP0") MTK_FUNCTION(1, "TDP0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(101, "RDN0"),
PINCTRL_PIN(101, "RDN0"),
"K1", "mt8127", "K1", "mt8127",
MTK_EINT_FUNCTION(0, 102), MTK_EINT_FUNCTION(0, 102),
MTK_FUNCTION(0, "GPI101"), MTK_FUNCTION(0, "GPI101"),
MTK_FUNCTION(1, "RDN0") MTK_FUNCTION(1, "RDN0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(102, "RDP0"),
PINCTRL_PIN(102, "RDP0"),
"K2", "mt8127", "K2", "mt8127",
MTK_EINT_FUNCTION(0, 103), MTK_EINT_FUNCTION(0, 103),
MTK_FUNCTION(0, "GPI102"), MTK_FUNCTION(0, "GPI102"),
MTK_FUNCTION(1, "RDP0") MTK_FUNCTION(1, "RDP0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(103, "RDN1"),
PINCTRL_PIN(103, "RDN1"),
"L2", "mt8127", "L2", "mt8127",
MTK_EINT_FUNCTION(0, 104), MTK_EINT_FUNCTION(0, 104),
MTK_FUNCTION(0, "GPI103"), MTK_FUNCTION(0, "GPI103"),
MTK_FUNCTION(1, "RDN1") MTK_FUNCTION(1, "RDN1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(104, "RDP1"),
PINCTRL_PIN(104, "RDP1"),
"L3", "mt8127", "L3", "mt8127",
MTK_EINT_FUNCTION(0, 105), MTK_EINT_FUNCTION(0, 105),
MTK_FUNCTION(0, "GPI104"), MTK_FUNCTION(0, "GPI104"),
MTK_FUNCTION(1, "RDP1") MTK_FUNCTION(1, "RDP1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(105, "RCN"),
PINCTRL_PIN(105, "RCN"),
"M4", "mt8127", "M4", "mt8127",
MTK_EINT_FUNCTION(0, 106), MTK_EINT_FUNCTION(0, 106),
MTK_FUNCTION(0, "GPI105"), MTK_FUNCTION(0, "GPI105"),
MTK_FUNCTION(1, "RCN") MTK_FUNCTION(1, "RCN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(106, "RCP"),
PINCTRL_PIN(106, "RCP"),
"M5", "mt8127", "M5", "mt8127",
MTK_EINT_FUNCTION(0, 107), MTK_EINT_FUNCTION(0, 107),
MTK_FUNCTION(0, "GPI106"), MTK_FUNCTION(0, "GPI106"),
MTK_FUNCTION(1, "RCP") MTK_FUNCTION(1, "RCP")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(107, "RDN2"),
PINCTRL_PIN(107, "RDN2"),
"M2", "mt8127", "M2", "mt8127",
MTK_EINT_FUNCTION(0, 108), MTK_EINT_FUNCTION(0, 108),
MTK_FUNCTION(0, "GPI107"), MTK_FUNCTION(0, "GPI107"),
MTK_FUNCTION(1, "RDN2"), MTK_FUNCTION(1, "RDN2"),
MTK_FUNCTION(2, "CMDAT8") MTK_FUNCTION(2, "CMDAT8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(108, "RDP2"),
PINCTRL_PIN(108, "RDP2"),
"M3", "mt8127", "M3", "mt8127",
MTK_EINT_FUNCTION(0, 109), MTK_EINT_FUNCTION(0, 109),
MTK_FUNCTION(0, "GPI108"), MTK_FUNCTION(0, "GPI108"),
MTK_FUNCTION(1, "RDP2"), MTK_FUNCTION(1, "RDP2"),
MTK_FUNCTION(2, "CMDAT9") MTK_FUNCTION(2, "CMDAT9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(109, "RDN3"),
PINCTRL_PIN(109, "RDN3"),
"N2", "mt8127", "N2", "mt8127",
MTK_EINT_FUNCTION(0, 110), MTK_EINT_FUNCTION(0, 110),
MTK_FUNCTION(0, "GPI109"), MTK_FUNCTION(0, "GPI109"),
MTK_FUNCTION(1, "RDN3"), MTK_FUNCTION(1, "RDN3"),
MTK_FUNCTION(2, "CMDAT4") MTK_FUNCTION(2, "CMDAT4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(110, "RDP3"),
PINCTRL_PIN(110, "RDP3"),
"N3", "mt8127", "N3", "mt8127",
MTK_EINT_FUNCTION(0, 111), MTK_EINT_FUNCTION(0, 111),
MTK_FUNCTION(0, "GPI110"), MTK_FUNCTION(0, "GPI110"),
MTK_FUNCTION(1, "RDP3"), MTK_FUNCTION(1, "RDP3"),
MTK_FUNCTION(2, "CMDAT5") MTK_FUNCTION(2, "CMDAT5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(111, "RCN_A"),
PINCTRL_PIN(111, "RCN_A"),
"J5", "mt8127", "J5", "mt8127",
MTK_EINT_FUNCTION(0, 112), MTK_EINT_FUNCTION(0, 112),
MTK_FUNCTION(0, "GPI111"), MTK_FUNCTION(0, "GPI111"),
MTK_FUNCTION(1, "RCN_A"), MTK_FUNCTION(1, "RCN_A"),
MTK_FUNCTION(2, "CMDAT6") MTK_FUNCTION(2, "CMDAT6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(112, "RCP_A"),
PINCTRL_PIN(112, "RCP_A"),
"J4", "mt8127", "J4", "mt8127",
MTK_EINT_FUNCTION(0, 113), MTK_EINT_FUNCTION(0, 113),
MTK_FUNCTION(0, "GPI112"), MTK_FUNCTION(0, "GPI112"),
MTK_FUNCTION(1, "RCP_A"), MTK_FUNCTION(1, "RCP_A"),
MTK_FUNCTION(2, "CMDAT7") MTK_FUNCTION(2, "CMDAT7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(113, "RDN1_A"),
PINCTRL_PIN(113, "RDN1_A"),
"J2", "mt8127", "J2", "mt8127",
MTK_EINT_FUNCTION(0, 114), MTK_EINT_FUNCTION(0, 114),
MTK_FUNCTION(0, "GPI113"), MTK_FUNCTION(0, "GPI113"),
...@@ -1082,8 +968,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1082,8 +968,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "CMDAT2"), MTK_FUNCTION(2, "CMDAT2"),
MTK_FUNCTION(3, "CMCSD2") MTK_FUNCTION(3, "CMCSD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(114, "RDP1_A"),
PINCTRL_PIN(114, "RDP1_A"),
"J3", "mt8127", "J3", "mt8127",
MTK_EINT_FUNCTION(0, 115), MTK_EINT_FUNCTION(0, 115),
MTK_FUNCTION(0, "GPI114"), MTK_FUNCTION(0, "GPI114"),
...@@ -1091,24 +976,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1091,24 +976,21 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(2, "CMDAT3"), MTK_FUNCTION(2, "CMDAT3"),
MTK_FUNCTION(3, "CMCSD3") MTK_FUNCTION(3, "CMCSD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(115, "RDN0_A"),
PINCTRL_PIN(115, "RDN0_A"),
"H2", "mt8127", "H2", "mt8127",
MTK_EINT_FUNCTION(0, 116), MTK_EINT_FUNCTION(0, 116),
MTK_FUNCTION(0, "GPI115"), MTK_FUNCTION(0, "GPI115"),
MTK_FUNCTION(1, "RDN0_A"), MTK_FUNCTION(1, "RDN0_A"),
MTK_FUNCTION(2, "CMHSYNC") MTK_FUNCTION(2, "CMHSYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(116, "RDP0_A"),
PINCTRL_PIN(116, "RDP0_A"),
"H3", "mt8127", "H3", "mt8127",
MTK_EINT_FUNCTION(0, 117), MTK_EINT_FUNCTION(0, 117),
MTK_FUNCTION(0, "GPI116"), MTK_FUNCTION(0, "GPI116"),
MTK_FUNCTION(1, "RDP0_A"), MTK_FUNCTION(1, "RDP0_A"),
MTK_FUNCTION(2, "CMVSYNC") MTK_FUNCTION(2, "CMVSYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(117, "CMDAT0"),
PINCTRL_PIN(117, "CMDAT0"),
"G5", "mt8127", "G5", "mt8127",
MTK_EINT_FUNCTION(0, 118), MTK_EINT_FUNCTION(0, 118),
MTK_FUNCTION(0, "GPIO117"), MTK_FUNCTION(0, "GPIO117"),
...@@ -1117,8 +999,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1117,8 +999,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "ANT_SEL2"), MTK_FUNCTION(3, "ANT_SEL2"),
MTK_FUNCTION(7, "DBG_MON_B[28]") MTK_FUNCTION(7, "DBG_MON_B[28]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(118, "CMDAT1"),
PINCTRL_PIN(118, "CMDAT1"),
"G4", "mt8127", "G4", "mt8127",
MTK_EINT_FUNCTION(0, 119), MTK_EINT_FUNCTION(0, 119),
MTK_FUNCTION(0, "GPIO118"), MTK_FUNCTION(0, "GPIO118"),
...@@ -1127,8 +1008,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1127,8 +1008,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "ANT_SEL3"), MTK_FUNCTION(3, "ANT_SEL3"),
MTK_FUNCTION(7, "DBG_MON_B[29]") MTK_FUNCTION(7, "DBG_MON_B[29]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(119, "CMMCLK"),
PINCTRL_PIN(119, "CMMCLK"),
"F3", "mt8127", "F3", "mt8127",
MTK_EINT_FUNCTION(0, 120), MTK_EINT_FUNCTION(0, 120),
MTK_FUNCTION(0, "GPIO119"), MTK_FUNCTION(0, "GPIO119"),
...@@ -1136,8 +1016,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1136,8 +1016,7 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "ANT_SEL4"), MTK_FUNCTION(3, "ANT_SEL4"),
MTK_FUNCTION(7, "DBG_MON_B[30]") MTK_FUNCTION(7, "DBG_MON_B[30]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(120, "CMPCLK"),
PINCTRL_PIN(120, "CMPCLK"),
"G6", "mt8127", "G6", "mt8127",
MTK_EINT_FUNCTION(0, 121), MTK_EINT_FUNCTION(0, 121),
MTK_FUNCTION(0, "GPIO120"), MTK_FUNCTION(0, "GPIO120"),
...@@ -1146,130 +1025,113 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1146,130 +1025,113 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(3, "ANT_SEL5"), MTK_FUNCTION(3, "ANT_SEL5"),
MTK_FUNCTION(7, "DBG_MON_B[31]") MTK_FUNCTION(7, "DBG_MON_B[31]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(121, "MSDC1_CMD"),
PINCTRL_PIN(121, "MSDC1_CMD"),
"E3", "mt8127", "E3", "mt8127",
MTK_EINT_FUNCTION(0, 122), MTK_EINT_FUNCTION(0, 122),
MTK_FUNCTION(0, "GPIO121"), MTK_FUNCTION(0, "GPIO121"),
MTK_FUNCTION(1, "MSDC1_CMD") MTK_FUNCTION(1, "MSDC1_CMD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(122, "MSDC1_CLK"),
PINCTRL_PIN(122, "MSDC1_CLK"),
"D1", "mt8127", "D1", "mt8127",
MTK_EINT_FUNCTION(0, 123), MTK_EINT_FUNCTION(0, 123),
MTK_FUNCTION(0, "GPIO122"), MTK_FUNCTION(0, "GPIO122"),
MTK_FUNCTION(1, "MSDC1_CLK") MTK_FUNCTION(1, "MSDC1_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(123, "MSDC1_DAT0"),
PINCTRL_PIN(123, "MSDC1_DAT0"),
"D2", "mt8127", "D2", "mt8127",
MTK_EINT_FUNCTION(0, 124), MTK_EINT_FUNCTION(0, 124),
MTK_FUNCTION(0, "GPIO123"), MTK_FUNCTION(0, "GPIO123"),
MTK_FUNCTION(1, "MSDC1_DAT0") MTK_FUNCTION(1, "MSDC1_DAT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(124, "MSDC1_DAT1"),
PINCTRL_PIN(124, "MSDC1_DAT1"),
"D3", "mt8127", "D3", "mt8127",
MTK_EINT_FUNCTION(0, 125), MTK_EINT_FUNCTION(0, 125),
MTK_FUNCTION(0, "GPIO124"), MTK_FUNCTION(0, "GPIO124"),
MTK_FUNCTION(1, "MSDC1_DAT1") MTK_FUNCTION(1, "MSDC1_DAT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(125, "MSDC1_DAT2"),
PINCTRL_PIN(125, "MSDC1_DAT2"),
"F2", "mt8127", "F2", "mt8127",
MTK_EINT_FUNCTION(0, 126), MTK_EINT_FUNCTION(0, 126),
MTK_FUNCTION(0, "GPIO125"), MTK_FUNCTION(0, "GPIO125"),
MTK_FUNCTION(1, "MSDC1_DAT2") MTK_FUNCTION(1, "MSDC1_DAT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(126, "MSDC1_DAT3"),
PINCTRL_PIN(126, "MSDC1_DAT3"),
"E2", "mt8127", "E2", "mt8127",
MTK_EINT_FUNCTION(0, 127), MTK_EINT_FUNCTION(0, 127),
MTK_FUNCTION(0, "GPIO126"), MTK_FUNCTION(0, "GPIO126"),
MTK_FUNCTION(1, "MSDC1_DAT3") MTK_FUNCTION(1, "MSDC1_DAT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(127, "MSDC0_DAT7"),
PINCTRL_PIN(127, "MSDC0_DAT7"),
"C23", "mt8127", "C23", "mt8127",
MTK_EINT_FUNCTION(0, 128), MTK_EINT_FUNCTION(0, 128),
MTK_FUNCTION(0, "GPIO127"), MTK_FUNCTION(0, "GPIO127"),
MTK_FUNCTION(1, "MSDC0_DAT7"), MTK_FUNCTION(1, "MSDC0_DAT7"),
MTK_FUNCTION(4, "NLD7") MTK_FUNCTION(4, "NLD7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(128, "MSDC0_DAT6"),
PINCTRL_PIN(128, "MSDC0_DAT6"),
"C24", "mt8127", "C24", "mt8127",
MTK_EINT_FUNCTION(0, 129), MTK_EINT_FUNCTION(0, 129),
MTK_FUNCTION(0, "GPIO128"), MTK_FUNCTION(0, "GPIO128"),
MTK_FUNCTION(1, "MSDC0_DAT6"), MTK_FUNCTION(1, "MSDC0_DAT6"),
MTK_FUNCTION(4, "NLD6") MTK_FUNCTION(4, "NLD6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(129, "MSDC0_DAT5"),
PINCTRL_PIN(129, "MSDC0_DAT5"),
"D22", "mt8127", "D22", "mt8127",
MTK_EINT_FUNCTION(0, 130), MTK_EINT_FUNCTION(0, 130),
MTK_FUNCTION(0, "GPIO129"), MTK_FUNCTION(0, "GPIO129"),
MTK_FUNCTION(1, "MSDC0_DAT5"), MTK_FUNCTION(1, "MSDC0_DAT5"),
MTK_FUNCTION(4, "NLD4") MTK_FUNCTION(4, "NLD4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(130, "MSDC0_DAT4"),
PINCTRL_PIN(130, "MSDC0_DAT4"),
"D24", "mt8127", "D24", "mt8127",
MTK_EINT_FUNCTION(0, 131), MTK_EINT_FUNCTION(0, 131),
MTK_FUNCTION(0, "GPIO130"), MTK_FUNCTION(0, "GPIO130"),
MTK_FUNCTION(1, "MSDC0_DAT4"), MTK_FUNCTION(1, "MSDC0_DAT4"),
MTK_FUNCTION(4, "NLD3") MTK_FUNCTION(4, "NLD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(131, "MSDC0_RSTB"),
PINCTRL_PIN(131, "MSDC0_RSTB"),
"F24", "mt8127", "F24", "mt8127",
MTK_EINT_FUNCTION(0, 132), MTK_EINT_FUNCTION(0, 132),
MTK_FUNCTION(0, "GPIO131"), MTK_FUNCTION(0, "GPIO131"),
MTK_FUNCTION(1, "MSDC0_RSTB"), MTK_FUNCTION(1, "MSDC0_RSTB"),
MTK_FUNCTION(4, "NLD0") MTK_FUNCTION(4, "NLD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(132, "MSDC0_CMD"),
PINCTRL_PIN(132, "MSDC0_CMD"),
"G20", "mt8127", "G20", "mt8127",
MTK_EINT_FUNCTION(0, 133), MTK_EINT_FUNCTION(0, 133),
MTK_FUNCTION(0, "GPIO132"), MTK_FUNCTION(0, "GPIO132"),
MTK_FUNCTION(1, "MSDC0_CMD"), MTK_FUNCTION(1, "MSDC0_CMD"),
MTK_FUNCTION(4, "NALE") MTK_FUNCTION(4, "NALE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(133, "MSDC0_CLK"),
PINCTRL_PIN(133, "MSDC0_CLK"),
"G21", "mt8127", "G21", "mt8127",
MTK_EINT_FUNCTION(0, 134), MTK_EINT_FUNCTION(0, 134),
MTK_FUNCTION(0, "GPIO133"), MTK_FUNCTION(0, "GPIO133"),
MTK_FUNCTION(1, "MSDC0_CLK"), MTK_FUNCTION(1, "MSDC0_CLK"),
MTK_FUNCTION(4, "NWEB") MTK_FUNCTION(4, "NWEB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(134, "MSDC0_DAT3"),
PINCTRL_PIN(134, "MSDC0_DAT3"),
"D23", "mt8127", "D23", "mt8127",
MTK_EINT_FUNCTION(0, 135), MTK_EINT_FUNCTION(0, 135),
MTK_FUNCTION(0, "GPIO134"), MTK_FUNCTION(0, "GPIO134"),
MTK_FUNCTION(1, "MSDC0_DAT3"), MTK_FUNCTION(1, "MSDC0_DAT3"),
MTK_FUNCTION(4, "NLD1") MTK_FUNCTION(4, "NLD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(135, "MSDC0_DAT2"),
PINCTRL_PIN(135, "MSDC0_DAT2"),
"E22", "mt8127", "E22", "mt8127",
MTK_EINT_FUNCTION(0, 136), MTK_EINT_FUNCTION(0, 136),
MTK_FUNCTION(0, "GPIO135"), MTK_FUNCTION(0, "GPIO135"),
MTK_FUNCTION(1, "MSDC0_DAT2"), MTK_FUNCTION(1, "MSDC0_DAT2"),
MTK_FUNCTION(4, "NLD5") MTK_FUNCTION(4, "NLD5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(136, "MSDC0_DAT1"),
PINCTRL_PIN(136, "MSDC0_DAT1"),
"E23", "mt8127", "E23", "mt8127",
MTK_EINT_FUNCTION(0, 137), MTK_EINT_FUNCTION(0, 137),
MTK_FUNCTION(0, "GPIO136"), MTK_FUNCTION(0, "GPIO136"),
MTK_FUNCTION(1, "MSDC0_DAT1"), MTK_FUNCTION(1, "MSDC0_DAT1"),
MTK_FUNCTION(4, "NLD8") MTK_FUNCTION(4, "NLD8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(137, "MSDC0_DAT0"),
PINCTRL_PIN(137, "MSDC0_DAT0"),
"F22", "mt8127", "F22", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO137"), MTK_FUNCTION(0, "GPIO137"),
...@@ -1277,36 +1139,31 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = { ...@@ -1277,36 +1139,31 @@ static const struct mtk_desc_pin mtk_pins_mt8127[] = {
MTK_FUNCTION(4, "WATCHDOG"), MTK_FUNCTION(4, "WATCHDOG"),
MTK_FUNCTION(5, "NLD2") MTK_FUNCTION(5, "NLD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(138, "CEC"),
PINCTRL_PIN(138, "CEC"),
"AE21", "mt8127", "AE21", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO138"), MTK_FUNCTION(0, "GPIO138"),
MTK_FUNCTION(1, "CEC") MTK_FUNCTION(1, "CEC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(139, "HTPLG"),
PINCTRL_PIN(139, "HTPLG"),
"AD21", "mt8127", "AD21", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO139"), MTK_FUNCTION(0, "GPIO139"),
MTK_FUNCTION(1, "HTPLG") MTK_FUNCTION(1, "HTPLG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(140, "HDMISCK"),
PINCTRL_PIN(140, "HDMISCK"),
"AE22", "mt8127", "AE22", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO140"), MTK_FUNCTION(0, "GPIO140"),
MTK_FUNCTION(1, "HDMISCK") MTK_FUNCTION(1, "HDMISCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(141, "HDMISD"),
PINCTRL_PIN(141, "HDMISD"),
"AD22", "mt8127", "AD22", "mt8127",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO141"), MTK_FUNCTION(0, "GPIO141"),
MTK_FUNCTION(1, "HDMISD") MTK_FUNCTION(1, "HDMISD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(142, "EINT21"),
PINCTRL_PIN(142, "EINT21"),
"J23", "mt8127", "J23", "mt8127",
MTK_EINT_FUNCTION(0, 21), MTK_EINT_FUNCTION(0, 21),
MTK_FUNCTION(0, "GPIO142"), MTK_FUNCTION(0, "GPIO142"),
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
#include "pinctrl-mtk-common.h" #include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt8135[] = { static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_PIN( MTK_PIN(PINCTRL_PIN(0, "MSDC0_DAT7"),
PINCTRL_PIN(0, "MSDC0_DAT7"),
"D21", "mt8135", "D21", "mt8135",
MTK_EINT_FUNCTION(2, 49), MTK_EINT_FUNCTION(2, 49),
MTK_FUNCTION(0, "GPIO0"), MTK_FUNCTION(0, "GPIO0"),
...@@ -32,8 +31,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -32,8 +31,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SPI1_MO"), MTK_FUNCTION(6, "SPI1_MO"),
MTK_FUNCTION(7, "NALE") MTK_FUNCTION(7, "NALE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(1, "MSDC0_DAT6"),
PINCTRL_PIN(1, "MSDC0_DAT6"),
"D22", "mt8135", "D22", "mt8135",
MTK_EINT_FUNCTION(2, 48), MTK_EINT_FUNCTION(2, 48),
MTK_FUNCTION(0, "GPIO1"), MTK_FUNCTION(0, "GPIO1"),
...@@ -45,8 +43,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -45,8 +43,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SPI1_CSN"), MTK_FUNCTION(6, "SPI1_CSN"),
MTK_FUNCTION(7, "NCLE") MTK_FUNCTION(7, "NCLE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(2, "MSDC0_DAT5"),
PINCTRL_PIN(2, "MSDC0_DAT5"),
"E22", "mt8135", "E22", "mt8135",
MTK_EINT_FUNCTION(2, 47), MTK_EINT_FUNCTION(2, 47),
MTK_FUNCTION(0, "GPIO2"), MTK_FUNCTION(0, "GPIO2"),
...@@ -58,8 +55,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -58,8 +55,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SPI1_CLK"), MTK_FUNCTION(6, "SPI1_CLK"),
MTK_FUNCTION(7, "NLD4") MTK_FUNCTION(7, "NLD4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(3, "MSDC0_DAT4"),
PINCTRL_PIN(3, "MSDC0_DAT4"),
"F21", "mt8135", "F21", "mt8135",
MTK_EINT_FUNCTION(2, 46), MTK_EINT_FUNCTION(2, 46),
MTK_FUNCTION(0, "GPIO3"), MTK_FUNCTION(0, "GPIO3"),
...@@ -69,8 +65,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -69,8 +65,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LSCE1B_2X"), MTK_FUNCTION(6, "LSCE1B_2X"),
MTK_FUNCTION(7, "NLD5") MTK_FUNCTION(7, "NLD5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(4, "MSDC0_CMD"),
PINCTRL_PIN(4, "MSDC0_CMD"),
"F20", "mt8135", "F20", "mt8135",
MTK_EINT_FUNCTION(2, 41), MTK_EINT_FUNCTION(2, 41),
MTK_FUNCTION(0, "GPIO4"), MTK_FUNCTION(0, "GPIO4"),
...@@ -81,8 +76,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -81,8 +76,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LRSTB_2X"), MTK_FUNCTION(6, "LRSTB_2X"),
MTK_FUNCTION(7, "NRNB") MTK_FUNCTION(7, "NRNB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(5, "MSDC0_CLK"),
PINCTRL_PIN(5, "MSDC0_CLK"),
"G18", "mt8135", "G18", "mt8135",
MTK_EINT_FUNCTION(2, 40), MTK_EINT_FUNCTION(2, 40),
MTK_FUNCTION(0, "GPIO5"), MTK_FUNCTION(0, "GPIO5"),
...@@ -93,8 +87,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -93,8 +87,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LPTE"), MTK_FUNCTION(6, "LPTE"),
MTK_FUNCTION(7, "NREB") MTK_FUNCTION(7, "NREB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(6, "MSDC0_DAT3"),
PINCTRL_PIN(6, "MSDC0_DAT3"),
"G21", "mt8135", "G21", "mt8135",
MTK_EINT_FUNCTION(2, 45), MTK_EINT_FUNCTION(2, 45),
MTK_FUNCTION(0, "GPIO6"), MTK_FUNCTION(0, "GPIO6"),
...@@ -105,8 +98,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -105,8 +98,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LSCE0B_2X"), MTK_FUNCTION(6, "LSCE0B_2X"),
MTK_FUNCTION(7, "NLD7") MTK_FUNCTION(7, "NLD7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(7, "MSDC0_DAT2"),
PINCTRL_PIN(7, "MSDC0_DAT2"),
"E21", "mt8135", "E21", "mt8135",
MTK_EINT_FUNCTION(2, 44), MTK_EINT_FUNCTION(2, 44),
MTK_FUNCTION(0, "GPIO7"), MTK_FUNCTION(0, "GPIO7"),
...@@ -117,8 +109,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -117,8 +109,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LSA0_2X"), MTK_FUNCTION(6, "LSA0_2X"),
MTK_FUNCTION(7, "NLD14") MTK_FUNCTION(7, "NLD14")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(8, "MSDC0_DAT1"),
PINCTRL_PIN(8, "MSDC0_DAT1"),
"E23", "mt8135", "E23", "mt8135",
MTK_EINT_FUNCTION(2, 43), MTK_EINT_FUNCTION(2, 43),
MTK_FUNCTION(0, "GPIO8"), MTK_FUNCTION(0, "GPIO8"),
...@@ -128,8 +119,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -128,8 +119,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "LSCK_2X"), MTK_FUNCTION(6, "LSCK_2X"),
MTK_FUNCTION(7, "NLD11") MTK_FUNCTION(7, "NLD11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(9, "MSDC0_DAT0"),
PINCTRL_PIN(9, "MSDC0_DAT0"),
"F22", "mt8135", "F22", "mt8135",
MTK_EINT_FUNCTION(2, 42), MTK_EINT_FUNCTION(2, 42),
MTK_FUNCTION(0, "GPIO9"), MTK_FUNCTION(0, "GPIO9"),
...@@ -138,8 +128,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -138,8 +128,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[5]"), MTK_FUNCTION(5, "USB_TEST_IO[5]"),
MTK_FUNCTION(6, "LSDA_2X") MTK_FUNCTION(6, "LSDA_2X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(10, "NCEB0"),
PINCTRL_PIN(10, "NCEB0"),
"G20", "mt8135", "G20", "mt8135",
MTK_EINT_FUNCTION(2, 139), MTK_EINT_FUNCTION(2, 139),
MTK_FUNCTION(0, "GPIO10"), MTK_FUNCTION(0, "GPIO10"),
...@@ -147,8 +136,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -147,8 +136,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT139"), MTK_FUNCTION(2, "EINT139"),
MTK_FUNCTION(7, "TESTA_OUT4") MTK_FUNCTION(7, "TESTA_OUT4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(11, "NCEB1"),
PINCTRL_PIN(11, "NCEB1"),
"L17", "mt8135", "L17", "mt8135",
MTK_EINT_FUNCTION(2, 140), MTK_EINT_FUNCTION(2, 140),
MTK_FUNCTION(0, "GPIO11"), MTK_FUNCTION(0, "GPIO11"),
...@@ -157,8 +145,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -157,8 +145,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "USB_DRVVBUS"), MTK_FUNCTION(6, "USB_DRVVBUS"),
MTK_FUNCTION(7, "TESTA_OUT5") MTK_FUNCTION(7, "TESTA_OUT5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(12, "NRNB"),
PINCTRL_PIN(12, "NRNB"),
"G19", "mt8135", "G19", "mt8135",
MTK_EINT_FUNCTION(2, 141), MTK_EINT_FUNCTION(2, 141),
MTK_FUNCTION(0, "GPIO12"), MTK_FUNCTION(0, "GPIO12"),
...@@ -167,8 +154,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -167,8 +154,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(3, "A_FUNC_DOUT[4]"), MTK_FUNCTION(3, "A_FUNC_DOUT[4]"),
MTK_FUNCTION(7, "TESTA_OUT6") MTK_FUNCTION(7, "TESTA_OUT6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(13, "NCLE"),
PINCTRL_PIN(13, "NCLE"),
"J18", "mt8135", "J18", "mt8135",
MTK_EINT_FUNCTION(2, 142), MTK_EINT_FUNCTION(2, 142),
MTK_FUNCTION(0, "GPIO13"), MTK_FUNCTION(0, "GPIO13"),
...@@ -179,8 +165,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -179,8 +165,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "NALE"), MTK_FUNCTION(6, "NALE"),
MTK_FUNCTION(7, "TESTA_OUT7") MTK_FUNCTION(7, "TESTA_OUT7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(14, "NALE"),
PINCTRL_PIN(14, "NALE"),
"J19", "mt8135", "J19", "mt8135",
MTK_EINT_FUNCTION(2, 143), MTK_EINT_FUNCTION(2, 143),
MTK_FUNCTION(0, "GPIO14"), MTK_FUNCTION(0, "GPIO14"),
...@@ -192,8 +177,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -192,8 +177,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "NCLE"), MTK_FUNCTION(6, "NCLE"),
MTK_FUNCTION(7, "TESTA_OUT8") MTK_FUNCTION(7, "TESTA_OUT8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(15, "NREB"),
PINCTRL_PIN(15, "NREB"),
"L18", "mt8135", "L18", "mt8135",
MTK_EINT_FUNCTION(2, 144), MTK_EINT_FUNCTION(2, 144),
MTK_FUNCTION(0, "GPIO15"), MTK_FUNCTION(0, "GPIO15"),
...@@ -204,8 +188,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -204,8 +188,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "IRDA_TXD"), MTK_FUNCTION(5, "IRDA_TXD"),
MTK_FUNCTION(7, "TESTA_OUT9") MTK_FUNCTION(7, "TESTA_OUT9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(16, "NWEB"),
PINCTRL_PIN(16, "NWEB"),
"J20", "mt8135", "J20", "mt8135",
MTK_EINT_FUNCTION(2, 145), MTK_EINT_FUNCTION(2, 145),
MTK_FUNCTION(0, "GPIO16"), MTK_FUNCTION(0, "GPIO16"),
...@@ -216,8 +199,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -216,8 +199,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "IRDA_PDN"), MTK_FUNCTION(5, "IRDA_PDN"),
MTK_FUNCTION(7, "TESTA_OUT10") MTK_FUNCTION(7, "TESTA_OUT10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(17, "NLD0"),
PINCTRL_PIN(17, "NLD0"),
"K21", "mt8135", "K21", "mt8135",
MTK_EINT_FUNCTION(2, 146), MTK_EINT_FUNCTION(2, 146),
MTK_FUNCTION(0, "GPIO17"), MTK_FUNCTION(0, "GPIO17"),
...@@ -229,8 +211,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -229,8 +211,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DAC_CK"), MTK_FUNCTION(6, "DAC_CK"),
MTK_FUNCTION(7, "TESTA_OUT11") MTK_FUNCTION(7, "TESTA_OUT11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(18, "NLD1"),
PINCTRL_PIN(18, "NLD1"),
"K22", "mt8135", "K22", "mt8135",
MTK_EINT_FUNCTION(2, 147), MTK_EINT_FUNCTION(2, 147),
MTK_FUNCTION(0, "GPIO18"), MTK_FUNCTION(0, "GPIO18"),
...@@ -242,8 +223,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -242,8 +223,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DAC_WS"), MTK_FUNCTION(6, "DAC_WS"),
MTK_FUNCTION(7, "TESTA_OUT12") MTK_FUNCTION(7, "TESTA_OUT12")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(19, "NLD2"),
PINCTRL_PIN(19, "NLD2"),
"J21", "mt8135", "J21", "mt8135",
MTK_EINT_FUNCTION(2, 148), MTK_EINT_FUNCTION(2, 148),
MTK_FUNCTION(0, "GPIO19"), MTK_FUNCTION(0, "GPIO19"),
...@@ -255,8 +235,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -255,8 +235,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DAC_DAT_OUT"), MTK_FUNCTION(6, "DAC_DAT_OUT"),
MTK_FUNCTION(7, "TESTA_OUT13") MTK_FUNCTION(7, "TESTA_OUT13")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(20, "NLD3"),
PINCTRL_PIN(20, "NLD3"),
"J23", "mt8135", "J23", "mt8135",
MTK_EINT_FUNCTION(2, 149), MTK_EINT_FUNCTION(2, 149),
MTK_FUNCTION(0, "GPIO20"), MTK_FUNCTION(0, "GPIO20"),
...@@ -266,8 +245,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -266,8 +245,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[3]"), MTK_FUNCTION(4, "CM2DAT_1X[3]"),
MTK_FUNCTION(7, "TESTA_OUT14") MTK_FUNCTION(7, "TESTA_OUT14")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(21, "NLD4"),
PINCTRL_PIN(21, "NLD4"),
"J22", "mt8135", "J22", "mt8135",
MTK_EINT_FUNCTION(2, 150), MTK_EINT_FUNCTION(2, 150),
MTK_FUNCTION(0, "GPIO21"), MTK_FUNCTION(0, "GPIO21"),
...@@ -277,8 +255,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -277,8 +255,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[4]"), MTK_FUNCTION(4, "CM2DAT_1X[4]"),
MTK_FUNCTION(7, "TESTA_OUT15") MTK_FUNCTION(7, "TESTA_OUT15")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(22, "NLD5"),
PINCTRL_PIN(22, "NLD5"),
"H21", "mt8135", "H21", "mt8135",
MTK_EINT_FUNCTION(2, 151), MTK_EINT_FUNCTION(2, 151),
MTK_FUNCTION(0, "GPIO22"), MTK_FUNCTION(0, "GPIO22"),
...@@ -288,8 +265,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -288,8 +265,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[5]"), MTK_FUNCTION(4, "CM2DAT_1X[5]"),
MTK_FUNCTION(7, "TESTA_OUT16") MTK_FUNCTION(7, "TESTA_OUT16")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(23, "NLD6"),
PINCTRL_PIN(23, "NLD6"),
"H22", "mt8135", "H22", "mt8135",
MTK_EINT_FUNCTION(2, 152), MTK_EINT_FUNCTION(2, 152),
MTK_FUNCTION(0, "GPIO23"), MTK_FUNCTION(0, "GPIO23"),
...@@ -299,8 +275,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -299,8 +275,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[6]"), MTK_FUNCTION(4, "CM2DAT_1X[6]"),
MTK_FUNCTION(7, "TESTA_OUT17") MTK_FUNCTION(7, "TESTA_OUT17")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(24, "NLD7"),
PINCTRL_PIN(24, "NLD7"),
"H20", "mt8135", "H20", "mt8135",
MTK_EINT_FUNCTION(2, 153), MTK_EINT_FUNCTION(2, 153),
MTK_FUNCTION(0, "GPIO24"), MTK_FUNCTION(0, "GPIO24"),
...@@ -310,8 +285,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -310,8 +285,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[7]"), MTK_FUNCTION(4, "CM2DAT_1X[7]"),
MTK_FUNCTION(7, "TESTA_OUT18") MTK_FUNCTION(7, "TESTA_OUT18")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(25, "NLD8"),
PINCTRL_PIN(25, "NLD8"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 154), MTK_EINT_FUNCTION(2, 154),
MTK_FUNCTION(0, "GPIO25"), MTK_FUNCTION(0, "GPIO25"),
...@@ -319,8 +293,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -319,8 +293,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT154"), MTK_FUNCTION(2, "EINT154"),
MTK_FUNCTION(4, "CM2DAT_1X[8]") MTK_FUNCTION(4, "CM2DAT_1X[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(26, "NLD9"),
PINCTRL_PIN(26, "NLD9"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 155), MTK_EINT_FUNCTION(2, 155),
MTK_FUNCTION(0, "GPIO26"), MTK_FUNCTION(0, "GPIO26"),
...@@ -329,8 +302,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -329,8 +302,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_1X[9]"), MTK_FUNCTION(4, "CM2DAT_1X[9]"),
MTK_FUNCTION(5, "PWM1") MTK_FUNCTION(5, "PWM1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(27, "NLD10"),
PINCTRL_PIN(27, "NLD10"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 156), MTK_EINT_FUNCTION(2, 156),
MTK_FUNCTION(0, "GPIO27"), MTK_FUNCTION(0, "GPIO27"),
...@@ -339,8 +311,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -339,8 +311,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2VSYNC_1X"), MTK_FUNCTION(4, "CM2VSYNC_1X"),
MTK_FUNCTION(5, "PWM2") MTK_FUNCTION(5, "PWM2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(28, "NLD11"),
PINCTRL_PIN(28, "NLD11"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 157), MTK_EINT_FUNCTION(2, 157),
MTK_FUNCTION(0, "GPIO28"), MTK_FUNCTION(0, "GPIO28"),
...@@ -349,8 +320,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -349,8 +320,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2HSYNC_1X"), MTK_FUNCTION(4, "CM2HSYNC_1X"),
MTK_FUNCTION(5, "PWM3") MTK_FUNCTION(5, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(29, "NLD12"),
PINCTRL_PIN(29, "NLD12"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 158), MTK_EINT_FUNCTION(2, 158),
MTK_FUNCTION(0, "GPIO29"), MTK_FUNCTION(0, "GPIO29"),
...@@ -360,8 +330,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -360,8 +330,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DAC_CK"), MTK_FUNCTION(4, "DAC_CK"),
MTK_FUNCTION(5, "PCM1_CK") MTK_FUNCTION(5, "PCM1_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(30, "NLD13"),
PINCTRL_PIN(30, "NLD13"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 159), MTK_EINT_FUNCTION(2, 159),
MTK_FUNCTION(0, "GPIO30"), MTK_FUNCTION(0, "GPIO30"),
...@@ -371,8 +340,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -371,8 +340,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DAC_WS"), MTK_FUNCTION(4, "DAC_WS"),
MTK_FUNCTION(5, "PCM1_WS") MTK_FUNCTION(5, "PCM1_WS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(31, "NLD14"),
PINCTRL_PIN(31, "NLD14"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 160), MTK_EINT_FUNCTION(2, 160),
MTK_FUNCTION(0, "GPIO31"), MTK_FUNCTION(0, "GPIO31"),
...@@ -382,8 +350,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -382,8 +350,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DAC_DAT_OUT"), MTK_FUNCTION(4, "DAC_DAT_OUT"),
MTK_FUNCTION(5, "PCM1_DO") MTK_FUNCTION(5, "PCM1_DO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(32, "NLD15"),
PINCTRL_PIN(32, "NLD15"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 161), MTK_EINT_FUNCTION(2, 161),
MTK_FUNCTION(0, "GPIO32"), MTK_FUNCTION(0, "GPIO32"),
...@@ -393,8 +360,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -393,8 +360,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM4"), MTK_FUNCTION(4, "PWM4"),
MTK_FUNCTION(5, "PCM1_DI") MTK_FUNCTION(5, "PCM1_DI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(33, "MSDC0_RSTB"),
PINCTRL_PIN(33, "MSDC0_RSTB"),
"G22", "mt8135", "G22", "mt8135",
MTK_EINT_FUNCTION(2, 50), MTK_EINT_FUNCTION(2, 50),
MTK_FUNCTION(0, "GPIO33"), MTK_FUNCTION(0, "GPIO33"),
...@@ -405,16 +371,14 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -405,16 +371,14 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SPI1_MI"), MTK_FUNCTION(6, "SPI1_MI"),
MTK_FUNCTION(7, "NLD10") MTK_FUNCTION(7, "NLD10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(34, "IDDIG"),
PINCTRL_PIN(34, "IDDIG"),
"N17", "mt8135", "N17", "mt8135",
MTK_EINT_FUNCTION(2, 34), MTK_EINT_FUNCTION(2, 34),
MTK_FUNCTION(0, "GPIO34"), MTK_FUNCTION(0, "GPIO34"),
MTK_FUNCTION(1, "IDDIG"), MTK_FUNCTION(1, "IDDIG"),
MTK_FUNCTION(2, "EINT34") MTK_FUNCTION(2, "EINT34")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(35, "SCL3"),
PINCTRL_PIN(35, "SCL3"),
"L19", "mt8135", "L19", "mt8135",
MTK_EINT_FUNCTION(2, 96), MTK_EINT_FUNCTION(2, 96),
MTK_FUNCTION(0, "GPIO35"), MTK_FUNCTION(0, "GPIO35"),
...@@ -423,16 +387,14 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -423,16 +387,14 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(3, "CLKM6"), MTK_FUNCTION(3, "CLKM6"),
MTK_FUNCTION(4, "PWM6") MTK_FUNCTION(4, "PWM6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(36, "SDA3"),
PINCTRL_PIN(36, "SDA3"),
"L20", "mt8135", "L20", "mt8135",
MTK_EINT_FUNCTION(2, 97), MTK_EINT_FUNCTION(2, 97),
MTK_FUNCTION(0, "GPIO36"), MTK_FUNCTION(0, "GPIO36"),
MTK_FUNCTION(1, "SDA3"), MTK_FUNCTION(1, "SDA3"),
MTK_FUNCTION(2, "EINT97") MTK_FUNCTION(2, "EINT97")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(37, "AUD_CLK_MOSI"),
PINCTRL_PIN(37, "AUD_CLK_MOSI"),
"L21", "mt8135", "L21", "mt8135",
MTK_EINT_FUNCTION(4, 19), MTK_EINT_FUNCTION(4, 19),
MTK_FUNCTION(0, "GPIO37"), MTK_FUNCTION(0, "GPIO37"),
...@@ -443,8 +405,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -443,8 +405,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[6]"), MTK_FUNCTION(5, "USB_TEST_IO[6]"),
MTK_FUNCTION(7, "TESTA_OUT19") MTK_FUNCTION(7, "TESTA_OUT19")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(38, "AUD_DAT_MOSI"),
PINCTRL_PIN(38, "AUD_DAT_MOSI"),
"L23", "mt8135", "L23", "mt8135",
MTK_EINT_FUNCTION(4, 21), MTK_EINT_FUNCTION(4, 21),
MTK_FUNCTION(0, "GPIO38"), MTK_FUNCTION(0, "GPIO38"),
...@@ -455,8 +416,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -455,8 +416,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[7]"), MTK_FUNCTION(5, "USB_TEST_IO[7]"),
MTK_FUNCTION(7, "TESTA_OUT20") MTK_FUNCTION(7, "TESTA_OUT20")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(39, "AUD_DAT_MISO"),
PINCTRL_PIN(39, "AUD_DAT_MISO"),
"L22", "mt8135", "L22", "mt8135",
MTK_EINT_FUNCTION(4, 20), MTK_EINT_FUNCTION(4, 20),
MTK_FUNCTION(0, "GPIO39"), MTK_FUNCTION(0, "GPIO39"),
...@@ -467,8 +427,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -467,8 +427,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[8]"), MTK_FUNCTION(5, "USB_TEST_IO[8]"),
MTK_FUNCTION(7, "TESTA_OUT21") MTK_FUNCTION(7, "TESTA_OUT21")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(40, "DAC_CLK"),
PINCTRL_PIN(40, "DAC_CLK"),
"P21", "mt8135", "P21", "mt8135",
MTK_EINT_FUNCTION(2, 22), MTK_EINT_FUNCTION(2, 22),
MTK_FUNCTION(0, "GPIO40"), MTK_FUNCTION(0, "GPIO40"),
...@@ -478,8 +437,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -478,8 +437,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[9]"), MTK_FUNCTION(5, "USB_TEST_IO[9]"),
MTK_FUNCTION(7, "TESTA_OUT22") MTK_FUNCTION(7, "TESTA_OUT22")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(41, "DAC_WS"),
PINCTRL_PIN(41, "DAC_WS"),
"N18", "mt8135", "N18", "mt8135",
MTK_EINT_FUNCTION(2, 24), MTK_EINT_FUNCTION(2, 24),
MTK_FUNCTION(0, "GPIO41"), MTK_FUNCTION(0, "GPIO41"),
...@@ -489,8 +447,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -489,8 +447,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[10]"), MTK_FUNCTION(5, "USB_TEST_IO[10]"),
MTK_FUNCTION(7, "TESTA_OUT23") MTK_FUNCTION(7, "TESTA_OUT23")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(42, "DAC_DAT_OUT"),
PINCTRL_PIN(42, "DAC_DAT_OUT"),
"N22", "mt8135", "N22", "mt8135",
MTK_EINT_FUNCTION(2, 23), MTK_EINT_FUNCTION(2, 23),
MTK_FUNCTION(0, "GPIO42"), MTK_FUNCTION(0, "GPIO42"),
...@@ -500,40 +457,35 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -500,40 +457,35 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[11]"), MTK_FUNCTION(5, "USB_TEST_IO[11]"),
MTK_FUNCTION(7, "TESTA_OUT24") MTK_FUNCTION(7, "TESTA_OUT24")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(43, "PWRAP_SPI0_MO"),
PINCTRL_PIN(43, "PWRAP_SPI0_MO"),
"M22", "mt8135", "M22", "mt8135",
MTK_EINT_FUNCTION(2, 29), MTK_EINT_FUNCTION(2, 29),
MTK_FUNCTION(0, "GPIO43"), MTK_FUNCTION(0, "GPIO43"),
MTK_FUNCTION(1, "PWRAP_SPIDI"), MTK_FUNCTION(1, "PWRAP_SPIDI"),
MTK_FUNCTION(2, "EINT29") MTK_FUNCTION(2, "EINT29")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(44, "PWRAP_SPI0_MI"),
PINCTRL_PIN(44, "PWRAP_SPI0_MI"),
"P23", "mt8135", "P23", "mt8135",
MTK_EINT_FUNCTION(2, 28), MTK_EINT_FUNCTION(2, 28),
MTK_FUNCTION(0, "GPIO44"), MTK_FUNCTION(0, "GPIO44"),
MTK_FUNCTION(1, "PWRAP_SPIDO"), MTK_FUNCTION(1, "PWRAP_SPIDO"),
MTK_FUNCTION(2, "EINT28") MTK_FUNCTION(2, "EINT28")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(45, "PWRAP_SPI0_CSN"),
PINCTRL_PIN(45, "PWRAP_SPI0_CSN"),
"M21", "mt8135", "M21", "mt8135",
MTK_EINT_FUNCTION(2, 27), MTK_EINT_FUNCTION(2, 27),
MTK_FUNCTION(0, "GPIO45"), MTK_FUNCTION(0, "GPIO45"),
MTK_FUNCTION(1, "PWRAP_SPICS_B_I"), MTK_FUNCTION(1, "PWRAP_SPICS_B_I"),
MTK_FUNCTION(2, "EINT27") MTK_FUNCTION(2, "EINT27")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(46, "PWRAP_SPI0_CLK"),
PINCTRL_PIN(46, "PWRAP_SPI0_CLK"),
"P22", "mt8135", "P22", "mt8135",
MTK_EINT_FUNCTION(2, 26), MTK_EINT_FUNCTION(2, 26),
MTK_FUNCTION(0, "GPIO46"), MTK_FUNCTION(0, "GPIO46"),
MTK_FUNCTION(1, "PWRAP_SPICK_I"), MTK_FUNCTION(1, "PWRAP_SPICK_I"),
MTK_FUNCTION(2, "EINT26") MTK_FUNCTION(2, "EINT26")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(47, "PWRAP_EVENT"),
PINCTRL_PIN(47, "PWRAP_EVENT"),
"M23", "mt8135", "M23", "mt8135",
MTK_EINT_FUNCTION(2, 25), MTK_EINT_FUNCTION(2, 25),
MTK_FUNCTION(0, "GPIO47"), MTK_FUNCTION(0, "GPIO47"),
...@@ -541,39 +493,34 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -541,39 +493,34 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT25"), MTK_FUNCTION(2, "EINT25"),
MTK_FUNCTION(7, "TESTA_OUT2") MTK_FUNCTION(7, "TESTA_OUT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(48, "RTC32K_CK"),
PINCTRL_PIN(48, "RTC32K_CK"),
"N20", "mt8135", "N20", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO48"), MTK_FUNCTION(0, "GPIO48"),
MTK_FUNCTION(1, "RTC32K_CK") MTK_FUNCTION(1, "RTC32K_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(49, "WATCHDOG"),
PINCTRL_PIN(49, "WATCHDOG"),
"R22", "mt8135", "R22", "mt8135",
MTK_EINT_FUNCTION(2, 36), MTK_EINT_FUNCTION(2, 36),
MTK_FUNCTION(0, "GPIO49"), MTK_FUNCTION(0, "GPIO49"),
MTK_FUNCTION(1, "WATCHDOG"), MTK_FUNCTION(1, "WATCHDOG"),
MTK_FUNCTION(2, "EINT36") MTK_FUNCTION(2, "EINT36")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(50, "SRCLKENA"),
PINCTRL_PIN(50, "SRCLKENA"),
"T22", "mt8135", "T22", "mt8135",
MTK_EINT_FUNCTION(2, 38), MTK_EINT_FUNCTION(2, 38),
MTK_FUNCTION(0, "GPIO50"), MTK_FUNCTION(0, "GPIO50"),
MTK_FUNCTION(1, "SRCLKENA"), MTK_FUNCTION(1, "SRCLKENA"),
MTK_FUNCTION(2, "EINT38") MTK_FUNCTION(2, "EINT38")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(51, "SRCVOLTEN"),
PINCTRL_PIN(51, "SRCVOLTEN"),
"T23", "mt8135", "T23", "mt8135",
MTK_EINT_FUNCTION(2, 37), MTK_EINT_FUNCTION(2, 37),
MTK_FUNCTION(0, "GPIO51"), MTK_FUNCTION(0, "GPIO51"),
MTK_FUNCTION(1, "SRCVOLTEN"), MTK_FUNCTION(1, "SRCVOLTEN"),
MTK_FUNCTION(2, "EINT37") MTK_FUNCTION(2, "EINT37")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(52, "EINT0"),
PINCTRL_PIN(52, "EINT0"),
"T21", "mt8135", "T21", "mt8135",
MTK_EINT_FUNCTION(1, 0), MTK_EINT_FUNCTION(1, 0),
MTK_FUNCTION(0, "GPIO52"), MTK_FUNCTION(0, "GPIO52"),
...@@ -584,8 +531,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -584,8 +531,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[12]"), MTK_FUNCTION(5, "USB_TEST_IO[12]"),
MTK_FUNCTION(7, "USB_SCL") MTK_FUNCTION(7, "USB_SCL")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(53, "URXD2"),
PINCTRL_PIN(53, "URXD2"),
"R18", "mt8135", "R18", "mt8135",
MTK_EINT_FUNCTION(2, 83), MTK_EINT_FUNCTION(2, 83),
MTK_FUNCTION(0, "GPIO53"), MTK_FUNCTION(0, "GPIO53"),
...@@ -595,8 +541,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -595,8 +541,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM3"), MTK_FUNCTION(5, "CLKM3"),
MTK_FUNCTION(7, "UTXD2") MTK_FUNCTION(7, "UTXD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(54, "UTXD2"),
PINCTRL_PIN(54, "UTXD2"),
"R17", "mt8135", "R17", "mt8135",
MTK_EINT_FUNCTION(2, 82), MTK_EINT_FUNCTION(2, 82),
MTK_FUNCTION(0, "GPIO54"), MTK_FUNCTION(0, "GPIO54"),
...@@ -606,8 +551,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -606,8 +551,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM2"), MTK_FUNCTION(5, "CLKM2"),
MTK_FUNCTION(7, "URXD2") MTK_FUNCTION(7, "URXD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(55, "UCTS2"),
PINCTRL_PIN(55, "UCTS2"),
"R20", "mt8135", "R20", "mt8135",
MTK_EINT_FUNCTION(2, 84), MTK_EINT_FUNCTION(2, 84),
MTK_FUNCTION(0, "GPIO55"), MTK_FUNCTION(0, "GPIO55"),
...@@ -616,8 +560,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -616,8 +560,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PWM1"), MTK_FUNCTION(5, "PWM1"),
MTK_FUNCTION(7, "URTS2") MTK_FUNCTION(7, "URTS2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(56, "URTS2"),
PINCTRL_PIN(56, "URTS2"),
"R19", "mt8135", "R19", "mt8135",
MTK_EINT_FUNCTION(2, 85), MTK_EINT_FUNCTION(2, 85),
MTK_FUNCTION(0, "GPIO56"), MTK_FUNCTION(0, "GPIO56"),
...@@ -626,8 +569,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -626,8 +569,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PWM2"), MTK_FUNCTION(5, "PWM2"),
MTK_FUNCTION(7, "UCTS2") MTK_FUNCTION(7, "UCTS2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(57, "JTCK"),
PINCTRL_PIN(57, "JTCK"),
"V17", "mt8135", "V17", "mt8135",
MTK_EINT_FUNCTION(2, 188), MTK_EINT_FUNCTION(2, 188),
MTK_FUNCTION(0, "GPIO57"), MTK_FUNCTION(0, "GPIO57"),
...@@ -635,8 +577,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -635,8 +577,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT188"), MTK_FUNCTION(2, "EINT188"),
MTK_FUNCTION(3, "DSP1_ICK") MTK_FUNCTION(3, "DSP1_ICK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(58, "JTDO"),
PINCTRL_PIN(58, "JTDO"),
"T16", "mt8135", "T16", "mt8135",
MTK_EINT_FUNCTION(2, 190), MTK_EINT_FUNCTION(2, 190),
MTK_FUNCTION(0, "GPIO58"), MTK_FUNCTION(0, "GPIO58"),
...@@ -644,8 +585,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -644,8 +585,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT190"), MTK_FUNCTION(2, "EINT190"),
MTK_FUNCTION(3, "DSP2_IMS") MTK_FUNCTION(3, "DSP2_IMS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(59, "JTRST_B"),
PINCTRL_PIN(59, "JTRST_B"),
"T19", "mt8135", "T19", "mt8135",
MTK_EINT_FUNCTION(2, 0), MTK_EINT_FUNCTION(2, 0),
MTK_FUNCTION(0, "GPIO59"), MTK_FUNCTION(0, "GPIO59"),
...@@ -653,8 +593,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -653,8 +593,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT0"), MTK_FUNCTION(2, "EINT0"),
MTK_FUNCTION(3, "DSP2_ICK") MTK_FUNCTION(3, "DSP2_ICK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(60, "JTDI"),
PINCTRL_PIN(60, "JTDI"),
"T18", "mt8135", "T18", "mt8135",
MTK_EINT_FUNCTION(2, 189), MTK_EINT_FUNCTION(2, 189),
MTK_FUNCTION(0, "GPIO60"), MTK_FUNCTION(0, "GPIO60"),
...@@ -662,8 +601,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -662,8 +601,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT189"), MTK_FUNCTION(2, "EINT189"),
MTK_FUNCTION(3, "DSP1_IMS") MTK_FUNCTION(3, "DSP1_IMS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(61, "JRTCK"),
PINCTRL_PIN(61, "JRTCK"),
"T20", "mt8135", "T20", "mt8135",
MTK_EINT_FUNCTION(2, 187), MTK_EINT_FUNCTION(2, 187),
MTK_FUNCTION(0, "GPIO61"), MTK_FUNCTION(0, "GPIO61"),
...@@ -671,8 +609,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -671,8 +609,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT187"), MTK_FUNCTION(2, "EINT187"),
MTK_FUNCTION(3, "DSP1_ID") MTK_FUNCTION(3, "DSP1_ID")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(62, "JTMS"),
PINCTRL_PIN(62, "JTMS"),
"T17", "mt8135", "T17", "mt8135",
MTK_EINT_FUNCTION(2, 191), MTK_EINT_FUNCTION(2, 191),
MTK_FUNCTION(0, "GPIO62"), MTK_FUNCTION(0, "GPIO62"),
...@@ -680,8 +617,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -680,8 +617,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT191"), MTK_FUNCTION(2, "EINT191"),
MTK_FUNCTION(3, "DSP2_ID") MTK_FUNCTION(3, "DSP2_ID")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(63, "MSDC1_INSI"),
PINCTRL_PIN(63, "MSDC1_INSI"),
"V18", "mt8135", "V18", "mt8135",
MTK_EINT_FUNCTION(1, 15), MTK_EINT_FUNCTION(1, 15),
MTK_FUNCTION(0, "GPIO63"), MTK_FUNCTION(0, "GPIO63"),
...@@ -691,8 +627,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -691,8 +627,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM5"), MTK_FUNCTION(5, "CLKM5"),
MTK_FUNCTION(7, "TESTB_OUT6") MTK_FUNCTION(7, "TESTB_OUT6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(64, "MSDC1_SDWPI"),
PINCTRL_PIN(64, "MSDC1_SDWPI"),
"W18", "mt8135", "W18", "mt8135",
MTK_EINT_FUNCTION(2, 58), MTK_EINT_FUNCTION(2, 58),
MTK_FUNCTION(0, "GPIO64"), MTK_FUNCTION(0, "GPIO64"),
...@@ -703,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -703,8 +638,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM6"), MTK_FUNCTION(5, "CLKM6"),
MTK_FUNCTION(7, "TESTB_OUT7") MTK_FUNCTION(7, "TESTB_OUT7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(65, "MSDC2_INSI"),
PINCTRL_PIN(65, "MSDC2_INSI"),
"U22", "mt8135", "U22", "mt8135",
MTK_EINT_FUNCTION(1, 14), MTK_EINT_FUNCTION(1, 14),
MTK_FUNCTION(0, "GPIO65"), MTK_FUNCTION(0, "GPIO65"),
...@@ -712,8 +646,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -712,8 +646,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[27]"), MTK_FUNCTION(5, "USB_TEST_IO[27]"),
MTK_FUNCTION(7, "TESTA_OUT3") MTK_FUNCTION(7, "TESTA_OUT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(66, "MSDC2_SDWPI"),
PINCTRL_PIN(66, "MSDC2_SDWPI"),
"U21", "mt8135", "U21", "mt8135",
MTK_EINT_FUNCTION(2, 66), MTK_EINT_FUNCTION(2, 66),
MTK_FUNCTION(0, "GPIO66"), MTK_FUNCTION(0, "GPIO66"),
...@@ -721,8 +654,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -721,8 +654,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT66"), MTK_FUNCTION(2, "EINT66"),
MTK_FUNCTION(5, "USB_TEST_IO[28]") MTK_FUNCTION(5, "USB_TEST_IO[28]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(67, "URXD4"),
PINCTRL_PIN(67, "URXD4"),
"V23", "mt8135", "V23", "mt8135",
MTK_EINT_FUNCTION(2, 89), MTK_EINT_FUNCTION(2, 89),
MTK_FUNCTION(0, "GPIO67"), MTK_FUNCTION(0, "GPIO67"),
...@@ -732,8 +664,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -732,8 +664,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "UTXD4"), MTK_FUNCTION(6, "UTXD4"),
MTK_FUNCTION(7, "TESTB_OUT10") MTK_FUNCTION(7, "TESTB_OUT10")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(68, "UTXD4"),
PINCTRL_PIN(68, "UTXD4"),
"V22", "mt8135", "V22", "mt8135",
MTK_EINT_FUNCTION(2, 88), MTK_EINT_FUNCTION(2, 88),
MTK_FUNCTION(0, "GPIO68"), MTK_FUNCTION(0, "GPIO68"),
...@@ -743,8 +674,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -743,8 +674,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "URXD4"), MTK_FUNCTION(6, "URXD4"),
MTK_FUNCTION(7, "TESTB_OUT11") MTK_FUNCTION(7, "TESTB_OUT11")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(69, "URXD1"),
PINCTRL_PIN(69, "URXD1"),
"W22", "mt8135", "W22", "mt8135",
MTK_EINT_FUNCTION(2, 79), MTK_EINT_FUNCTION(2, 79),
MTK_FUNCTION(0, "GPIO69"), MTK_FUNCTION(0, "GPIO69"),
...@@ -754,8 +684,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -754,8 +684,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "UTXD1"), MTK_FUNCTION(6, "UTXD1"),
MTK_FUNCTION(7, "TESTB_OUT24") MTK_FUNCTION(7, "TESTB_OUT24")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(70, "UTXD1"),
PINCTRL_PIN(70, "UTXD1"),
"V21", "mt8135", "V21", "mt8135",
MTK_EINT_FUNCTION(2, 78), MTK_EINT_FUNCTION(2, 78),
MTK_FUNCTION(0, "GPIO70"), MTK_FUNCTION(0, "GPIO70"),
...@@ -765,8 +694,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -765,8 +694,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "URXD1"), MTK_FUNCTION(6, "URXD1"),
MTK_FUNCTION(7, "TESTB_OUT25") MTK_FUNCTION(7, "TESTB_OUT25")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(71, "UCTS1"),
PINCTRL_PIN(71, "UCTS1"),
"V19", "mt8135", "V19", "mt8135",
MTK_EINT_FUNCTION(2, 80), MTK_EINT_FUNCTION(2, 80),
MTK_FUNCTION(0, "GPIO71"), MTK_FUNCTION(0, "GPIO71"),
...@@ -776,8 +704,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -776,8 +704,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "URTS1"), MTK_FUNCTION(6, "URTS1"),
MTK_FUNCTION(7, "TESTB_OUT31") MTK_FUNCTION(7, "TESTB_OUT31")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(72, "URTS1"),
PINCTRL_PIN(72, "URTS1"),
"V20", "mt8135", "V20", "mt8135",
MTK_EINT_FUNCTION(2, 81), MTK_EINT_FUNCTION(2, 81),
MTK_FUNCTION(0, "GPIO72"), MTK_FUNCTION(0, "GPIO72"),
...@@ -787,8 +714,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -787,8 +714,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "UCTS1"), MTK_FUNCTION(6, "UCTS1"),
MTK_FUNCTION(7, "TESTB_OUT21") MTK_FUNCTION(7, "TESTB_OUT21")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(73, "PWM1"),
PINCTRL_PIN(73, "PWM1"),
"W17", "mt8135", "W17", "mt8135",
MTK_EINT_FUNCTION(2, 73), MTK_EINT_FUNCTION(2, 73),
MTK_FUNCTION(0, "GPIO73"), MTK_FUNCTION(0, "GPIO73"),
...@@ -798,8 +724,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -798,8 +724,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DISP_PWM"), MTK_FUNCTION(6, "DISP_PWM"),
MTK_FUNCTION(7, "TESTB_OUT8") MTK_FUNCTION(7, "TESTB_OUT8")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(74, "PWM2"),
PINCTRL_PIN(74, "PWM2"),
"Y17", "mt8135", "Y17", "mt8135",
MTK_EINT_FUNCTION(2, 74), MTK_EINT_FUNCTION(2, 74),
MTK_FUNCTION(0, "GPIO74"), MTK_FUNCTION(0, "GPIO74"),
...@@ -811,8 +736,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -811,8 +736,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DISP_PWM"), MTK_FUNCTION(6, "DISP_PWM"),
MTK_FUNCTION(7, "TESTB_OUT9") MTK_FUNCTION(7, "TESTB_OUT9")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(75, "PWM3"),
PINCTRL_PIN(75, "PWM3"),
"Y19", "mt8135", "Y19", "mt8135",
MTK_EINT_FUNCTION(2, 75), MTK_EINT_FUNCTION(2, 75),
MTK_FUNCTION(0, "GPIO75"), MTK_FUNCTION(0, "GPIO75"),
...@@ -824,8 +748,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -824,8 +748,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DISP_PWM"), MTK_FUNCTION(6, "DISP_PWM"),
MTK_FUNCTION(7, "TESTB_OUT12") MTK_FUNCTION(7, "TESTB_OUT12")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(76, "PWM4"),
PINCTRL_PIN(76, "PWM4"),
"W19", "mt8135", "W19", "mt8135",
MTK_EINT_FUNCTION(2, 76), MTK_EINT_FUNCTION(2, 76),
MTK_FUNCTION(0, "GPIO76"), MTK_FUNCTION(0, "GPIO76"),
...@@ -836,8 +759,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -836,8 +759,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DISP_PWM"), MTK_FUNCTION(6, "DISP_PWM"),
MTK_FUNCTION(7, "TESTB_OUT13") MTK_FUNCTION(7, "TESTB_OUT13")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(77, "MSDC2_DAT2"),
PINCTRL_PIN(77, "MSDC2_DAT2"),
"W21", "mt8135", "W21", "mt8135",
MTK_EINT_FUNCTION(2, 63), MTK_EINT_FUNCTION(2, 63),
MTK_FUNCTION(0, "GPIO77"), MTK_FUNCTION(0, "GPIO77"),
...@@ -847,8 +769,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -847,8 +769,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DPI33_D6"), MTK_FUNCTION(6, "DPI33_D6"),
MTK_FUNCTION(7, "TESTA_OUT25") MTK_FUNCTION(7, "TESTA_OUT25")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(78, "MSDC2_DAT3"),
PINCTRL_PIN(78, "MSDC2_DAT3"),
"AA23", "mt8135", "AA23", "mt8135",
MTK_EINT_FUNCTION(2, 64), MTK_EINT_FUNCTION(2, 64),
MTK_FUNCTION(0, "GPIO78"), MTK_FUNCTION(0, "GPIO78"),
...@@ -858,8 +779,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -858,8 +779,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DPI33_D7"), MTK_FUNCTION(6, "DPI33_D7"),
MTK_FUNCTION(7, "TESTA_OUT26") MTK_FUNCTION(7, "TESTA_OUT26")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(79, "MSDC2_CMD"),
PINCTRL_PIN(79, "MSDC2_CMD"),
"Y22", "mt8135", "Y22", "mt8135",
MTK_EINT_FUNCTION(2, 60), MTK_EINT_FUNCTION(2, 60),
MTK_FUNCTION(0, "GPIO79"), MTK_FUNCTION(0, "GPIO79"),
...@@ -870,8 +790,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -870,8 +790,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DPI33_D3"), MTK_FUNCTION(6, "DPI33_D3"),
MTK_FUNCTION(7, "TESTA_OUT0") MTK_FUNCTION(7, "TESTA_OUT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(80, "MSDC2_CLK"),
PINCTRL_PIN(80, "MSDC2_CLK"),
"AA22", "mt8135", "AA22", "mt8135",
MTK_EINT_FUNCTION(2, 59), MTK_EINT_FUNCTION(2, 59),
MTK_FUNCTION(0, "GPIO80"), MTK_FUNCTION(0, "GPIO80"),
...@@ -882,8 +801,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -882,8 +801,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "DPI33_D2"), MTK_FUNCTION(6, "DPI33_D2"),
MTK_FUNCTION(7, "TESTA_OUT1") MTK_FUNCTION(7, "TESTA_OUT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(81, "MSDC2_DAT1"),
PINCTRL_PIN(81, "MSDC2_DAT1"),
"Y21", "mt8135", "Y21", "mt8135",
MTK_EINT_FUNCTION(2, 62), MTK_EINT_FUNCTION(2, 62),
MTK_FUNCTION(0, "GPIO81"), MTK_FUNCTION(0, "GPIO81"),
...@@ -893,8 +811,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -893,8 +811,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PCM1_DO"), MTK_FUNCTION(5, "PCM1_DO"),
MTK_FUNCTION(6, "DPI33_D5") MTK_FUNCTION(6, "DPI33_D5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(82, "MSDC2_DAT0"),
PINCTRL_PIN(82, "MSDC2_DAT0"),
"AB22", "mt8135", "AB22", "mt8135",
MTK_EINT_FUNCTION(2, 61), MTK_EINT_FUNCTION(2, 61),
MTK_FUNCTION(0, "GPIO82"), MTK_FUNCTION(0, "GPIO82"),
...@@ -904,8 +821,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -904,8 +821,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PCM1_DI"), MTK_FUNCTION(5, "PCM1_DI"),
MTK_FUNCTION(6, "DPI33_D4") MTK_FUNCTION(6, "DPI33_D4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(83, "MSDC1_DAT0"),
PINCTRL_PIN(83, "MSDC1_DAT0"),
"AC19", "mt8135", "AC19", "mt8135",
MTK_EINT_FUNCTION(2, 53), MTK_EINT_FUNCTION(2, 53),
MTK_FUNCTION(0, "GPIO83"), MTK_FUNCTION(0, "GPIO83"),
...@@ -916,8 +832,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -916,8 +832,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM1"), MTK_FUNCTION(5, "CLKM1"),
MTK_FUNCTION(7, "TESTB_OUT2") MTK_FUNCTION(7, "TESTB_OUT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(84, "MSDC1_DAT1"),
PINCTRL_PIN(84, "MSDC1_DAT1"),
"AA19", "mt8135", "AA19", "mt8135",
MTK_EINT_FUNCTION(2, 54), MTK_EINT_FUNCTION(2, 54),
MTK_FUNCTION(0, "GPIO84"), MTK_FUNCTION(0, "GPIO84"),
...@@ -928,8 +843,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -928,8 +843,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM2"), MTK_FUNCTION(5, "CLKM2"),
MTK_FUNCTION(7, "TESTB_OUT3") MTK_FUNCTION(7, "TESTB_OUT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(85, "MSDC1_CMD"),
PINCTRL_PIN(85, "MSDC1_CMD"),
"AA20", "mt8135", "AA20", "mt8135",
MTK_EINT_FUNCTION(2, 52), MTK_EINT_FUNCTION(2, 52),
MTK_FUNCTION(0, "GPIO85"), MTK_FUNCTION(0, "GPIO85"),
...@@ -940,8 +854,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -940,8 +854,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM0"), MTK_FUNCTION(5, "CLKM0"),
MTK_FUNCTION(7, "TESTB_OUT1") MTK_FUNCTION(7, "TESTB_OUT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(86, "MSDC1_CLK"),
PINCTRL_PIN(86, "MSDC1_CLK"),
"AB19", "mt8135", "AB19", "mt8135",
MTK_EINT_FUNCTION(2, 51), MTK_EINT_FUNCTION(2, 51),
MTK_FUNCTION(0, "GPIO86"), MTK_FUNCTION(0, "GPIO86"),
...@@ -951,8 +864,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -951,8 +864,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DISP_PWM"), MTK_FUNCTION(4, "DISP_PWM"),
MTK_FUNCTION(7, "TESTB_OUT0") MTK_FUNCTION(7, "TESTB_OUT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(87, "MSDC1_DAT2"),
PINCTRL_PIN(87, "MSDC1_DAT2"),
"AA21", "mt8135", "AA21", "mt8135",
MTK_EINT_FUNCTION(2, 55), MTK_EINT_FUNCTION(2, 55),
MTK_FUNCTION(0, "GPIO87"), MTK_FUNCTION(0, "GPIO87"),
...@@ -963,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -963,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM3"), MTK_FUNCTION(5, "CLKM3"),
MTK_FUNCTION(7, "TESTB_OUT4") MTK_FUNCTION(7, "TESTB_OUT4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(88, "MSDC1_DAT3"),
PINCTRL_PIN(88, "MSDC1_DAT3"),
"AB20", "mt8135", "AB20", "mt8135",
MTK_EINT_FUNCTION(2, 56), MTK_EINT_FUNCTION(2, 56),
MTK_FUNCTION(0, "GPIO88"), MTK_FUNCTION(0, "GPIO88"),
...@@ -975,8 +886,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -975,8 +886,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM4"), MTK_FUNCTION(5, "CLKM4"),
MTK_FUNCTION(7, "TESTB_OUT5") MTK_FUNCTION(7, "TESTB_OUT5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(89, "MSDC4_DAT0"),
PINCTRL_PIN(89, "MSDC4_DAT0"),
"AB8", "mt8135", "AB8", "mt8135",
MTK_EINT_FUNCTION(2, 133), MTK_EINT_FUNCTION(2, 133),
MTK_FUNCTION(0, "GPIO89"), MTK_FUNCTION(0, "GPIO89"),
...@@ -987,8 +897,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -987,8 +897,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[9]"), MTK_FUNCTION(6, "A_FUNC_DIN[9]"),
MTK_FUNCTION(7, "LPTE") MTK_FUNCTION(7, "LPTE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(90, "MSDC4_DAT1"),
PINCTRL_PIN(90, "MSDC4_DAT1"),
"AB7", "mt8135", "AB7", "mt8135",
MTK_EINT_FUNCTION(2, 134), MTK_EINT_FUNCTION(2, 134),
MTK_FUNCTION(0, "GPIO90"), MTK_FUNCTION(0, "GPIO90"),
...@@ -997,8 +906,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -997,8 +906,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[10]"), MTK_FUNCTION(6, "A_FUNC_DIN[10]"),
MTK_FUNCTION(7, "LRSTB_1X") MTK_FUNCTION(7, "LRSTB_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(91, "MSDC4_DAT5"),
PINCTRL_PIN(91, "MSDC4_DAT5"),
"AA8", "mt8135", "AA8", "mt8135",
MTK_EINT_FUNCTION(2, 136), MTK_EINT_FUNCTION(2, 136),
MTK_FUNCTION(0, "GPIO91"), MTK_FUNCTION(0, "GPIO91"),
...@@ -1010,8 +918,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1010,8 +918,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[11]"), MTK_FUNCTION(6, "A_FUNC_DIN[11]"),
MTK_FUNCTION(7, "SPI1_CSN") MTK_FUNCTION(7, "SPI1_CSN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(92, "MSDC4_DAT6"),
PINCTRL_PIN(92, "MSDC4_DAT6"),
"AC4", "mt8135", "AC4", "mt8135",
MTK_EINT_FUNCTION(2, 137), MTK_EINT_FUNCTION(2, 137),
MTK_FUNCTION(0, "GPIO92"), MTK_FUNCTION(0, "GPIO92"),
...@@ -1023,8 +930,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1023,8 +930,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[12]"), MTK_FUNCTION(6, "A_FUNC_DIN[12]"),
MTK_FUNCTION(7, "SPI1_MO") MTK_FUNCTION(7, "SPI1_MO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(93, "MSDC4_DAT7"),
PINCTRL_PIN(93, "MSDC4_DAT7"),
"AC6", "mt8135", "AC6", "mt8135",
MTK_EINT_FUNCTION(2, 138), MTK_EINT_FUNCTION(2, 138),
MTK_FUNCTION(0, "GPIO93"), MTK_FUNCTION(0, "GPIO93"),
...@@ -1035,8 +941,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1035,8 +941,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[13]"), MTK_FUNCTION(6, "A_FUNC_DIN[13]"),
MTK_FUNCTION(7, "SPI1_MI") MTK_FUNCTION(7, "SPI1_MI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(94, "MSDC4_DAT4"),
PINCTRL_PIN(94, "MSDC4_DAT4"),
"AA7", "mt8135", "AA7", "mt8135",
MTK_EINT_FUNCTION(2, 135), MTK_EINT_FUNCTION(2, 135),
MTK_FUNCTION(0, "GPIO94"), MTK_FUNCTION(0, "GPIO94"),
...@@ -1048,8 +953,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1048,8 +953,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "A_FUNC_DIN[14]"), MTK_FUNCTION(6, "A_FUNC_DIN[14]"),
MTK_FUNCTION(7, "SPI1_CLK") MTK_FUNCTION(7, "SPI1_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(95, "MSDC4_DAT2"),
PINCTRL_PIN(95, "MSDC4_DAT2"),
"AB6", "mt8135", "AB6", "mt8135",
MTK_EINT_FUNCTION(2, 131), MTK_EINT_FUNCTION(2, 131),
MTK_FUNCTION(0, "GPIO95"), MTK_FUNCTION(0, "GPIO95"),
...@@ -1061,8 +965,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1061,8 +965,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "PCM1_WS"), MTK_FUNCTION(6, "PCM1_WS"),
MTK_FUNCTION(7, "LSCE0B_1X") MTK_FUNCTION(7, "LSCE0B_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(96, "MSDC4_CLK"),
PINCTRL_PIN(96, "MSDC4_CLK"),
"AB5", "mt8135", "AB5", "mt8135",
MTK_EINT_FUNCTION(2, 129), MTK_EINT_FUNCTION(2, 129),
MTK_FUNCTION(0, "GPIO96"), MTK_FUNCTION(0, "GPIO96"),
...@@ -1074,8 +977,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1074,8 +977,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "PCM1_DI"), MTK_FUNCTION(6, "PCM1_DI"),
MTK_FUNCTION(7, "LSCK_1X") MTK_FUNCTION(7, "LSCK_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(97, "MSDC4_DAT3"),
PINCTRL_PIN(97, "MSDC4_DAT3"),
"Y8", "mt8135", "Y8", "mt8135",
MTK_EINT_FUNCTION(2, 132), MTK_EINT_FUNCTION(2, 132),
MTK_FUNCTION(0, "GPIO97"), MTK_FUNCTION(0, "GPIO97"),
...@@ -1087,8 +989,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1087,8 +989,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "PCM1_DO"), MTK_FUNCTION(6, "PCM1_DO"),
MTK_FUNCTION(7, "LSCE1B_1X") MTK_FUNCTION(7, "LSCE1B_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(98, "MSDC4_CMD"),
PINCTRL_PIN(98, "MSDC4_CMD"),
"AC3", "mt8135", "AC3", "mt8135",
MTK_EINT_FUNCTION(2, 128), MTK_EINT_FUNCTION(2, 128),
MTK_FUNCTION(0, "GPIO98"), MTK_FUNCTION(0, "GPIO98"),
...@@ -1098,8 +999,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1098,8 +999,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PWM3"), MTK_FUNCTION(5, "PWM3"),
MTK_FUNCTION(7, "LSDA_1X") MTK_FUNCTION(7, "LSDA_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(99, "MSDC4_RSTB"),
PINCTRL_PIN(99, "MSDC4_RSTB"),
"AB4", "mt8135", "AB4", "mt8135",
MTK_EINT_FUNCTION(2, 130), MTK_EINT_FUNCTION(2, 130),
MTK_FUNCTION(0, "GPIO99"), MTK_FUNCTION(0, "GPIO99"),
...@@ -1111,8 +1011,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1111,8 +1011,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "PCM1_CK"), MTK_FUNCTION(6, "PCM1_CK"),
MTK_FUNCTION(7, "LSA0_1X") MTK_FUNCTION(7, "LSA0_1X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(100, "SDA0"),
PINCTRL_PIN(100, "SDA0"),
"W9", "mt8135", "W9", "mt8135",
MTK_EINT_FUNCTION(2, 91), MTK_EINT_FUNCTION(2, 91),
MTK_FUNCTION(0, "GPIO100"), MTK_FUNCTION(0, "GPIO100"),
...@@ -1122,8 +1021,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1122,8 +1021,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM1"), MTK_FUNCTION(4, "PWM1"),
MTK_FUNCTION(7, "A_FUNC_DIN[15]") MTK_FUNCTION(7, "A_FUNC_DIN[15]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(101, "SCL0"),
PINCTRL_PIN(101, "SCL0"),
"W11", "mt8135", "W11", "mt8135",
MTK_EINT_FUNCTION(2, 90), MTK_EINT_FUNCTION(2, 90),
MTK_FUNCTION(0, "GPIO101"), MTK_FUNCTION(0, "GPIO101"),
...@@ -1133,8 +1031,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1133,8 +1031,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DISP_PWM"), MTK_FUNCTION(4, "DISP_PWM"),
MTK_FUNCTION(7, "A_FUNC_DIN[16]") MTK_FUNCTION(7, "A_FUNC_DIN[16]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(102, "EINT10_AUXIN2"),
PINCTRL_PIN(102, "EINT10_AUXIN2"),
"AA3", "mt8135", "AA3", "mt8135",
MTK_EINT_FUNCTION(1, 10), MTK_EINT_FUNCTION(1, 10),
MTK_FUNCTION(0, "GPIO102"), MTK_FUNCTION(0, "GPIO102"),
...@@ -1143,8 +1040,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1143,8 +1040,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT16"), MTK_FUNCTION(6, "TESTB_OUT16"),
MTK_FUNCTION(7, "A_FUNC_DIN[17]") MTK_FUNCTION(7, "A_FUNC_DIN[17]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(103, "EINT11_AUXIN3"),
PINCTRL_PIN(103, "EINT11_AUXIN3"),
"AB2", "mt8135", "AB2", "mt8135",
MTK_EINT_FUNCTION(1, 11), MTK_EINT_FUNCTION(1, 11),
MTK_FUNCTION(0, "GPIO103"), MTK_FUNCTION(0, "GPIO103"),
...@@ -1153,8 +1049,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1153,8 +1049,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT17"), MTK_FUNCTION(6, "TESTB_OUT17"),
MTK_FUNCTION(7, "A_FUNC_DIN[18]") MTK_FUNCTION(7, "A_FUNC_DIN[18]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(104, "EINT16_AUXIN4"),
PINCTRL_PIN(104, "EINT16_AUXIN4"),
"AB3", "mt8135", "AB3", "mt8135",
MTK_EINT_FUNCTION(1, 16), MTK_EINT_FUNCTION(1, 16),
MTK_FUNCTION(0, "GPIO104"), MTK_FUNCTION(0, "GPIO104"),
...@@ -1163,8 +1058,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1163,8 +1058,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT18"), MTK_FUNCTION(6, "TESTB_OUT18"),
MTK_FUNCTION(7, "A_FUNC_DIN[19]") MTK_FUNCTION(7, "A_FUNC_DIN[19]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(105, "I2S_CLK"),
PINCTRL_PIN(105, "I2S_CLK"),
"W6", "mt8135", "W6", "mt8135",
MTK_EINT_FUNCTION(2, 10), MTK_EINT_FUNCTION(2, 10),
MTK_FUNCTION(0, "GPIO105"), MTK_FUNCTION(0, "GPIO105"),
...@@ -1176,8 +1070,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1176,8 +1070,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT19"), MTK_FUNCTION(6, "TESTB_OUT19"),
MTK_FUNCTION(7, "A_FUNC_DIN[20]") MTK_FUNCTION(7, "A_FUNC_DIN[20]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(106, "I2S_WS"),
PINCTRL_PIN(106, "I2S_WS"),
"AA6", "mt8135", "AA6", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO106"), MTK_FUNCTION(0, "GPIO106"),
...@@ -1188,8 +1081,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1188,8 +1081,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT20"), MTK_FUNCTION(6, "TESTB_OUT20"),
MTK_FUNCTION(7, "A_FUNC_DIN[21]") MTK_FUNCTION(7, "A_FUNC_DIN[21]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(107, "I2S_DATA_IN"),
PINCTRL_PIN(107, "I2S_DATA_IN"),
"AA5", "mt8135", "AA5", "mt8135",
MTK_EINT_FUNCTION(2, 11), MTK_EINT_FUNCTION(2, 11),
MTK_FUNCTION(0, "GPIO107"), MTK_FUNCTION(0, "GPIO107"),
...@@ -1200,8 +1092,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1200,8 +1092,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT22"), MTK_FUNCTION(6, "TESTB_OUT22"),
MTK_FUNCTION(7, "A_FUNC_DIN[22]") MTK_FUNCTION(7, "A_FUNC_DIN[22]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(108, "I2S_DATA_OUT"),
PINCTRL_PIN(108, "I2S_DATA_OUT"),
"AA4", "mt8135", "AA4", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO108"), MTK_FUNCTION(0, "GPIO108"),
...@@ -1212,8 +1103,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1212,8 +1103,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT23"), MTK_FUNCTION(6, "TESTB_OUT23"),
MTK_FUNCTION(7, "A_FUNC_DIN[23]") MTK_FUNCTION(7, "A_FUNC_DIN[23]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(109, "EINT5"),
PINCTRL_PIN(109, "EINT5"),
"W5", "mt8135", "W5", "mt8135",
MTK_EINT_FUNCTION(1, 5), MTK_EINT_FUNCTION(1, 5),
MTK_FUNCTION(0, "GPIO109"), MTK_FUNCTION(0, "GPIO109"),
...@@ -1225,8 +1115,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1225,8 +1115,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT26"), MTK_FUNCTION(6, "TESTB_OUT26"),
MTK_FUNCTION(7, "A_FUNC_DIN[24]") MTK_FUNCTION(7, "A_FUNC_DIN[24]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(110, "EINT6"),
PINCTRL_PIN(110, "EINT6"),
"V5", "mt8135", "V5", "mt8135",
MTK_EINT_FUNCTION(1, 6), MTK_EINT_FUNCTION(1, 6),
MTK_FUNCTION(0, "GPIO110"), MTK_FUNCTION(0, "GPIO110"),
...@@ -1238,8 +1127,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1238,8 +1127,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT27"), MTK_FUNCTION(6, "TESTB_OUT27"),
MTK_FUNCTION(7, "A_FUNC_DIN[25]") MTK_FUNCTION(7, "A_FUNC_DIN[25]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(111, "EINT7"),
PINCTRL_PIN(111, "EINT7"),
"W3", "mt8135", "W3", "mt8135",
MTK_EINT_FUNCTION(1, 7), MTK_EINT_FUNCTION(1, 7),
MTK_FUNCTION(0, "GPIO111"), MTK_FUNCTION(0, "GPIO111"),
...@@ -1251,8 +1139,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1251,8 +1139,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT28"), MTK_FUNCTION(6, "TESTB_OUT28"),
MTK_FUNCTION(7, "A_FUNC_DIN[26]") MTK_FUNCTION(7, "A_FUNC_DIN[26]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(112, "EINT8"),
PINCTRL_PIN(112, "EINT8"),
"V6", "mt8135", "V6", "mt8135",
MTK_EINT_FUNCTION(1, 8), MTK_EINT_FUNCTION(1, 8),
MTK_FUNCTION(0, "GPIO112"), MTK_FUNCTION(0, "GPIO112"),
...@@ -1264,8 +1151,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1264,8 +1151,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT29"), MTK_FUNCTION(6, "TESTB_OUT29"),
MTK_FUNCTION(7, "EXT_FRAME_SYNC") MTK_FUNCTION(7, "EXT_FRAME_SYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(113, "EINT9"),
PINCTRL_PIN(113, "EINT9"),
"W8", "mt8135", "W8", "mt8135",
MTK_EINT_FUNCTION(1, 9), MTK_EINT_FUNCTION(1, 9),
MTK_FUNCTION(0, "GPIO113"), MTK_FUNCTION(0, "GPIO113"),
...@@ -1275,8 +1161,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1275,8 +1161,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT30"), MTK_FUNCTION(6, "TESTB_OUT30"),
MTK_FUNCTION(7, "A_FUNC_DIN[27]") MTK_FUNCTION(7, "A_FUNC_DIN[27]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(114, "LPCE1B"),
PINCTRL_PIN(114, "LPCE1B"),
"W4", "mt8135", "W4", "mt8135",
MTK_EINT_FUNCTION(2, 127), MTK_EINT_FUNCTION(2, 127),
MTK_FUNCTION(0, "GPIO114"), MTK_FUNCTION(0, "GPIO114"),
...@@ -1286,8 +1171,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1286,8 +1171,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT14"), MTK_FUNCTION(6, "TESTB_OUT14"),
MTK_FUNCTION(7, "A_FUNC_DIN[28]") MTK_FUNCTION(7, "A_FUNC_DIN[28]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(115, "LPCE0B"),
PINCTRL_PIN(115, "LPCE0B"),
"T5", "mt8135", "T5", "mt8135",
MTK_EINT_FUNCTION(2, 126), MTK_EINT_FUNCTION(2, 126),
MTK_FUNCTION(0, "GPIO115"), MTK_FUNCTION(0, "GPIO115"),
...@@ -1297,8 +1181,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1297,8 +1181,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "TESTB_OUT15"), MTK_FUNCTION(6, "TESTB_OUT15"),
MTK_FUNCTION(7, "A_FUNC_DIN[29]") MTK_FUNCTION(7, "A_FUNC_DIN[29]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(116, "DISP_PWM"),
PINCTRL_PIN(116, "DISP_PWM"),
"V4", "mt8135", "V4", "mt8135",
MTK_EINT_FUNCTION(2, 77), MTK_EINT_FUNCTION(2, 77),
MTK_FUNCTION(0, "GPIO116"), MTK_FUNCTION(0, "GPIO116"),
...@@ -1309,8 +1192,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1309,8 +1192,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PWM2"), MTK_FUNCTION(5, "PWM2"),
MTK_FUNCTION(7, "PWM3") MTK_FUNCTION(7, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(117, "EINT1"),
PINCTRL_PIN(117, "EINT1"),
"T6", "mt8135", "T6", "mt8135",
MTK_EINT_FUNCTION(1, 1), MTK_EINT_FUNCTION(1, 1),
MTK_FUNCTION(0, "GPIO117"), MTK_FUNCTION(0, "GPIO117"),
...@@ -1320,8 +1202,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1320,8 +1202,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_TEST_IO[13]"), MTK_FUNCTION(5, "USB_TEST_IO[13]"),
MTK_FUNCTION(7, "USB_SDA") MTK_FUNCTION(7, "USB_SDA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(118, "EINT2"),
PINCTRL_PIN(118, "EINT2"),
"T4", "mt8135", "T4", "mt8135",
MTK_EINT_FUNCTION(1, 2), MTK_EINT_FUNCTION(1, 2),
MTK_FUNCTION(0, "GPIO118"), MTK_FUNCTION(0, "GPIO118"),
...@@ -1332,8 +1213,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1332,8 +1213,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SRCLKENAI2"), MTK_FUNCTION(6, "SRCLKENAI2"),
MTK_FUNCTION(7, "A_FUNC_DIN[30]") MTK_FUNCTION(7, "A_FUNC_DIN[30]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(119, "EINT3"),
PINCTRL_PIN(119, "EINT3"),
"R4", "mt8135", "R4", "mt8135",
MTK_EINT_FUNCTION(1, 3), MTK_EINT_FUNCTION(1, 3),
MTK_FUNCTION(0, "GPIO119"), MTK_FUNCTION(0, "GPIO119"),
...@@ -1342,8 +1222,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1342,8 +1222,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "SRCLKENAI1"), MTK_FUNCTION(6, "SRCLKENAI1"),
MTK_FUNCTION(7, "EXT_26M_CK") MTK_FUNCTION(7, "EXT_26M_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(120, "EINT4"),
PINCTRL_PIN(120, "EINT4"),
"R5", "mt8135", "R5", "mt8135",
MTK_EINT_FUNCTION(1, 4), MTK_EINT_FUNCTION(1, 4),
MTK_FUNCTION(0, "GPIO120"), MTK_FUNCTION(0, "GPIO120"),
...@@ -1352,8 +1231,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1352,8 +1231,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "USB_DRVVBUS"), MTK_FUNCTION(5, "USB_DRVVBUS"),
MTK_FUNCTION(7, "A_FUNC_DIN[31]") MTK_FUNCTION(7, "A_FUNC_DIN[31]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(121, "DPIDE"),
PINCTRL_PIN(121, "DPIDE"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 100), MTK_EINT_FUNCTION(2, 100),
MTK_FUNCTION(0, "GPIO121"), MTK_FUNCTION(0, "GPIO121"),
...@@ -1364,8 +1242,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1364,8 +1242,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PCM1_DO"), MTK_FUNCTION(5, "PCM1_DO"),
MTK_FUNCTION(6, "IRDA_TXD") MTK_FUNCTION(6, "IRDA_TXD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(122, "DPICK"),
PINCTRL_PIN(122, "DPICK"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 101), MTK_EINT_FUNCTION(2, 101),
MTK_FUNCTION(0, "GPIO122"), MTK_FUNCTION(0, "GPIO122"),
...@@ -1375,8 +1252,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1375,8 +1252,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PCM1_DI"), MTK_FUNCTION(5, "PCM1_DI"),
MTK_FUNCTION(6, "IRDA_PDN") MTK_FUNCTION(6, "IRDA_PDN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(123, "DPIG4"),
PINCTRL_PIN(123, "DPIG4"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 114), MTK_EINT_FUNCTION(2, 114),
MTK_FUNCTION(0, "GPIO123"), MTK_FUNCTION(0, "GPIO123"),
...@@ -1385,8 +1261,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1385,8 +1261,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_2X[0]"), MTK_FUNCTION(4, "CM2DAT_2X[0]"),
MTK_FUNCTION(5, "DSP2_ID") MTK_FUNCTION(5, "DSP2_ID")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(124, "DPIG5"),
PINCTRL_PIN(124, "DPIG5"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 115), MTK_EINT_FUNCTION(2, 115),
MTK_FUNCTION(0, "GPIO124"), MTK_FUNCTION(0, "GPIO124"),
...@@ -1395,8 +1270,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1395,8 +1270,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "CM2DAT_2X[1]"), MTK_FUNCTION(4, "CM2DAT_2X[1]"),
MTK_FUNCTION(5, "DSP2_ICK") MTK_FUNCTION(5, "DSP2_ICK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(125, "DPIR3"),
PINCTRL_PIN(125, "DPIR3"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 121), MTK_EINT_FUNCTION(2, 121),
MTK_FUNCTION(0, "GPIO125"), MTK_FUNCTION(0, "GPIO125"),
...@@ -1404,8 +1278,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1404,8 +1278,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT121"), MTK_FUNCTION(2, "EINT121"),
MTK_FUNCTION(4, "CM2DAT_2X[7]") MTK_FUNCTION(4, "CM2DAT_2X[7]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(126, "DPIG1"),
PINCTRL_PIN(126, "DPIG1"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 111), MTK_EINT_FUNCTION(2, 111),
MTK_FUNCTION(0, "GPIO126"), MTK_FUNCTION(0, "GPIO126"),
...@@ -1413,8 +1286,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1413,8 +1286,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT111"), MTK_FUNCTION(2, "EINT111"),
MTK_FUNCTION(5, "DSP1_ICK") MTK_FUNCTION(5, "DSP1_ICK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(127, "DPIVSYNC"),
PINCTRL_PIN(127, "DPIVSYNC"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 98), MTK_EINT_FUNCTION(2, 98),
MTK_FUNCTION(0, "GPIO127"), MTK_FUNCTION(0, "GPIO127"),
...@@ -1424,8 +1296,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1424,8 +1296,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "DAC_CK"), MTK_FUNCTION(4, "DAC_CK"),
MTK_FUNCTION(5, "PCM1_CK") MTK_FUNCTION(5, "PCM1_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(128, "DPIHSYNC"),
PINCTRL_PIN(128, "DPIHSYNC"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 99), MTK_EINT_FUNCTION(2, 99),
MTK_FUNCTION(0, "GPIO128"), MTK_FUNCTION(0, "GPIO128"),
...@@ -1436,8 +1307,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1436,8 +1307,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "PCM1_WS"), MTK_FUNCTION(5, "PCM1_WS"),
MTK_FUNCTION(6, "IRDA_RXD") MTK_FUNCTION(6, "IRDA_RXD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(129, "DPIB0"),
PINCTRL_PIN(129, "DPIB0"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 102), MTK_EINT_FUNCTION(2, 102),
MTK_FUNCTION(0, "GPIO129"), MTK_FUNCTION(0, "GPIO129"),
...@@ -1446,8 +1316,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1446,8 +1316,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SCL0"), MTK_FUNCTION(4, "SCL0"),
MTK_FUNCTION(5, "DISP_PWM") MTK_FUNCTION(5, "DISP_PWM")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(130, "DPIB1"),
PINCTRL_PIN(130, "DPIB1"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 103), MTK_EINT_FUNCTION(2, 103),
MTK_FUNCTION(0, "GPIO130"), MTK_FUNCTION(0, "GPIO130"),
...@@ -1457,8 +1326,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1457,8 +1326,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SDA0"), MTK_FUNCTION(4, "SDA0"),
MTK_FUNCTION(5, "PWM1") MTK_FUNCTION(5, "PWM1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(131, "DPIB2"),
PINCTRL_PIN(131, "DPIB2"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 104), MTK_EINT_FUNCTION(2, 104),
MTK_FUNCTION(0, "GPIO131"), MTK_FUNCTION(0, "GPIO131"),
...@@ -1468,8 +1336,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1468,8 +1336,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SCL1"), MTK_FUNCTION(4, "SCL1"),
MTK_FUNCTION(5, "PWM2") MTK_FUNCTION(5, "PWM2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(132, "DPIB3"),
PINCTRL_PIN(132, "DPIB3"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 105), MTK_EINT_FUNCTION(2, 105),
MTK_FUNCTION(0, "GPIO132"), MTK_FUNCTION(0, "GPIO132"),
...@@ -1479,8 +1346,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1479,8 +1346,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SDA1"), MTK_FUNCTION(4, "SDA1"),
MTK_FUNCTION(5, "PWM3") MTK_FUNCTION(5, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(133, "DPIB4"),
PINCTRL_PIN(133, "DPIB4"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 106), MTK_EINT_FUNCTION(2, 106),
MTK_FUNCTION(0, "GPIO133"), MTK_FUNCTION(0, "GPIO133"),
...@@ -1490,8 +1356,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1490,8 +1356,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SCL2"), MTK_FUNCTION(4, "SCL2"),
MTK_FUNCTION(5, "PWM4") MTK_FUNCTION(5, "PWM4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(134, "DPIB5"),
PINCTRL_PIN(134, "DPIB5"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 107), MTK_EINT_FUNCTION(2, 107),
MTK_FUNCTION(0, "GPIO134"), MTK_FUNCTION(0, "GPIO134"),
...@@ -1501,8 +1366,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1501,8 +1366,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SDA2"), MTK_FUNCTION(4, "SDA2"),
MTK_FUNCTION(5, "PWM5") MTK_FUNCTION(5, "PWM5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(135, "DPIB6"),
PINCTRL_PIN(135, "DPIB6"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 108), MTK_EINT_FUNCTION(2, 108),
MTK_FUNCTION(0, "GPIO135"), MTK_FUNCTION(0, "GPIO135"),
...@@ -1512,8 +1376,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1512,8 +1376,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SCL3"), MTK_FUNCTION(4, "SCL3"),
MTK_FUNCTION(5, "PWM6") MTK_FUNCTION(5, "PWM6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(136, "DPIB7"),
PINCTRL_PIN(136, "DPIB7"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 109), MTK_EINT_FUNCTION(2, 109),
MTK_FUNCTION(0, "GPIO136"), MTK_FUNCTION(0, "GPIO136"),
...@@ -1523,8 +1386,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1523,8 +1386,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "SDA3"), MTK_FUNCTION(4, "SDA3"),
MTK_FUNCTION(5, "PWM7") MTK_FUNCTION(5, "PWM7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(137, "DPIG0"),
PINCTRL_PIN(137, "DPIG0"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 110), MTK_EINT_FUNCTION(2, 110),
MTK_FUNCTION(0, "GPIO137"), MTK_FUNCTION(0, "GPIO137"),
...@@ -1532,8 +1394,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1532,8 +1394,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT110"), MTK_FUNCTION(2, "EINT110"),
MTK_FUNCTION(5, "DSP1_ID") MTK_FUNCTION(5, "DSP1_ID")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(138, "DPIG2"),
PINCTRL_PIN(138, "DPIG2"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 112), MTK_EINT_FUNCTION(2, 112),
MTK_FUNCTION(0, "GPIO138"), MTK_FUNCTION(0, "GPIO138"),
...@@ -1541,8 +1402,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1541,8 +1402,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT112"), MTK_FUNCTION(2, "EINT112"),
MTK_FUNCTION(5, "DSP1_IMS") MTK_FUNCTION(5, "DSP1_IMS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(139, "DPIG3"),
PINCTRL_PIN(139, "DPIG3"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 113), MTK_EINT_FUNCTION(2, 113),
MTK_FUNCTION(0, "GPIO139"), MTK_FUNCTION(0, "GPIO139"),
...@@ -1550,8 +1410,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1550,8 +1410,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT113"), MTK_FUNCTION(2, "EINT113"),
MTK_FUNCTION(5, "DSP2_IMS") MTK_FUNCTION(5, "DSP2_IMS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(140, "DPIG6"),
PINCTRL_PIN(140, "DPIG6"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 116), MTK_EINT_FUNCTION(2, 116),
MTK_FUNCTION(0, "GPIO140"), MTK_FUNCTION(0, "GPIO140"),
...@@ -1559,8 +1418,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1559,8 +1418,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT116"), MTK_FUNCTION(2, "EINT116"),
MTK_FUNCTION(4, "CM2DAT_2X[2]") MTK_FUNCTION(4, "CM2DAT_2X[2]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(141, "DPIG7"),
PINCTRL_PIN(141, "DPIG7"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 117), MTK_EINT_FUNCTION(2, 117),
MTK_FUNCTION(0, "GPIO141"), MTK_FUNCTION(0, "GPIO141"),
...@@ -1568,8 +1426,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1568,8 +1426,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT117"), MTK_FUNCTION(2, "EINT117"),
MTK_FUNCTION(4, "CM2DAT_2X[3]") MTK_FUNCTION(4, "CM2DAT_2X[3]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(142, "DPIR0"),
PINCTRL_PIN(142, "DPIR0"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 118), MTK_EINT_FUNCTION(2, 118),
MTK_FUNCTION(0, "GPIO142"), MTK_FUNCTION(0, "GPIO142"),
...@@ -1577,8 +1434,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1577,8 +1434,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT118"), MTK_FUNCTION(2, "EINT118"),
MTK_FUNCTION(4, "CM2DAT_2X[4]") MTK_FUNCTION(4, "CM2DAT_2X[4]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(143, "DPIR1"),
PINCTRL_PIN(143, "DPIR1"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 119), MTK_EINT_FUNCTION(2, 119),
MTK_FUNCTION(0, "GPIO143"), MTK_FUNCTION(0, "GPIO143"),
...@@ -1586,8 +1442,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1586,8 +1442,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT119"), MTK_FUNCTION(2, "EINT119"),
MTK_FUNCTION(4, "CM2DAT_2X[5]") MTK_FUNCTION(4, "CM2DAT_2X[5]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(144, "DPIR2"),
PINCTRL_PIN(144, "DPIR2"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 120), MTK_EINT_FUNCTION(2, 120),
MTK_FUNCTION(0, "GPIO144"), MTK_FUNCTION(0, "GPIO144"),
...@@ -1595,8 +1450,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1595,8 +1450,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT120"), MTK_FUNCTION(2, "EINT120"),
MTK_FUNCTION(4, "CM2DAT_2X[6]") MTK_FUNCTION(4, "CM2DAT_2X[6]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(145, "DPIR4"),
PINCTRL_PIN(145, "DPIR4"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 122), MTK_EINT_FUNCTION(2, 122),
MTK_FUNCTION(0, "GPIO145"), MTK_FUNCTION(0, "GPIO145"),
...@@ -1604,8 +1458,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1604,8 +1458,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT122"), MTK_FUNCTION(2, "EINT122"),
MTK_FUNCTION(4, "CM2DAT_2X[8]") MTK_FUNCTION(4, "CM2DAT_2X[8]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(146, "DPIR5"),
PINCTRL_PIN(146, "DPIR5"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 123), MTK_EINT_FUNCTION(2, 123),
MTK_FUNCTION(0, "GPIO146"), MTK_FUNCTION(0, "GPIO146"),
...@@ -1613,8 +1466,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1613,8 +1466,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT123"), MTK_FUNCTION(2, "EINT123"),
MTK_FUNCTION(4, "CM2DAT_2X[9]") MTK_FUNCTION(4, "CM2DAT_2X[9]")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(147, "DPIR6"),
PINCTRL_PIN(147, "DPIR6"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 124), MTK_EINT_FUNCTION(2, 124),
MTK_FUNCTION(0, "GPIO147"), MTK_FUNCTION(0, "GPIO147"),
...@@ -1622,8 +1474,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1622,8 +1474,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT124"), MTK_FUNCTION(2, "EINT124"),
MTK_FUNCTION(4, "CM2VSYNC_2X") MTK_FUNCTION(4, "CM2VSYNC_2X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(148, "DPIR7"),
PINCTRL_PIN(148, "DPIR7"),
NULL, "mt8135", NULL, "mt8135",
MTK_EINT_FUNCTION(2, 125), MTK_EINT_FUNCTION(2, 125),
MTK_FUNCTION(0, "GPIO148"), MTK_FUNCTION(0, "GPIO148"),
...@@ -1631,192 +1482,165 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1631,192 +1482,165 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT125"), MTK_FUNCTION(2, "EINT125"),
MTK_FUNCTION(4, "CM2HSYNC_2X") MTK_FUNCTION(4, "CM2HSYNC_2X")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(149, "TDN3/LVDS(TDN3)"),
PINCTRL_PIN(149, "TDN3/LVDS(TDN3)"),
"AA2", "mt8135", "AA2", "mt8135",
MTK_EINT_FUNCTION(2, 36), MTK_EINT_FUNCTION(2, 36),
MTK_FUNCTION(0, "GPIO149"), MTK_FUNCTION(0, "GPIO149"),
MTK_FUNCTION(2, "EINT36") MTK_FUNCTION(2, "EINT36")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(150, "TDP3/LVDS(TDP3)"),
PINCTRL_PIN(150, "TDP3/LVDS(TDP3)"),
"AA1", "mt8135", "AA1", "mt8135",
MTK_EINT_FUNCTION(2, 35), MTK_EINT_FUNCTION(2, 35),
MTK_FUNCTION(0, "GPIO150"), MTK_FUNCTION(0, "GPIO150"),
MTK_FUNCTION(2, "EINT35") MTK_FUNCTION(2, "EINT35")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(151, "TDN2/LVDS(TCN)"),
PINCTRL_PIN(151, "TDN2/LVDS(TCN)"),
"Y2", "mt8135", "Y2", "mt8135",
MTK_EINT_FUNCTION(2, 169), MTK_EINT_FUNCTION(2, 169),
MTK_FUNCTION(0, "GPIO151"), MTK_FUNCTION(0, "GPIO151"),
MTK_FUNCTION(2, "EINT169") MTK_FUNCTION(2, "EINT169")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(152, "TDP2/LVDS(TCP)"),
PINCTRL_PIN(152, "TDP2/LVDS(TCP)"),
"Y1", "mt8135", "Y1", "mt8135",
MTK_EINT_FUNCTION(2, 168), MTK_EINT_FUNCTION(2, 168),
MTK_FUNCTION(0, "GPIO152"), MTK_FUNCTION(0, "GPIO152"),
MTK_FUNCTION(2, "EINT168") MTK_FUNCTION(2, "EINT168")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(153, "TCN/LVDS(TDN2)"),
PINCTRL_PIN(153, "TCN/LVDS(TDN2)"),
"W2", "mt8135", "W2", "mt8135",
MTK_EINT_FUNCTION(2, 163), MTK_EINT_FUNCTION(2, 163),
MTK_FUNCTION(0, "GPIO153"), MTK_FUNCTION(0, "GPIO153"),
MTK_FUNCTION(2, "EINT163") MTK_FUNCTION(2, "EINT163")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(154, "TCP/LVDS(TDP2)"),
PINCTRL_PIN(154, "TCP/LVDS(TDP2)"),
"W1", "mt8135", "W1", "mt8135",
MTK_EINT_FUNCTION(2, 162), MTK_EINT_FUNCTION(2, 162),
MTK_FUNCTION(0, "GPIO154"), MTK_FUNCTION(0, "GPIO154"),
MTK_FUNCTION(2, "EINT162") MTK_FUNCTION(2, "EINT162")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(155, "TDN1/LVDS(TDN1)"),
PINCTRL_PIN(155, "TDN1/LVDS(TDN1)"),
"V3", "mt8135", "V3", "mt8135",
MTK_EINT_FUNCTION(2, 167), MTK_EINT_FUNCTION(2, 167),
MTK_FUNCTION(0, "GPIO155"), MTK_FUNCTION(0, "GPIO155"),
MTK_FUNCTION(2, "EINT167") MTK_FUNCTION(2, "EINT167")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(156, "TDP1/LVDS(TDP1)"),
PINCTRL_PIN(156, "TDP1/LVDS(TDP1)"),
"V2", "mt8135", "V2", "mt8135",
MTK_EINT_FUNCTION(2, 166), MTK_EINT_FUNCTION(2, 166),
MTK_FUNCTION(0, "GPIO156"), MTK_FUNCTION(0, "GPIO156"),
MTK_FUNCTION(2, "EINT166") MTK_FUNCTION(2, "EINT166")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(157, "TDN0/LVDS(TDN0)"),
PINCTRL_PIN(157, "TDN0/LVDS(TDN0)"),
"U3", "mt8135", "U3", "mt8135",
MTK_EINT_FUNCTION(2, 165), MTK_EINT_FUNCTION(2, 165),
MTK_FUNCTION(0, "GPIO157"), MTK_FUNCTION(0, "GPIO157"),
MTK_FUNCTION(2, "EINT165") MTK_FUNCTION(2, "EINT165")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(158, "TDP0/LVDS(TDP0)"),
PINCTRL_PIN(158, "TDP0/LVDS(TDP0)"),
"U2", "mt8135", "U2", "mt8135",
MTK_EINT_FUNCTION(2, 164), MTK_EINT_FUNCTION(2, 164),
MTK_FUNCTION(0, "GPIO158"), MTK_FUNCTION(0, "GPIO158"),
MTK_FUNCTION(2, "EINT164") MTK_FUNCTION(2, "EINT164")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(159, "RDN3"),
PINCTRL_PIN(159, "RDN3"),
"N5", "mt8135", "N5", "mt8135",
MTK_EINT_FUNCTION(2, 18), MTK_EINT_FUNCTION(2, 18),
MTK_FUNCTION(0, "GPIO159"), MTK_FUNCTION(0, "GPIO159"),
MTK_FUNCTION(2, "EINT18") MTK_FUNCTION(2, "EINT18")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(160, "RDP3"),
PINCTRL_PIN(160, "RDP3"),
"N4", "mt8135", "N4", "mt8135",
MTK_EINT_FUNCTION(2, 30), MTK_EINT_FUNCTION(2, 30),
MTK_FUNCTION(0, "GPIO160"), MTK_FUNCTION(0, "GPIO160"),
MTK_FUNCTION(2, "EINT30") MTK_FUNCTION(2, "EINT30")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(161, "RDN2"),
PINCTRL_PIN(161, "RDN2"),
"T2", "mt8135", "T2", "mt8135",
MTK_EINT_FUNCTION(2, 31), MTK_EINT_FUNCTION(2, 31),
MTK_FUNCTION(0, "GPIO161"), MTK_FUNCTION(0, "GPIO161"),
MTK_FUNCTION(2, "EINT31") MTK_FUNCTION(2, "EINT31")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(162, "RDP2"),
PINCTRL_PIN(162, "RDP2"),
"T3", "mt8135", "T3", "mt8135",
MTK_EINT_FUNCTION(2, 32), MTK_EINT_FUNCTION(2, 32),
MTK_FUNCTION(0, "GPIO162"), MTK_FUNCTION(0, "GPIO162"),
MTK_FUNCTION(2, "EINT32") MTK_FUNCTION(2, "EINT32")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(163, "RCN"),
PINCTRL_PIN(163, "RCN"),
"P2", "mt8135", "P2", "mt8135",
MTK_EINT_FUNCTION(2, 33), MTK_EINT_FUNCTION(2, 33),
MTK_FUNCTION(0, "GPIO163"), MTK_FUNCTION(0, "GPIO163"),
MTK_FUNCTION(2, "EINT33") MTK_FUNCTION(2, "EINT33")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(164, "RCP"),
PINCTRL_PIN(164, "RCP"),
"P3", "mt8135", "P3", "mt8135",
MTK_EINT_FUNCTION(2, 39), MTK_EINT_FUNCTION(2, 39),
MTK_FUNCTION(0, "GPIO164"), MTK_FUNCTION(0, "GPIO164"),
MTK_FUNCTION(2, "EINT39") MTK_FUNCTION(2, "EINT39")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(165, "RDN1"),
PINCTRL_PIN(165, "RDN1"),
"R3", "mt8135", "R3", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO165") MTK_FUNCTION(0, "GPIO165")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(166, "RDP1"),
PINCTRL_PIN(166, "RDP1"),
"R2", "mt8135", "R2", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO166") MTK_FUNCTION(0, "GPIO166")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(167, "RDN0"),
PINCTRL_PIN(167, "RDN0"),
"N3", "mt8135", "N3", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO167") MTK_FUNCTION(0, "GPIO167")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(168, "RDP0"),
PINCTRL_PIN(168, "RDP0"),
"N2", "mt8135", "N2", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO168") MTK_FUNCTION(0, "GPIO168")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(169, "RDN1_A"),
PINCTRL_PIN(169, "RDN1_A"),
"M4", "mt8135", "M4", "mt8135",
MTK_EINT_FUNCTION(2, 175), MTK_EINT_FUNCTION(2, 175),
MTK_FUNCTION(0, "GPIO169"), MTK_FUNCTION(0, "GPIO169"),
MTK_FUNCTION(1, "CMDAT6"), MTK_FUNCTION(1, "CMDAT6"),
MTK_FUNCTION(2, "EINT175") MTK_FUNCTION(2, "EINT175")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(170, "RDP1_A"),
PINCTRL_PIN(170, "RDP1_A"),
"M3", "mt8135", "M3", "mt8135",
MTK_EINT_FUNCTION(2, 174), MTK_EINT_FUNCTION(2, 174),
MTK_FUNCTION(0, "GPIO170"), MTK_FUNCTION(0, "GPIO170"),
MTK_FUNCTION(1, "CMDAT7"), MTK_FUNCTION(1, "CMDAT7"),
MTK_FUNCTION(2, "EINT174") MTK_FUNCTION(2, "EINT174")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(171, "RCN_A"),
PINCTRL_PIN(171, "RCN_A"),
"L3", "mt8135", "L3", "mt8135",
MTK_EINT_FUNCTION(2, 171), MTK_EINT_FUNCTION(2, 171),
MTK_FUNCTION(0, "GPIO171"), MTK_FUNCTION(0, "GPIO171"),
MTK_FUNCTION(1, "CMDAT8"), MTK_FUNCTION(1, "CMDAT8"),
MTK_FUNCTION(2, "EINT171") MTK_FUNCTION(2, "EINT171")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(172, "RCP_A"),
PINCTRL_PIN(172, "RCP_A"),
"L2", "mt8135", "L2", "mt8135",
MTK_EINT_FUNCTION(2, 170), MTK_EINT_FUNCTION(2, 170),
MTK_FUNCTION(0, "GPIO172"), MTK_FUNCTION(0, "GPIO172"),
MTK_FUNCTION(1, "CMDAT9"), MTK_FUNCTION(1, "CMDAT9"),
MTK_FUNCTION(2, "EINT170") MTK_FUNCTION(2, "EINT170")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(173, "RDN0_A"),
PINCTRL_PIN(173, "RDN0_A"),
"M2", "mt8135", "M2", "mt8135",
MTK_EINT_FUNCTION(2, 173), MTK_EINT_FUNCTION(2, 173),
MTK_FUNCTION(0, "GPIO173"), MTK_FUNCTION(0, "GPIO173"),
MTK_FUNCTION(1, "CMHSYNC"), MTK_FUNCTION(1, "CMHSYNC"),
MTK_FUNCTION(2, "EINT173") MTK_FUNCTION(2, "EINT173")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(174, "RDP0_A"),
PINCTRL_PIN(174, "RDP0_A"),
"M1", "mt8135", "M1", "mt8135",
MTK_EINT_FUNCTION(2, 172), MTK_EINT_FUNCTION(2, 172),
MTK_FUNCTION(0, "GPIO174"), MTK_FUNCTION(0, "GPIO174"),
MTK_FUNCTION(1, "CMVSYNC"), MTK_FUNCTION(1, "CMVSYNC"),
MTK_FUNCTION(2, "EINT172") MTK_FUNCTION(2, "EINT172")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(175, "RDN1_B"),
PINCTRL_PIN(175, "RDN1_B"),
"H2", "mt8135", "H2", "mt8135",
MTK_EINT_FUNCTION(2, 181), MTK_EINT_FUNCTION(2, 181),
MTK_FUNCTION(0, "GPIO175"), MTK_FUNCTION(0, "GPIO175"),
...@@ -1824,8 +1648,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1824,8 +1648,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT181"), MTK_FUNCTION(2, "EINT181"),
MTK_FUNCTION(3, "CMCSD2") MTK_FUNCTION(3, "CMCSD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(176, "RDP1_B"),
PINCTRL_PIN(176, "RDP1_B"),
"H1", "mt8135", "H1", "mt8135",
MTK_EINT_FUNCTION(2, 180), MTK_EINT_FUNCTION(2, 180),
MTK_FUNCTION(0, "GPIO176"), MTK_FUNCTION(0, "GPIO176"),
...@@ -1833,24 +1656,21 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1833,24 +1656,21 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT180"), MTK_FUNCTION(2, "EINT180"),
MTK_FUNCTION(3, "CMCSD3") MTK_FUNCTION(3, "CMCSD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(177, "RCN_B"),
PINCTRL_PIN(177, "RCN_B"),
"K3", "mt8135", "K3", "mt8135",
MTK_EINT_FUNCTION(2, 177), MTK_EINT_FUNCTION(2, 177),
MTK_FUNCTION(0, "GPIO177"), MTK_FUNCTION(0, "GPIO177"),
MTK_FUNCTION(1, "CMDAT4"), MTK_FUNCTION(1, "CMDAT4"),
MTK_FUNCTION(2, "EINT177") MTK_FUNCTION(2, "EINT177")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(178, "RCP_B"),
PINCTRL_PIN(178, "RCP_B"),
"K2", "mt8135", "K2", "mt8135",
MTK_EINT_FUNCTION(2, 176), MTK_EINT_FUNCTION(2, 176),
MTK_FUNCTION(0, "GPIO178"), MTK_FUNCTION(0, "GPIO178"),
MTK_FUNCTION(1, "CMDAT5"), MTK_FUNCTION(1, "CMDAT5"),
MTK_FUNCTION(2, "EINT176") MTK_FUNCTION(2, "EINT176")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(179, "RDN0_B"),
PINCTRL_PIN(179, "RDN0_B"),
"J3", "mt8135", "J3", "mt8135",
MTK_EINT_FUNCTION(2, 179), MTK_EINT_FUNCTION(2, 179),
MTK_FUNCTION(0, "GPIO179"), MTK_FUNCTION(0, "GPIO179"),
...@@ -1858,8 +1678,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1858,8 +1678,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT179"), MTK_FUNCTION(2, "EINT179"),
MTK_FUNCTION(3, "CMCSD0") MTK_FUNCTION(3, "CMCSD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(180, "RDP0_B"),
PINCTRL_PIN(180, "RDP0_B"),
"J2", "mt8135", "J2", "mt8135",
MTK_EINT_FUNCTION(2, 178), MTK_EINT_FUNCTION(2, 178),
MTK_FUNCTION(0, "GPIO180"), MTK_FUNCTION(0, "GPIO180"),
...@@ -1867,8 +1686,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1867,8 +1686,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(2, "EINT178"), MTK_FUNCTION(2, "EINT178"),
MTK_FUNCTION(3, "CMCSD1") MTK_FUNCTION(3, "CMCSD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(181, "CMPCLK"),
PINCTRL_PIN(181, "CMPCLK"),
"K4", "mt8135", "K4", "mt8135",
MTK_EINT_FUNCTION(2, 182), MTK_EINT_FUNCTION(2, 182),
MTK_FUNCTION(0, "GPIO181"), MTK_FUNCTION(0, "GPIO181"),
...@@ -1880,8 +1698,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1880,8 +1698,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "VENC_TEST_CK"), MTK_FUNCTION(6, "VENC_TEST_CK"),
MTK_FUNCTION(7, "TESTA_OUT27") MTK_FUNCTION(7, "TESTA_OUT27")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(182, "CMMCLK"),
PINCTRL_PIN(182, "CMMCLK"),
"J5", "mt8135", "J5", "mt8135",
MTK_EINT_FUNCTION(2, 183), MTK_EINT_FUNCTION(2, 183),
MTK_FUNCTION(0, "GPIO182"), MTK_FUNCTION(0, "GPIO182"),
...@@ -1890,8 +1707,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1890,8 +1707,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "TS_AUXADC_SEL[2]"), MTK_FUNCTION(5, "TS_AUXADC_SEL[2]"),
MTK_FUNCTION(7, "TESTA_OUT28") MTK_FUNCTION(7, "TESTA_OUT28")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(183, "CMRST"),
PINCTRL_PIN(183, "CMRST"),
"J6", "mt8135", "J6", "mt8135",
MTK_EINT_FUNCTION(2, 185), MTK_EINT_FUNCTION(2, 185),
MTK_FUNCTION(0, "GPIO183"), MTK_FUNCTION(0, "GPIO183"),
...@@ -1900,8 +1716,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1900,8 +1716,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "TS_AUXADC_SEL[1]"), MTK_FUNCTION(5, "TS_AUXADC_SEL[1]"),
MTK_FUNCTION(7, "TESTA_OUT30") MTK_FUNCTION(7, "TESTA_OUT30")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(184, "CMPDN"),
PINCTRL_PIN(184, "CMPDN"),
"J4", "mt8135", "J4", "mt8135",
MTK_EINT_FUNCTION(2, 184), MTK_EINT_FUNCTION(2, 184),
MTK_FUNCTION(0, "GPIO184"), MTK_FUNCTION(0, "GPIO184"),
...@@ -1910,8 +1725,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1910,8 +1725,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "TS_AUXADC_SEL[0]"), MTK_FUNCTION(5, "TS_AUXADC_SEL[0]"),
MTK_FUNCTION(7, "TESTA_OUT29") MTK_FUNCTION(7, "TESTA_OUT29")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(185, "CMFLASH"),
PINCTRL_PIN(185, "CMFLASH"),
"G4", "mt8135", "G4", "mt8135",
MTK_EINT_FUNCTION(2, 186), MTK_EINT_FUNCTION(2, 186),
MTK_FUNCTION(0, "GPIO185"), MTK_FUNCTION(0, "GPIO185"),
...@@ -1921,8 +1735,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1921,8 +1735,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "MFG_TEST_CK_1"), MTK_FUNCTION(6, "MFG_TEST_CK_1"),
MTK_FUNCTION(7, "TESTA_OUT31") MTK_FUNCTION(7, "TESTA_OUT31")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(186, "MRG_I2S_PCM_CLK"),
PINCTRL_PIN(186, "MRG_I2S_PCM_CLK"),
"F5", "mt8135", "F5", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO186"), MTK_FUNCTION(0, "GPIO186"),
...@@ -1933,8 +1746,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1933,8 +1746,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "IMG_TEST_CK"), MTK_FUNCTION(6, "IMG_TEST_CK"),
MTK_FUNCTION(7, "USB_SCL") MTK_FUNCTION(7, "USB_SCL")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(187, "MRG_I2S_PCM_SYNC"),
PINCTRL_PIN(187, "MRG_I2S_PCM_SYNC"),
"G6", "mt8135", "G6", "mt8135",
MTK_EINT_FUNCTION(2, 16), MTK_EINT_FUNCTION(2, 16),
MTK_FUNCTION(0, "GPIO187"), MTK_FUNCTION(0, "GPIO187"),
...@@ -1944,8 +1756,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1944,8 +1756,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PCM0_WS"), MTK_FUNCTION(4, "PCM0_WS"),
MTK_FUNCTION(6, "DISP_TEST_CK") MTK_FUNCTION(6, "DISP_TEST_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(188, "MRG_I2S_PCM_RX"),
PINCTRL_PIN(188, "MRG_I2S_PCM_RX"),
"G3", "mt8135", "G3", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO188"), MTK_FUNCTION(0, "GPIO188"),
...@@ -1956,8 +1767,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1956,8 +1767,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(6, "MFG_TEST_CK"), MTK_FUNCTION(6, "MFG_TEST_CK"),
MTK_FUNCTION(7, "USB_SDA") MTK_FUNCTION(7, "USB_SDA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(189, "MRG_I2S_PCM_TX"),
PINCTRL_PIN(189, "MRG_I2S_PCM_TX"),
"G5", "mt8135", "G5", "mt8135",
MTK_EINT_FUNCTION(2, 17), MTK_EINT_FUNCTION(2, 17),
MTK_FUNCTION(0, "GPIO189"), MTK_FUNCTION(0, "GPIO189"),
...@@ -1967,15 +1777,13 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1967,15 +1777,13 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PCM0_DO"), MTK_FUNCTION(4, "PCM0_DO"),
MTK_FUNCTION(6, "VDEC_TEST_CK") MTK_FUNCTION(6, "VDEC_TEST_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(190, "SRCLKENAI"),
PINCTRL_PIN(190, "SRCLKENAI"),
"K5", "mt8135", "K5", "mt8135",
MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
MTK_FUNCTION(0, "GPIO190"), MTK_FUNCTION(0, "GPIO190"),
MTK_FUNCTION(1, "SRCLKENAI") MTK_FUNCTION(1, "SRCLKENAI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(191, "URXD3"),
PINCTRL_PIN(191, "URXD3"),
"C3", "mt8135", "C3", "mt8135",
MTK_EINT_FUNCTION(2, 87), MTK_EINT_FUNCTION(2, 87),
MTK_FUNCTION(0, "GPIO191"), MTK_FUNCTION(0, "GPIO191"),
...@@ -1985,8 +1793,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1985,8 +1793,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "TS_AUX_ST"), MTK_FUNCTION(5, "TS_AUX_ST"),
MTK_FUNCTION(6, "PWM4") MTK_FUNCTION(6, "PWM4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(192, "UTXD3"),
PINCTRL_PIN(192, "UTXD3"),
"B2", "mt8135", "B2", "mt8135",
MTK_EINT_FUNCTION(2, 86), MTK_EINT_FUNCTION(2, 86),
MTK_FUNCTION(0, "GPIO192"), MTK_FUNCTION(0, "GPIO192"),
...@@ -1996,8 +1803,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -1996,8 +1803,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "TS_AUX_CS_B"), MTK_FUNCTION(5, "TS_AUX_CS_B"),
MTK_FUNCTION(6, "PWM3") MTK_FUNCTION(6, "PWM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(193, "SDA2"),
PINCTRL_PIN(193, "SDA2"),
"G2", "mt8135", "G2", "mt8135",
MTK_EINT_FUNCTION(2, 95), MTK_EINT_FUNCTION(2, 95),
MTK_FUNCTION(0, "GPIO193"), MTK_FUNCTION(0, "GPIO193"),
...@@ -2007,8 +1813,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2007,8 +1813,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM5"), MTK_FUNCTION(4, "PWM5"),
MTK_FUNCTION(5, "TS_AUX_PWDB") MTK_FUNCTION(5, "TS_AUX_PWDB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(194, "SCL2"),
PINCTRL_PIN(194, "SCL2"),
"F4", "mt8135", "F4", "mt8135",
MTK_EINT_FUNCTION(2, 94), MTK_EINT_FUNCTION(2, 94),
MTK_FUNCTION(0, "GPIO194"), MTK_FUNCTION(0, "GPIO194"),
...@@ -2018,8 +1823,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2018,8 +1823,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM4"), MTK_FUNCTION(4, "PWM4"),
MTK_FUNCTION(5, "TS_AUXADC_TEST_CK") MTK_FUNCTION(5, "TS_AUXADC_TEST_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(195, "SDA1"),
PINCTRL_PIN(195, "SDA1"),
"F2", "mt8135", "F2", "mt8135",
MTK_EINT_FUNCTION(2, 93), MTK_EINT_FUNCTION(2, 93),
MTK_FUNCTION(0, "GPIO195"), MTK_FUNCTION(0, "GPIO195"),
...@@ -2029,8 +1833,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2029,8 +1833,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM3"), MTK_FUNCTION(4, "PWM3"),
MTK_FUNCTION(5, "TS_AUX_SCLK_PWDB") MTK_FUNCTION(5, "TS_AUX_SCLK_PWDB")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(196, "SCL1"),
PINCTRL_PIN(196, "SCL1"),
"F3", "mt8135", "F3", "mt8135",
MTK_EINT_FUNCTION(2, 92), MTK_EINT_FUNCTION(2, 92),
MTK_FUNCTION(0, "GPIO196"), MTK_FUNCTION(0, "GPIO196"),
...@@ -2040,8 +1843,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2040,8 +1843,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM2"), MTK_FUNCTION(4, "PWM2"),
MTK_FUNCTION(5, "TS_AUX_DIN") MTK_FUNCTION(5, "TS_AUX_DIN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(197, "MSDC3_DAT2"),
PINCTRL_PIN(197, "MSDC3_DAT2"),
"E1", "mt8135", "E1", "mt8135",
MTK_EINT_FUNCTION(2, 71), MTK_EINT_FUNCTION(2, 71),
MTK_FUNCTION(0, "GPIO197"), MTK_FUNCTION(0, "GPIO197"),
...@@ -2052,8 +1854,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2052,8 +1854,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM4"), MTK_FUNCTION(5, "CLKM4"),
MTK_FUNCTION(6, "MFG_TEST_CK_2") MTK_FUNCTION(6, "MFG_TEST_CK_2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(198, "MSDC3_DAT3"),
PINCTRL_PIN(198, "MSDC3_DAT3"),
"C2", "mt8135", "C2", "mt8135",
MTK_EINT_FUNCTION(2, 72), MTK_EINT_FUNCTION(2, 72),
MTK_FUNCTION(0, "GPIO198"), MTK_FUNCTION(0, "GPIO198"),
...@@ -2064,8 +1865,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2064,8 +1865,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM5"), MTK_FUNCTION(5, "CLKM5"),
MTK_FUNCTION(6, "MFG_TEST_CK_3") MTK_FUNCTION(6, "MFG_TEST_CK_3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(199, "MSDC3_CMD"),
PINCTRL_PIN(199, "MSDC3_CMD"),
"D2", "mt8135", "D2", "mt8135",
MTK_EINT_FUNCTION(2, 68), MTK_EINT_FUNCTION(2, 68),
MTK_FUNCTION(0, "GPIO199"), MTK_FUNCTION(0, "GPIO199"),
...@@ -2076,8 +1876,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2076,8 +1876,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(5, "CLKM1"), MTK_FUNCTION(5, "CLKM1"),
MTK_FUNCTION(6, "MFG_TEST_CK_4") MTK_FUNCTION(6, "MFG_TEST_CK_4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(200, "MSDC3_CLK"),
PINCTRL_PIN(200, "MSDC3_CLK"),
"E2", "mt8135", "E2", "mt8135",
MTK_EINT_FUNCTION(2, 67), MTK_EINT_FUNCTION(2, 67),
MTK_FUNCTION(0, "GPIO200"), MTK_FUNCTION(0, "GPIO200"),
...@@ -2087,8 +1886,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2087,8 +1886,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM1"), MTK_FUNCTION(4, "PWM1"),
MTK_FUNCTION(5, "CLKM0") MTK_FUNCTION(5, "CLKM0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(201, "MSDC3_DAT1"),
PINCTRL_PIN(201, "MSDC3_DAT1"),
"D3", "mt8135", "D3", "mt8135",
MTK_EINT_FUNCTION(2, 70), MTK_EINT_FUNCTION(2, 70),
MTK_FUNCTION(0, "GPIO201"), MTK_FUNCTION(0, "GPIO201"),
...@@ -2098,8 +1896,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = { ...@@ -2098,8 +1896,7 @@ static const struct mtk_desc_pin mtk_pins_mt8135[] = {
MTK_FUNCTION(4, "PWM4"), MTK_FUNCTION(4, "PWM4"),
MTK_FUNCTION(5, "CLKM3") MTK_FUNCTION(5, "CLKM3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(202, "MSDC3_DAT0"),
PINCTRL_PIN(202, "MSDC3_DAT0"),
"E3", "mt8135", "E3", "mt8135",
MTK_EINT_FUNCTION(2, 69), MTK_EINT_FUNCTION(2, 69),
MTK_FUNCTION(0, "GPIO202"), MTK_FUNCTION(0, "GPIO202"),
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
#include "pinctrl-mtk-common.h" #include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt8173[] = { static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_PIN( MTK_PIN(PINCTRL_PIN(0, "EINT0"),
PINCTRL_PIN(0, "EINT0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 0), MTK_EINT_FUNCTION(0, 0),
MTK_FUNCTION(0, "GPIO0"), MTK_FUNCTION(0, "GPIO0"),
...@@ -30,8 +29,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -30,8 +29,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "UTXD0"), MTK_FUNCTION(4, "UTXD0"),
MTK_FUNCTION(7, "DBG_MON_A_20_") MTK_FUNCTION(7, "DBG_MON_A_20_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(1, "EINT1"),
PINCTRL_PIN(1, "EINT1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 1), MTK_EINT_FUNCTION(0, 1),
MTK_FUNCTION(0, "GPIO1"), MTK_FUNCTION(0, "GPIO1"),
...@@ -41,8 +39,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -41,8 +39,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "URXD0"), MTK_FUNCTION(4, "URXD0"),
MTK_FUNCTION(7, "DBG_MON_A_21_") MTK_FUNCTION(7, "DBG_MON_A_21_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(2, "EINT2"),
PINCTRL_PIN(2, "EINT2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 2), MTK_EINT_FUNCTION(0, 2),
MTK_FUNCTION(0, "GPIO2"), MTK_FUNCTION(0, "GPIO2"),
...@@ -52,8 +49,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -52,8 +49,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "UTXD3"), MTK_FUNCTION(4, "UTXD3"),
MTK_FUNCTION(7, "DBG_MON_A_22_") MTK_FUNCTION(7, "DBG_MON_A_22_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(3, "EINT3"),
PINCTRL_PIN(3, "EINT3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 3), MTK_EINT_FUNCTION(0, 3),
MTK_FUNCTION(0, "GPIO3"), MTK_FUNCTION(0, "GPIO3"),
...@@ -63,8 +59,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -63,8 +59,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "URXD3"), MTK_FUNCTION(4, "URXD3"),
MTK_FUNCTION(7, "DBG_MON_A_23_") MTK_FUNCTION(7, "DBG_MON_A_23_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(4, "EINT4"),
PINCTRL_PIN(4, "EINT4"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 4), MTK_EINT_FUNCTION(0, 4),
MTK_FUNCTION(0, "GPIO4"), MTK_FUNCTION(0, "GPIO4"),
...@@ -74,8 +69,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -74,8 +69,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "UCTS3"), MTK_FUNCTION(4, "UCTS3"),
MTK_FUNCTION(6, "SFWP_B") MTK_FUNCTION(6, "SFWP_B")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(5, "EINT5"),
PINCTRL_PIN(5, "EINT5"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 5), MTK_EINT_FUNCTION(0, 5),
MTK_FUNCTION(0, "GPIO5"), MTK_FUNCTION(0, "GPIO5"),
...@@ -86,8 +80,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -86,8 +80,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"), MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"),
MTK_FUNCTION(6, "SFOUT") MTK_FUNCTION(6, "SFOUT")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(6, "EINT6"),
PINCTRL_PIN(6, "EINT6"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 6), MTK_EINT_FUNCTION(0, 6),
MTK_FUNCTION(0, "GPIO6"), MTK_FUNCTION(0, "GPIO6"),
...@@ -97,8 +90,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -97,8 +90,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"), MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"),
MTK_FUNCTION(6, "SFCS0") MTK_FUNCTION(6, "SFCS0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(7, "EINT7"),
PINCTRL_PIN(7, "EINT7"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 7), MTK_EINT_FUNCTION(0, 7),
MTK_FUNCTION(0, "GPIO7"), MTK_FUNCTION(0, "GPIO7"),
...@@ -108,8 +100,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -108,8 +100,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"), MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"),
MTK_FUNCTION(6, "SFHOLD") MTK_FUNCTION(6, "SFHOLD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(8, "EINT8"),
PINCTRL_PIN(8, "EINT8"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 8), MTK_EINT_FUNCTION(0, 8),
MTK_FUNCTION(0, "GPIO8"), MTK_FUNCTION(0, "GPIO8"),
...@@ -120,8 +111,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -120,8 +111,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"), MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"),
MTK_FUNCTION(6, "SFIN") MTK_FUNCTION(6, "SFIN")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(9, "EINT9"),
PINCTRL_PIN(9, "EINT9"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 9), MTK_EINT_FUNCTION(0, 9),
MTK_FUNCTION(0, "GPIO9"), MTK_FUNCTION(0, "GPIO9"),
...@@ -131,8 +121,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -131,8 +121,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"), MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"),
MTK_FUNCTION(6, "SFCK") MTK_FUNCTION(6, "SFCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(10, "EINT10"),
PINCTRL_PIN(10, "EINT10"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 10), MTK_EINT_FUNCTION(0, 10),
MTK_FUNCTION(0, "GPIO10"), MTK_FUNCTION(0, "GPIO10"),
...@@ -142,8 +131,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -142,8 +131,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "PWM4"), MTK_FUNCTION(4, "PWM4"),
MTK_FUNCTION(5, "IRDA_RXD") MTK_FUNCTION(5, "IRDA_RXD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(11, "EINT11"),
PINCTRL_PIN(11, "EINT11"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 11), MTK_EINT_FUNCTION(0, 11),
MTK_FUNCTION(0, "GPIO11"), MTK_FUNCTION(0, "GPIO11"),
...@@ -155,8 +143,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -155,8 +143,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "USB_DRVVBUS_P1"), MTK_FUNCTION(6, "USB_DRVVBUS_P1"),
MTK_FUNCTION(7, "DBG_MON_B_30_") MTK_FUNCTION(7, "DBG_MON_B_30_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(12, "EINT12"),
PINCTRL_PIN(12, "EINT12"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 12), MTK_EINT_FUNCTION(0, 12),
MTK_FUNCTION(0, "GPIO12"), MTK_FUNCTION(0, "GPIO12"),
...@@ -166,8 +153,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -166,8 +153,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "I2S2_WS"), MTK_FUNCTION(5, "I2S2_WS"),
MTK_FUNCTION(7, "DBG_MON_B_32_") MTK_FUNCTION(7, "DBG_MON_B_32_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(13, "EINT13"),
PINCTRL_PIN(13, "EINT13"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 13), MTK_EINT_FUNCTION(0, 13),
MTK_FUNCTION(0, "GPIO13"), MTK_FUNCTION(0, "GPIO13"),
...@@ -177,8 +163,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -177,8 +163,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "I2S2_BCK"), MTK_FUNCTION(5, "I2S2_BCK"),
MTK_FUNCTION(7, "DBG_MON_A_32_") MTK_FUNCTION(7, "DBG_MON_A_32_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(14, "EINT14"),
PINCTRL_PIN(14, "EINT14"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 14), MTK_EINT_FUNCTION(0, 14),
MTK_FUNCTION(0, "GPIO14"), MTK_FUNCTION(0, "GPIO14"),
...@@ -187,8 +172,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -187,8 +172,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "CLKM2"), MTK_FUNCTION(4, "CLKM2"),
MTK_FUNCTION(7, "DBG_MON_B_6_") MTK_FUNCTION(7, "DBG_MON_B_6_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(15, "EINT15"),
PINCTRL_PIN(15, "EINT15"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 15), MTK_EINT_FUNCTION(0, 15),
MTK_FUNCTION(0, "GPIO15"), MTK_FUNCTION(0, "GPIO15"),
...@@ -198,8 +182,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -198,8 +182,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "CLKM3"), MTK_FUNCTION(4, "CLKM3"),
MTK_FUNCTION(7, "DBG_MON_B_29_") MTK_FUNCTION(7, "DBG_MON_B_29_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(16, "IDDIG"),
PINCTRL_PIN(16, "IDDIG"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(1, 16), MTK_EINT_FUNCTION(1, 16),
MTK_FUNCTION(0, "GPIO16"), MTK_FUNCTION(0, "GPIO16"),
...@@ -207,156 +190,135 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -207,156 +190,135 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "CMFLASH"), MTK_FUNCTION(2, "CMFLASH"),
MTK_FUNCTION(4, "PWM5") MTK_FUNCTION(4, "PWM5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(17, "WATCHDOG"),
PINCTRL_PIN(17, "WATCHDOG"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 17), MTK_EINT_FUNCTION(0, 17),
MTK_FUNCTION(0, "GPIO17"), MTK_FUNCTION(0, "GPIO17"),
MTK_FUNCTION(1, "WATCHDOG_AO") MTK_FUNCTION(1, "WATCHDOG_AO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(18, "CEC"),
PINCTRL_PIN(18, "CEC"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 18), MTK_EINT_FUNCTION(0, 18),
MTK_FUNCTION(0, "GPIO18"), MTK_FUNCTION(0, "GPIO18"),
MTK_FUNCTION(1, "CEC") MTK_FUNCTION(1, "CEC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(19, "HDMISCK"),
PINCTRL_PIN(19, "HDMISCK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 19), MTK_EINT_FUNCTION(0, 19),
MTK_FUNCTION(0, "GPIO19"), MTK_FUNCTION(0, "GPIO19"),
MTK_FUNCTION(1, "HDMISCK"), MTK_FUNCTION(1, "HDMISCK"),
MTK_FUNCTION(2, "HDCP_SCL") MTK_FUNCTION(2, "HDCP_SCL")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(20, "HDMISD"),
PINCTRL_PIN(20, "HDMISD"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 20), MTK_EINT_FUNCTION(0, 20),
MTK_FUNCTION(0, "GPIO20"), MTK_FUNCTION(0, "GPIO20"),
MTK_FUNCTION(1, "HDMISD"), MTK_FUNCTION(1, "HDMISD"),
MTK_FUNCTION(2, "HDCP_SDA") MTK_FUNCTION(2, "HDCP_SDA")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(21, "HTPLG"),
PINCTRL_PIN(21, "HTPLG"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 21), MTK_EINT_FUNCTION(0, 21),
MTK_FUNCTION(0, "GPIO21"), MTK_FUNCTION(0, "GPIO21"),
MTK_FUNCTION(1, "HTPLG") MTK_FUNCTION(1, "HTPLG")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(22, "MSDC3_DAT0"),
PINCTRL_PIN(22, "MSDC3_DAT0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 22), MTK_EINT_FUNCTION(0, 22),
MTK_FUNCTION(0, "GPIO22"), MTK_FUNCTION(0, "GPIO22"),
MTK_FUNCTION(1, "MSDC3_DAT0") MTK_FUNCTION(1, "MSDC3_DAT0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(23, "MSDC3_DAT1"),
PINCTRL_PIN(23, "MSDC3_DAT1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 23), MTK_EINT_FUNCTION(0, 23),
MTK_FUNCTION(0, "GPIO23"), MTK_FUNCTION(0, "GPIO23"),
MTK_FUNCTION(1, "MSDC3_DAT1") MTK_FUNCTION(1, "MSDC3_DAT1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(24, "MSDC3_DAT2"),
PINCTRL_PIN(24, "MSDC3_DAT2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 24), MTK_EINT_FUNCTION(0, 24),
MTK_FUNCTION(0, "GPIO24"), MTK_FUNCTION(0, "GPIO24"),
MTK_FUNCTION(1, "MSDC3_DAT2") MTK_FUNCTION(1, "MSDC3_DAT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(25, "MSDC3_DAT3"),
PINCTRL_PIN(25, "MSDC3_DAT3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 25), MTK_EINT_FUNCTION(0, 25),
MTK_FUNCTION(0, "GPIO25"), MTK_FUNCTION(0, "GPIO25"),
MTK_FUNCTION(1, "MSDC3_DAT3") MTK_FUNCTION(1, "MSDC3_DAT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(26, "MSDC3_CLK"),
PINCTRL_PIN(26, "MSDC3_CLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 26), MTK_EINT_FUNCTION(0, 26),
MTK_FUNCTION(0, "GPIO26"), MTK_FUNCTION(0, "GPIO26"),
MTK_FUNCTION(1, "MSDC3_CLK") MTK_FUNCTION(1, "MSDC3_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(27, "MSDC3_CMD"),
PINCTRL_PIN(27, "MSDC3_CMD"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 27), MTK_EINT_FUNCTION(0, 27),
MTK_FUNCTION(0, "GPIO27"), MTK_FUNCTION(0, "GPIO27"),
MTK_FUNCTION(1, "MSDC3_CMD") MTK_FUNCTION(1, "MSDC3_CMD")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(28, "MSDC3_DSL"),
PINCTRL_PIN(28, "MSDC3_DSL"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 28), MTK_EINT_FUNCTION(0, 28),
MTK_FUNCTION(0, "GPIO28"), MTK_FUNCTION(0, "GPIO28"),
MTK_FUNCTION(1, "MSDC3_DSL") MTK_FUNCTION(1, "MSDC3_DSL")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(29, "UCTS2"),
PINCTRL_PIN(29, "UCTS2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 29), MTK_EINT_FUNCTION(0, 29),
MTK_FUNCTION(0, "GPIO29"), MTK_FUNCTION(0, "GPIO29"),
MTK_FUNCTION(1, "UCTS2") MTK_FUNCTION(1, "UCTS2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(30, "URTS2"),
PINCTRL_PIN(30, "URTS2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 30), MTK_EINT_FUNCTION(0, 30),
MTK_FUNCTION(0, "GPIO30"), MTK_FUNCTION(0, "GPIO30"),
MTK_FUNCTION(1, "URTS2") MTK_FUNCTION(1, "URTS2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(31, "URXD2"),
PINCTRL_PIN(31, "URXD2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 31), MTK_EINT_FUNCTION(0, 31),
MTK_FUNCTION(0, "GPIO31"), MTK_FUNCTION(0, "GPIO31"),
MTK_FUNCTION(1, "URXD2"), MTK_FUNCTION(1, "URXD2"),
MTK_FUNCTION(2, "UTXD2") MTK_FUNCTION(2, "UTXD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(32, "UTXD2"),
PINCTRL_PIN(32, "UTXD2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 32), MTK_EINT_FUNCTION(0, 32),
MTK_FUNCTION(0, "GPIO32"), MTK_FUNCTION(0, "GPIO32"),
MTK_FUNCTION(1, "UTXD2"), MTK_FUNCTION(1, "UTXD2"),
MTK_FUNCTION(2, "URXD2") MTK_FUNCTION(2, "URXD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(33, "DAICLK"),
PINCTRL_PIN(33, "DAICLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 33), MTK_EINT_FUNCTION(0, 33),
MTK_FUNCTION(0, "GPIO33"), MTK_FUNCTION(0, "GPIO33"),
MTK_FUNCTION(1, " MRG_CLK"), MTK_FUNCTION(1, " MRG_CLK"),
MTK_FUNCTION(2, "PCM0_CLK") MTK_FUNCTION(2, "PCM0_CLK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(34, "DAIPCMIN"),
PINCTRL_PIN(34, "DAIPCMIN"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 34), MTK_EINT_FUNCTION(0, 34),
MTK_FUNCTION(0, "GPIO34"), MTK_FUNCTION(0, "GPIO34"),
MTK_FUNCTION(1, " MRG_DI"), MTK_FUNCTION(1, " MRG_DI"),
MTK_FUNCTION(2, "PCM0_DI") MTK_FUNCTION(2, "PCM0_DI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(35, "DAIPCMOUT"),
PINCTRL_PIN(35, "DAIPCMOUT"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 35), MTK_EINT_FUNCTION(0, 35),
MTK_FUNCTION(0, "GPIO35"), MTK_FUNCTION(0, "GPIO35"),
MTK_FUNCTION(1, " MRG_DO"), MTK_FUNCTION(1, " MRG_DO"),
MTK_FUNCTION(2, "PCM0_DO") MTK_FUNCTION(2, "PCM0_DO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(36, "DAISYNC"),
PINCTRL_PIN(36, "DAISYNC"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 36), MTK_EINT_FUNCTION(0, 36),
MTK_FUNCTION(0, "GPIO36"), MTK_FUNCTION(0, "GPIO36"),
MTK_FUNCTION(1, " MRG_SYNC"), MTK_FUNCTION(1, " MRG_SYNC"),
MTK_FUNCTION(2, "PCM0_SYNC") MTK_FUNCTION(2, "PCM0_SYNC")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(37, "EINT16"),
PINCTRL_PIN(37, "EINT16"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 37), MTK_EINT_FUNCTION(0, 37),
MTK_FUNCTION(0, "GPIO37"), MTK_FUNCTION(0, "GPIO37"),
...@@ -367,8 +329,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -367,8 +329,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "PWM2"), MTK_FUNCTION(5, "PWM2"),
MTK_FUNCTION(6, "CLKM0") MTK_FUNCTION(6, "CLKM0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(38, "CONN_RST"),
PINCTRL_PIN(38, "CONN_RST"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 38), MTK_EINT_FUNCTION(0, 38),
MTK_FUNCTION(0, "GPIO38"), MTK_FUNCTION(0, "GPIO38"),
...@@ -376,8 +337,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -376,8 +337,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "USB_DRVVBUS_P1"), MTK_FUNCTION(2, "USB_DRVVBUS_P1"),
MTK_FUNCTION(6, "CLKM1") MTK_FUNCTION(6, "CLKM1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(39, "CM2MCLK"),
PINCTRL_PIN(39, "CM2MCLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 39), MTK_EINT_FUNCTION(0, 39),
MTK_FUNCTION(0, "GPIO39"), MTK_FUNCTION(0, "GPIO39"),
...@@ -385,8 +345,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -385,8 +345,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "CMCSD0"), MTK_FUNCTION(2, "CMCSD0"),
MTK_FUNCTION(7, "DBG_MON_A_17_") MTK_FUNCTION(7, "DBG_MON_A_17_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(40, "CMPCLK"),
PINCTRL_PIN(40, "CMPCLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 40), MTK_EINT_FUNCTION(0, 40),
MTK_FUNCTION(0, "GPIO40"), MTK_FUNCTION(0, "GPIO40"),
...@@ -395,125 +354,108 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -395,125 +354,108 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(3, "CMCSD2"), MTK_FUNCTION(3, "CMCSD2"),
MTK_FUNCTION(7, "DBG_MON_A_18_") MTK_FUNCTION(7, "DBG_MON_A_18_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(41, "CMMCLK"),
PINCTRL_PIN(41, "CMMCLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 41), MTK_EINT_FUNCTION(0, 41),
MTK_FUNCTION(0, "GPIO41"), MTK_FUNCTION(0, "GPIO41"),
MTK_FUNCTION(1, "CMMCLK"), MTK_FUNCTION(1, "CMMCLK"),
MTK_FUNCTION(7, "DBG_MON_A_19_") MTK_FUNCTION(7, "DBG_MON_A_19_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(42, "DSI_TE"),
PINCTRL_PIN(42, "DSI_TE"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 42), MTK_EINT_FUNCTION(0, 42),
MTK_FUNCTION(0, "GPIO42"), MTK_FUNCTION(0, "GPIO42"),
MTK_FUNCTION(1, "DSI_TE") MTK_FUNCTION(1, "DSI_TE")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(43, "SDA2"),
PINCTRL_PIN(43, "SDA2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 43), MTK_EINT_FUNCTION(0, 43),
MTK_FUNCTION(0, "GPIO43"), MTK_FUNCTION(0, "GPIO43"),
MTK_FUNCTION(1, "SDA2") MTK_FUNCTION(1, "SDA2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(44, "SCL2"),
PINCTRL_PIN(44, "SCL2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 44), MTK_EINT_FUNCTION(0, 44),
MTK_FUNCTION(0, "GPIO44"), MTK_FUNCTION(0, "GPIO44"),
MTK_FUNCTION(1, "SCL2") MTK_FUNCTION(1, "SCL2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(45, "SDA0"),
PINCTRL_PIN(45, "SDA0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 45), MTK_EINT_FUNCTION(0, 45),
MTK_FUNCTION(0, "GPIO45"), MTK_FUNCTION(0, "GPIO45"),
MTK_FUNCTION(1, "SDA0") MTK_FUNCTION(1, "SDA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(46, "SCL0"),
PINCTRL_PIN(46, "SCL0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 46), MTK_EINT_FUNCTION(0, 46),
MTK_FUNCTION(0, "GPIO46"), MTK_FUNCTION(0, "GPIO46"),
MTK_FUNCTION(1, "SCL0") MTK_FUNCTION(1, "SCL0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(47, "RDN0_A"),
PINCTRL_PIN(47, "RDN0_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 47), MTK_EINT_FUNCTION(0, 47),
MTK_FUNCTION(0, "GPIO47"), MTK_FUNCTION(0, "GPIO47"),
MTK_FUNCTION(1, "CMDAT2") MTK_FUNCTION(1, "CMDAT2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(48, "RDP0_A"),
PINCTRL_PIN(48, "RDP0_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 48), MTK_EINT_FUNCTION(0, 48),
MTK_FUNCTION(0, "GPIO48"), MTK_FUNCTION(0, "GPIO48"),
MTK_FUNCTION(1, "CMDAT3") MTK_FUNCTION(1, "CMDAT3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(49, "RDN1_A"),
PINCTRL_PIN(49, "RDN1_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 49), MTK_EINT_FUNCTION(0, 49),
MTK_FUNCTION(0, "GPIO49"), MTK_FUNCTION(0, "GPIO49"),
MTK_FUNCTION(1, "CMDAT4") MTK_FUNCTION(1, "CMDAT4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(50, "RDP1_A"),
PINCTRL_PIN(50, "RDP1_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 50), MTK_EINT_FUNCTION(0, 50),
MTK_FUNCTION(0, "GPIO50"), MTK_FUNCTION(0, "GPIO50"),
MTK_FUNCTION(1, "CMDAT5") MTK_FUNCTION(1, "CMDAT5")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(51, "RCN_A"),
PINCTRL_PIN(51, "RCN_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 51), MTK_EINT_FUNCTION(0, 51),
MTK_FUNCTION(0, "GPIO51"), MTK_FUNCTION(0, "GPIO51"),
MTK_FUNCTION(1, "CMDAT6") MTK_FUNCTION(1, "CMDAT6")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(52, "RCP_A"),
PINCTRL_PIN(52, "RCP_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 52), MTK_EINT_FUNCTION(0, 52),
MTK_FUNCTION(0, "GPIO52"), MTK_FUNCTION(0, "GPIO52"),
MTK_FUNCTION(1, "CMDAT7") MTK_FUNCTION(1, "CMDAT7")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(53, "RDN2_A"),
PINCTRL_PIN(53, "RDN2_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 53), MTK_EINT_FUNCTION(0, 53),
MTK_FUNCTION(0, "GPIO53"), MTK_FUNCTION(0, "GPIO53"),
MTK_FUNCTION(1, "CMDAT8"), MTK_FUNCTION(1, "CMDAT8"),
MTK_FUNCTION(2, "CMCSD3") MTK_FUNCTION(2, "CMCSD3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(54, "RDP2_A"),
PINCTRL_PIN(54, "RDP2_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 54), MTK_EINT_FUNCTION(0, 54),
MTK_FUNCTION(0, "GPIO54"), MTK_FUNCTION(0, "GPIO54"),
MTK_FUNCTION(1, "CMDAT9"), MTK_FUNCTION(1, "CMDAT9"),
MTK_FUNCTION(2, "CMCSD2") MTK_FUNCTION(2, "CMCSD2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(55, "RDN3_A"),
PINCTRL_PIN(55, "RDN3_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 55), MTK_EINT_FUNCTION(0, 55),
MTK_FUNCTION(0, "GPIO55"), MTK_FUNCTION(0, "GPIO55"),
MTK_FUNCTION(1, "CMHSYNC"), MTK_FUNCTION(1, "CMHSYNC"),
MTK_FUNCTION(2, "CMCSD1") MTK_FUNCTION(2, "CMCSD1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(56, "RDP3_A"),
PINCTRL_PIN(56, "RDP3_A"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 56), MTK_EINT_FUNCTION(0, 56),
MTK_FUNCTION(0, "GPIO56"), MTK_FUNCTION(0, "GPIO56"),
MTK_FUNCTION(1, "CMVSYNC"), MTK_FUNCTION(1, "CMVSYNC"),
MTK_FUNCTION(2, "CMCSD0") MTK_FUNCTION(2, "CMCSD0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(57, "MSDC0_DAT0"),
PINCTRL_PIN(57, "MSDC0_DAT0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 57), MTK_EINT_FUNCTION(0, 57),
MTK_FUNCTION(0, "GPIO57"), MTK_FUNCTION(0, "GPIO57"),
...@@ -521,8 +463,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -521,8 +463,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S1_WS"), MTK_FUNCTION(2, "I2S1_WS"),
MTK_FUNCTION(7, "DBG_MON_B_7_") MTK_FUNCTION(7, "DBG_MON_B_7_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(58, "MSDC0_DAT1"),
PINCTRL_PIN(58, "MSDC0_DAT1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 58), MTK_EINT_FUNCTION(0, 58),
MTK_FUNCTION(0, "GPIO58"), MTK_FUNCTION(0, "GPIO58"),
...@@ -530,8 +471,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -530,8 +471,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S1_BCK"), MTK_FUNCTION(2, "I2S1_BCK"),
MTK_FUNCTION(7, "DBG_MON_B_8_") MTK_FUNCTION(7, "DBG_MON_B_8_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(59, "MSDC0_DAT2"),
PINCTRL_PIN(59, "MSDC0_DAT2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 59), MTK_EINT_FUNCTION(0, 59),
MTK_FUNCTION(0, "GPIO59"), MTK_FUNCTION(0, "GPIO59"),
...@@ -539,8 +479,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -539,8 +479,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S1_MCK"), MTK_FUNCTION(2, "I2S1_MCK"),
MTK_FUNCTION(7, "DBG_MON_B_9_") MTK_FUNCTION(7, "DBG_MON_B_9_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(60, "MSDC0_DAT3"),
PINCTRL_PIN(60, "MSDC0_DAT3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 60), MTK_EINT_FUNCTION(0, 60),
MTK_FUNCTION(0, "GPIO60"), MTK_FUNCTION(0, "GPIO60"),
...@@ -548,8 +487,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -548,8 +487,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S1_DO_1"), MTK_FUNCTION(2, "I2S1_DO_1"),
MTK_FUNCTION(7, "DBG_MON_B_10_") MTK_FUNCTION(7, "DBG_MON_B_10_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(61, "MSDC0_DAT4"),
PINCTRL_PIN(61, "MSDC0_DAT4"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 61), MTK_EINT_FUNCTION(0, 61),
MTK_FUNCTION(0, "GPIO61"), MTK_FUNCTION(0, "GPIO61"),
...@@ -557,8 +495,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -557,8 +495,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S1_DO_2"), MTK_FUNCTION(2, "I2S1_DO_2"),
MTK_FUNCTION(7, "DBG_MON_B_11_") MTK_FUNCTION(7, "DBG_MON_B_11_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(62, "MSDC0_DAT5"),
PINCTRL_PIN(62, "MSDC0_DAT5"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 62), MTK_EINT_FUNCTION(0, 62),
MTK_FUNCTION(0, "GPIO62"), MTK_FUNCTION(0, "GPIO62"),
...@@ -566,8 +503,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -566,8 +503,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S2_WS"), MTK_FUNCTION(2, "I2S2_WS"),
MTK_FUNCTION(7, "DBG_MON_B_12_") MTK_FUNCTION(7, "DBG_MON_B_12_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(63, "MSDC0_DAT6"),
PINCTRL_PIN(63, "MSDC0_DAT6"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 63), MTK_EINT_FUNCTION(0, 63),
MTK_FUNCTION(0, "GPIO63"), MTK_FUNCTION(0, "GPIO63"),
...@@ -575,8 +511,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -575,8 +511,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S2_BCK"), MTK_FUNCTION(2, "I2S2_BCK"),
MTK_FUNCTION(7, "DBG_MON_B_13_") MTK_FUNCTION(7, "DBG_MON_B_13_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(64, "MSDC0_DAT7"),
PINCTRL_PIN(64, "MSDC0_DAT7"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 64), MTK_EINT_FUNCTION(0, 64),
MTK_FUNCTION(0, "GPIO64"), MTK_FUNCTION(0, "GPIO64"),
...@@ -584,16 +519,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -584,16 +519,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S2_DI_1"), MTK_FUNCTION(2, "I2S2_DI_1"),
MTK_FUNCTION(7, "DBG_MON_B_14_") MTK_FUNCTION(7, "DBG_MON_B_14_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(65, "MSDC0_CLK"),
PINCTRL_PIN(65, "MSDC0_CLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 65), MTK_EINT_FUNCTION(0, 65),
MTK_FUNCTION(0, "GPIO65"), MTK_FUNCTION(0, "GPIO65"),
MTK_FUNCTION(1, "MSDC0_CLK"), MTK_FUNCTION(1, "MSDC0_CLK"),
MTK_FUNCTION(7, "DBG_MON_B_16_") MTK_FUNCTION(7, "DBG_MON_B_16_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(66, "MSDC0_CMD"),
PINCTRL_PIN(66, "MSDC0_CMD"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 66), MTK_EINT_FUNCTION(0, 66),
MTK_FUNCTION(0, "GPIO66"), MTK_FUNCTION(0, "GPIO66"),
...@@ -601,16 +534,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -601,16 +534,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S2_DI_2"), MTK_FUNCTION(2, "I2S2_DI_2"),
MTK_FUNCTION(7, "DBG_MON_B_15_") MTK_FUNCTION(7, "DBG_MON_B_15_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(67, "MSDC0_DSL"),
PINCTRL_PIN(67, "MSDC0_DSL"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 67), MTK_EINT_FUNCTION(0, 67),
MTK_FUNCTION(0, "GPIO67"), MTK_FUNCTION(0, "GPIO67"),
MTK_FUNCTION(1, "MSDC0_DSL"), MTK_FUNCTION(1, "MSDC0_DSL"),
MTK_FUNCTION(7, "DBG_MON_B_17_") MTK_FUNCTION(7, "DBG_MON_B_17_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(68, "MSDC0_RST_"),
PINCTRL_PIN(68, "MSDC0_RST_"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 68), MTK_EINT_FUNCTION(0, 68),
MTK_FUNCTION(0, "GPIO68"), MTK_FUNCTION(0, "GPIO68"),
...@@ -618,8 +549,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -618,8 +549,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S2_MCK"), MTK_FUNCTION(2, "I2S2_MCK"),
MTK_FUNCTION(7, "DBG_MON_B_18_") MTK_FUNCTION(7, "DBG_MON_B_18_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(69, "SPI_CK"),
PINCTRL_PIN(69, "SPI_CK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 69), MTK_EINT_FUNCTION(0, 69),
MTK_FUNCTION(0, "GPIO69"), MTK_FUNCTION(0, "GPIO69"),
...@@ -630,8 +560,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -630,8 +560,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "I2S2_MCK"), MTK_FUNCTION(5, "I2S2_MCK"),
MTK_FUNCTION(7, "DBG_MON_B_19_") MTK_FUNCTION(7, "DBG_MON_B_19_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(70, "SPI_MI"),
PINCTRL_PIN(70, "SPI_MI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 70), MTK_EINT_FUNCTION(0, 70),
MTK_FUNCTION(0, "GPIO70"), MTK_FUNCTION(0, "GPIO70"),
...@@ -643,8 +572,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -643,8 +572,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "DSI1_TE"), MTK_FUNCTION(6, "DSI1_TE"),
MTK_FUNCTION(7, "DBG_MON_B_20_") MTK_FUNCTION(7, "DBG_MON_B_20_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(71, "SPI_MO"),
PINCTRL_PIN(71, "SPI_MO"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 71), MTK_EINT_FUNCTION(0, 71),
MTK_FUNCTION(0, "GPIO71"), MTK_FUNCTION(0, "GPIO71"),
...@@ -655,8 +583,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -655,8 +583,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "I2S2_DI_2"), MTK_FUNCTION(5, "I2S2_DI_2"),
MTK_FUNCTION(7, "DBG_MON_B_21_") MTK_FUNCTION(7, "DBG_MON_B_21_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(72, "SPI_CS"),
PINCTRL_PIN(72, "SPI_CS"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 72), MTK_EINT_FUNCTION(0, 72),
MTK_FUNCTION(0, "GPIO72"), MTK_FUNCTION(0, "GPIO72"),
...@@ -667,116 +594,101 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -667,116 +594,101 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "DISP_PWM1"), MTK_FUNCTION(5, "DISP_PWM1"),
MTK_FUNCTION(7, "DBG_MON_B_22_") MTK_FUNCTION(7, "DBG_MON_B_22_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(73, "MSDC1_DAT0"),
PINCTRL_PIN(73, "MSDC1_DAT0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 73), MTK_EINT_FUNCTION(0, 73),
MTK_FUNCTION(0, "GPIO73"), MTK_FUNCTION(0, "GPIO73"),
MTK_FUNCTION(1, "MSDC1_DAT0"), MTK_FUNCTION(1, "MSDC1_DAT0"),
MTK_FUNCTION(7, "DBG_MON_B_24_") MTK_FUNCTION(7, "DBG_MON_B_24_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(74, "MSDC1_DAT1"),
PINCTRL_PIN(74, "MSDC1_DAT1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 74), MTK_EINT_FUNCTION(0, 74),
MTK_FUNCTION(0, "GPIO74"), MTK_FUNCTION(0, "GPIO74"),
MTK_FUNCTION(1, "MSDC1_DAT1"), MTK_FUNCTION(1, "MSDC1_DAT1"),
MTK_FUNCTION(7, "DBG_MON_B_25_") MTK_FUNCTION(7, "DBG_MON_B_25_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(75, "MSDC1_DAT2"),
PINCTRL_PIN(75, "MSDC1_DAT2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 75), MTK_EINT_FUNCTION(0, 75),
MTK_FUNCTION(0, "GPIO75"), MTK_FUNCTION(0, "GPIO75"),
MTK_FUNCTION(1, "MSDC1_DAT2"), MTK_FUNCTION(1, "MSDC1_DAT2"),
MTK_FUNCTION(7, "DBG_MON_B_26_") MTK_FUNCTION(7, "DBG_MON_B_26_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(76, "MSDC1_DAT3"),
PINCTRL_PIN(76, "MSDC1_DAT3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 76), MTK_EINT_FUNCTION(0, 76),
MTK_FUNCTION(0, "GPIO76"), MTK_FUNCTION(0, "GPIO76"),
MTK_FUNCTION(1, "MSDC1_DAT3"), MTK_FUNCTION(1, "MSDC1_DAT3"),
MTK_FUNCTION(7, "DBG_MON_B_27_") MTK_FUNCTION(7, "DBG_MON_B_27_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(77, "MSDC1_CLK"),
PINCTRL_PIN(77, "MSDC1_CLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 77), MTK_EINT_FUNCTION(0, 77),
MTK_FUNCTION(0, "GPIO77"), MTK_FUNCTION(0, "GPIO77"),
MTK_FUNCTION(1, "MSDC1_CLK"), MTK_FUNCTION(1, "MSDC1_CLK"),
MTK_FUNCTION(7, "DBG_MON_B_28_") MTK_FUNCTION(7, "DBG_MON_B_28_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(78, "MSDC1_CMD"),
PINCTRL_PIN(78, "MSDC1_CMD"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 78), MTK_EINT_FUNCTION(0, 78),
MTK_FUNCTION(0, "GPIO78"), MTK_FUNCTION(0, "GPIO78"),
MTK_FUNCTION(1, "MSDC1_CMD"), MTK_FUNCTION(1, "MSDC1_CMD"),
MTK_FUNCTION(7, "DBG_MON_B_23_") MTK_FUNCTION(7, "DBG_MON_B_23_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(79, "PWRAP_SPI0_MI"),
PINCTRL_PIN(79, "PWRAP_SPI0_MI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 79), MTK_EINT_FUNCTION(0, 79),
MTK_FUNCTION(0, "GPIO79"), MTK_FUNCTION(0, "GPIO79"),
MTK_FUNCTION(1, "PWRAP_SPIMI"), MTK_FUNCTION(1, "PWRAP_SPIMI"),
MTK_FUNCTION(2, "PWRAP_SPIMO") MTK_FUNCTION(2, "PWRAP_SPIMO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(80, "PWRAP_SPI0_MO"),
PINCTRL_PIN(80, "PWRAP_SPI0_MO"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 80), MTK_EINT_FUNCTION(0, 80),
MTK_FUNCTION(0, "GPIO80"), MTK_FUNCTION(0, "GPIO80"),
MTK_FUNCTION(1, "PWRAP_SPIMO"), MTK_FUNCTION(1, "PWRAP_SPIMO"),
MTK_FUNCTION(2, "PWRAP_SPIMI") MTK_FUNCTION(2, "PWRAP_SPIMI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(81, "PWRAP_SPI0_CK"),
PINCTRL_PIN(81, "PWRAP_SPI0_CK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 81), MTK_EINT_FUNCTION(0, 81),
MTK_FUNCTION(0, "GPIO81"), MTK_FUNCTION(0, "GPIO81"),
MTK_FUNCTION(1, "PWRAP_SPICK") MTK_FUNCTION(1, "PWRAP_SPICK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(82, "PWRAP_SPI0_CSN"),
PINCTRL_PIN(82, "PWRAP_SPI0_CSN"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 82), MTK_EINT_FUNCTION(0, 82),
MTK_FUNCTION(0, "GPIO82"), MTK_FUNCTION(0, "GPIO82"),
MTK_FUNCTION(1, "PWRAP_SPICS") MTK_FUNCTION(1, "PWRAP_SPICS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(83, "AUD_CLK_MOSI"),
PINCTRL_PIN(83, "AUD_CLK_MOSI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 83), MTK_EINT_FUNCTION(0, 83),
MTK_FUNCTION(0, "GPIO83"), MTK_FUNCTION(0, "GPIO83"),
MTK_FUNCTION(1, "AUD_CLK_MOSI") MTK_FUNCTION(1, "AUD_CLK_MOSI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(84, "AUD_DAT_MISO"),
PINCTRL_PIN(84, "AUD_DAT_MISO"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 84), MTK_EINT_FUNCTION(0, 84),
MTK_FUNCTION(0, "GPIO84"), MTK_FUNCTION(0, "GPIO84"),
MTK_FUNCTION(1, "AUD_DAT_MISO"), MTK_FUNCTION(1, "AUD_DAT_MISO"),
MTK_FUNCTION(2, "AUD_DAT_MOSI") MTK_FUNCTION(2, "AUD_DAT_MOSI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(85, "AUD_DAT_MOSI"),
PINCTRL_PIN(85, "AUD_DAT_MOSI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 85), MTK_EINT_FUNCTION(0, 85),
MTK_FUNCTION(0, "GPIO85"), MTK_FUNCTION(0, "GPIO85"),
MTK_FUNCTION(1, "AUD_DAT_MOSI"), MTK_FUNCTION(1, "AUD_DAT_MOSI"),
MTK_FUNCTION(2, "AUD_DAT_MISO") MTK_FUNCTION(2, "AUD_DAT_MISO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(86, "RTC32K_CK"),
PINCTRL_PIN(86, "RTC32K_CK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 86), MTK_EINT_FUNCTION(0, 86),
MTK_FUNCTION(0, "GPIO86"), MTK_FUNCTION(0, "GPIO86"),
MTK_FUNCTION(1, "RTC32K_CK") MTK_FUNCTION(1, "RTC32K_CK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(87, "DISP_PWM0"),
PINCTRL_PIN(87, "DISP_PWM0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 87), MTK_EINT_FUNCTION(0, 87),
MTK_FUNCTION(0, "GPIO87"), MTK_FUNCTION(0, "GPIO87"),
...@@ -784,36 +696,31 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -784,36 +696,31 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "DISP_PWM1"), MTK_FUNCTION(2, "DISP_PWM1"),
MTK_FUNCTION(7, "DBG_MON_B_31_") MTK_FUNCTION(7, "DBG_MON_B_31_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(88, "SRCLKENAI"),
PINCTRL_PIN(88, "SRCLKENAI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 88), MTK_EINT_FUNCTION(0, 88),
MTK_FUNCTION(0, "GPIO88"), MTK_FUNCTION(0, "GPIO88"),
MTK_FUNCTION(1, "SRCLKENAI") MTK_FUNCTION(1, "SRCLKENAI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(89, "SRCLKENAI2"),
PINCTRL_PIN(89, "SRCLKENAI2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 89), MTK_EINT_FUNCTION(0, 89),
MTK_FUNCTION(0, "GPIO89"), MTK_FUNCTION(0, "GPIO89"),
MTK_FUNCTION(1, "SRCLKENAI2") MTK_FUNCTION(1, "SRCLKENAI2")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(90, "SRCLKENA0"),
PINCTRL_PIN(90, "SRCLKENA0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 90), MTK_EINT_FUNCTION(0, 90),
MTK_FUNCTION(0, "GPIO90"), MTK_FUNCTION(0, "GPIO90"),
MTK_FUNCTION(1, "SRCLKENA0") MTK_FUNCTION(1, "SRCLKENA0")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(91, "SRCLKENA1"),
PINCTRL_PIN(91, "SRCLKENA1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 91), MTK_EINT_FUNCTION(0, 91),
MTK_FUNCTION(0, "GPIO91"), MTK_FUNCTION(0, "GPIO91"),
MTK_FUNCTION(1, "SRCLKENA1") MTK_FUNCTION(1, "SRCLKENA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(92, "PCM_CLK"),
PINCTRL_PIN(92, "PCM_CLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 92), MTK_EINT_FUNCTION(0, 92),
MTK_FUNCTION(0, "GPIO92"), MTK_FUNCTION(0, "GPIO92"),
...@@ -821,8 +728,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -821,8 +728,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S0_BCK"), MTK_FUNCTION(2, "I2S0_BCK"),
MTK_FUNCTION(7, "DBG_MON_A_24_") MTK_FUNCTION(7, "DBG_MON_A_24_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(93, "PCM_SYNC"),
PINCTRL_PIN(93, "PCM_SYNC"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 93), MTK_EINT_FUNCTION(0, 93),
MTK_FUNCTION(0, "GPIO93"), MTK_FUNCTION(0, "GPIO93"),
...@@ -830,8 +736,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -830,8 +736,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S0_WS"), MTK_FUNCTION(2, "I2S0_WS"),
MTK_FUNCTION(7, "DBG_MON_A_25_") MTK_FUNCTION(7, "DBG_MON_A_25_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(94, "PCM_RX"),
PINCTRL_PIN(94, "PCM_RX"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 94), MTK_EINT_FUNCTION(0, 94),
MTK_FUNCTION(0, "GPIO94"), MTK_FUNCTION(0, "GPIO94"),
...@@ -839,8 +744,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -839,8 +744,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S0_DI"), MTK_FUNCTION(2, "I2S0_DI"),
MTK_FUNCTION(7, "DBG_MON_A_26_") MTK_FUNCTION(7, "DBG_MON_A_26_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(95, "PCM_TX"),
PINCTRL_PIN(95, "PCM_TX"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 95), MTK_EINT_FUNCTION(0, 95),
MTK_FUNCTION(0, "GPIO95"), MTK_FUNCTION(0, "GPIO95"),
...@@ -848,8 +752,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -848,8 +752,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "I2S0_DO"), MTK_FUNCTION(2, "I2S0_DO"),
MTK_FUNCTION(7, "DBG_MON_A_27_") MTK_FUNCTION(7, "DBG_MON_A_27_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(96, "URXD1"),
PINCTRL_PIN(96, "URXD1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 96), MTK_EINT_FUNCTION(0, 96),
MTK_FUNCTION(0, "GPIO96"), MTK_FUNCTION(0, "GPIO96"),
...@@ -857,8 +760,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -857,8 +760,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "UTXD1"), MTK_FUNCTION(2, "UTXD1"),
MTK_FUNCTION(7, "DBG_MON_A_28_") MTK_FUNCTION(7, "DBG_MON_A_28_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(97, "UTXD1"),
PINCTRL_PIN(97, "UTXD1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 97), MTK_EINT_FUNCTION(0, 97),
MTK_FUNCTION(0, "GPIO97"), MTK_FUNCTION(0, "GPIO97"),
...@@ -866,8 +768,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -866,8 +768,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "URXD1"), MTK_FUNCTION(2, "URXD1"),
MTK_FUNCTION(7, "DBG_MON_A_29_") MTK_FUNCTION(7, "DBG_MON_A_29_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(98, "URTS1"),
PINCTRL_PIN(98, "URTS1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 98), MTK_EINT_FUNCTION(0, 98),
MTK_FUNCTION(0, "GPIO98"), MTK_FUNCTION(0, "GPIO98"),
...@@ -875,8 +776,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -875,8 +776,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "UCTS1"), MTK_FUNCTION(2, "UCTS1"),
MTK_FUNCTION(7, "DBG_MON_A_30_") MTK_FUNCTION(7, "DBG_MON_A_30_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(99, "UCTS1"),
PINCTRL_PIN(99, "UCTS1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 99), MTK_EINT_FUNCTION(0, 99),
MTK_FUNCTION(0, "GPIO99"), MTK_FUNCTION(0, "GPIO99"),
...@@ -884,8 +784,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -884,8 +784,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "URTS1"), MTK_FUNCTION(2, "URTS1"),
MTK_FUNCTION(7, "DBG_MON_A_31_") MTK_FUNCTION(7, "DBG_MON_A_31_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(100, "MSDC2_DAT0"),
PINCTRL_PIN(100, "MSDC2_DAT0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 100), MTK_EINT_FUNCTION(0, 100),
MTK_FUNCTION(0, "GPIO100"), MTK_FUNCTION(0, "GPIO100"),
...@@ -895,8 +794,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -895,8 +794,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "USB_DRVVBUS_P1"), MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
MTK_FUNCTION(7, "DBG_MON_B_0_") MTK_FUNCTION(7, "DBG_MON_B_0_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(101, "MSDC2_DAT1"),
PINCTRL_PIN(101, "MSDC2_DAT1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 101), MTK_EINT_FUNCTION(0, 101),
MTK_FUNCTION(0, "GPIO101"), MTK_FUNCTION(0, "GPIO101"),
...@@ -905,8 +803,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -905,8 +803,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(4, "SCL5"), MTK_FUNCTION(4, "SCL5"),
MTK_FUNCTION(7, "DBG_MON_B_1_") MTK_FUNCTION(7, "DBG_MON_B_1_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(102, "MSDC2_DAT2"),
PINCTRL_PIN(102, "MSDC2_DAT2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 102), MTK_EINT_FUNCTION(0, 102),
MTK_FUNCTION(0, "GPIO102"), MTK_FUNCTION(0, "GPIO102"),
...@@ -916,8 +813,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -916,8 +813,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "SPI_CK_1_"), MTK_FUNCTION(6, "SPI_CK_1_"),
MTK_FUNCTION(7, "DBG_MON_B_2_") MTK_FUNCTION(7, "DBG_MON_B_2_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(103, "MSDC2_DAT3"),
PINCTRL_PIN(103, "MSDC2_DAT3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 103), MTK_EINT_FUNCTION(0, 103),
MTK_FUNCTION(0, "GPIO103"), MTK_FUNCTION(0, "GPIO103"),
...@@ -927,8 +823,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -927,8 +823,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "SPI_MI_1_"), MTK_FUNCTION(6, "SPI_MI_1_"),
MTK_FUNCTION(7, "DBG_MON_B_3_") MTK_FUNCTION(7, "DBG_MON_B_3_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(104, "MSDC2_CLK"),
PINCTRL_PIN(104, "MSDC2_CLK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 104), MTK_EINT_FUNCTION(0, 104),
MTK_FUNCTION(0, "GPIO104"), MTK_FUNCTION(0, "GPIO104"),
...@@ -939,8 +834,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -939,8 +834,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "SPI_MO_1_"), MTK_FUNCTION(6, "SPI_MO_1_"),
MTK_FUNCTION(7, "DBG_MON_B_4_") MTK_FUNCTION(7, "DBG_MON_B_4_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(105, "MSDC2_CMD"),
PINCTRL_PIN(105, "MSDC2_CMD"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 105), MTK_EINT_FUNCTION(0, 105),
MTK_FUNCTION(0, "GPIO105"), MTK_FUNCTION(0, "GPIO105"),
...@@ -951,22 +845,19 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -951,22 +845,19 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "SPI_CS_1_"), MTK_FUNCTION(6, "SPI_CS_1_"),
MTK_FUNCTION(7, "DBG_MON_B_5_") MTK_FUNCTION(7, "DBG_MON_B_5_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(106, "SDA3"),
PINCTRL_PIN(106, "SDA3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 106), MTK_EINT_FUNCTION(0, 106),
MTK_FUNCTION(0, "GPIO106"), MTK_FUNCTION(0, "GPIO106"),
MTK_FUNCTION(1, "SDA3") MTK_FUNCTION(1, "SDA3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(107, "SCL3"),
PINCTRL_PIN(107, "SCL3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 107), MTK_EINT_FUNCTION(0, 107),
MTK_FUNCTION(0, "GPIO107"), MTK_FUNCTION(0, "GPIO107"),
MTK_FUNCTION(1, "SCL3") MTK_FUNCTION(1, "SCL3")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(108, "JTMS"),
PINCTRL_PIN(108, "JTMS"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 108), MTK_EINT_FUNCTION(0, 108),
MTK_FUNCTION(0, "GPIO108"), MTK_FUNCTION(0, "GPIO108"),
...@@ -975,8 +866,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -975,8 +866,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"), MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"),
MTK_FUNCTION(6, "DFD_TMS") MTK_FUNCTION(6, "DFD_TMS")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(109, "JTCK"),
PINCTRL_PIN(109, "JTCK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 109), MTK_EINT_FUNCTION(0, 109),
MTK_FUNCTION(0, "GPIO109"), MTK_FUNCTION(0, "GPIO109"),
...@@ -985,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -985,8 +875,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"), MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"),
MTK_FUNCTION(6, "DFD_TCK") MTK_FUNCTION(6, "DFD_TCK")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(110, "JTDI"),
PINCTRL_PIN(110, "JTDI"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 110), MTK_EINT_FUNCTION(0, 110),
MTK_FUNCTION(0, "GPIO110"), MTK_FUNCTION(0, "GPIO110"),
...@@ -995,8 +884,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -995,8 +884,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"), MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"),
MTK_FUNCTION(6, "DFD_TDI") MTK_FUNCTION(6, "DFD_TDI")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(111, "JTDO"),
PINCTRL_PIN(111, "JTDO"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 111), MTK_EINT_FUNCTION(0, 111),
MTK_FUNCTION(0, "GPIO111"), MTK_FUNCTION(0, "GPIO111"),
...@@ -1005,8 +893,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1005,8 +893,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"), MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"),
MTK_FUNCTION(6, "DFD_TDO") MTK_FUNCTION(6, "DFD_TDO")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(112, "JTRST_B"),
PINCTRL_PIN(112, "JTRST_B"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 112), MTK_EINT_FUNCTION(0, 112),
MTK_FUNCTION(0, "GPIO112"), MTK_FUNCTION(0, "GPIO112"),
...@@ -1015,8 +902,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1015,8 +902,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"), MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"),
MTK_FUNCTION(6, "DFD_NTRST") MTK_FUNCTION(6, "DFD_NTRST")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(113, "URXD0"),
PINCTRL_PIN(113, "URXD0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 113), MTK_EINT_FUNCTION(0, 113),
MTK_FUNCTION(0, "GPIO113"), MTK_FUNCTION(0, "GPIO113"),
...@@ -1025,8 +911,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1025,8 +911,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "I2S2_WS"), MTK_FUNCTION(6, "I2S2_WS"),
MTK_FUNCTION(7, "DBG_MON_A_0_") MTK_FUNCTION(7, "DBG_MON_A_0_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(114, "UTXD0"),
PINCTRL_PIN(114, "UTXD0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 114), MTK_EINT_FUNCTION(0, 114),
MTK_FUNCTION(0, "GPIO114"), MTK_FUNCTION(0, "GPIO114"),
...@@ -1035,8 +920,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1035,8 +920,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "I2S2_BCK"), MTK_FUNCTION(6, "I2S2_BCK"),
MTK_FUNCTION(7, "DBG_MON_A_1_") MTK_FUNCTION(7, "DBG_MON_A_1_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(115, "URTS0"),
PINCTRL_PIN(115, "URTS0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 115), MTK_EINT_FUNCTION(0, 115),
MTK_FUNCTION(0, "GPIO115"), MTK_FUNCTION(0, "GPIO115"),
...@@ -1045,8 +929,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1045,8 +929,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "I2S2_MCK"), MTK_FUNCTION(6, "I2S2_MCK"),
MTK_FUNCTION(7, "DBG_MON_A_2_") MTK_FUNCTION(7, "DBG_MON_A_2_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(116, "UCTS0"),
PINCTRL_PIN(116, "UCTS0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 116), MTK_EINT_FUNCTION(0, 116),
MTK_FUNCTION(0, "GPIO116"), MTK_FUNCTION(0, "GPIO116"),
...@@ -1055,8 +938,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1055,8 +938,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(6, "I2S2_DI_1"), MTK_FUNCTION(6, "I2S2_DI_1"),
MTK_FUNCTION(7, "DBG_MON_A_3_") MTK_FUNCTION(7, "DBG_MON_A_3_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(117, "URXD3"),
PINCTRL_PIN(117, "URXD3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 117), MTK_EINT_FUNCTION(0, 117),
MTK_FUNCTION(0, "GPIO117"), MTK_FUNCTION(0, "GPIO117"),
...@@ -1064,8 +946,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1064,8 +946,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "UTXD3"), MTK_FUNCTION(2, "UTXD3"),
MTK_FUNCTION(7, "DBG_MON_A_9_") MTK_FUNCTION(7, "DBG_MON_A_9_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(118, "UTXD3"),
PINCTRL_PIN(118, "UTXD3"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 118), MTK_EINT_FUNCTION(0, 118),
MTK_FUNCTION(0, "GPIO118"), MTK_FUNCTION(0, "GPIO118"),
...@@ -1073,16 +954,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1073,16 +954,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(2, "URXD3"), MTK_FUNCTION(2, "URXD3"),
MTK_FUNCTION(7, "DBG_MON_A_10_") MTK_FUNCTION(7, "DBG_MON_A_10_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(119, "KPROW0"),
PINCTRL_PIN(119, "KPROW0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 119), MTK_EINT_FUNCTION(0, 119),
MTK_FUNCTION(0, "GPIO119"), MTK_FUNCTION(0, "GPIO119"),
MTK_FUNCTION(1, "KROW0"), MTK_FUNCTION(1, "KROW0"),
MTK_FUNCTION(7, "DBG_MON_A_11_") MTK_FUNCTION(7, "DBG_MON_A_11_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(120, "KPROW1"),
PINCTRL_PIN(120, "KPROW1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 120), MTK_EINT_FUNCTION(0, 120),
MTK_FUNCTION(0, "GPIO120"), MTK_FUNCTION(0, "GPIO120"),
...@@ -1090,8 +969,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1090,8 +969,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(3, "PWM6"), MTK_FUNCTION(3, "PWM6"),
MTK_FUNCTION(7, "DBG_MON_A_12_") MTK_FUNCTION(7, "DBG_MON_A_12_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(121, "KPROW2"),
PINCTRL_PIN(121, "KPROW2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 121), MTK_EINT_FUNCTION(0, 121),
MTK_FUNCTION(0, "GPIO121"), MTK_FUNCTION(0, "GPIO121"),
...@@ -1102,16 +980,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1102,16 +980,14 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "USB_DRVVBUS_P1"), MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
MTK_FUNCTION(7, "DBG_MON_A_13_") MTK_FUNCTION(7, "DBG_MON_A_13_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(122, "KPCOL0"),
PINCTRL_PIN(122, "KPCOL0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 122), MTK_EINT_FUNCTION(0, 122),
MTK_FUNCTION(0, "GPIO122"), MTK_FUNCTION(0, "GPIO122"),
MTK_FUNCTION(1, "KCOL0"), MTK_FUNCTION(1, "KCOL0"),
MTK_FUNCTION(7, "DBG_MON_A_14_") MTK_FUNCTION(7, "DBG_MON_A_14_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(123, "KPCOL1"),
PINCTRL_PIN(123, "KPCOL1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 123), MTK_EINT_FUNCTION(0, 123),
MTK_FUNCTION(0, "GPIO123"), MTK_FUNCTION(0, "GPIO123"),
...@@ -1120,8 +996,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1120,8 +996,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(3, "PWM5"), MTK_FUNCTION(3, "PWM5"),
MTK_FUNCTION(7, "DBG_MON_A_15_") MTK_FUNCTION(7, "DBG_MON_A_15_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(124, "KPCOL2"),
PINCTRL_PIN(124, "KPCOL2"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 124), MTK_EINT_FUNCTION(0, 124),
MTK_FUNCTION(0, "GPIO124"), MTK_FUNCTION(0, "GPIO124"),
...@@ -1132,29 +1007,25 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1132,29 +1007,25 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "USB_DRVVBUS_P1"), MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
MTK_FUNCTION(7, "DBG_MON_A_16_") MTK_FUNCTION(7, "DBG_MON_A_16_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(125, "SDA1"),
PINCTRL_PIN(125, "SDA1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 125), MTK_EINT_FUNCTION(0, 125),
MTK_FUNCTION(0, "GPIO125"), MTK_FUNCTION(0, "GPIO125"),
MTK_FUNCTION(1, "SDA1") MTK_FUNCTION(1, "SDA1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(126, "SCL1"),
PINCTRL_PIN(126, "SCL1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 126), MTK_EINT_FUNCTION(0, 126),
MTK_FUNCTION(0, "GPIO126"), MTK_FUNCTION(0, "GPIO126"),
MTK_FUNCTION(1, "SCL1") MTK_FUNCTION(1, "SCL1")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(127, "LCM_RST"),
PINCTRL_PIN(127, "LCM_RST"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 127), MTK_EINT_FUNCTION(0, 127),
MTK_FUNCTION(0, "GPIO127"), MTK_FUNCTION(0, "GPIO127"),
MTK_FUNCTION(1, "LCM_RST") MTK_FUNCTION(1, "LCM_RST")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(128, "I2S0_LRCK"),
PINCTRL_PIN(128, "I2S0_LRCK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 128), MTK_EINT_FUNCTION(0, 128),
MTK_FUNCTION(0, "GPIO128"), MTK_FUNCTION(0, "GPIO128"),
...@@ -1164,8 +1035,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1164,8 +1035,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "SPI_CK_2_"), MTK_FUNCTION(5, "SPI_CK_2_"),
MTK_FUNCTION(7, "DBG_MON_A_4_") MTK_FUNCTION(7, "DBG_MON_A_4_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(129, "I2S0_BCK"),
PINCTRL_PIN(129, "I2S0_BCK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 129), MTK_EINT_FUNCTION(0, 129),
MTK_FUNCTION(0, "GPIO129"), MTK_FUNCTION(0, "GPIO129"),
...@@ -1175,8 +1045,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1175,8 +1045,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "SPI_MI_2_"), MTK_FUNCTION(5, "SPI_MI_2_"),
MTK_FUNCTION(7, "DBG_MON_A_5_") MTK_FUNCTION(7, "DBG_MON_A_5_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(130, "I2S0_MCK"),
PINCTRL_PIN(130, "I2S0_MCK"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 130), MTK_EINT_FUNCTION(0, 130),
MTK_FUNCTION(0, "GPIO130"), MTK_FUNCTION(0, "GPIO130"),
...@@ -1186,8 +1055,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1186,8 +1055,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "SPI_MO_2_"), MTK_FUNCTION(5, "SPI_MO_2_"),
MTK_FUNCTION(7, "DBG_MON_A_6_") MTK_FUNCTION(7, "DBG_MON_A_6_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(131, "I2S0_DATA0"),
PINCTRL_PIN(131, "I2S0_DATA0"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 131), MTK_EINT_FUNCTION(0, 131),
MTK_FUNCTION(0, "GPIO131"), MTK_FUNCTION(0, "GPIO131"),
...@@ -1197,8 +1065,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1197,8 +1065,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(5, "SPI_CS_2_"), MTK_FUNCTION(5, "SPI_CS_2_"),
MTK_FUNCTION(7, "DBG_MON_A_7_") MTK_FUNCTION(7, "DBG_MON_A_7_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(132, "I2S0_DATA1"),
PINCTRL_PIN(132, "I2S0_DATA1"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 132), MTK_EINT_FUNCTION(0, 132),
MTK_FUNCTION(0, "GPIO132"), MTK_FUNCTION(0, "GPIO132"),
...@@ -1207,15 +1074,13 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = { ...@@ -1207,15 +1074,13 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_FUNCTION(3, "I2S2_DI_2"), MTK_FUNCTION(3, "I2S2_DI_2"),
MTK_FUNCTION(7, "DBG_MON_A_8_") MTK_FUNCTION(7, "DBG_MON_A_8_")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(133, "SDA4"),
PINCTRL_PIN(133, "SDA4"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 133), MTK_EINT_FUNCTION(0, 133),
MTK_FUNCTION(0, "GPIO133"), MTK_FUNCTION(0, "GPIO133"),
MTK_FUNCTION(1, "SDA4") MTK_FUNCTION(1, "SDA4")
), ),
MTK_PIN( MTK_PIN(PINCTRL_PIN(134, "SCL4"),
PINCTRL_PIN(134, "SCL4"),
NULL, "mt8173", NULL, "mt8173",
MTK_EINT_FUNCTION(0, 134), MTK_EINT_FUNCTION(0, 134),
MTK_FUNCTION(0, "GPIO134"), MTK_FUNCTION(0, "GPIO134"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment