ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr842n-v2.dts
index 8c27fe1971440a351bb684f85829e0136f9c66c4..5d20df9261edc6891f155e19e3d16940b6b8b988 100644 (file)
@@ -6,6 +6,10 @@
        model = "TP-Link TL-WR842N/ND v2";
        compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
 
+       aliases {
+               label-mac-device = &wmac;
+       };
+
        keys {
                compatible = "gpio-keys";
 
        status = "okay";
 };
 
+&eth0 {
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-1)>;
+};
+
 &eth1 {
        phy-handle = <&swphy4>;
+
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+};
+
+&wmac {
+       mtd-cal-data = <&art 0x1000>;
+
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
 };