ramips: fix MAC address for some devices
authorShiji Yang <yangshiji66@qq.com>
Sat, 15 Jun 2024 01:20:50 +0000 (01:20 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Jun 2024 20:54:52 +0000 (22:54 +0200)
1. Remove unused macaddr NVMEM cells.
2. Fix "mac-base" compatible cells references.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7620a_bolt_bl100.dts
target/linux/ramips/dts/mt7621_dlink_flash-16m-a1.dtsi
target/linux/ramips/dts/mt7621_dlink_flash-16m-r1.dtsi
target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
target/linux/ramips/dts/mt7621_hanyang_hyc-g920.dts
target/linux/ramips/dts/mt7621_iptime_a3004t.dts
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi

index bd335894c81994c3ef64a68ca563bb86fec3a163..e4bc6e211b4e858431f07aeaa1522c2ab439d72c 100644 (file)
                                        };
 
                                        macaddr_factory_28: macaddr@28 {
-                                               compatible = "mac-base";
                                                reg = <0x28 0x6>;
-                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
index 96a6b286fe6c72b01d3ec45c330623b1d2bedb2a..bbf6244d958a65482c221d1fef8e605374b982dd 100644 (file)
@@ -50,7 +50,9 @@
                                        };
 
                                        macaddr_factory_e006: macaddr@e006 {
+                                               compatible = "mac-base";
                                                reg = <0xe006 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
index 6d77044aa45d6eea57a140aa26e6d8c44c53dfee..2ef9c10a42ec353b08d7477604597cf3235bcf0b 100644 (file)
@@ -56,7 +56,9 @@
                                        };
 
                                        macaddr_factory_e006: macaddr@e006 {
+                                               compatible = "mac-base";
                                                reg = <0xe006 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
index d7510c292b7e6f55688976ff12d1d7e2fb4906dd..d94d36e9a60bfae112ca14d6aaf5e5dcb9199087 100644 (file)
@@ -13,7 +13,7 @@
 };
 
 &gmac1 {
-       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cells = <&macaddr_factory_e006 0>;
        nvmem-cell-names = "mac-address";
 };
 
index 432aa5abd2083c9d17536b908c1b030714f63bc4..845afd4ec1f7914b212958f59900db67040388da 100644 (file)
                                                reg = <0x4 0x6>;
                                                #nvmem-cell-cells = <1>;
                                        };
-
-                                       macaddr_factory_8004: macaddr@8004 {
-                                               reg = <0x8004 0x6>;
-                                       };
                                };
                        };
 
index 7b2465c14fa52fffd50a5c91c58d7d849bc78227..e6a3f40fecc93f090346190f3575e7898c232942 100644 (file)
                                        reg = <0x4 0x6>;
                                        #nvmem-cell-cells = <1>;
                                };
-
-                               macaddr_factory_8004: macaddr@8004 {
-                                       reg = <0x8004 0x6>;
-                               };
                        };
                };
 
index 97b18680d9e03b7e359c5d29a6cdec5c14cde81c..e88863eddf98a3f8d57e7e861482af4149dec001 100644 (file)
                                        macaddr_factory_28: macaddr@28 {
                                                reg = <0x28 0x6>;
                                        };
-
-                                       macaddr_factory_8004: macaddr@8004 {
-                                               reg = <0x8004 0x6>;
-                                       };
                                };
                        };