ramips: fix dtc warnings
authorRosen Penev <rosenp@gmail.com>
Thu, 30 Nov 2023 20:08:31 +0000 (12:08 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 5 Jan 2024 15:17:26 +0000 (16:17 +0100)
Mostly leading 0 removals and wrong addresses.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ramips/dts/mt7620a_engenius_epg600.dts
target/linux/ramips/dts/mt7621_cudy_wr2100.dts
target/linux/ramips/dts/mt7621_yuncore_fap640.dts
target/linux/ramips/dts/mt7621_yuncore_fap690.dts
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
target/linux/ramips/dts/rt3662_engenius_esr600h.dts
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi

index f64676d8fbb433265d6b9ef6073bbd4a2231632e..4b3332d2f0742ca835dadca3e5c61577bf355053 100644 (file)
 };
 
 &pcie0 {
-       wifi@0,1,0 {
+       wifi@0,0 {
                compatible = "pci1814,3091";
-               reg = <0x0 1 0 0 0>;
+               reg = <0x0000 0 0 0 0>;
                nvmem-cells = <&eeprom_factory_0>;
                nvmem-cell-names = "eeprom";
        };
index fc38e27ac1857beed8cd80fc3f72b19ddb0ee3bb..afccce15ccdd4320d8cee2ff16ee3d76b5d0a447 100644 (file)
@@ -97,7 +97,7 @@
 };
 
 &pcie1 {
-       wifi@1,0 {
+       wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                nvmem-cells = <&eeprom_factory_8000>;
index 8c662b86cd4b571894bbc7f42fbca73fce76ef91..ddbeceaff8e4752c6e045ec41741c39e4f680e38 100644 (file)
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
-                                       macaddr_factory_0004: macaddr@0004 {
-                                               reg = <0x0004 0x6>;
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
                                        };
 
                                        macaddr_factory_e006: macaddr@e006 {
        label = "wan";
        phy-handle = <&ethphy4>;
 
-       nvmem-cells = <&macaddr_factory_0004>;
+       nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
 };
 
index ce6a60215e27b533c6026a744e8b76d66b81ebae..ccfb0847aa1460a163603d3a9ddcfd3d0e017536 100644 (file)
@@ -99,8 +99,8 @@
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
-                                       macaddr_factory_0004: macaddr@0004 {
-                                               reg = <0x0004 0x6>;
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
                                        };
                                };
                        };
 };
 
 &gmac0 {
-       nvmem-cells = <&macaddr_factory_0004>;
+       nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
 };
 
index 3bdb06cec92c8553dee42a1cb407e4edd1035778..01c8bb942a07bb83fc9b5f672e786af10240b688 100644 (file)
@@ -49,9 +49,6 @@
        keys {
                compatible = "gpio-keys";
 
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                reset {
                        label = "reset";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
index 6770e4cc9a3db4db2c6f5a8f04a1923461f849ad..e142fe53474396c3510907bcf3c8ce9b136fcecc 100644 (file)
 &pci1 {
        status = "okay";
 
-       wifi@0,1,0 {
+       wifi@0,0 {
                compatible = "pci1814,3091";
-               reg = <0x0 1 0 0 0>;
+               reg = <0x10000 0 0 0 0>;
                ralink,5ghz = <0>;
                nvmem-cells = <&eeprom_factory_8000>;
                nvmem-cell-names = "eeprom";
index 148922e8b9b3b68ba38f60c6153a751b87e081a7..8c76eb663100f8413b75a746e7e073658564fd1d 100644 (file)
                                0x9000 0 0 4 &pciintc 19
                        >;
 
-                       pci1: pci@1 {
+                       pci1: pci@1,0 {
                                reg = <0x0800 0 0 0 0>;
                                device_type = "pci";
                                #interrupt-cells = <1>;
                                #address-cells = <3>;
                                #size-cells = <2>;
 
+                               interrupt-controller;
                                status = "disabled";
                        };
 
                                #address-cells = <3>;
                                #size-cells = <2>;
 
+                               interrupt-controller;
                                status = "disabled";
                        };
                };
index 4a64d8a7fe2925848675f48664c486f09c3d3d90..17c982a3146caf4ebb248dfb777d77a2d13f4d18 100644 (file)
 &pci1 {
        status = "okay";
 
-       wifi@1,0 {
+       wifi@0,0 {
                compatible = "pci1814,3091";
                reg = <0x10000 0 0 0 0>;
                ralink,5ghz = <0>;