From 3cac52f9a134cb2317660596d0cefe1c419c3220 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Mon, 24 Apr 2023 22:00:18 +0200 Subject: [PATCH] ipq40xx: convert AVM FRITZ!Repeater 3000 to DSA Convert the repeater to DSA. Signed-off-by: Nick Hainke --- .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../dts/qcom-ipq4019-fritzrepeater-3000.dts | 20 +++++++++++++++++++ target/linux/ipq40xx/image/generic.mk | 3 +-- 3 files changed, 22 insertions(+), 2 deletions(-) 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 2e0e8d33cd..cb318d36a3 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -61,6 +61,7 @@ ipq40xx_setup_interfaces() avm,fritzbox-7530) ucidef_set_interface_lan "lan1 lan2 lan3 lan4" ;; + avm,fritzrepeater-3000|\ cellc,rtl30vw) ucidef_set_interface_lan "lan1 lan2" ;; diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts index babf07727a..8d88bc1521 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts @@ -247,3 +247,23 @@ }; }; }; + +&gmac { + status = "okay"; +}; + +&switch { + status = "okay"; +}; + +&swport4 { + status = "okay"; + + label = "lan1"; +}; + +&swport5 { + status = "okay"; + + label = "lan2"; +}; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 8fa4f4175a..adce4fe0f2 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -295,8 +295,7 @@ define Device/avm_fritzrepeater-3000 SOC := qcom-ipq4019 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand endef -# Missing DSA Setup -#TARGET_DEVICES += avm_fritzrepeater-3000 +TARGET_DEVICES += avm_fritzrepeater-3000 define Device/buffalo_wtr-m2133hp $(call Device/FitImage) -- 2.30.2