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
/
rt3050_netcore_nw718.dts
diff --git
a/target/linux/ramips/dts/rt3050_netcore_nw718.dts
b/target/linux/ramips/dts/rt3050_netcore_nw718.dts
index beceb3f35d69205ce608bfcb8c702ee7c9357011..2c2e302ec68f30d85f4560b31c3ac2fe8c137e05 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
+++ b/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
@@
-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>
/ {
compatible = "netcore,nw718", "ralink,rt3050-soc";
/ {
compatible = "netcore,nw718", "ralink,rt3050-soc";
@@
-18,19
+19,22
@@
compatible = "gpio-leds";
led_cpu: cpu {
compatible = "gpio-leds";
led_cpu: cpu {
- label = "amber:cpu";
+ function = LED_FUNCTION_CPU;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
usb {
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
usb {
- label = "amber:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
wps {
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
wps {
- label = "amber:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};