282c28da0fd4f47f8d63145311aeb0b90760cabf
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.9 / 0000-pinctrl-esw.patch
1 --- a/include/dt-bindings/pinctrl/mt7623-pinfunc.h
2 +++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h
3 @@ -505,6 +505,9 @@
4 #define MT7623_PIN_272_G2_RXD3_FUNC_GPIO272 (MTK_PIN_NO(272) | 0)
5 #define MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3 (MTK_PIN_NO(272) | 1)
6
7 +#define MT7623_PIN_273_ESW_INT_FUNC_GPIO273 (MTK_PIN_NO(273) | 0)
8 +#define MT7623_PIN_273_ESW_INT_FUNC_ESW_INT (MTK_PIN_NO(273) | 1)
9 +
10 #define MT7623_PIN_274_G2_RXDV_FUNC_GPIO274 (MTK_PIN_NO(274) | 0)
11 #define MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV (MTK_PIN_NO(274) | 1)
12
13 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
14 +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
15 @@ -1894,8 +1894,9 @@ static const struct mtk_desc_pin mtk_pin
16 MTK_PIN(
17 PINCTRL_PIN(273, "GPIO273"),
18 NULL, "mt7623",
19 - MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
20 - MTK_FUNCTION(0, "GPIO273")
21 + MTK_EINT_FUNCTION(0, 168),
22 + MTK_FUNCTION(0, "GPIO273"),
23 + MTK_FUNCTION(1, "ESW_INT")
24 ),
25 MTK_PIN(
26 PINCTRL_PIN(274, "G2_RXDV"),