projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git]
/
target
/
linux
/
ath79
/
dts
/
qca9563_tplink_archer-x7-v5.dtsi
diff --git
a/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
b/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
index f6a959903fb91635f558f97d1c379a8d2e69927e..c1000f52a3bdf288bd13759e9b19d948307f14a5 100644
(file)
--- a/
target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
+++ b/
target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
@@
-4,6
+4,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 {
@@
-23,7
+24,8
@@
};
usb {
};
usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
@@
-42,12
+44,14
@@
};
wan {
};
wan {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
wan_fail {
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
wan_fail {
- label = "orange:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
@@
-72,7
+76,8
@@
};
wps {
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
};