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