From b1257d8d73690b0e4aac1eed654f5b1b0679bacd Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 29 May 2017 21:32:11 +0200 Subject: 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 --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'target/linux/ar71xx/base-files/etc') 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 f622929..0279dfc 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 d578f59..16722d1 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:" ;; -- cgit v1.1