ramips: fix dts error in LED color/function conversion
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 22:59:33 +0000 (23:59 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 23:01:22 +0000 (00:01 +0100)
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>
18 files changed:
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
target/linux/ramips/dts/rt5350_vocore_vocore.dtsi

index acc73a8ec949b3e3aabb018c4877635dc555ae91..19e349528cc4ab884e3c77fe5ab029d743e96a48 100644 (file)
@@ -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>
-
 };
index 254472f72cfe0737ef2db548cc5e6c4ec8b04621..8d0dad10e93bb51ff9db84ee56d76353c1bd73d7 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
 #include "mt7620a_lenovo_newifi-y1.dtsi"
 
 / {
 &gsw {
        mediatek,port4-gmac;
        mediatek,ephy-base = /bits/ 8 <8>;
-#include <dt-bindings/leds/common.h>
-
 };
index 60ab58366fb7bfaa58b32335aa844088239b18a0..514ab0534a17beb7f82eae1a4dab2e86ce772b0f 100644 (file)
@@ -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>
-
 };
index 86205464abce8c7a836d73b0d4535e055116c3b8..9ad16e0cb28f20166bbeb02d77ba574bd2dcc526 100644 (file)
@@ -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>
-
 };
index 797710c8841face22b73706b047ad27250e0f55a..fe1324378ef2b2a52bfa3bf8a35ef937c10b0158 100644 (file)
@@ -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>
-
 };
index 4e7298e8af1d5d6d9cd084393060d1038c498d5e..fc695df39d9d1a160017aba5fb329afab6ef2169 100644 (file)
@@ -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";
                groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
                function = "gpio";
        };
-#include <dt-bindings/leds/common.h>
-
 };
index 1031c3375f443a15a92db0622b64fca2ae7459b3..66e2cfdde778d4eba9f974f2472c4de8bb9fefc5 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_tplink_8m.dtsi"
 
 / {
                nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
                nvmem-cell-names = "eeprom", "mac-address";
        };
-#include <dt-bindings/leds/common.h>
-
 };
index f19f8704adeaf9ec55f6eac654992ba7612f7987..c20eb3c46f80e3df5715bfc547b66dbf0dd454f5 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_tplink_8m.dtsi"
 
 / {
                nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
                nvmem-cell-names = "eeprom", "mac-address";
        };
-#include <dt-bindings/leds/common.h>
-
 };
index d5a56412f97f1f5ddcc108192b8de7d2e7605cfe..fcdc1d6d373ad737826c544be0846bf81c6b0a3b 100644 (file)
@@ -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>
-
 };
index af1a758d789b1fa078ee1180257682aee29a0718..01d5d756e380016fa3d79f8aa9a23f098b735313 100644 (file)
@@ -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>
-
 };
index 1bf826349eb9635ffe0581f687dff6ed14e45939..408e5fd9563ffc6756a6219190f7e5fb1bd74fc2 100644 (file)
@@ -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>
-
 };
index 2fda2e9b889a8dcec8cf18ec4207f862b290b023..2e5aabd5818a0a5a620e09fad9f6254ca39ae4f8 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_tplink_8m.dtsi"
 
 / {
 
 &esw {
        mediatek,portmap = <0x3e>;
-#include <dt-bindings/leds/common.h>
-
 };
index dc248689bced9a5b2ee90816d2b32282ae045301..0ded67a1a633ae051087ae3fb96e06c5cdec04df 100644 (file)
@@ -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>
-
 };
index b7aed8132d2fd84daff1819253bbf3c4a92e1251..d280c6b32a72ad9e01e93921cf4a10739ea30ca8 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_tplink_8m.dtsi"
 
 / {
                nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
                nvmem-cell-names = "eeprom", "mac-address";
        };
-#include <dt-bindings/leds/common.h>
-
 };
index e1a1bc599d1ff7c0f8392224dc4d5775524e4db3..4a5b0ff63a9ba54a752f1eec19b9cea676beecb2 100644 (file)
@@ -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>
-
 };
index b82b740dcd68c69118945d0251dcfecced2a5fc1..2018fe1a5926257382c7486a02f99d4de260631f 100644 (file)
@@ -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>
-
 };
index 37c2d1e9a4a0c750cb63cd321174cf2e742b39b8..2c479a3840bc2f5d1189c0d7167706d9c1a59707 100644 (file)
@@ -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>
-
 };
index 15049e032fd3618532eb01589a9223ce9901968c..8c5a185b05762e64a1bcb903f66d1f8ef0bc1156 100644 (file)
@@ -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";
                spi-max-frequency = <10000000>;
                reg = <0>;
        };
-#include <dt-bindings/leds/common.h>
-
 };