mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
6bbca3a09a
This adds the default-state = "on"; statement for the power or primary status LED in DTS on kirkwood. This will ensure that this LED will be lit up very early in the boot process (i.e. before diag.sh is executed) and thus will provide an additional hint to the user when problems arise during early boot process. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
32 lines
820 B
Diff
32 lines
820 B
Diff
--- a/arch/arm/boot/dts/kirkwood-nsa325.dts
|
|
+++ b/arch/arm/boot/dts/kirkwood-nsa325.dts
|
|
@@ -15,6 +15,13 @@
|
|
model = "ZyXEL NSA325";
|
|
compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
|
|
|
+ aliases {
|
|
+ led-boot = &led_green_sys;
|
|
+ led-failsafe = &led_orange_sys;
|
|
+ led-running = &led_green_sys;
|
|
+ led-upgrade = &led_orange_sys;
|
|
+ };
|
|
+
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x20000000>;
|
|
@@ -162,11 +169,12 @@
|
|
&pmx_led_hdd1_green &pmx_led_hdd1_red>;
|
|
pinctrl-names = "default";
|
|
|
|
- green-sys {
|
|
+ led_green_sys: green-sys {
|
|
label = "nsa325:green:sys";
|
|
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
|
|
+ default-state = "on";
|
|
};
|
|
- orange-sys {
|
|
+ led_orange_sys: orange-sys {
|
|
label = "nsa325:orange:sys";
|
|
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
|
};
|