ipq40xx: use existing labels for prng node
[openwrt/staging/blogic.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-fritzbox-4040.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "AVM FRITZ!Box 4040";
11 compatible = "avm,fritzbox-4040";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &flash;
16 led-running = &power;
17 led-upgrade = &flash;
18 label-mac-device = &gmac;
19 };
20
21 soc {
22 mdio@90000 {
23 status = "okay";
24 };
25
26 tcsr@1949000 {
27 compatible = "qcom,tcsr";
28 reg = <0x1949000 0x100>;
29 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
30 };
31
32 tcsr@194b000 {
33 compatible = "qcom,tcsr";
34 reg = <0x194b000 0x100>;
35 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
36 };
37
38 ess_tcsr@1953000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 };
43
44 tcsr@1957000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
48 };
49
50 crypto@8e3a000 {
51 status = "okay";
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 wlan {
59 label = "wlan";
60 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RFKILL>;
62 };
63
64 wps {
65 label = "wps";
66 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
68 };
69 };
70
71 switch-leds {
72 compatible = "gpio-leds";
73
74 wlan {
75 function = LED_FUNCTION_WLAN;
76 color = <LED_COLOR_ID_GREEN>;
77 gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
78 };
79
80 panic: info_red {
81 label = "red:info";
82 gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
83 panic-indicator;
84 };
85
86 wan {
87 function = LED_FUNCTION_WAN;
88 color = <LED_COLOR_ID_GREEN>;
89 gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
90 };
91
92 power: power {
93 function = LED_FUNCTION_POWER;
94 color = <LED_COLOR_ID_GREEN>;
95 gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
96 };
97
98 lan {
99 function = LED_FUNCTION_LAN;
100 color = <LED_COLOR_ID_GREEN>;
101 gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
102 };
103
104 flash: info_amber {
105 label = "amber:info";
106 gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
107 };
108 };
109 };
110
111 &watchdog {
112 status = "okay";
113 };
114
115 &prng {
116 status = "okay";
117 };
118
119 &tlmm {
120 serial_pins: serial_pinmux {
121 mux {
122 pins = "gpio60", "gpio61";
123 function = "blsp_uart0";
124 bias-disable;
125 };
126 };
127
128 spi_0_pins: spi_0_pinmux {
129 mux {
130 function = "blsp_spi0";
131 pins = "gpio55", "gpio56", "gpio57";
132 drive-strength = <12>;
133 bias-disable;
134 };
135
136 mux_cs {
137 function = "gpio";
138 pins = "gpio54";
139 drive-strength = <2>;
140 bias-disable;
141 output-high;
142 };
143 };
144 };
145
146 &cryptobam {
147 status = "okay";
148 };
149
150 &blsp_dma {
151 status = "okay";
152 };
153
154 &blsp1_spi1 { /* BLSP1 QUP1 */
155 pinctrl-0 = <&spi_0_pins>;
156 pinctrl-names = "default";
157 status = "okay";
158 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
159
160 flash@0 {
161 compatible = "jedec,spi-nor";
162 reg = <0>;
163 spi-max-frequency = <24000000>;
164 status = "okay";
165 m25p,fast-read;
166
167 partitions {
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 partition0@0 {
173 label = "SBL1";
174 reg = <0x00000000 0x00040000>;
175 read-only;
176 };
177 partition1@40000 {
178 label = "MIBIB";
179 reg = <0x00040000 0x00020000>;
180 read-only;
181 };
182 partition2@60000 {
183 label = "QSEE";
184 reg = <0x00060000 0x00060000>;
185 read-only;
186 };
187 partition3@c0000 {
188 label = "CDT";
189 reg = <0x000c0000 0x00010000>;
190 read-only;
191 };
192 partition4@d0000 {
193 label = "DDRPARAMS";
194 reg = <0x000d0000 0x00010000>;
195 read-only;
196 };
197 partition5@e0000 {
198 label = "APPSBLENV"; /* uboot env - empty */
199 reg = <0x000e0000 0x00010000>;
200 read-only;
201 };
202 partition6@f0000 {
203 label = "urlader"; /* APPSBL */
204 reg = <0x000f0000 0x0002dc000>;
205 read-only;
206 };
207 partition7@11dc00 {
208 /* make a backup of this partition! */
209 label = "urlader_config";
210 reg = <0x0011dc00 0x00002400>;
211 read-only;
212 };
213 partition8@120000 {
214 label = "tffs1";
215 reg = <0x00120000 0x00080000>;
216 read-only;
217 };
218 partition9@1a0000 {
219 label = "tffs2";
220 reg = <0x001a0000 0x00080000>;
221 read-only;
222 };
223 partition10@220000 {
224 label = "uboot";
225 reg = <0x00220000 0x00080000>;
226 read-only;
227 };
228 partition11@2A0000 {
229 compatible = "denx,fit";
230 label = "firmware";
231 reg = <0x002a0000 0x01c60000>;
232 };
233 partition12@1f00000 {
234 label = "jffs2";
235 reg = <0x01f00000 0x00100000>;
236 };
237 };
238 };
239 };
240
241 &blsp1_uart1 {
242 pinctrl-0 = <&serial_pins>;
243 pinctrl-names = "default";
244 status = "okay";
245 };
246
247 &ethphy0 {
248 gpio-controller;
249 #gpio-cells = <2>;
250 };
251
252 &ethphy1 {
253 gpio-controller;
254 #gpio-cells = <2>;
255
256 enable-usb-power {
257 gpio-hog;
258 line-name = "enable USB3 power";
259 gpios = <1 GPIO_ACTIVE_HIGH>;
260 output-high;
261 };
262 };
263
264 &ethphy2 {
265 gpio-controller;
266 #gpio-cells = <2>;
267 };
268
269 &ethphy3 {
270 gpio-controller;
271 #gpio-cells = <2>;
272 };
273
274 &gmac {
275 status = "okay";
276 };
277
278 &switch {
279 status = "okay";
280 };
281
282 &swport1 {
283 status = "okay";
284 };
285
286 &swport2 {
287 status = "okay";
288 };
289
290 &swport3 {
291 status = "okay";
292 };
293
294 &swport4 {
295 status = "okay";
296 };
297
298 &swport5 {
299 status = "okay";
300 };
301
302 &usb3_ss_phy {
303 status = "okay";
304 };
305
306 &usb3_hs_phy {
307 status = "okay";
308 };
309
310 &usb3 {
311 status = "okay";
312 };
313
314 &usb2_hs_phy {
315 status = "okay";
316 };
317
318 &usb2 {
319 status = "okay";
320 };
321
322 &wifi0 {
323 status = "okay";
324 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
325 };
326
327 &wifi1 {
328 status = "okay";
329 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
330 };