ipq40xx: migrate Linksys WHW01 to DSA and re-enable
authorTony Ambardar <itugrok@yahoo.com>
Tue, 6 Dec 2022 03:38:45 +0000 (19:38 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Sat, 31 Dec 2022 13:02:38 +0000 (05:02 -0800)
Convert Linksys WHW01 network configuration to DSA and re-enable builds.

Reviewed-by: Robert Marko <robimarko@gmail.com>
Tested-by: Wyatt Martin <wawowl@gmail.com>
Signed-off-by: Wyatt Martin <wawowl@gmail.com>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
target/linux/ipq40xx/base-files/etc/board.d/02_network
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-whw01.dts
target/linux/ipq40xx/image/generic.mk

index bceb434bffde579dc8fba535afedb196106ad4c8..7a4cac868cb78e4fde81a834b3032ec142efd365 100644 (file)
@@ -59,6 +59,9 @@ ipq40xx_setup_interfaces()
        compex,wpj428)
                ucidef_set_interface_lan "lan1 lan2"
                ;;
+       linksys,whw01)
+               ucidef_set_interface_lan "eth1 eth2"
+               ;;
        glinet,gl-a1300|\
        glinet,gl-b1300|\
        mobipromo,cm520-79f)
index 09349219edfc49afc60e7d05548199a15cbfa8e6..5859548254fc432bd4a8c1c6aba55455d97f7a4f 100644 (file)
        nvmem-cell-names = "pre-calibration";
        nvmem-cells = <&precal_art_5000>;
 };
+
+&gmac {
+       status = "okay";
+};
+
+&switch {
+       status = "okay";
+};
+
+&swport4 {
+       status = "okay";
+       label = "eth1";
+};
+
+&swport5 {
+       status = "okay";
+       label = "eth2";
+};
index a2807c6c9c530d2d9d7abe57ea5c3816d005de23..f92e11c797127344c6e14d6292956eeca8f048eb 100644 (file)
@@ -734,8 +734,7 @@ define Device/linksys_whw01
        IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
        DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
 endef
-# Missing DSA Setup
-#TARGET_DEVICES += linksys_whw01
+TARGET_DEVICES += linksys_whw01
 
 define Device/luma_wrtq-329acn
        $(call Device/FitImage)