diff options
author | Piotr Dymacz <pepe2k@gmail.com> | 2017-05-29 21:32:11 +0200 |
---|---|---|
committer | Piotr Dymacz <pepe2k@gmail.com> | 2017-05-30 14:57:09 +0200 |
commit | b1257d8d73690b0e4aac1eed654f5b1b0679bacd (patch) | |
tree | 36a0a8ce5e4a3b10dee8fca407059dc522f5d5a7 /target/linux/ar71xx/base-files/etc | |
parent | 21a7e409412e07887b1f7291b0a6eec0ae205bac (diff) | |
download | upstream-b1257d8d73690b0e4aac1eed654f5b1b0679bacd.tar.gz upstream-b1257d8d73690b0e4aac1eed654f5b1b0679bacd.tar.bz2 upstream-b1257d8d73690b0e4aac1eed654f5b1b0679bacd.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/etc')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/01_leds | 3 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration | 4 |
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 f622929f7c..0279dfca88 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -183,6 +183,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:" ;; |