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
/
mt7986a-tplink-tl-xdr-common.dtsi
diff --git
a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
b/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
index da08bdc723b1b23dfc827eb082676c877c4ed8dd..c851853286a01d406fabdef540bf4f144b36c273 100644
(file)
--- a/
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
+++ b/
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.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>
#include "mt7986a.dtsi"
#include "mt7986a.dtsi"
@@
-67,12
+68,14
@@
compatible = "gpio-leds";
led_status_red: status_red {
compatible = "gpio-leds";
led_status_red: status_red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
};
led_status_green: status_green {
gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
};
led_status_green: status_green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
};
gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
};