aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:44 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:44 +0100
commitdb9f26cfcb5d5222a68f60fc30958f61d18057f2 (patch)
treeff32e3080cc756ec231ac8b8d21486800e39e651 /target/linux
parentf038c0c18fa454e05da03b48f8634269eacdceda (diff)
downloadupstream-db9f26cfcb5d5222a68f60fc30958f61d18057f2.tar.gz
upstream-db9f26cfcb5d5222a68f60fc30958f61d18057f2.tar.bz2
upstream-db9f26cfcb5d5222a68f60fc30958f61d18057f2.zip
realtek: 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')
-rw-r--r--target/linux/realtek/dts-5.15/rtl8380_engenius_ews2910p.dts7
-rw-r--r--target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi4
-rw-r--r--target/linux/realtek/dts-5.15/rtl83xx_d-link_dgs-1210_common.dtsi4
3 files changed, 11 insertions, 4 deletions
diff --git a/target/linux/realtek/dts-5.15/rtl8380_engenius_ews2910p.dts b/target/linux/realtek/dts-5.15/rtl8380_engenius_ews2910p.dts
index 9b5ddb5ed41..289ec862740 100644
--- a/target/linux/realtek/dts-5.15/rtl8380_engenius_ews2910p.dts
+++ b/target/linux/realtek/dts-5.15/rtl8380_engenius_ews2910p.dts
@@ -3,6 +3,7 @@
#include "rtl838x.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
/ {
@@ -79,7 +80,8 @@
compatible = "gpio-leds";
led_power: led-0 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
};
@@ -89,7 +91,8 @@
};
led_fault: led-2 {
- label = "amber:fault";
+ function = LED_FUNCTION_FAULT;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
};
diff --git a/target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi b/target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi
index 0706c55524b..d30d7b374e7 100644
--- a/target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi
+++ b/target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi
@@ -3,6 +3,7 @@
#include "rtl838x.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
/ {
@@ -38,7 +39,8 @@
compatible = "gpio-leds";
led_power: led-0 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
};
diff --git a/target/linux/realtek/dts-5.15/rtl83xx_d-link_dgs-1210_common.dtsi b/target/linux/realtek/dts-5.15/rtl83xx_d-link_dgs-1210_common.dtsi
index 1e3cafa9381..fa623d7a900 100644
--- a/target/linux/realtek/dts-5.15/rtl83xx_d-link_dgs-1210_common.dtsi
+++ b/target/linux/realtek/dts-5.15/rtl83xx_d-link_dgs-1210_common.dtsi
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
/ {
@@ -22,7 +23,8 @@
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
};