ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_8m.dtsi
index 2faf8a87fe0cee81af5b33989e5f0f3e2876acf4..8372f057cd68e34d2e1ff68b5ed7a976d2ec3d96 100644 (file)
 
 &wmac {
        status = "okay";
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
        mediatek,mtd-eeprom = <&factory 0x20000>;
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
 };