summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.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/mt7621_elecom_wrc-1167ghbk2-s.dts
parent7630c052c46925015403564068abdc4b8ca89388 (diff)
downloadopenwrt-19c45b95dbb53a7ba1a26c201277ca86293bf404.tar.gz
openwrt-19c45b95dbb53a7ba1a26c201277ca86293bf404.tar.bz2
openwrt-19c45b95dbb53a7ba1a26c201277ca86293bf404.zip
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/mt7621_elecom_wrc-1167ghbk2-s.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts13
1 files changed, 9 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
index 9c0353ae28..a095275f5d 100644
--- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
+++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
@@ -2,6 +2,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
@@ -29,22 +30,26 @@
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
wps {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
};