ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3052_dlink_dap-1350.dts
index a2584e005e2615b743e0f52cdbb6d35fa0cb3e9d..e33a7ef5b5eb67b7ed0976259449732af8baf37d 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x2e>;
+       nvmem-cells = <&macaddr_devdata_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};