realtek: convert to nvmem-layout
authorRosen Penev <rosenp@gmail.com>
Mon, 13 Nov 2023 20:14:37 +0000 (12:14 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 24 Nov 2023 15:37:02 +0000 (16:37 +0100)
nvmem-cells is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi
target/linux/realtek/dts-5.15/rtl8382_tplink_t1600g-28ts-v3.dts
target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts

index e727a9405ad75b966f2c9fe0e1167e774499033d..0706c55524bb97f44939c23d791375d102a1c384 100644 (file)
                                reg = <0x1b00000 0x400000>;
                        };
                        partition@1f00000 {
-                               compatible = "nvmem-cells";
                                label = "para";
                                reg = <0x1f00000 0x100000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               factory_macaddr: macaddr@fdff4 {
-                                       reg = <0xfdff4 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       factory_macaddr: macaddr@fdff4 {
+                                               reg = <0xfdff4 0x6>;
+                                       };
                                };
                        };
                };
index 3b3b7ad2f84f04a344e53e05f062be24a4923db5..6e9f7baed063d969bf03e355206c4a893732cf90 100644 (file)
                                reg = <0x1b00000 0x400000>;
                        };
                        partition@1f00000 {
-                               compatible = "nvmem-cells";
                                label = "para";
                                reg = <0x1f00000 0x100000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               factory_macaddr: macaddr@fdff4 {
-                                       reg = <0xfdff4 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       factory_macaddr: macaddr@fdff4 {
+                                               reg = <0xfdff4 0x6>;
+                                       };
                                };
                        };
                };
index d2221c1d2f04609d018447a137f8b171dbe5d5a4..5ca342f970ddd314ce794f1444527556fce0f335 100644 (file)
                                reg = <0x1b00000 0x400000>;
                        };
                        partition@1f00000 {
-                               compatible = "nvmem-cells";
                                label = "para";
                                reg = <0x1f00000 0x100000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               factory_macaddr: macaddr@fdff4 {
-                                       reg = <0xfdff4 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       factory_macaddr: macaddr@fdff4 {
+                                               reg = <0xfdff4 0x6>;
+                                       };
                                };
                        };
                };