projects
/
openwrt
/
staging
/
jow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620a_phicomm_k2x.dtsi
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
b/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
index 588789239f09e3a47332b0d6f4122440e4f58562..3d01ba9cae660010fe481eea612289ce27a7840d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
@@
-2,6
+2,7
@@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
/ {
aliases {
@@
-25,18
+26,21
@@
compatible = "gpio-leds";
led_blue: blue {
compatible = "gpio-leds";
led_blue: blue {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
default-state = "on";
};
yellow {
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
default-state = "on";
};
yellow {
- label = "yellow:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
red {
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
};
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
};