ath79: ar: convert to mac-base
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_tplink_tl-wdr3500-v1.dts
index fbe10752e76abc27cd0e044b5dce03bc000d1b36..a66e1fefa25eed20bf3094581c41cc581ce4245a 100644 (file)
@@ -1,16 +1,19 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "ar9344_tplink_tl-wdrxxxx.dtsi"
 
 / {
        model = "TP-Link TL-WDR3500 v1";
        compatible = "tplink,tl-wdr3500-v1", "qca,ar9344";
+
+       aliases {
+               label-mac-device = &wmac;
+       };
 };
 
 &leds {
        usb {
-               label = "tp-link:green:usb";
+               label = "green:usb";
                gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                linux,default-trigger = "usbport";
                trigger-sources = <&hub_port>;
 };
 
 &usb {
-       #address-cells = <1>;
-       #size-cells = <0>;
        status = "okay";
-
-       hub_port: port@1 {
-               reg = <1>;
-               #trigger-source-cells = <0>;
-       };
 };
 
 &usb_phy {
        status = "okay";
 };
 
-&ath9k {
-       mtd-mac-address = <&uboot 0x1fc00>;
-       mtd-mac-address-increment = <1>;
+&wmac {
+       status = "okay";
+       nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>;
+       nvmem-cell-names = "mac-address", "calibration";
 };
 
-&wmac {
-       mtd-mac-address = <&uboot 0x1fc00>;
+&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";
 
-       mtd-mac-address = <&uboot 0x1fc00>;
-       mtd-mac-address-increment = <(-1)>;
+       nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
@@ -80,6 +86,6 @@
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&uboot 0x1fc00>;
-       mtd-mac-address-increment = <2>;
+       nvmem-cells = <&macaddr_uboot_1fc00 2>;
+       nvmem-cell-names = "mac-address";
 };