ath79: ag71xx: remove PHY reset
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr1043nd-v1.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9132.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
11 model = "TP-Link TL-WR1043ND Version 1";
12
13 aliases {
14 led-status = &system;
15 };
16
17 extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <40000000>;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 button0 {
27 label = "reset";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32
33 button1 {
34 label = "qss";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43 usb {
44 label = "tp-link:green:usb";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 default-state = "off";
47 trigger-sources = <&hub_port>;
48 linux,default-trigger = "usbport";
49 };
50
51 system: system {
52 label = "tp-link:green:system";
53 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "heartbeat";
55 };
56
57 qss {
58 label = "tp-link:green:qss";
59 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
60 };
61
62 wlan {
63 label = "tp-link:green:wlan";
64 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
65 default-state = "off";
66 linux,default-trigger = "phy0tpt";
67 };
68 };
69
70 rtl8366rb {
71 compatible = "realtek,rtl8366rb";
72 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
73 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
74
75 resets = <&rst 8>;
76 reset-names = "switch";
77 };
78 };
79
80 &uart {
81 status = "okay";
82 };
83
84 &pll {
85 clocks = <&extosc>;
86 };
87
88 &usb {
89 #address-cells = <1>;
90 #size-cells = <0>;
91 status = "okay";
92
93 hub_port: port@1 {
94 reg = <1>;
95 #trigger-source-cells = <0>;
96 };
97 };
98
99 &usb_phy {
100 status = "okay";
101 };
102
103 &spi {
104 status = "okay";
105 num-cs = <1>;
106
107 flash@0 {
108 compatible = "jedec,spi-nor";
109 reg = <0>;
110 spi-max-frequency = <25000000>;
111
112 partitions {
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 uboot: partition@0 {
118 label = "u-boot";
119 reg = <0x000000 0x020000>;
120 read-only;
121 };
122
123 partition@20000 {
124 label = "firmware";
125 reg = <0x020000 0x7D0000>;
126 };
127
128 art: partition@7F0000 {
129 label = "art";
130 reg = <0x7F0000 0x010000>;
131 read-only;
132 };
133 };
134 };
135 };
136
137 &eth0 {
138 status = "okay";
139
140 phy-mode = "rgmii";
141 mtd-mac-address = <&uboot 0x1fc00>;
142
143 fixed-link {
144 speed = <1000>;
145 full-duplex;
146 };
147 };
148
149 &wmac {
150 status = "okay";
151 mtd-cal-data = <&art 0x1000>;
152 mtd-mac-address = <&uboot 0x1fc00>;
153 };