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
/
mt7621_iodata_wn-gx300gr.dts
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
index 6bd5e733f4a6fd29e2572764e796302f8b8eabbe..eaf1a1d66a6a87893f2f812e0119e27852caec6b 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.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 = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
/ {
compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
@@
-22,12
+23,14
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps {
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};