[openwrt/openwrt] mediatek: rename PHY LEDs to match upstream bindings
LEDE Commits
lede-commits at lists.infradead.org
Thu Mar 20 17:51:13 PDT 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7103a1554aedbccc16a8beab759fcbd3b9d8e422
commit 7103a1554aedbccc16a8beab759fcbd3b9d8e422
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Sun Mar 2 19:11:28 2025 +0100
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 <olek2 at wp.pl>
---
target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts | 8 ++++----
target/linux/mediatek/dts/mt7981b-openwrt-one.dts | 4 ++--
target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts | 2 +-
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts | 8 ++++----
.../linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi | 4 ++--
target/linux/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 05fd74a7d3..20d6d0fbc3 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 at 0 {
+ led-0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
};
- led at 1 {
+ led-1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
@@ -214,13 +214,13 @@
#address-cells = <1>;
#size-cells = <0>;
- led at 1 {
+ led-1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
};
- led at 2 {
+ led-2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
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 584b482179..63b2a27b91 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 at 0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_AMBER>;
};
- led at 1 {
+ led-1 {
reg = <1>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
index f055118398..52fd601f11 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 at 0 {
+ led-0 {
reg = <0>;
color = <LED_COLOR_ID_WHITE>;
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 09a557c0cb..5781cc9fcc 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 at 0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_YELLOW>;
};
- led at 1 {
+ led-1 {
reg = <1>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
@@ -223,13 +223,13 @@
#address-cells = <1>;
#size-cells = <0>;
- led at 0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_YELLOW>;
};
- led at 1 {
+ led-1 {
reg = <1>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
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 1a90417f19..74d66ab16d 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 at 0 {
+ led-0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
@@ -235,7 +235,7 @@
#address-cells = <1>;
#size-cells = <0>;
- led at 0 {
+ led-0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
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 a3db288d27..e634a1c453 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 at 0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
};
- led at 1 {
+ led-1 {
reg = <1>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_ORANGE>;
};
- led at 2 {
+ led-2 {
reg = <2>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_WHITE>;
@@ -459,19 +459,19 @@
#address-cells = <1>;
#size-cells = <0>;
- aqr_green_led: led at 0 {
+ aqr_green_led: led-0 {
reg = <0>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
};
- aqr_orange_led: led at 1 {
+ aqr_orange_led: led-1 {
reg = <1>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_ORANGE>;
};
- aqr_white_led: led at 2 {
+ aqr_white_led: led-2 {
reg = <2>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_WHITE>;
More information about the lede-commits
mailing list