ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3662_dlink_dir-645.dts
index 23313759c7960897ea89edbef314e662dd6d9d1a..b02c6b692af8f64689768f27e3c4cbee81e01344 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 0>;
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};