aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:43 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:43 +0100
commit19c45b95dbb53a7ba1a26c201277ca86293bf404 (patch)
treeec1483fd54dcee17a80368c5fa035053124d7b36 /target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
parent7630c052c46925015403564068abdc4b8ca89388 (diff)
ramips: convert to new LED color/function format where possible
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts')
-rw-r--r--target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts7
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
index 60ec3dacf5..0811c24934 100644
--- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
+++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
@@ -2,6 +2,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h>
/ {
@@ -37,12 +38,14 @@
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "amber:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};