diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-18 11:38:13 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-29 09:34:07 +0200 |
commit | 99045dfc5989e732f671de5d145532f0fe8c0ce1 (patch) | |
tree | da007e85e6638b5eb713e07c14fceef532c80f22 /target/linux/ramips/dts/PBR-M1.dts | |
parent | 111907e8d319eb05e7a5ef7a0cc6ec55cb069242 (diff) | |
download | upstream-99045dfc5989e732f671de5d145532f0fe8c0ce1.tar.gz upstream-99045dfc5989e732f671de5d145532f0fe8c0ce1.tar.bz2 upstream-99045dfc5989e732f671de5d145532f0fe8c0ce1.zip |
ramips: express diag led handling via devicetree
Use the default-state property to express the desired led handling in
the devicetree source file instead of the userspace.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/PBR-M1.dts')
-rw-r--r-- | target/linux/ramips/dts/PBR-M1.dts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts index 39960481f0..537e5f208f 100644 --- a/target/linux/ramips/dts/PBR-M1.dts +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -10,7 +10,7 @@ model = "PBR-M1"; aliases { - led-status = &led_power; + led-status = &led_sys; }; memory@0 { @@ -37,12 +37,13 @@ gpio-leds { compatible = "gpio-leds"; - led_power: power { + power { label = "pbr-m1:blue:power"; gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; + default-state = "on"; }; - sys { + led_sys: sys { label = "pbr-m1:blue:sys"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; |