diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:34 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:34 +0100 |
commit | e3ddfcc70c604c6eb9172a497df2291489dc1890 (patch) | |
tree | a23ce9cfe32642c60274d47ef71236ba63bdcb2f /target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi | |
parent | e92632f760a9db733ee05a3eef5ebaa45e167343 (diff) | |
download | openwrt-e3ddfcc70c604c6eb9172a497df2291489dc1890.tar.gz openwrt-e3ddfcc70c604c6eb9172a497df2291489dc1890.tar.bz2 openwrt-e3ddfcc70c604c6eb9172a497df2291489dc1890.zip |
ath79: 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/ath79/dts/ar9330_openmesh_om2p.dtsi')
-rw-r--r-- | target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi b/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi index a7fd10bd73..38704f9169 100644 --- a/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi +++ b/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi @@ -4,6 +4,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { chosen { @@ -40,13 +41,15 @@ }; led_power_blue: power_blue { - label = "blue:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_BLUE>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; default-state = "on"; }; lan_blue { - label = "blue:lan"; + function = LED_FUNCTION_LAN; + color = <LED_COLOR_ID_BLUE>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; @@ -62,7 +65,8 @@ }; wan_blue { - label = "blue:wan"; + function = LED_FUNCTION_WAN; + color = <LED_COLOR_ID_BLUE>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; }; |