ipq40xx: convert Netgear EX6100/EX6150 v2 to DSA
authorDavid Bauer <mail@david-bauer.net>
Mon, 6 Mar 2023 20:27:49 +0000 (21:27 +0100)
committerDavid Bauer <mail@david-bauer.net>
Wed, 8 Mar 2023 01:19:01 +0000 (02:19 +0100)
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ipq40xx/base-files/etc/board.d/02_network
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
target/linux/ipq40xx/image/generic.mk

index e5789d15b9132f629263e22eb1f2a7f65977b636..3625938e384c8e0d19d1e45e296bebb5709d9f5d 100644 (file)
@@ -50,7 +50,9 @@ ipq40xx_setup_interfaces()
        meraki,mr33|\
        meraki,mr74|\
        mikrotik,lhgg-60ad|\
-       mikrotik,sxtsq-5-ac)
+       mikrotik,sxtsq-5-ac|\
+       netgear,ex6100v2|\
+       netgear,ex6150v2)
                ucidef_set_interface_lan "lan"
                ;;
        avm,fritzbox-7530)
index ddb2c9bd033065a31b3eadb03e7f865cd9b0e5a2..dc5c25c84ab7042ea337779a0aff471c588670e1 100644 (file)
@@ -65,6 +65,7 @@
                led-failsafe = &power_amber;
                led-running = &power_green;
                led-upgrade = &power_amber;
+               label-mac-device = &gmac;
        };
 
        keys {
        nvmem-cell-names = "pre-calibration", "mac-address";
        nvmem-cells = <&precal_art_5000>, <&macaddr_dnidata_c>;
 };
+
+&gmac {
+       status = "okay";
+};
+
+&switch {
+       status = "okay";
+};
+
+&swport4 {
+       status = "okay";
+       label = "lan";
+};
index a145f05358019a348aa856d012843986f7ce1535..a0ad63cfcecd3a588c5ad0546959a53090729ad5 100644 (file)
@@ -814,16 +814,14 @@ define Device/netgear_ex6100v2
        DEVICE_MODEL := EX6100
        DEVICE_VARIANT := v2
 endef
-# Missing DSA Setup
-#TARGET_DEVICES += netgear_ex6100v2
+TARGET_DEVICES += netgear_ex6100v2
 
 define Device/netgear_ex6150v2
        $(call Device/netgear_ex61x0v2)
        DEVICE_MODEL := EX6150
        DEVICE_VARIANT := v2
 endef
-# Missing DSA Setup
-#TARGET_DEVICES += netgear_ex6150v2
+TARGET_DEVICES += netgear_ex6150v2
 
 define Device/netgear_orbi
        $(call Device/DniImage)