aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2017-05-29 21:32:11 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2017-05-30 14:34:04 +0200
commit18d5cee2a8c0bcddbbcca964bf95bed58d286b9d (patch)
tree6fd895d9f84be46f331a53d5195271eea3b1f857 /target/linux/ar71xx/base-files
parent6713640b5205423a3f19c80a713a2e7afa16ea12 (diff)
downloadupstream-18d5cee2a8c0bcddbbcca964bf95bed58d286b9d.tar.gz
upstream-18d5cee2a8c0bcddbbcca964bf95bed58d286b9d.tar.bz2
upstream-18d5cee2a8c0bcddbbcca964bf95bed58d286b9d.zip
ar71xx: fix Wallys DR344 GPIO-connected LEDs and button
This fixes wrong GPIO numbers for LEDs and button in Wallys DR344 board and sets color of all LEDs to green as the mass production boards have only green one. Actually, DR344 has 6 GPIO-connected LEDs and one button: - GPIO11: status - GPIO12: sig1 - GPIO13: sig2 - GPIO14: sig3 - GPIO15: sig4 - GPIO16: reset button - GPIO17: lan WAN LED is connected directly with AR8035 PHY. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds3
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration4
2 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 7248ab1941..2f9ae8b10e 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -205,6 +205,9 @@ cr5000)
ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
;;
+dr344)
+ ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+ ;;
dragino2)
ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
index d578f59f7c..16722d1ab2 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
@@ -52,6 +52,10 @@ dir-835-a1)
migrate_leds ":orange:=:amber:" ":wifi_bgn=:wlan2g"
;;
+dr344)
+ migrate_leds ":red:=:green:" ":yellow:=:green:"
+ ;;
+
wndap360)
migrate_leds "wndap360:=netgear:"
;;