ab92e7035b756bd5193613eebca94459f9f1dd4b
[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 rng@22000 {
26 status = "okay";
27 };
28
29 mdio@90000 {
30 status = "okay";
31 };
32
33 tcsr@1949000 {
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 };
38
39 tcsr@194b000 {
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
43 };
44
45 ess_tcsr@1953000 {
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 };
50
51 tcsr@1957000 {
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
55 };
56
57 crypto@8e3a000 {
58 status = "okay";
59 };
60 };
61
62 keys {
63 compatible = "gpio-keys";
64
65 wlan {
66 label = "wlan";
67 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RFKILL>;
69 };
70
71 wps {
72 label = "wps";
73 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
75 };
76
77 dect {
78 label = "dect";
79 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_PHONE>;
81 };
82 };
83
84 leds {
85 compatible = "gpio-leds";
86
87 info_red: info_red {
88 label = "red:info";
89 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
90 };
91
92 info {
93 label = "green:info";
94 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
95 };
96
97 wlan {
98 function = LED_FUNCTION_WLAN;
99 color = <LED_COLOR_ID_GREEN>;
100 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
101 };
102
103 fon {
104 label = "green:fon";
105 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
106 };
107
108 power_green: power {
109 function = LED_FUNCTION_POWER;
110 color = <LED_COLOR_ID_GREEN>;
111 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
112 };
113
114 wps {
115 function = LED_FUNCTION_WPS;
116 color = <LED_COLOR_ID_GREEN>;
117 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
118 };
119 };
120 };
121
122 &watchdog {
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 };