[openwrt/openwrt] ipq40xx: convert AVM FRITZ!Repeater 3000 to DSA

LEDE Commits lede-commits at lists.infradead.org
Wed May 3 07:16:30 PDT 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3cac52f9a134cb2317660596d0cefe1c419c3220

commit 3cac52f9a134cb2317660596d0cefe1c419c3220
Author: Nick Hainke <vincent at systemli.org>
AuthorDate: Mon Apr 24 22:00:18 2023 +0200

    ipq40xx: convert AVM FRITZ!Repeater 3000 to DSA
    
    Convert the repeater to DSA.
    
    Signed-off-by: Nick Hainke <vincent at systemli.org>
---
 .../linux/ipq40xx/base-files/etc/board.d/02_network  |  1 +
 .../arm/boot/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)




More information about the lede-commits mailing list