ipq40xx: use existing labels for crypto node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-fritzbox-7530.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 7530";
11 compatible = "avm,fritzbox-7530";
12
13 chosen {
14 bootargs-append = " coherent_pool=4M";
15 };
16
17 aliases {
18 led-boot = &power_green;
19 led-failsafe = &info_red;
20 led-running = &power_green;
21 led-upgrade = &info_red;
22 };
23
24 soc {
25 mdio@90000 {
26 status = "okay";
27 };
28
29 tcsr@1949000 {
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 };
34
35 tcsr@194b000 {
36 compatible = "qcom,tcsr";
37 reg = <0x194b000 0x100>;
38 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 };
40
41 ess_tcsr@1953000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1953000 0x1000>;
44 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 };
46
47 tcsr@1957000 {
48 compatible = "qcom,tcsr";
49 reg = <0x1957000 0x100>;
50 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 wlan {
58 label = "wlan";
59 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RFKILL>;
61 };
62
63 wps {
64 label = "wps";
65 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
67 };
68
69 dect {
70 label = "dect";
71 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_PHONE>;
73 };
74 };
75
76 leds {
77 compatible = "gpio-leds";
78
79 info_red: info_red {
80 label = "red:info";
81 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
82 };
83
84 info {
85 label = "green:info";
86 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
87 };
88
89 wlan {
90 function = LED_FUNCTION_WLAN;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
93 };
94
95 fon {
96 label = "green:fon";
97 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
98 };
99
100 power_green: power {
101 function = LED_FUNCTION_POWER;
102 color = <LED_COLOR_ID_GREEN>;
103 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
104 };
105
106 wps {
107 function = LED_FUNCTION_WPS;
108 color = <LED_COLOR_ID_GREEN>;
109 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
110 };
111 };
112 };
113
114 &watchdog {
115 status = "okay";
116 };
117
118 &prng {
119 status = "okay";
120 };
121
122 &crypto {
123 status = "okay";
124 };
125
126 &tlmm {
127 serial_0_pins: serial_pinmux {
128 mux {
129 pins = "gpio16", "gpio17";
130 function = "blsp_uart0";
131 bias-disable;
132 };
133 };
134
135 nand_pins: nand_pins {
136 pullups {
137 pins = "gpio53", "gpio58", "gpio59";
138 function = "qpic";
139 bias-pull-up;
140 };
141
142 pulldowns {
143 pins = "gpio54", "gpio55", "gpio56",
144 "gpio57", "gpio60", "gpio61",
145 "gpio62", "gpio63", "gpio64",
146 "gpio65", "gpio66", "gpio67",
147 "gpio68", "gpio69";
148 function = "qpic";
149 bias-pull-down;
150 };
151 };
152
153 usb-power {
154 line-name = "enable USB3 power";
155 gpios = <49 GPIO_ACTIVE_HIGH>;
156 gpio-hog;
157 output-high;
158 };
159 };
160
161 &nand {
162 pinctrl-0 = <&nand_pins>;
163 pinctrl-names = "default";
164 status = "okay";
165
166 nand@0 {
167 /delete-property/ nand-ecc-strength;
168 /delete-property/ nand-ecc-step-size;
169
170 partitions {
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 partition@0 {
176 label = "SBL1";
177 reg = <0x000000 0x80000>;
178 read-only;
179 };
180
181 partition@80000 {
182 label = "MIBIB";
183 reg = <0x080000 0x80000>;
184 read-only;
185 };
186
187 partition@100000 {
188 label = "QSEE";
189 reg = <0x100000 0x80000>;
190 read-only;
191 };
192
193 partition@180000 {
194 label = "CDT";
195 reg = <0x180000 0x40000>;
196 read-only;
197 };
198
199 partition@1c0000 {
200 label = "QSEE_B";
201 reg = <0x1c0000 0x80000>;
202 read-only;
203 };
204
205 partition@240000 {
206 label = "urlader0";
207 reg = <0x240000 0x40000>;
208 read-only;
209 };
210
211 partition@280000 {
212 label = "urlader1";
213 reg = <0x280000 0x40000>;
214 read-only;
215 };
216
217 partition@2c0000 {
218 label = "nand-tffs";
219 reg = <0x2c0000 0x840000>;
220 read-only;
221 };
222
223 partition@b00000 {
224 /* 'kernel1' in AVM firmware */
225 label = "uboot0";
226 reg = <0xb00000 0x400000>;
227 };
228
229 partition@f00000 {
230 /* 'kernel2' in AVM firmware */
231 label = "uboot1";
232 reg = <0xf00000 0x400000>;
233 };
234
235 partition@1300000 {
236 label = "ubi";
237 reg = <0x1300000 0x6d00000>;
238 };
239 };
240 };
241 };
242
243 &cryptobam {
244 status = "okay";
245 };
246
247 &blsp_dma {
248 status = "okay";
249 };
250
251 &blsp1_uart1 {
252 pinctrl-0 = <&serial_0_pins>;
253 pinctrl-names = "default";
254 status = "okay";
255 };
256
257 &usb3_ss_phy {
258 status = "okay";
259 };
260
261 &usb3_hs_phy {
262 status = "okay";
263 };
264
265 &usb3 {
266 status = "okay";
267 };
268
269 &qpic_bam {
270 status = "okay";
271 };
272
273 &gmac {
274 status = "okay";
275 };
276
277 &switch {
278 status = "okay";
279 };
280
281 &swport1 {
282 status = "okay";
283 };
284
285 &swport2 {
286 status = "okay";
287 };
288
289 &swport3 {
290 status = "okay";
291 };
292
293 &swport4 {
294 status = "okay";
295 };
296
297 &wifi0 {
298 status = "okay";
299 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
300 };
301
302 &wifi1 {
303 status = "okay";
304 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
305 };
306
307 &pcie0 {
308 status = "okay";
309
310 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
311 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
312
313 bridge@0,0 {
314 reg = <0x00000000 0 0 0 0>;
315 #address-cells = <3>;
316 #size-cells = <2>;
317 ranges;
318
319 dsl@1,0 {
320 compatible = "intel,vrx518";
321 status = "okay";
322 reg = <0x00010000 0 0 0 0>;
323 };
324 };
325 };