summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski2025-03-02 18:11:28 +0000
committerDaniel Golle2025-03-21 00:50:14 +0000
commit7103a1554aedbccc16a8beab759fcbd3b9d8e422 (patch)
tree5fe79124b9ce3646677758154bd3aa050103daa8
parent5016c960bc2e37a4193739ee4f50c8d458552c6a (diff)
downloadopenwrt-7103a1554aedbccc16a8beab759fcbd3b9d8e422.tar.gz
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@wp.pl>
-rw-r--r--target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts8
-rw-r--r--target/linux/mediatek/dts/mt7981b-openwrt-one.dts4
-rw-r--r--target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts2
-rw-r--r--target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts8
-rw-r--r--target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi4
-rw-r--r--target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi12
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@0 {
+ led-0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
};
- led@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@1 {
+ led-1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
};
- led@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@0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_AMBER>;
};
- led@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@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@0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_YELLOW>;
};
- led@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@0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_YELLOW>;
};
- led@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@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@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@0 {
+ led-0 {
reg = <0>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
};
- led@1 {
+ led-1 {
reg = <1>;
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_ORANGE>;
};
- led@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@0 {
+ aqr_green_led: led-0 {
reg = <0>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
};
- aqr_orange_led: led@1 {
+ aqr_orange_led: led-1 {
reg = <1>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_ORANGE>;
};
- aqr_white_led: led@2 {
+ aqr_white_led: led-2 {
reg = <2>;
function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_WHITE>;