aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts/wd-mybooklive.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/apm821xx/dts/wd-mybooklive.dts')
-rw-r--r--target/linux/apm821xx/dts/wd-mybooklive.dts26
1 files changed, 15 insertions, 11 deletions
diff --git a/target/linux/apm821xx/dts/wd-mybooklive.dts b/target/linux/apm821xx/dts/wd-mybooklive.dts
index bccf82fbaa..c96e7f75e9 100644
--- a/target/linux/apm821xx/dts/wd-mybooklive.dts
+++ b/target/linux/apm821xx/dts/wd-mybooklive.dts
@@ -6,6 +6,7 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include "apm82181.dtsi"
/ {
@@ -14,10 +15,6 @@
aliases {
serial0 = &UART0;
- led-boot = &status;
- led-failsafe = &status;
- led-running = &status;
- led-upgrade = &status;
};
};
@@ -86,19 +83,26 @@
leds {
compatible = "gpio-leds";
- failsafe: power-red {
- label = "mbl:red:power";
+ /* There's just one tri-color LED with three separate pins.
+ * One pin for each color (red, green and blue). Each has
+ * a different meaning.
+ */
+ led-0 {
+ color = <LED_COLOR_ID_RED>;
+ function = LED_FUNCTION_FAULT;
gpios = <&GPIO1 4 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "panic";
+ panic-indicator;
};
- status: power-green {
- label = "mbl:green:power";
+ led-1 {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_POWER;
gpios = <&GPIO1 5 GPIO_ACTIVE_HIGH>;
};
- power-blue {
- label = "mbl:blue:power";
+ led-2 {
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_DISK;
gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "disk-activity";
};