ipq40xx: D-Link DAP-2610: convert to DSA
authorGuillaume Lefebvre <guillaume@zelig.ch>
Wed, 9 Nov 2022 05:52:18 +0000 (06:52 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 12 Nov 2022 17:15:55 +0000 (18:15 +0100)
Reenable D-Link DAP-2610, convert it to DSA and label port to 'lan', as shown on the case

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Guillaume Lefebvre <guillaume@zelig.ch>
target/linux/ipq40xx/base-files/etc/board.d/02_network
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-dap-2610.dts
target/linux/ipq40xx/image/generic.mk

index 16b0f05a5b0d37d3b1c165957ca400303b4abc20..80b7b02e8a51b6a8b12f9879ff6035d49eac3ccf 100644 (file)
@@ -43,6 +43,7 @@ ipq40xx_setup_interfaces()
                ;;
        aruba,ap-303|\
        avm,fritzrepeater-1200|\
+       dlink,dap-2610|\
        meraki,mr33|\
        meraki,mr74|\
        mikrotik,lhgg-60ad|\
index ff8053c42b509c1171e808f403f8f0ac2939c7d4..724047c469829acb9e4fb2a80604ab0975aeb3e1 100644 (file)
        status = "okay";
 };
 
+&gmac {
+       status = "okay";
+};
+
+&switch {
+       status = "okay";
+};
+
+&swport5 {
+       status = "okay";
+
+       label = "lan";
+};
+
 &tlmm {
        serial_pins: serial_pinmux {
                mux {
index b50d072bec34b6c382dce1a5013ba8960e18f6e3..9fb34a7871b1cf1d7681314baa56cf957d90486d 100644 (file)
@@ -419,8 +419,7 @@ define Device/dlink_dap-2610
        IMAGE/factory.bin    := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
        IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
 endef
-# Missing DSA Setup
-#TARGET_DEVICES += dlink_dap-2610
+TARGET_DEVICES += dlink_dap-2610
 
 define Device/edgecore_ecw5211
        $(call Device/FitImage)