diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds index 9fd42a56ea..96ad903244 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds +++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds @@ -96,6 +96,7 @@ mobipromo,cm520-79f) ucidef_set_led_netdev "lan1" "LAN1" "blue:lan1" "lan1" ucidef_set_led_netdev "lan2" "LAN2" "blue:lan2" "lan2" ;; +meraki,gx20 |\ meraki,z3) ucidef_set_led_netdev "wan_link" "WAN (link)" "green:wan-0" "wan" "link" ucidef_set_led_netdev "wan_act" "WAN (txrx)" "green:wan-1" "wan" "tx rx" diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index 3f4ca99b0f..af92401a30 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -29,6 +29,7 @@ ipq40xx_setup_interfaces() zyxel,nbg6617) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; + meraki,gx20|\ meraki,z3) ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan" ;; diff --git a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches index fc43ae3d0f..003fd685b9 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches @@ -21,6 +21,7 @@ cilab,meshpoint-one) compex,wpj428) ucidef_add_gpio_switch "sim_card_select" "SIM card select" "3" "0" ;; +meraki,gx20|\ meraki,z3) ucidef_add_gpio_switch "lan5_poe_disable" "LAN5 PoE disable" "540" "0" ;; diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh index 298ba6eb9c..cea5b0ce69 100644 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -183,6 +183,7 @@ platform_do_upgrade() { CI_KERNPART="part.safe" nand_do_upgrade "$1" ;; + meraki,gx20|\ meraki,z3) # DO NOT set CI_KERNPART to part.safe, # that is used for chain-loading an unlocked u-boot diff --git a/target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4029-gx20.dts b/target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4029-gx20.dts new file mode 100644 index 0000000000..0c951e56da --- /dev/null +++ b/target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4029-gx20.dts @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Device Tree Source for Meraki Go GX20 (Fairyfly) + +#include "qcom-ipq4029-wired-qca-common.dtsi" + +/ { + model = "Meraki Go GX20 Router"; + compatible = "meraki,gx20"; + + leds { + compatible = "gpio-leds"; + + power_orange: power { + color = ; + function = LED_FUNCTION_POWER; + gpios = <&tlmm 49 GPIO_ACTIVE_LOW>; + panic-indicator; + }; + + led-1 { + /* WAN left */ + color = ; + function = LED_FUNCTION_WAN; + function-enumerator = <0>; + gpios = <&tlmm 46 GPIO_ACTIVE_LOW>; + }; + + led-2 { + /* WAN right */ + color = ; + function = LED_FUNCTION_WAN; + function-enumerator = <1>; + gpios = <&tlmm 30 GPIO_ACTIVE_LOW>; + }; + + led-3 { + /* port 2 left */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + gpios = <&tlmm 23 GPIO_ACTIVE_LOW>; + }; + + led-4 { + /* port 2 right */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; + gpios = <&tlmm 22 GPIO_ACTIVE_LOW>; + }; + + led-5 { + /* port 3 left */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <4>; + gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; + }; + + led-6 { + /* port 3 right */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <5>; + gpios = <&tlmm 24 GPIO_ACTIVE_LOW>; + }; + + led-7 { + /* port 4 left */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <6>; + gpios = <&tlmm 29 GPIO_ACTIVE_LOW>; + }; + + led-8 { + /* port 4 right */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <7>; + gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; + }; + + led-9 { + /* port 5 left */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <8>; + gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; + }; + + led-10 { + /* port 5 right */ + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <9>; + gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + }; + }; +}; + +/* GX20 does not have WiFi radios */ +&wifi0 { + status = "disabled"; +}; + +&wifi1 { + status = "disabled"; +};