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/qca9531_comfast_cf-e313ac.dts | |
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/qca9531_comfast_cf-e313ac.dts')
-rw-r--r-- | target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts b/target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts index 40aa19a66f..08a0a99c2b 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts @@ -4,6 +4,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { compatible = "comfast,cf-e313ac", "qca,qca9531"; @@ -22,18 +23,21 @@ pinctrl-names = "default"; wlan { - label = "green:wlan"; + function = LED_FUNCTION_WLAN; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; lan { - label = "green:lan"; + function = LED_FUNCTION_LAN; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wan { - label = "green:wan"; + function = LED_FUNCTION_WAN; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; |