From: Christian Marangi Date: Wed, 7 Feb 2024 13:48:40 +0000 (+0100) Subject: mvebu: drop redundant label with new LED color/function format X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d93b6d091;p=openwrt%2Fopenwrt.git mvebu: drop redundant label with new LED color/function format Drop redundant label with new LED color/function format declared. This was needed previously when the new format wasn't supported by leds.sh functions script. Now that is supported this property can be removed in favor of the new format. Signed-off-by: Christian Marangi --- diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls220de.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls220de.dts index 3de9ac5473..11be6a4028 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls220de.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls220de.dts @@ -134,7 +134,6 @@ }; led_power: power_white { - label = "white:power"; function = LED_FUNCTION_POWER; color = ; gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; @@ -142,21 +141,18 @@ }; led_failsafe: power_red { - label = "red:power"; function = LED_FUNCTION_POWER; color = ; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; }; led_upgrade: power_orange { - label = "amber:power"; function = LED_FUNCTION_POWER; color = ; gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; }; led_boot: indicator_white { - label = "white:indicator"; function = LED_FUNCTION_INDICATOR; color = ; gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-c200-v2.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-c200-v2.dts index c1c227a5e9..0d5ec567ea 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-c200-v2.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-c200-v2.dts @@ -178,7 +178,6 @@ }; led_status_red: led-10 { - label = "red:status"; function = LED_FUNCTION_STATUS; color = ; gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; @@ -193,7 +192,6 @@ }; led_status_green: led-12 { - label = "green:status"; function = LED_FUNCTION_STATUS; color = ; gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-380-iij-sa-w2.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-380-iij-sa-w2.dts index 09604e2017..335a2ecf96 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-380-iij-sa-w2.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-380-iij-sa-w2.dts @@ -66,71 +66,60 @@ pinctrl-0 = <&pmx_leds_pins>; led-0 { - label = "green:wlan5g"; gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "phy0tpt"; }; led-1 { - label = "red:wlan5g"; gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; color = ; }; led-2 { - label = "green:status"; gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; color = ; function = LED_FUNCTION_STATUS; }; led-3 { - label = "red:status"; gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; color = ; function = LED_FUNCTION_STATUS; }; led-4 { - label = "green:mobile"; gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; color = ; }; led-5 { - label = "red:mobile"; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; color = ; }; led-6 { - label = "green:wlan2g"; gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "phy1tpt"; }; led-7 { - label = "red:wlan2g"; gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; color = ; }; led_power_green: led-8 { - label = "green:power"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; color = ; }; led_power_red: led-9 { - label = "red:power"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; color = ; }; led-10 { - label = "green:usb1"; gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "usbport"; @@ -138,7 +127,6 @@ }; led-11 { - label = "green:usb0"; gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "usbport"; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-30e.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-30e.dts index 8788f022f2..c0900d7126 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-30e.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-30e.dts @@ -14,14 +14,12 @@ &gpio_leds { led-14 { - label = "amber:speed_wan"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "mv88e6xxx-1:00:100Mbps"; }; led-15 { - label = "green:speed_wan"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "mv88e6xxx-1:00:1Gbps"; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts index 4deca093c2..d202d71c7f 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts @@ -14,28 +14,24 @@ &gpio_leds { led-14 { - label = "green:speed_wan1"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "f1072004.mdio-mii:00:1Gbps"; }; led-15 { - label = "green:speed_wan2"; gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "f1072004.mdio-mii:01:1Gbps"; }; led-16 { - label = "amber:speed_lan5"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "mv88e6xxx-1:00:100Mbps"; }; led-17 { - label = "green:speed_lan5"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; color = ; linux,default-trigger = "mv88e6xxx-1:00:1Gbps"; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-x0e.dtsi b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-x0e.dtsi index 91458299a2..8cc2d6bc4a 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-x0e.dtsi +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-x0e.dtsi @@ -46,96 +46,82 @@ pinctrl-0 = <&pmx_gpio_leds_pins>; led-0 { - label = "red:alarm"; gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_ALARM; }; led-1 { - label = "red:ha"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; color = ; }; led_status_green: led-2 { - label = "green:sta"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_STATUS; }; led-3 { - label = "green:ha"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; color = ; }; led-4 { - label = "amber:alarm"; gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_ALARM; }; led_status_red: led-5 { - label = "red:sta"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_STATUS; }; led-6 { - label = "green:speed_lan4"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:01:1Gbps"; }; led-7 { - label = "amber:speed_lan4"; gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:01:100Mbps"; }; led-8 { - label = "amber:speed_lan3"; gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:02:100Mbps"; }; led-9 { - label = "green:speed_lan3"; gpios = <&gpio2 7 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:02:1Gbps"; }; led-10 { - label = "green:speed_lan1"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:04:1Gbps"; }; led-11 { - label = "amber:speed_lan1"; gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:04:100Mbps"; }; led-12 { - label = "green:speed_lan2"; gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:03:1Gbps"; }; led-13 { - label = "amber:speed_lan2"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; color = ; linux,default-trigger = "mv88e6xxx-1:03:100Mbps";