igmpproxy: remove some bashism
[oweals/openwrt.git] / target / linux / ipq40xx / files-4.19 / 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                 label-mac-device = &gmac0;
18         };
19
20         soc {
21                 rng@22000 {
22                         status = "okay";
23                 };
24
25                 mdio@90000 {
26                         status = "okay";
27                 };
28
29                 ess-psgmii@98000 {
30                         status = "okay";
31                 };
32
33                 tcsr@1949000 {
34                         compatible = "qcom,tcsr";
35                         reg = <0x1949000 0x100>;
36                         qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37                 };
38
39                 tcsr@194b000 {
40                         compatible = "qcom,tcsr";
41                         reg = <0x194b000 0x100>;
42                         qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
43                 };
44
45                 ess_tcsr@1953000 {
46                         compatible = "qcom,tcsr";
47                         reg = <0x1953000 0x1000>;
48                         qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49                 };
50
51                 tcsr@1957000 {
52                         compatible = "qcom,tcsr";
53                         reg = <0x1957000 0x100>;
54                         qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
55                 };
56
57                 usb2@60f8800 {
58                         status = "okay";
59                 };
60
61                 usb3@8af8800 {
62                         status = "okay";
63                 };
64
65                 crypto@8e3a000 {
66                         status = "okay";
67                 };
68
69                 watchdog@b017000 {
70                         status = "okay";
71                 };
72
73                 qca8075: ess-switch@c000000 {
74                         status = "okay";
75
76                         #gpio-cells = <2>;
77                         gpio-controller;
78
79                         enable-usb-power {
80                                 gpio-hog;
81                                 line-name = "enable USB3 power";
82                                 gpios = <7 GPIO_ACTIVE_HIGH>;
83                                 output-high;
84                         };
85                 };
86
87                 edma@c080000 {
88                         status = "okay";
89                 };
90         };
91
92         keys {
93                 compatible = "gpio-keys";
94
95                 wlan {
96                         label = "wlan";
97                         gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
98                         linux,code = <KEY_RFKILL>;
99                 };
100
101                 wps {
102                         label = "wps";
103                         gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
104                         linux,code = <KEY_WPS_BUTTON>;
105                 };
106         };
107
108         switch-leds {
109                 compatible = "gpio-leds";
110
111                 wlan {
112                         label = "fritz4040:green:wlan";
113                         gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
114                 };
115
116                 panic: info_red {
117                         label = "fritz4040:red:info";
118                         gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
119                         panic-indicator;
120                 };
121
122                 wan {
123                         label = "fritz4040:green:wan";
124                         gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
125                 };
126
127                 power: power {
128                         label = "fritz4040:green:power";
129                         gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
130                 };
131
132                 lan {
133                         label = "fritz4040:green:lan";
134                         gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
135                 };
136
137                 flash: info_amber {
138                         label = "fritz4040:amber:info";
139                         gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
140                 };
141         };
142 };
143
144 &tlmm {
145         serial_pins: serial_pinmux {
146                 mux {
147                         pins = "gpio60", "gpio61";
148                         function = "blsp_uart0";
149                         bias-disable;
150                 };
151         };
152
153         spi_0_pins: spi_0_pinmux {
154                 mux {
155                         function = "blsp_spi0";
156                         pins = "gpio55", "gpio56", "gpio57";
157                         drive-strength = <12>;
158                         bias-disable;
159                 };
160
161                 mux_cs {
162                         function = "gpio";
163                         pins = "gpio54";
164                         drive-strength = <2>;
165                         bias-disable;
166                         output-high;
167                 };
168         };
169 };
170
171 &cryptobam {
172         status = "okay";
173 };
174
175 &blsp_dma {
176         status = "okay";
177 };
178
179 &blsp1_spi1 { /* BLSP1 QUP1 */
180         pinctrl-0 = <&spi_0_pins>;
181         pinctrl-names = "default";
182         status = "okay";
183         cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
184
185         flash@0 {
186                 compatible = "jedec,spi-nor";
187                 reg = <0>;
188                 spi-max-frequency = <24000000>;
189                 status = "okay";
190                 m25p,fast-read;
191
192                 partitions {
193                         compatible = "fixed-partitions";
194                         #address-cells = <1>;
195                         #size-cells = <1>;
196
197                         partition0@0 {
198                                 label = "SBL1";
199                                 reg = <0x00000000 0x00040000>;
200                                 read-only;
201                         };
202                         partition1@40000 {
203                                 label = "MIBIB";
204                                 reg = <0x00040000 0x00020000>;
205                                 read-only;
206                         };
207                         partition2@60000 {
208                                 label = "QSEE";
209                                 reg = <0x00060000 0x00060000>;
210                                 read-only;
211                         };
212                         partition3@c0000 {
213                                 label = "CDT";
214                                 reg = <0x000c0000 0x00010000>;
215                                 read-only;
216                         };
217                         partition4@d0000 {
218                                 label = "DDRPARAMS";
219                                 reg = <0x000d0000 0x00010000>;
220                                 read-only;
221                         };
222                         partition5@e0000 {
223                                 label = "APPSBLENV"; /* uboot env - empty */
224                                 reg = <0x000e0000 0x00010000>;
225                                 read-only;
226                         };
227                         partition6@f0000 {
228                                 label = "urlader"; /* APPSBL */
229                                 reg = <0x000f0000 0x0002dc000>;
230                                 read-only;
231                         };
232                         partition7@11dc00 {
233                                 /* make a backup of this partition! */
234                                 label = "urlader_config";
235                                 reg = <0x0011dc00 0x00002400>;
236                                 read-only;
237                         };
238                         partition8@120000 {
239                                 label = "tffs1";
240                                 reg = <0x00120000 0x00080000>;
241                                 read-only;
242                         };
243                         partition9@1a0000 {
244                                 label = "tffs2";
245                                 reg = <0x001a0000 0x00080000>;
246                                 read-only;
247                         };
248                         partition10@220000 {
249                                 label = "uboot";
250                                 reg = <0x00220000 0x00080000>;
251                                 read-only;
252                         };
253                         partition11@2A0000 {
254                                 compatible = "denx,fit";
255                                 label = "firmware";
256                                 reg = <0x002a0000 0x01c60000>;
257                         };
258                         partition12@1f00000 {
259                                 label = "jffs2";
260                                 reg = <0x01f00000 0x00100000>;
261                         };
262                 };
263         };
264 };
265
266 &blsp1_uart1 {
267         pinctrl-0 = <&serial_pins>;
268         pinctrl-names = "default";
269         status = "okay";
270 };
271
272 &usb3_ss_phy {
273         status = "okay";
274 };
275
276 &usb3_hs_phy {
277         status = "okay";
278 };
279
280 &usb2_hs_phy {
281         status = "okay";
282 };
283
284 &wifi0 {
285         status = "okay";
286         qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
287 };
288
289 &wifi1 {
290         status = "okay";
291         qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
292 };