ath79: ar: convert to mac-base
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_tplink_tl-wdr3500-v1.dts
index 1600e12b64481607a476a233d4bb909f32c22ce4..a66e1fefa25eed20bf3094581c41cc581ce4245a 100644 (file)
        status = "okay";
 };
 
-&ath9k {
-       mac-address-increment = <1>;
+&wmac {
+       status = "okay";
+       nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>;
+       nvmem-cell-names = "mac-address", "calibration";
+};
+
+&pcie {
+       status = "okay";
+
+       ath9k: wifi@0,0 {
+               compatible = "pci168c,0033";
+               reg = <0x0000 0 0 0 0>;
+               #gpio-cells = <2>;
+               gpio-controller;
+               nvmem-cells = <&macaddr_uboot_1fc00 1>, <&cal_art_5000>;
+               nvmem-cell-names = "mac-address", "calibration";
+       };
 };
 
 &eth1 {
        status = "okay";
 
-       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 
        gmac-config {
                device = <&gmac>;
@@ -72,7 +86,6 @@
 
        phy-handle = <&swphy4>;
 
-       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00 2>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <2>;
 };