diff options
author | John Crispin <blogic@openwrt.org> | 2016-01-01 21:18:47 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-01-01 21:18:47 +0000 |
commit | 1351936e19016ff3d93fc1fd8e8e0201a4d07c2e (patch) | |
tree | e2d01b54481f0d40ffddc82eb8d0da07adf15df0 /target/linux/lantiq/dts/ARV4520PW.dts | |
parent | 729c6ff67429d3f5ee50d825333f6e2e6c2dcb70 (diff) | |
download | master-187ad058-1351936e19016ff3d93fc1fd8e8e0201a4d07c2e.tar.gz master-187ad058-1351936e19016ff3d93fc1fd8e8e0201a4d07c2e.tar.bz2 master-187ad058-1351936e19016ff3d93fc1fd8e8e0201a4d07c2e.zip |
lantiq: add support for indicating the boot state using three leds
The BTHOMEHUBV5A has a RGB power led, where every colour is perfect to
indicate the current boot state. This patch adds support for such cases.
The existing led sequences should be the same as before.
Boards which are using a led different from power (like TDW89x0) are
changed to switch of the led after boot
Signed-off-by: Mathias Kresin <openwrt@kresin.me>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48041 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/dts/ARV4520PW.dts')
-rw-r--r-- | target/linux/lantiq/dts/ARV4520PW.dts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts index 642bde22fe..d97009cc53 100644 --- a/target/linux/lantiq/dts/ARV4520PW.dts +++ b/target/linux/lantiq/dts/ARV4520PW.dts @@ -9,10 +9,12 @@ bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; leds { + boot = &power_blue; + failsafe = &power_red; + running = &power_blue; + dsl = &adsl; internet = &internet; - power = &power; - power2 = &power2; usb = &usb; wifi = &wifi; }; @@ -149,9 +151,10 @@ gpio-leds { compatible = "gpio-leds"; - power: power { + power_blue: power { label = "power"; gpios = <&gpio 3 1>; + default-state = "keep"; }; adsl: adsl { label = "adsl"; @@ -161,7 +164,7 @@ label = "internet"; gpios = <&gpio 5 1>; }; - power2: power2 { + power_red: power2 { label = "power2"; gpios = <&gpio 6 1>; }; |