diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:43 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:43 +0100 |
commit | 19c45b95dbb53a7ba1a26c201277ca86293bf404 (patch) | |
tree | ec1483fd54dcee17a80368c5fa035053124d7b36 /target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi | |
parent | 7630c052c46925015403564068abdc4b8ca89388 (diff) | |
download | openwrt-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_dlink_dir-8xx.dtsi')
-rw-r--r-- | target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi index bd8fd6f8a1..b94a0784fe 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi +++ b/target/linux/ramips/dts/mt7621_dlink_dir-8xx.dtsi @@ -4,6 +4,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { aliases { @@ -39,12 +40,14 @@ compatible = "gpio-leds"; led_power_orange: power_orange { - label = "orange:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_ORANGE>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; |