ipq40xx: add v5.4 support
[openwrt/staging/jow.git] / target / linux / ipq40xx / files-5.4 / arch / arm / boot / dts / qcom-ipq4018-jalapeno.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2018, Robert Marko <robimarko@gmail.com>
3
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 soc {
11 rng@22000 {
12 status = "okay";
13 };
14
15 mdio@90000 {
16 status = "okay";
17
18 pinctrl-0 = <&mdio_pins>;
19 pinctrl-names = "default";
20 };
21
22 ess-psgmii@98000 {
23 status = "okay";
24 };
25
26 counter@4a1000 {
27 compatible = "qcom,qca-gcnt";
28 reg = <0x4a1000 0x4>;
29 };
30
31 tcsr@1949000 {
32 compatible = "qcom,tcsr";
33 reg = <0x1949000 0x100>;
34 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
35 };
36
37 tcsr@194b000 {
38 status = "okay";
39
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: usb2@60f8800 {
58 status = "okay";
59 };
60
61 usb3: usb3@8af8800 {
62 status = "okay";
63 };
64
65 crypto@8e3a000 {
66 status = "okay";
67 };
68
69 watchdog@b017000 {
70 status = "okay";
71 };
72
73 ess-switch@c000000 {
74 status = "okay";
75
76 switch_lan_bmp = <0x10>; /* lan port bitmap */
77 };
78
79 edma@c080000 {
80 status = "okay";
81 };
82 };
83 };
84
85 &tlmm {
86 mdio_pins: mdio_pinmux {
87 pinmux_1 {
88 pins = "gpio53";
89 function = "mdio";
90 };
91
92 pinmux_2 {
93 pins = "gpio52";
94 function = "mdc";
95 };
96
97 pinconf {
98 pins = "gpio52", "gpio53";
99 bias-pull-up;
100 };
101 };
102
103 serial_pins: serial_pinmux {
104 mux {
105 pins = "gpio60", "gpio61";
106 function = "blsp_uart0";
107 bias-disable;
108 };
109 };
110
111 spi_0_pins: spi_0_pinmux {
112 pin {
113 function = "blsp_spi0";
114 pins = "gpio55", "gpio56", "gpio57";
115 drive-strength = <2>;
116 bias-disable;
117 };
118
119 pin_cs {
120 function = "gpio";
121 pins = "gpio54", "gpio59";
122 drive-strength = <2>;
123 bias-disable;
124 output-high;
125 };
126 };
127 };
128
129 &blsp_dma {
130 status = "okay";
131 };
132
133 &blsp1_spi1 {
134 status = "okay";
135
136 pinctrl-0 = <&spi_0_pins>;
137 pinctrl-names = "default";
138 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
139
140 flash@0 {
141 status = "okay";
142
143 compatible = "jedec,spi-nor";
144 reg = <0>;
145 spi-max-frequency = <24000000>;
146
147 partitions {
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 partition@0 {
153 label = "SBL1";
154 reg = <0x00000000 0x00040000>;
155 read-only;
156 };
157
158 partition@40000 {
159 label = "MIBIB";
160 reg = <0x00040000 0x00020000>;
161 read-only;
162 };
163
164 partition@60000 {
165 label = "QSEE";
166 reg = <0x00060000 0x00060000>;
167 read-only;
168 };
169
170 partition@c0000 {
171 label = "CDT";
172 reg = <0x000c0000 0x00010000>;
173 read-only;
174 };
175
176 partition@d0000 {
177 label = "DDRPARAMS";
178 reg = <0x000d0000 0x00010000>;
179 read-only;
180 };
181
182 partition@e0000 {
183 label = "APPSBLENV"; /* uboot env*/
184 reg = <0x000e0000 0x00010000>;
185 read-only;
186 };
187
188 partition@f0000 {
189 label = "APPSBL"; /* uboot */
190 reg = <0x000f0000 0x00080000>;
191 read-only;
192 };
193
194 partition@170000 {
195 label = "ART";
196 reg = <0x00170000 0x00010000>;
197 read-only;
198 };
199 };
200 };
201
202 spi-nand@1 {
203 status = "okay";
204
205 compatible = "spi-nand";
206 reg = <1>;
207 spi-max-frequency = <24000000>;
208
209 partitions {
210 compatible = "fixed-partitions";
211 #address-cells = <1>;
212 #size-cells = <1>;
213
214 partition@0 {
215 label = "ubi";
216 reg = <0x00000000 0x08000000>;
217 };
218 };
219 };
220 };
221
222 &blsp1_uart1 {
223 status = "okay";
224
225 pinctrl-0 = <&serial_pins>;
226 pinctrl-names = "default";
227 };
228
229 &cryptobam {
230 status = "okay";
231 };
232
233 &gmac0 {
234 qcom,poll_required = <1>;
235 qcom,poll_required_dynamic = <1>;
236 qcom,phy_mdio_addr = <3>;
237 vlan_tag = <1 0x10>;
238 };
239
240 &gmac1 {
241 qcom,poll_required = <1>;
242 qcom,poll_required_dynamic = <1>;
243 qcom,phy_mdio_addr = <4>;
244 vlan_tag = <2 0x20>;
245 };
246
247 &wifi0 {
248 status = "okay";
249
250 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
251 };
252
253 &wifi1 {
254 status = "okay";
255
256 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
257 };
258
259 &usb3_ss_phy {
260 status = "okay";
261 };
262
263 &usb3_hs_phy {
264 status = "okay";
265 };
266
267 &usb2_hs_phy {
268 status = "okay";
269 };