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