ath79: move usb led trigger node to SoC dtsi
[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 nvmem-cells = <&macaddr_uboot_1fc00>;
54 nvmem-cell-names = "mac-address";
55 mac-address-increment = <1>;
56 };
57
58 &wmac {
59 nvmem-cells = <&macaddr_uboot_1fc00>;
60 nvmem-cell-names = "mac-address";
61 };
62
63 &eth1 {
64 status = "okay";
65
66 nvmem-cells = <&macaddr_uboot_1fc00>;
67 nvmem-cell-names = "mac-address";
68 mac-address-increment = <(-1)>;
69
70 gmac-config {
71 device = <&gmac>;
72 switch-phy-swap = <0>;
73 switch-only-mode = <1>;
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 phy-handle = <&swphy4>;
81
82 nvmem-cells = <&macaddr_uboot_1fc00>;
83 nvmem-cell-names = "mac-address";
84 mac-address-increment = <2>;
85 };
86
87 &uboot {
88 compatible = "nvmem-cells";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 macaddr_uboot_1fc00: macaddr@1fc00 {
93 reg = <0x1fc00 0x6>;
94 };
95 };