projects
/
openwrt
/
staging
/
nbd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipq40xx: convert to new LED color/function format where possible
[openwrt/staging/nbd.git]
/
target
/
linux
/
ipq40xx
/
files
/
arch
/
arm
/
boot
/
dts
/
qcom-ipq4019-fritzrepeater-1200.dts
diff --git
a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
index 723f2161c614729c617f4cb3a97a2bc7f0b7cd8a..7d683cdf652dbd6129c99be9a25a7a75f70d6d05 100644
(file)
--- a/
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
+++ b/
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
@@
-3,6
+3,7
@@
#include "qcom-ipq4019.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qcom-ipq4019.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/soc/qcom,tcsr.h>
/ {
#include <dt-bindings/soc/qcom,tcsr.h>
/ {
@@
-73,17
+74,20
@@
compatible = "gpio-leds";
power_red: power_red {
compatible = "gpio-leds";
power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
};
power_yellow {
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
};
power_yellow {
- label = "yellow:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
};
};
gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
};
};