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