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