projects
/
openwrt
/
staging
/
mans0n.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mediatek: convert to new LED color/function format where possible
[openwrt/staging/mans0n.git]
/
target
/
linux
/
mediatek
/
dts
/
mt7981b-cudy-wr3000-v1.dts
diff --git
a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
index f4ba629525155aaa9e613b740f0583e764e92cde..10b56a3aa74807046d13211491fe41350be914a3 100644
(file)
--- a/
target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
+++ b/
target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
@@
-2,6
+2,8
@@
/dts-v1/;
/dts-v1/;
+#include <dt-bindings/leds/common.h>
+
#include "mt7981.dtsi"
/ {
#include "mt7981.dtsi"
/ {
@@
-42,7
+44,8
@@
compatible = "gpio-leds";
led_status: led@0 {
compatible = "gpio-leds";
led_status: led@0 {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
@@
-52,12
+55,14
@@
};
led@2 {
};
led@2 {
- label = "blue:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
};
led@3 {
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
};
led@3 {
- label = "blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
};
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
};