From 7103a1554aedbccc16a8beab759fcbd3b9d8e422 Mon Sep 17 00:00:00 2001 From: Aleksander Jan Bajkowski Date: Sun, 2 Mar 2025 19:11:28 +0100 Subject: [PATCH] mediatek: rename PHY LEDs to match upstream bindings Kernel docs recommends the following pattern "(^led-[0-9a-f]$|led)"[1]. 1. https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/leds/leds-gpio.yaml#L24 Signed-off-by: Aleksander Jan Bajkowski --- .../linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts | 8 ++++---- target/linux/mediatek/dts/mt7981b-openwrt-one.dts | 4 ++-- .../linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts | 2 +- .../mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts | 8 ++++---- .../mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi | 4 ++-- .../mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi | 12 ++++++------ 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts b/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts index 05fd74a7d30..20d6d0fbc3e 100644 --- a/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts +++ b/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts @@ -188,13 +188,13 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; color = ; function = LED_FUNCTION_LAN; }; - led@1 { + led-1 { reg = <1>; color = ; function = LED_FUNCTION_LAN; @@ -214,13 +214,13 @@ #address-cells = <1>; #size-cells = <0>; - led@1 { + led-1 { reg = <1>; color = ; function = LED_FUNCTION_WAN; }; - led@2 { + led-2 { reg = <2>; color = ; function = LED_FUNCTION_WAN; diff --git a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts index 584b4821792..63b2a27b915 100644 --- a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts +++ b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts @@ -171,13 +171,13 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; function = LED_FUNCTION_WAN; color = ; }; - led@1 { + led-1 { reg = <1>; function = LED_FUNCTION_WAN; color = ; diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts index f0551183986..52fd601f111 100644 --- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts +++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts @@ -140,7 +140,7 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; color = ; function = LED_FUNCTION_WAN; diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts index 09a557c0cb8..5781cc9fccb 100644 --- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts +++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts @@ -187,13 +187,13 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; function = LED_FUNCTION_LAN; color = ; }; - led@1 { + led-1 { reg = <1>; function = LED_FUNCTION_LAN; color = ; @@ -223,13 +223,13 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; function = LED_FUNCTION_WAN; color = ; }; - led@1 { + led-1 { reg = <1>; function = LED_FUNCTION_WAN; color = ; diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi index 1a90417f19b..74d66ab16d8 100644 --- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi +++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi @@ -219,7 +219,7 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; color = ; function = LED_FUNCTION_LAN; @@ -235,7 +235,7 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; color = ; function = LED_FUNCTION_WAN; diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi index a3db288d274..e634a1c4538 100644 --- a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi +++ b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi @@ -425,19 +425,19 @@ #address-cells = <1>; #size-cells = <0>; - led@0 { + led-0 { reg = <0>; function = LED_FUNCTION_WAN; color = ; }; - led@1 { + led-1 { reg = <1>; function = LED_FUNCTION_WAN; color = ; }; - led@2 { + led-2 { reg = <2>; function = LED_FUNCTION_WAN; color = ; @@ -459,19 +459,19 @@ #address-cells = <1>; #size-cells = <0>; - aqr_green_led: led@0 { + aqr_green_led: led-0 { reg = <0>; function = LED_FUNCTION_LAN; color = ; }; - aqr_orange_led: led@1 { + aqr_orange_led: led-1 { reg = <1>; function = LED_FUNCTION_LAN; color = ; }; - aqr_white_led: led@2 { + aqr_white_led: led-2 { reg = <2>; function = LED_FUNCTION_LAN; color = ;