From 36ec3857a05b66b2df0c4e5933125d9438a6cb46 Mon Sep 17 00:00:00 2001 From: Marius Durbaca Date: Tue, 22 Oct 2024 16:24:54 +0300 Subject: [PATCH] z8102ax-v2 --- .../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts | 24 +++++++++---------- .../base-files/etc/board.d/03_gpio_switches | 3 ++- .../etc/hotplug.d/ieee80211/11_fix_wifi_mac | 1 + 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts index 9d9a3ff60d493b..3ecb0eebf816af 100644 --- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts +++ b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts @@ -65,16 +65,16 @@ function = LED_FUNCTION_STATUS; }; - led_status_modem1: modem1 { - label = "modem1:status"; + led_status_5g1: 5g1 { + label = "5g1:status"; gpios = <&pio 8 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_USB; function-enumerator = <0>; }; - led_status_modem2: modem2 { - label = "modem2:status"; + led_status_5g2: 5g2 { + label = "5g2:status"; gpios = <&pio 13 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_USB; @@ -99,14 +99,14 @@ gpios = <&pio 3 GPIO_ACTIVE_HIGH>; }; - modem1 { - gpio-export,name = "modem1"; + 5g1 { + gpio-export,name = "5g1"; gpio-export,output = <1>; gpios = <&pio 4 GPIO_ACTIVE_HIGH>; }; - modem2 { - gpio-export,name = "modem2"; + 5g2 { + gpio-export,name = "5g2"; gpio-export,output = <1>; gpios = <&pio 5 GPIO_ACTIVE_HIGH>; }; @@ -273,16 +273,16 @@ "reset", "watchdog", "pcie", - "modem1", - "modem2", + "5g1", + "5g2", "sim1", "sim2", - "modem1_status", + "5g1_status", "red_status", "green_status", "blue_status", "", - "modem2_status"; + "5g2_status"; spi0_flash_pins: spi0-pins { mux { diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/03_gpio_switches b/target/linux/mediatek/filogic/base-files/etc/board.d/03_gpio_switches index 4cbec1ef078db3..1fe74f2b6fd456 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/03_gpio_switches @@ -5,7 +5,8 @@ board_config_update board=$(board_name) case "$board" in -zbtlink,zbt-z8102ax) +zbtlink,zbt-z8102ax|\ +zbtlink,zbt-z8102ax-v2) ucidef_add_gpio_switch "5g1" "Power 1st modem" "5g1" "1" ucidef_add_gpio_switch "5g2" "Power 2nd modem" "5g2" "1" ucidef_add_gpio_switch "pcie" "Power PCIe port" "pcie" "1" diff --git a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac index 3042858353a7cf..5f963cc1652bee 100644 --- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac +++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac @@ -154,6 +154,7 @@ case "$board" in ;; routerich,ax3000|\ zbtlink,zbt-z8102ax|\ + zbtlink,zbt-z8102ax-v2|\ zbtlink,zbt-z8103ax|\ zyxel,ex5601-t0|\ zyxel,ex5601-t0-ubootmod)