ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_compex_wpj531-16m.dts
index 89822586ffda095503f0351861b4710a7a9e691c..16a2794b9732b2e6edd022e3588e542b758ba197 100644 (file)
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&uboot 0x2e010>;
+       nvmem-cells = <&macaddr_uboot_2e010>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
-       mtd-mac-address = <&uboot 0x2e018>;
+       nvmem-cells = <&macaddr_uboot_2e018>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
 &usb0 {
        status = "okay";
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_2e010: macaddr@2e010 {
+               reg = <0x2e010 0x6>;
+       };
+
+       macaddr_uboot_2e018: macaddr@2e018 {
+               reg = <0x2e018 0x6>;
+       };
+};