فهرست منبع

ipq40xx: convert devolo Magic 2 WiFi next to DSA

Renamed the interfaces to match the other devices.
Name the interface connected to the builtin G.hn chip 'ghn'.
This might toggle at runtime while the G.hn chip is in the
bootloader.

Reviewed-by: Robert Marko <[email protected]>
Signed-off-by: Thomas Bong <[email protected]>
Thomas Bong 2 سال پیش
والد
کامیت
838bb0c03f

+ 3 - 0
target/linux/ipq40xx/base-files/etc/board.d/02_network

@@ -69,6 +69,9 @@ ipq40xx_setup_interfaces()
 	compex,wpj428)
 	compex,wpj428)
 		ucidef_set_interface_lan "lan1 lan2"
 		ucidef_set_interface_lan "lan1 lan2"
 		;;
 		;;
+	devolo,magic-2-wifi-next)
+		ucidef_set_interface_lan "lan1 lan2 ghn"
+		;;
 	linksys,whw01)
 	linksys,whw01)
 		ucidef_set_interface_lan "eth1 eth2"
 		ucidef_set_interface_lan "eth1 eth2"
 		;;
 		;;

+ 23 - 0
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-magic-2-wifi-next.dts

@@ -231,3 +231,26 @@
 		};
 		};
 	};
 	};
 };
 };
+
+&gmac {
+	status = "okay";
+};
+
+&switch {
+	status = "okay";
+};
+
+&swport5 {
+	status = "okay";
+	label = "lan1";
+};
+
+&swport3 {
+	status = "okay";
+	label = "lan2";
+};
+
+&swport4 {
+	status = "okay";
+	label = "ghn";
+};

+ 1 - 1
target/linux/ipq40xx/image/generic.mk

@@ -388,7 +388,7 @@ define Device/devolo_magic-2-wifi-next
 	DEFAULT := n
 	DEFAULT := n
 endef
 endef
 # Missing DSA Setup
 # Missing DSA Setup
-#TARGET_DEVICES += devolo_magic-2-wifi-next
+TARGET_DEVICES += devolo_magic-2-wifi-next
 
 
 define Device/dlink_dap-2610
 define Device/dlink_dap-2610
 	$(call Device/FitImageLzma)
 	$(call Device/FitImageLzma)