mediatek: update NVMEM bindings for Buffalo WSR-2533DHP2
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 27 Aug 2023 06:10:53 +0000 (15:10 +0900)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 27 Feb 2024 17:42:30 +0000 (17:42 +0000)
Update NVMEM-related nodes and use newer binding for MAC addresses on
Buffalo WSR-2533DHP2.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(cherry picked from commit de62e0165264fb2872e87116ddceb8c7e12c5a5a)

target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts

index fec559c8af5e5849684cd01ab7c27109d522d9da..9a44152a911db3970a5dadb931b69549282e13ed 100644 (file)
 
                phy-connection-type = "2500base-x";
 
-               nvmem-cells = <&macaddr_factory_4>;
+               nvmem-cells = <&macaddr_factory_4 (-1)>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <(-1)>;
 
                fixed-link {
                        speed = <2500>;
                        };
 
                        factory: partition@1c0000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x1c0000 0x40000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               compatible = "mac-base";
+                                               reg = <0x4 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@200000 {
 &rtc {
        status = "disabled";
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_4: macaddr@4 {
-               reg = <0x4 0x6>;
-       };
-};