summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-07 23:59:33 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-02-08 00:01:22 +0100
commit1765973c406e4d999781b3f5f857ec3e499ee645 (patch)
treea2442a6d11f9bfdc0e20014e8b4bf34e01545ea5
parent60d4f6c025b05c79bd0c416fd73f8548a0403aef (diff)
downloadopenwrt-1765973c406e4d999781b3f5f857ec3e499ee645.tar.gz
openwrt-1765973c406e4d999781b3f5f857ec3e499ee645.tar.bz2
openwrt-1765973c406e4d999781b3f5f857ec3e499ee645.zip
ramips: fix dts error in LED color/function conversion
Fix DTS error in LED color/function conversion due to a bug in the conversion script. Fixes: 19c45b95dbb5 ("ramips: convert to new LED color/function format where possible") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts4
-rw-r--r--target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts4
-rw-r--r--target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts4
-rw-r--r--target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts4
-rw-r--r--target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts4
-rw-r--r--target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts3
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts4
-rw-r--r--target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts4
-rw-r--r--target/linux/ramips/dts/rt5350_vocore_vocore.dtsi3
18 files changed, 34 insertions, 36 deletions
diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
index acc73a8ec9..19e349528c 100644
--- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
+++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7620a_lenovo_newifi-y1.dtsi"
/ {
@@ -60,6 +62,4 @@
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index 254472f72c..8d0dad10e9 100644
--- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7620a_lenovo_newifi-y1.dtsi"
/ {
@@ -118,6 +120,4 @@
&gsw {
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
index 60ab58366f..514ab0534a 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7620a_tplink_archer.dtsi"
/ {
@@ -86,6 +88,4 @@
&wifi {
nvmem-cells = <&macaddr_rom_f100 (-1)>;
nvmem-cell-names = "mac-address";
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
index 86205464ab..9ad16e0cb2 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7620a_tplink_archer.dtsi"
/ {
@@ -65,6 +67,4 @@
&wifi {
nvmem-cells = <&macaddr_rom_f100 (-1)>;
nvmem-cell-names = "mac-address";
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
index 797710c884..fe1324378e 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7620a_tplink_archer.dtsi"
/ {
@@ -86,6 +88,4 @@
&wifi {
nvmem-cells = <&macaddr_rom_f100 (-1)>;
nvmem-cell-names = "mac-address";
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
index 4e7298e8af..fc695df39d 100644
--- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
+++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
@@ -1,6 +1,7 @@
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
@@ -107,6 +108,4 @@
groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
function = "gpio";
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
index 1031c3375f..66e2cfdde7 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -111,6 +113,4 @@
nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
nvmem-cell-names = "eeprom", "mac-address";
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
index f19f8704ad..c20eb3c46f 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -110,6 +112,4 @@
nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
nvmem-cell-names = "eeprom", "mac-address";
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts
index d5a56412f9..fcdc1d6d37 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -92,6 +94,4 @@
&esw {
mediatek,portmap = <0x3e>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
index af1a758d78..01d5d756e3 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -84,6 +86,4 @@
nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
nvmem-cell-names = "eeprom", "mac-address";
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts
index 1bf826349e..408e5fd956 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -80,6 +82,4 @@
&esw {
mediatek,portmap = <0x3e>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts
index 2fda2e9b88..2e5aabd581 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -106,6 +108,4 @@
&esw {
mediatek,portmap = <0x3e>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts
index dc248689bc..0ded67a1a6 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -92,6 +94,4 @@
&esw {
mediatek,portmap = <0x3e>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
index b7aed8132d..d280c6b32a 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_tplink_8m.dtsi"
/ {
@@ -107,6 +109,4 @@
nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
nvmem-cell-names = "eeprom", "mac-address";
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts
index e1a1bc599d..4a5b0ff63a 100644
--- a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts
+++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_vocore_vocore2.dtsi"
/ {
@@ -24,6 +26,4 @@
&firmware {
reg = <0x50000 0x7b0000>;
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts
index b82b740dcd..2018fe1a59 100644
--- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts
+++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_wrtnode_wrtnode2.dtsi"
/ {
@@ -27,6 +29,4 @@
groups = "i2c", "gpio";
function = "gpio";
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
index 37c2d1e9a4..2c479a3840 100644
--- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
+++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
#include "mt7628an_wrtnode_wrtnode2.dtsi"
/ {
@@ -49,6 +51,4 @@
reg = <1>;
spi-max-frequency = <10000000>;
};
-#include <dt-bindings/leds/common.h>
-
};
diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
index 15049e032f..8c5a185b05 100644
--- a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
+++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
@@ -1,6 +1,7 @@
#include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "vocore,vocore", "ralink,rt5350-soc";
@@ -249,6 +250,4 @@
spi-max-frequency = <10000000>;
reg = <0>;
};
-#include <dt-bindings/leds/common.h>
-
};