aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2019-05-26 15:01:09 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-05-31 11:21:22 +0200
commit085f66de9a1e0cba44eb15deb4f4803f1ac2286f (patch)
treea0be8b95cf052db2b7f68afb823b17766b787b5e /target/linux/ramips/base-files
parent5ff5c9bce6b6e51060c272521528b5afd789e9ab (diff)
downloadupstream-085f66de9a1e0cba44eb15deb4f4803f1ac2286f.tar.gz
upstream-085f66de9a1e0cba44eb15deb4f4803f1ac2286f.tar.bz2
upstream-085f66de9a1e0cba44eb15deb4f4803f1ac2286f.zip
ramips: create R6220 dtsi and improve WNDR3700v5 support
The R6220 and WNDR3700v5 are identical apart from using NAND/NOR flash and having a different casing. This adds a new cleaned up R6220.dtsi with the common bits for both devices. Both devices now have feature parity. Performed cleanup: * generic DTS node names * regulator for usb power * added missing pinctrl groups * use switch port instead of VLAN as trigger for WAN LED Fixes for WNDR3700v5: * all LEDS work * correct ethernet MAC addresses Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network3
2 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 24234dfddd..1b02088ed2 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -287,8 +287,9 @@ px-4885-8M)
set_wifi_led "px-4885:orange:wifi"
;;
r6220|\
-netgear,r6350)
- ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
+netgear,r6350|\
+wndr3700v5)
+ ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
set_wifi_led "$boardname:green:wifi"
;;
rakwireless,rak633)
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 9c9f2bef9c..aa0816c9cc 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -622,7 +622,8 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 46)
;;
r6220|\
- netgear,r6350)
+ netgear,r6350|\
+ wndr3700v5)
wan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$wan_mac" 1)
;;