1600e12b64481607a476a233d4bb909f32c22ce4
[openwrt/staging/hauke.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 &ath9k {
53 mac-address-increment = <1>;
54 };
55
56 &eth1 {
57 status = "okay";
58
59 nvmem-cells = <&macaddr_uboot_1fc00>;
60 nvmem-cell-names = "mac-address";
61 mac-address-increment = <(-1)>;
62
63 gmac-config {
64 device = <&gmac>;
65 switch-phy-swap = <0>;
66 switch-only-mode = <1>;
67 };
68 };
69
70 &eth0 {
71 status = "okay";
72
73 phy-handle = <&swphy4>;
74
75 nvmem-cells = <&macaddr_uboot_1fc00>;
76 nvmem-cell-names = "mac-address";
77 mac-address-increment = <2>;
78 };