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-cetron-ct3003.dts
diff --git
a/target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
b/target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
index 281c96e275ef5bacbec333947988588bd7f79165..919c208918e0d1087ebaf6ce46b2245a37f619b6 100644
(file)
--- a/
target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
+++ b/
target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
@@
-3,6
+3,7
@@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
#include "mt7981.dtsi"
@@
-47,12
+48,14
@@
compatible = "gpio-leds";
led_status_red: led_status_red {
compatible = "gpio-leds";
led_status_red: led_status_red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
led_status_green: led_status_green {
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
led_status_green: led_status_green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
};
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
};