ath79: ar: convert to mac-base
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9344_tplink_tl-wdr3500-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_tplink_tl-wdrxxxx.dtsi"
4
5 / {
6 model = "TP-Link TL-WDR3500 v1";
7 compatible = "tplink,tl-wdr3500-v1", "qca,ar9344";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &leds {
15 usb {
16 label = "green:usb";
17 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
18 linux,default-trigger = "usbport";
19 trigger-sources = <&hub_port>;
20 };
21 };
22
23 &gpio {
24 usb_power {
25 gpio-hog;
26 gpios = <12 GPIO_ACTIVE_HIGH>;
27 output-high;
28 line-name = "tp-link:power:usb";
29 };
30 };
31
32 &pinmux {
33 pmx_led_wan_lan: pinmux_led_wan_lan {
34 pinctrl-single,bits = <0x10 0x2c2d0000 0xffff0000>,
35 <0x14 0x292a2b 0xffffff>;
36 };
37 };
38
39 &builtin_switch {
40 pinctrl-names = "default";
41 pinctrl-0 = <&pmx_led_wan_lan>;
42 };
43
44 &usb {
45 status = "okay";
46 };
47
48 &usb_phy {
49 status = "okay";
50 };
51
52 &wmac {
53 status = "okay";
54 nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>;
55 nvmem-cell-names = "mac-address", "calibration";
56 };
57
58 &pcie {
59 status = "okay";
60
61 ath9k: wifi@0,0 {
62 compatible = "pci168c,0033";
63 reg = <0x0000 0 0 0 0>;
64 #gpio-cells = <2>;
65 gpio-controller;
66 nvmem-cells = <&macaddr_uboot_1fc00 1>, <&cal_art_5000>;
67 nvmem-cell-names = "mac-address", "calibration";
68 };
69 };
70
71 &eth1 {
72 status = "okay";
73
74 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
75 nvmem-cell-names = "mac-address";
76
77 gmac-config {
78 device = <&gmac>;
79 switch-phy-swap = <0>;
80 switch-only-mode = <1>;
81 };
82 };
83
84 &eth0 {
85 status = "okay";
86
87 phy-handle = <&swphy4>;
88
89 nvmem-cells = <&macaddr_uboot_1fc00 2>;
90 nvmem-cell-names = "mac-address";
91 };