diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ipq40xx/base-files/etc/board.d/02_network | 10 | ||||
-rw-r--r-- | target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi | 37 | ||||
-rw-r--r-- | target/linux/ipq40xx/image/generic.mk | 12 |
3 files changed, 51 insertions, 8 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index 57c228e123..c24e4c8373 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -64,6 +64,12 @@ ipq40xx_setup_interfaces() mikrotik,wap-ac) ucidef_set_interface_lan "sw-eth1 sw-eth2" ;; + netgear,rbr50|\ + netgear,rbs50|\ + netgear,srr60|\ + netgear,srs60) + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan" + ;; zte,mf286d) ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" "wan" ;; @@ -142,6 +148,10 @@ ipq40xx_setup_macs() lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base) label_mac="$lan_mac" ;; + netgear,rbr50|\ + netgear,rbs50|\ + netgear,srr60|\ + netgear,srs60|\ pakedge,wr-1) wan_mac=$(macaddr_add $(get_mac_label) 1) ;; diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi index 4a575b60ee..44dbfef529 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi @@ -11,6 +11,7 @@ led-failsafe = &led_status_red; led-running = &led_status_green; led-upgrade = &led_status_blue; + label-mac-device = &gmac; }; soc { @@ -266,6 +267,42 @@ status = "okay"; }; +&gmac { + status = "okay"; +}; + +&switch { + status = "okay"; +}; + +&swport1 { + status = "okay"; + + label = "wan"; +}; + +&swport2 { + status = "okay"; + + label = "lan1"; +}; + +&swport3 { + status = "okay"; + + label = "lan2"; +}; + +&swport4 { + status = "okay"; + + label = "lan3"; +}; + +ðphy4 { + status = "disabled"; +}; + &pcie0 { status = "okay"; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index fd3140c2aa..e8e6e29e72 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -815,8 +815,7 @@ define Device/netgear_rbr50 DEVICE_VARIANT := v1 NETGEAR_BOARD_ID := RBR50 endef -# Missing DSA Setup -#TARGET_DEVICES += netgear_rbr50 +TARGET_DEVICES += netgear_rbr50 define Device/netgear_rbs50 $(call Device/netgear_rbx50) @@ -824,8 +823,7 @@ define Device/netgear_rbs50 DEVICE_VARIANT := v1 NETGEAR_BOARD_ID := RBS50 endef -# Missing DSA Setup -#TARGET_DEVICES += netgear_rbs50 +TARGET_DEVICES += netgear_rbs50 define Device/netgear_srx60 $(call Device/netgear_orbi) @@ -840,16 +838,14 @@ define Device/netgear_srr60 DEVICE_MODEL := SRR60 NETGEAR_BOARD_ID := SRR60 endef -# Missing DSA Setup -#TARGET_DEVICES += netgear_srr60 +TARGET_DEVICES += netgear_srr60 define Device/netgear_srs60 $(call Device/netgear_srx60) DEVICE_MODEL := SRS60 NETGEAR_BOARD_ID := SRS60 endef -# Missing DSA Setup -#TARGET_DEVICES += netgear_srs60 +TARGET_DEVICES += netgear_srs60 define Device/netgear_wac510 $(call Device/FitImage) |