ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_iodata_wn-ax1167gr.dts
index c549bbb5183521d722a31f313dca73b733d3ea4d..cc6446b75c849fc3c31f7e699a7b63ca679f95d5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&iNIC_rf 0x4>;
+       nvmem-cells = <&macaddr_iNIC_rf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4>;
+                       nvmem-cells = <&macaddr_factory_4>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <1>;
                };
 
 &xhci {
        status = "disabled";
 };
+
+&iNIC_rf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_iNIC_rf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};