aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
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/mt7628an_netgear_r6xxx.dtsi
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/mt7628an_netgear_r6xxx.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi13
1 files changed, 9 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
index 98d132e891..550e59301a 100644
--- a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
+++ b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
@@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
@@ -27,12 +28,14 @@
compatible = "gpio-leds";
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
@@ -48,12 +51,14 @@
};
wan_green {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wan_orange {
- label = "orange:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
};