ath79: drop unnecessary &uart node from dtsi of QCA955x devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca955x_elecom_wab.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-upgrade = &led_status;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led-0 {
20 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
21 color = <LED_COLOR_ID_GREEN>;
22 function = LED_FUNCTION_WLAN;
23 function-enumerator = <24>;
24 linux,default-trigger = "phy1tpt";
25 };
26
27 led_status: led-1 {
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 color = <LED_COLOR_ID_RED>;
30 function = LED_FUNCTION_STATUS;
31 };
32
33 led-2 {
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 color = <LED_COLOR_ID_GREEN>;
36 function = LED_FUNCTION_USB;
37 trigger-sources = <&usb_port1>;
38 linux,default-trigger = "usbport";
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys";
44
45 button-wps {
46 label = "wps";
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 debounce-interval = <60>;
50 };
51
52 button-reset {
53 label = "reset";
54 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 debounce-interval = <60>;
57 };
58
59 button-eject {
60 label = "eject";
61 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_EJECTCD>;
63 debounce-interval = <60>;
64 };
65 };
66
67 beeper {
68 compatible = "gpio-beeper";
69 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
70 };
71
72 reg_usb_vbus: regulator {
73 compatible = "regulator-fixed";
74 regulator-name = "usb-vbus";
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
77 gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
78 enable-active-high;
79 regulator-always-on;
80 };
81
82 watchdog {
83 compatible = "linux,wdt-gpio";
84 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
85 hw_algo = "toggle";
86 hw_margin_ms = <300>;
87 always-running;
88 };
89 };
90
91 &mdio0 {
92 status = "okay";
93
94 ethphy4: ethernet-phy@4 {
95 compatible = "ethernet-phy-id004d,d072",
96 "ethernet-phy-ieee802.3-c22";
97 reg = <0x4>;
98 eee-broken-100tx;
99 eee-broken-1000t;
100 };
101 };
102
103 &eth0 {
104 status = "okay";
105
106 phy-handle = <&ethphy4>;
107 phy-mode = "rgmii-rxid";
108 pll-data = <0xae000000 0x80000101 0x80001313>;
109
110 gmac-config {
111 device = <&gmac>;
112
113 rxdv-delay = <3>;
114 rxd-delay = <3>;
115 txen-delay = <0>;
116 txd-delay = <0>;
117 rgmii-enabled = <1>;
118 };
119 };
120
121 &mdio1 {
122 status = "okay";
123
124 ethphy1: ethernet-phy@1 {
125 compatible = "ethernet-phy-id004d,d074",
126 "ethernet-phy-ieee802.3-c22";
127 reg = <0x1>;
128 at803x-override-sgmii-link-check;
129 };
130 };
131
132 &eth1 {
133 status = "okay";
134
135 phy-handle = <&ethphy1>;
136 pll-data = <0x03000000 0x00000101 0x00001313>;
137
138 qca955x-sgmii-fixup;
139 };
140
141 &pcie0 {
142 status = "okay";
143
144 wifi@0,0 {
145 compatible = "qcom,ath10k";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&cal_art_5000>;
148 nvmem-cell-names = "calibration";
149 };
150 };
151
152 &spi {
153 status = "okay";
154
155 flash@0 {
156 compatible = "jedec,spi-nor";
157 reg = <0>;
158 spi-max-frequency = <25000000>;
159
160 partitions {
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
163 #size-cells = <1>;
164
165 partition@0 {
166 label = "u-boot";
167 reg = <0x0 0x40000>;
168 read-only;
169 };
170
171 partition@40000 {
172 label = "u-boot-env";
173 reg = <0x40000 0x10000>;
174 read-only;
175 };
176
177 partition@50000 {
178 label = "art";
179 reg = <0x50000 0x10000>;
180 read-only;
181
182 nvmem-layout {
183 compatible = "fixed-layout";
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 cal_art_1000: calibration@1000 {
188 reg = <0x1000 0x440>;
189 };
190
191 cal_art_5000: calibration@5000 {
192 reg = <0x5000 0x844>;
193 };
194 };
195 };
196
197 partition@60000 {
198 label = "art2";
199 reg = <0x60000 0x10000>;
200 read-only;
201 };
202
203 partition@70000 {
204 compatible = "denx,uimage";
205 label = "firmware";
206 reg = <0x70000 0xe00000>;
207 };
208
209 partition@e70000 {
210 label = "manufacture";
211 reg = <0xe70000 0x100000>;
212 read-only;
213 };
214
215 partition@f70000 {
216 label = "backup";
217 reg = <0xf70000 0x10000>;
218 read-only;
219 };
220
221 partition@f80000 {
222 label = "storage";
223 reg = <0xf80000 0x80000>;
224 read-only;
225 };
226 };
227 };
228 };
229
230 &usb_phy0 {
231 status = "okay";
232 };
233
234 &usb0 {
235 #address-cells = <1>;
236 #size-cells = <0>;
237 status = "okay";
238
239 dr_mode = "host";
240 vbus-supply = <&reg_usb_vbus>;
241
242 usb_port1: port@1 {
243 reg = <1>;
244 #trigger-source-cells = <0>;
245 };
246 };
247
248 &wdt {
249 status = "disabled";
250 };
251
252 &wmac {
253 status = "okay";
254
255 nvmem-cells = <&cal_art_1000>;
256 nvmem-cell-names = "calibration";
257 };