ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_hiwifi_hc5861.dts
index d77df2158c7bb053fbafb2b1ac4c328ef56a79fa..6222efcca5235e4a0eafc547e98b70eb561ee00d 100644 (file)
@@ -72,7 +72,8 @@
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &mdio_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 
        pinctrl-names = "default";
        pinctrl-0 = <&pa_pins>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};