dnsmasq: add explicit "set:" for client-matching options
[openwrt/staging/dedeckeh.git] / package / boot / uboot-mediatek / patches / 000-mtk-06-pinctrl-mt7629-add-jtag-function-and-pin-group.patch
1 From 1c6d07abf7fc79bf3950dc9ac56e3b566c334d3d Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Wed, 13 Jan 2021 16:29:23 +0800
4 Subject: [PATCH 06/21] pinctrl: mt7629: add jtag function and pin group
5
6 The EPHY LEDs of mt7629 can be used as JTAG. This patch adds the jtag pin
7 group to the pinctrl driver.
8
9 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
10 ---
11 drivers/pinctrl/mediatek/pinctrl-mt7629.c | 7 +++++++
12 1 file changed, 7 insertions(+)
13
14 --- a/drivers/pinctrl/mediatek/pinctrl-mt7629.c
15 +++ b/drivers/pinctrl/mediatek/pinctrl-mt7629.c
16 @@ -201,6 +201,10 @@ static int mt7629_wf2g_led_funcs[] = { 1
17 static int mt7629_wf5g_led_pins[] = { 18, };
18 static int mt7629_wf5g_led_funcs[] = { 1, };
19
20 +/* LED for EPHY used as JTAG */
21 +static int mt7629_ephy_leds_jtag_pins[] = { 12, 13, 14, 15, 16, };
22 +static int mt7629_ephy_leds_jtag_funcs[] = { 7, 7, 7, 7, 7, };
23 +
24 /* Watchdog */
25 static int mt7629_watchdog_pins[] = { 11, };
26 static int mt7629_watchdog_funcs[] = { 1, };
27 @@ -297,6 +301,7 @@ static const struct mtk_group_desc mt762
28 PINCTRL_PIN_GROUP("ephy_led2", mt7629_ephy_led2),
29 PINCTRL_PIN_GROUP("ephy_led3", mt7629_ephy_led3),
30 PINCTRL_PIN_GROUP("ephy_led4", mt7629_ephy_led4),
31 + PINCTRL_PIN_GROUP("ephy_leds_jtag", mt7629_ephy_leds_jtag),
32 PINCTRL_PIN_GROUP("wf2g_led", mt7629_wf2g_led),
33 PINCTRL_PIN_GROUP("wf5g_led", mt7629_wf5g_led),
34 PINCTRL_PIN_GROUP("watchdog", mt7629_watchdog),
35 @@ -364,6 +369,7 @@ static const char *const mt7629_uart_gro
36 static const char *const mt7629_wdt_groups[] = { "watchdog", };
37 static const char *const mt7629_wifi_groups[] = { "wf0_5g", "wf0_2g", };
38 static const char *const mt7629_flash_groups[] = { "snfi", "spi_nor" };
39 +static const char *const mt7629_jtag_groups[] = { "ephy_leds_jtag" };
40
41 static const struct mtk_function_desc mt7629_functions[] = {
42 {"eth", mt7629_ethernet_groups, ARRAY_SIZE(mt7629_ethernet_groups)},
43 @@ -376,6 +382,7 @@ static const struct mtk_function_desc mt
44 {"watchdog", mt7629_wdt_groups, ARRAY_SIZE(mt7629_wdt_groups)},
45 {"wifi", mt7629_wifi_groups, ARRAY_SIZE(mt7629_wifi_groups)},
46 {"flash", mt7629_flash_groups, ARRAY_SIZE(mt7629_flash_groups)},
47 + {"jtag", mt7629_jtag_groups, ARRAY_SIZE(mt7629_jtag_groups)},
48 };
49
50 static struct mtk_pinctrl_soc mt7629_data = {