mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
373d4cc360
Remove local diag.sh in favor of generic one and add the required led-* aliases to DTS. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
28 lines
577 B
Diff
28 lines
577 B
Diff
--- a/arch/mips/boot/dts/img/pistachio_marduk.dts
|
|
+++ b/arch/mips/boot/dts/img/pistachio_marduk.dts
|
|
@@ -19,6 +19,11 @@
|
|
ethernet0 = &enet;
|
|
spi0 = &spfi0;
|
|
spi1 = &spfi1;
|
|
+
|
|
+ led-boot = &led_heartbeat;
|
|
+ led-failsafe = &led_heartbeat;
|
|
+ led-running = &led_heartbeat;
|
|
+ led-upgrade = &led_heartbeat;
|
|
};
|
|
|
|
chosen {
|
|
@@ -88,11 +93,10 @@
|
|
|
|
leds {
|
|
compatible = "pwm-leds";
|
|
- heartbeat {
|
|
+ led_heartbeat: heartbeat {
|
|
label = "marduk:red:heartbeat";
|
|
pwms = <&pwm 3 300000>;
|
|
max-brightness = <255>;
|
|
- linux,default-trigger = "heartbeat";
|
|
};
|
|
};
|
|
|