diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:40 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-07 14:48:40 +0100 |
commit | 4589fa38c56a9863546fa852b737ef1cfdbf4b08 (patch) | |
tree | 153c83631ef1dc66a0eddf603237ffa3338cb2d0 /target/linux/mpc85xx | |
parent | c9499decc4fd38d2a292144c3e1136087690bea4 (diff) | |
download | openwrt-4589fa38c56a9863546fa852b737ef1cfdbf4b08.tar.gz openwrt-4589fa38c56a9863546fa852b737ef1cfdbf4b08.tar.bz2 openwrt-4589fa38c56a9863546fa852b737ef1cfdbf4b08.zip |
mpc85xx: 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/mpc85xx')
3 files changed, 13 insertions, 5 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts index 89d8afe463..087138bbc2 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts @@ -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> /include/ "fsl/p1010si-pre.dtsi" @@ -36,7 +37,8 @@ status_red { gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - label = "red:status"; + function = LED_FUNCTION_STATUS; + color = <LED_COLOR_ID_RED>; }; led_mode: mode_green { diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts index 764c8a31c8..5d214e38a4 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts @@ -2,6 +2,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> /include/ "fsl/p1010si-pre.dtsi" @@ -42,12 +43,14 @@ led_power_green: power_green { gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_GREEN>; }; led_power_red: power_red { gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_RED>; }; lan1_red { diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts index bdc5e81df2..30fae7f7d6 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts @@ -4,6 +4,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { model = "Extreme Networks WS-AP3825i"; @@ -47,12 +48,14 @@ led_power_green: power_green { gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_GREEN>; }; led_power_red: power_red { gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_RED>; }; lan1_red { |