ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7240_tplink_tl-wr.dtsi
index adc6cc87b3281c7a502c8869d1664564b2336ee1..40a2ca239905a595034200c57e7b0248803c6057 100644 (file)
 };
 
 &eth0 {
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
 
 &eth1 {
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
 &ath9k {
        compatible = "pci168c,002b";
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
+};