ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_iodata_wn-ac1167gr.dts
index d59b481a612787f8a315a74623cc4641a18c9c27..5eca06fcb93cc9e92db4d6e4862627029885ba4e 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &mdio_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@5 {
                status = "okay";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};