ipq40xx: pakedge_wr-1: convert to DSA
authorTomasz Maciej Nowak <tmn505@gmail.com>
Mon, 3 Oct 2022 12:59:15 +0000 (14:59 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 5 Oct 2022 17:16:52 +0000 (19:16 +0200)
Convert pakedge_wr-1 device to DSA and enable it.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>i
[ improve commit description ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ipq40xx/base-files/etc/board.d/02_network
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts
target/linux/ipq40xx/image/generic.mk

index d9a162b10d42c207b18f41eef01606bc292ef8ba..163dcdcbc6811890e3b5e5076e0e5a24d619f9f0 100644 (file)
@@ -21,6 +21,7 @@ ipq40xx_setup_interfaces()
        mikrotik,hap-ac3|\
        p2w,r619ac-64m|\
        p2w,r619ac-128m|\
+       pakedge,wr-1|\
        zyxel,nbg6617)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
index 317fe26e2e9a77b3af0cd98d0f8a323e5b45f534..16951da47fc013cc2c94d4a26db498b40c3f24c4 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "pakedge,wr-1";
 
        aliases {
+               label-mac-device = &gmac;
                led-boot = &led_power;
                led-failsafe = &led_power;
                led-running = &led_power;
        status = "okay";
 };
 
+&gmac {
+       status = "okay";
+};
+
 &mdio {
        status = "okay";
 };
        status = "okay";
 };
 
+&switch {
+       status = "okay";
+};
+
+&swport1 {
+       status = "okay";
+
+       label = "lan4";
+};
+
+&swport2 {
+       status = "okay";
+
+       label = "lan3";
+};
+
+&swport3 {
+       status = "okay";
+
+       label = "lan2";
+};
+
+&swport4 {
+       status = "okay";
+
+       label = "lan1";
+};
+
+&swport5 {
+       status = "okay";
+};
+
 &tlmm {
        key_pins: key_pinmux {
                mux {
index 69ec42c2665779b20baaf4353bb2f3fdcea07755..3c1cf67448826643d003ab348a9158f2ecebfc52 100644 (file)
@@ -938,8 +938,7 @@ define Device/pakedge_wr-1
        IMAGE_SIZE := 31232k
        IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
 endef
-# Missing DSA Setup
-#TARGET_DEVICES += pakedge_wr-1
+TARGET_DEVICES += pakedge_wr-1
 
 define Device/plasmacloud_pa1200
        $(call Device/FitImageLzma)