ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-fritzbox-4040.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 4040";
10 compatible = "avm,fritzbox-4040";
11
12 aliases {
13 led-boot = &power;
14 led-failsafe = &flash;
15 led-running = &power;
16 led-upgrade = &flash;
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 usb2@60f8800 {
53 status = "okay";
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 58 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
76 };
77
78 wps {
79 label = "wps";
80 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83 };
84
85 switch-leds {
86 compatible = "gpio-leds";
87
88 wlan {
89 label = "green:wlan";
90 gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
91 };
92
93 panic: info_red {
94 label = "red:info";
95 gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
96 panic-indicator;
97 };
98
99 wan {
100 label = "green:wan";
101 gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
102 };
103
104 power: power {
105 label = "green:power";
106 gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
107 };
108
109 lan {
110 label = "green:lan";
111 gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
112 };
113
114 flash: info_amber {
115 label = "amber:info";
116 gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
117 };
118 };
119 };
120
121 &tlmm {
122 serial_pins: serial_pinmux {
123 mux {
124 pins = "gpio60", "gpio61";
125 function = "blsp_uart0";
126 bias-disable;
127 };
128 };
129
130 spi_0_pins: spi_0_pinmux {
131 mux {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <12>;
135 bias-disable;
136 };
137
138 mux_cs {
139 function = "gpio";
140 pins = "gpio54";
141 drive-strength = <2>;
142 bias-disable;
143 output-high;
144 };
145 };
146 };
147
148 &cryptobam {
149 status = "okay";
150 };
151
152 &blsp_dma {
153 status = "okay";
154 };
155
156 &blsp1_spi1 { /* BLSP1 QUP1 */
157 pinctrl-0 = <&spi_0_pins>;
158 pinctrl-names = "default";
159 status = "okay";
160 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
161
162 flash@0 {
163 compatible = "jedec,spi-nor";
164 reg = <0>;
165 spi-max-frequency = <24000000>;
166 status = "okay";
167 m25p,fast-read;
168
169 partitions {
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
172 #size-cells = <1>;
173
174 partition0@0 {
175 label = "SBL1";
176 reg = <0x00000000 0x00040000>;
177 read-only;
178 };
179 partition1@40000 {
180 label = "MIBIB";
181 reg = <0x00040000 0x00020000>;
182 read-only;
183 };
184 partition2@60000 {
185 label = "QSEE";
186 reg = <0x00060000 0x00060000>;
187 read-only;
188 };
189 partition3@c0000 {
190 label = "CDT";
191 reg = <0x000c0000 0x00010000>;
192 read-only;
193 };
194 partition4@d0000 {
195 label = "DDRPARAMS";
196 reg = <0x000d0000 0x00010000>;
197 read-only;
198 };
199 partition5@e0000 {
200 label = "APPSBLENV"; /* uboot env - empty */
201 reg = <0x000e0000 0x00010000>;
202 read-only;
203 };
204 partition6@f0000 {
205 label = "urlader"; /* APPSBL */
206 reg = <0x000f0000 0x0002dc000>;
207 read-only;
208 };
209 partition7@11dc00 {
210 /* make a backup of this partition! */
211 label = "urlader_config";
212 reg = <0x0011dc00 0x00002400>;
213 read-only;
214 };
215 partition8@120000 {
216 label = "tffs1";
217 reg = <0x00120000 0x00080000>;
218 read-only;
219 };
220 partition9@1a0000 {
221 label = "tffs2";
222 reg = <0x001a0000 0x00080000>;
223 read-only;
224 };
225 partition10@220000 {
226 label = "uboot";
227 reg = <0x00220000 0x00080000>;
228 read-only;
229 };
230 partition11@2A0000 {
231 compatible = "denx,fit";
232 label = "firmware";
233 reg = <0x002a0000 0x01c60000>;
234 };
235 partition12@1f00000 {
236 label = "jffs2";
237 reg = <0x01f00000 0x00100000>;
238 };
239 };
240 };
241 };
242
243 &blsp1_uart1 {
244 pinctrl-0 = <&serial_pins>;
245 pinctrl-names = "default";
246 status = "okay";
247 };
248
249 &ethphy0 {
250 gpio-controller;
251 #gpio-cells = <2>;
252 };
253
254 &ethphy1 {
255 gpio-controller;
256 #gpio-cells = <2>;
257
258 enable-usb-power {
259 gpio-hog;
260 line-name = "enable USB3 power";
261 gpios = <1 GPIO_ACTIVE_HIGH>;
262 output-high;
263 };
264 };
265
266 &ethphy2 {
267 gpio-controller;
268 #gpio-cells = <2>;
269 };
270
271 &ethphy3 {
272 gpio-controller;
273 #gpio-cells = <2>;
274 };
275
276 &usb3_ss_phy {
277 status = "okay";
278 };
279
280 &usb3_hs_phy {
281 status = "okay";
282 };
283
284 &usb2_hs_phy {
285 status = "okay";
286 };
287
288 &wifi0 {
289 status = "okay";
290 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
291 };
292
293 &wifi1 {
294 status = "okay";
295 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
296 };