71166231a907bcafa693a69afa8f3c60dcfcdbf0
[openwrt/staging/pepe2k.git] / target / linux / ipq40xx / files / 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/soc/qcom,tcsr.h>
7
8 / {
9 model = "AVM FRITZ!Box 7530";
10 compatible = "avm,fritzbox-7530";
11
12 chosen {
13 bootargs-append = " coherent_pool=4M";
14 };
15
16 aliases {
17 led-boot = &power_green;
18 led-failsafe = &info_red;
19 led-running = &power_green;
20 led-upgrade = &info_green;
21 };
22
23 soc {
24 rng@22000 {
25 status = "okay";
26 };
27
28 mdio@90000 {
29 status = "okay";
30 };
31
32 tcsr@1949000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 };
37
38 tcsr@194b000 {
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
42 };
43
44 ess_tcsr@1953000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1953000 0x1000>;
47 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
48 };
49
50 tcsr@1957000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1957000 0x100>;
53 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
54 };
55
56 usb3@8af8800 {
57 status = "okay";
58 };
59
60 crypto@8e3a000 {
61 status = "okay";
62 };
63
64 watchdog@b017000 {
65 status = "okay";
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys";
71
72 wlan {
73 label = "wlan";
74 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
76 };
77
78 wps {
79 label = "wps";
80 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83
84 dect {
85 label = "dect";
86 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_PHONE>;
88 };
89 };
90
91 leds {
92 compatible = "gpio-leds";
93
94 info_red: info_red {
95 label = "red:info";
96 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
97 };
98
99 info_green: info {
100 label = "green:info";
101 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
102 };
103
104 wlan {
105 label = "green:wlan";
106 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
107 };
108
109 fon {
110 label = "green:fon";
111 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
112 };
113
114 power_green: power {
115 label = "green:power";
116 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
117 };
118
119 wps {
120 label = "green:wps";
121 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
122 };
123 };
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 &qpic_bam {
266 status = "okay";
267 };
268
269 &gmac {
270 status = "okay";
271 };
272
273 &switch {
274 status = "okay";
275 };
276
277 &swport1 {
278 status = "okay";
279 };
280
281 &swport2 {
282 status = "okay";
283 };
284
285 &swport3 {
286 status = "okay";
287 };
288
289 &swport4 {
290 status = "okay";
291 };
292
293 &wifi0 {
294 status = "okay";
295 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
296 };
297
298 &wifi1 {
299 status = "okay";
300 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
301 };
302
303 &pcie0 {
304 status = "okay";
305
306 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
307 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
308
309 bridge@0,0 {
310 reg = <0x00000000 0 0 0 0>;
311 #address-cells = <3>;
312 #size-cells = <2>;
313 ranges;
314
315 dsl@1,0 {
316 compatible = "intel,vrx518";
317 status = "okay";
318 reg = <0x00010000 0 0 0 0>;
319 };
320 };
321 };