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_oraybox_x3a.dts
diff --git
a/target/linux/ramips/dts/mt7621_oraybox_x3a.dts
b/target/linux/ramips/dts/mt7621_oraybox_x3a.dts
index 239159996337e20195877670e3ff87ae063bdcdf..718cfeae056867da2dcb4e1557db961c05965cda 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_oraybox_x3a.dts
+++ b/
target/linux/ramips/dts/mt7621_oraybox_x3a.dts
@@
-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>
/ {
compatible = "oraybox,x3a", "mediatek,mt7621-soc";
/ {
compatible = "oraybox,x3a", "mediatek,mt7621-soc";
@@
-25,17
+26,20
@@
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 = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_status_blue: status-blue {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_status_blue: status-blue {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_status_green: status-green {
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_status_green: status-green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};