ipq40xx: dynamically build board-2.bin for Mikrotik
[openwrt/staging/chunkeey.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 aliases {
13 led-boot = &power_green;
14 led-failsafe = &info_red;
15 led-running = &power_green;
16 led-upgrade = &info_green;
17 };
18
19 soc {
20 rng@22000 {
21 status = "okay";
22 };
23
24 mdio@90000 {
25 status = "okay";
26 };
27
28 ess-psgmii@98000 {
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 ess-switch@c000000 {
69 status = "okay";
70 };
71
72 edma@c080000 {
73 status = "okay";
74 qcom,num_gmac = <1>;
75 };
76 };
77
78 keys {
79 compatible = "gpio-keys";
80
81 wlan {
82 label = "wlan";
83 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RFKILL>;
85 };
86
87 wps {
88 label = "wps";
89 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 };
92
93 dect {
94 label = "dect";
95 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_PHONE>;
97 };
98 };
99
100 leds {
101 compatible = "gpio-leds";
102
103 info_red: info_red {
104 label = "red:info";
105 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
106 };
107
108 info_green: info {
109 label = "green:info";
110 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
111 };
112
113 wlan {
114 label = "green:wlan";
115 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
116 };
117
118 fon {
119 label = "green:fon";
120 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
121 };
122
123 power_green: power {
124 label = "green:power";
125 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
126 };
127
128 wps {
129 label = "green:wps";
130 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
131 };
132 };
133 };
134
135 &tlmm {
136 serial_0_pins: serial_pinmux {
137 mux {
138 pins = "gpio16", "gpio17";
139 function = "blsp_uart0";
140 bias-disable;
141 };
142 };
143
144 nand_pins: nand_pins {
145 pullups {
146 pins = "gpio53", "gpio58", "gpio59";
147 function = "qpic";
148 bias-pull-up;
149 };
150
151 pulldowns {
152 pins = "gpio54", "gpio55", "gpio56",
153 "gpio57", "gpio60", "gpio61",
154 "gpio62", "gpio63", "gpio64",
155 "gpio65", "gpio66", "gpio67",
156 "gpio68", "gpio69";
157 function = "qpic";
158 bias-pull-down;
159 };
160 };
161
162 usb-power {
163 line-name = "enable USB3 power";
164 gpios = <49 GPIO_ACTIVE_HIGH>;
165 gpio-hog;
166 output-high;
167 };
168 };
169
170 &nand {
171 pinctrl-0 = <&nand_pins>;
172 pinctrl-names = "default";
173 status = "okay";
174
175 nand@0 {
176 /delete-property/ nand-ecc-strength;
177 /delete-property/ nand-ecc-step-size;
178
179 partitions {
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
182 #size-cells = <1>;
183
184 partition@0 {
185 label = "SBL1";
186 reg = <0x000000 0x80000>;
187 read-only;
188 };
189
190 partition@80000 {
191 label = "MIBIB";
192 reg = <0x080000 0x80000>;
193 read-only;
194 };
195
196 partition@100000 {
197 label = "QSEE";
198 reg = <0x100000 0x80000>;
199 read-only;
200 };
201
202 partition@180000 {
203 label = "CDT";
204 reg = <0x180000 0x40000>;
205 read-only;
206 };
207
208 partition@1c0000 {
209 label = "QSEE_B";
210 reg = <0x1c0000 0x80000>;
211 read-only;
212 };
213
214 partition@240000 {
215 label = "urlader0";
216 reg = <0x240000 0x40000>;
217 read-only;
218 };
219
220 partition@280000 {
221 label = "urlader1";
222 reg = <0x280000 0x40000>;
223 read-only;
224 };
225
226 partition@2c0000 {
227 label = "nand-tffs";
228 reg = <0x2c0000 0x840000>;
229 read-only;
230 };
231
232 partition@b00000 {
233 /* 'kernel1' in AVM firmware */
234 label = "uboot0";
235 reg = <0xb00000 0x400000>;
236 };
237
238 partition@f00000 {
239 /* 'kernel2' in AVM firmware */
240 label = "uboot1";
241 reg = <0xf00000 0x400000>;
242 };
243
244 partition@1300000 {
245 label = "ubi";
246 reg = <0x1300000 0x6d00000>;
247 };
248 };
249 };
250 };
251
252 &cryptobam {
253 status = "okay";
254 };
255
256 &blsp_dma {
257 status = "okay";
258 };
259
260 &blsp1_uart1 {
261 pinctrl-0 = <&serial_0_pins>;
262 pinctrl-names = "default";
263 status = "okay";
264 };
265
266 &usb3_ss_phy {
267 status = "okay";
268 };
269
270 &usb3_hs_phy {
271 status = "okay";
272 };
273
274 &qpic_bam {
275 status = "okay";
276 };
277
278 &wifi0 {
279 status = "okay";
280 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
281 };
282
283 &wifi1 {
284 status = "okay";
285 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
286 };
287
288 &pcie0 {
289 status = "okay";
290
291 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
292 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
293
294 bridge@0,0 {
295 reg = <0x00000000 0 0 0 0>;
296 #address-cells = <3>;
297 #size-cells = <2>;
298 ranges;
299
300 dsl@1,0 {
301 compatible = "intel,vrx518";
302 status = "okay";
303 reg = <0x00010000 0 0 0 0>;
304 };
305 };
306 };