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>
33 lines
771 B
Diff
33 lines
771 B
Diff
--- a/arch/arm/boot/dts/kirkwood-pogo_e02.dts
|
|
+++ b/arch/arm/boot/dts/kirkwood-pogo_e02.dts
|
|
@@ -20,6 +20,13 @@
|
|
compatible = "cloudengines,pogoe02", "marvell,kirkwood-88f6281",
|
|
"marvell,kirkwood";
|
|
|
|
+ aliases {
|
|
+ led-boot = &led_health;
|
|
+ led-failsafe = &led_fault;
|
|
+ led-running = &led_health;
|
|
+ led-upgrade = &led_fault;
|
|
+ };
|
|
+
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x10000000>;
|
|
@@ -33,12 +40,12 @@
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
- health {
|
|
+ led_health: health {
|
|
label = "pogo_e02:green:health";
|
|
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
|
- default-state = "keep";
|
|
+ default-state = "on";
|
|
};
|
|
- fault {
|
|
+ led_fault: fault {
|
|
label = "pogo_e02:orange:fault";
|
|
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
|
|
};
|