ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 usb3@8af8800 {
58 status = "okay";
59 };
60
61 crypto@8e3a000 {
62 status = "okay";
63 };
64
65 watchdog@b017000 {
66 status = "okay";
67 };
68 };
69
70 keys {
71 compatible = "gpio-keys";
72
73 wlan {
74 label = "wlan";
75 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RFKILL>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84
85 dect {
86 label = "dect";
87 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_PHONE>;
89 };
90 };
91
92 leds {
93 compatible = "gpio-leds";
94
95 info_red: info_red {
96 label = "red:info";
97 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
98 };
99
100 info {
101 label = "green:info";
102 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
103 };
104
105 wlan {
106 function = LED_FUNCTION_WLAN;
107 color = <LED_COLOR_ID_GREEN>;
108 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
109 };
110
111 fon {
112 label = "green:fon";
113 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
114 };
115
116 power_green: power {
117 function = LED_FUNCTION_POWER;
118 color = <LED_COLOR_ID_GREEN>;
119 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
120 };
121
122 wps {
123 function = LED_FUNCTION_WPS;
124 color = <LED_COLOR_ID_GREEN>;
125 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
126 };
127 };
128 };
129
130 &tlmm {
131 serial_0_pins: serial_pinmux {
132 mux {
133 pins = "gpio16", "gpio17";
134 function = "blsp_uart0";
135 bias-disable;
136 };
137 };
138
139 nand_pins: nand_pins {
140 pullups {
141 pins = "gpio53", "gpio58", "gpio59";
142 function = "qpic";
143 bias-pull-up;
144 };
145
146 pulldowns {
147 pins = "gpio54", "gpio55", "gpio56",
148 "gpio57", "gpio60", "gpio61",
149 "gpio62", "gpio63", "gpio64",
150 "gpio65", "gpio66", "gpio67",
151 "gpio68", "gpio69";
152 function = "qpic";
153 bias-pull-down;
154 };
155 };
156
157 usb-power {
158 line-name = "enable USB3 power";
159 gpios = <49 GPIO_ACTIVE_HIGH>;
160 gpio-hog;
161 output-high;
162 };
163 };
164
165 &nand {
166 pinctrl-0 = <&nand_pins>;
167 pinctrl-names = "default";
168 status = "okay";
169
170 nand@0 {
171 /delete-property/ nand-ecc-strength;
172 /delete-property/ nand-ecc-step-size;
173
174 partitions {
175 compatible = "fixed-partitions";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 partition@0 {
180 label = "SBL1";
181 reg = <0x000000 0x80000>;
182 read-only;
183 };
184
185 partition@80000 {
186 label = "MIBIB";
187 reg = <0x080000 0x80000>;
188 read-only;
189 };
190
191 partition@100000 {
192 label = "QSEE";
193 reg = <0x100000 0x80000>;
194 read-only;
195 };
196
197 partition@180000 {
198 label = "CDT";
199 reg = <0x180000 0x40000>;
200 read-only;
201 };
202
203 partition@1c0000 {
204 label = "QSEE_B";
205 reg = <0x1c0000 0x80000>;
206 read-only;
207 };
208
209 partition@240000 {
210 label = "urlader0";
211 reg = <0x240000 0x40000>;
212 read-only;
213 };
214
215 partition@280000 {
216 label = "urlader1";
217 reg = <0x280000 0x40000>;
218 read-only;
219 };
220
221 partition@2c0000 {
222 label = "nand-tffs";
223 reg = <0x2c0000 0x840000>;
224 read-only;
225 };
226
227 partition@b00000 {
228 /* 'kernel1' in AVM firmware */
229 label = "uboot0";
230 reg = <0xb00000 0x400000>;
231 };
232
233 partition@f00000 {
234 /* 'kernel2' in AVM firmware */
235 label = "uboot1";
236 reg = <0xf00000 0x400000>;
237 };
238
239 partition@1300000 {
240 label = "ubi";
241 reg = <0x1300000 0x6d00000>;
242 };
243 };
244 };
245 };
246
247 &cryptobam {
248 status = "okay";
249 };
250
251 &blsp_dma {
252 status = "okay";
253 };
254
255 &blsp1_uart1 {
256 pinctrl-0 = <&serial_0_pins>;
257 pinctrl-names = "default";
258 status = "okay";
259 };
260
261 &usb3_ss_phy {
262 status = "okay";
263 };
264
265 &usb3_hs_phy {
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 };