ipq40xx: add support for 8devices Jalapeno
[openwrt/openwrt.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4018-jalapeno.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2018, Robert Marko <robimarko@gmail.com>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 */
17
18 #include "qcom-ipq4019.dtsi"
19 #include "qcom-ipq4019-bus.dtsi"
20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
23
24 / {
25 model = "8devices Jalapeno";
26 compatible = "8dev,jalapeno", "qcom,ipq4019";
27
28 reserved-memory {
29 #address-cells = <0x1>;
30 #size-cells = <0x1>;
31 ranges;
32
33 tz_apps@87b80000 {
34 reg = <0x87b80000 0x280000>;
35 no-map;
36 };
37
38 smem@87e00000 {
39 reg = <0x87e00000 0x080000>;
40 no-map;
41 };
42
43 tz@87e80000 {
44 reg = <0x87e80000 0x180000>;
45 no-map;
46 };
47 };
48
49 soc {
50 mdio@90000 {
51 status = "okay";
52 pinctrl-0 = <&mdio_pins>;
53 pinctrl-names = "default";
54 };
55
56 ess-psgmii@98000 {
57 status = "okay";
58 };
59
60 counter@4a1000 {
61 compatible = "qcom,qca-gcnt";
62 reg = <0x4a1000 0x4>;
63 };
64
65 tcsr@1949000 {
66 compatible = "qcom,tcsr";
67 reg = <0x1949000 0x100>;
68 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
69 };
70
71 tcsr@194b000 {
72 /* select hostmode */
73 compatible = "qcom,tcsr";
74 reg = <0x194b000 0x100>;
75 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
76 status = "okay";
77 };
78
79 ess_tcsr@1953000 {
80 compatible = "qcom,tcsr";
81 reg = <0x1953000 0x1000>;
82 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
83 };
84
85 tcsr@1957000 {
86 compatible = "qcom,tcsr";
87 reg = <0x1957000 0x100>;
88 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
89 };
90
91 usb2: usb2@60f8800 {
92 status = "okay";
93 };
94
95 serial@78af000 {
96 pinctrl-0 = <&serial_pins>;
97 pinctrl-names = "default";
98 status = "okay";
99 };
100
101 usb3: usb3@8af8800 {
102 status = "okay";
103 };
104
105 crypto@8e3a000 {
106 status = "okay";
107 };
108
109 watchdog@b017000 {
110 status = "okay";
111 };
112
113 ess-switch@c000000 {
114 status = "okay";
115 switch_lan_bmp = <0x10>; /* lan port bitmap */
116 };
117
118 edma@c080000 {
119 status = "okay";
120 };
121 };
122 };
123
124 &tlmm {
125 mdio_pins: mdio_pinmux {
126 pinmux_1 {
127 pins = "gpio53";
128 function = "mdio";
129 };
130 pinmux_2 {
131 pins = "gpio52";
132 function = "mdc";
133 };
134 pinconf {
135 pins = "gpio52", "gpio53";
136 bias-pull-up;
137 };
138 };
139
140 serial_pins: serial_pinmux {
141 mux {
142 pins = "gpio60", "gpio61";
143 function = "blsp_uart0";
144 bias-disable;
145 };
146 };
147
148 spi_0_pins: spi_0_pinmux {
149 pin {
150 function = "blsp_spi0";
151 pins = "gpio55", "gpio56", "gpio57";
152 drive-strength = <2>;
153 bias-disable;
154 };
155 pin_cs {
156 function = "gpio";
157 pins = "gpio54", "gpio59";
158 drive-strength = <2>;
159 bias-disable;
160 output-high;
161 };
162 };
163 };
164
165 &blsp_dma {
166 status = "okay";
167 };
168
169 &spi_0 {
170 pinctrl-0 = <&spi_0_pins>;
171 pinctrl-names = "default";
172 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
173 status = "okay";
174
175 m25p80@0 {
176 #address-cells = <1>;
177 #size-cells = <0>;
178 reg = <0>;
179 compatible = "jedec,spi-nor";
180 spi-max-frequency = <24000000>;
181
182 partitions {
183 compatible = "fixed-partitions";
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 partition0@0 {
188 label = "SBL1";
189 reg = <0x00000000 0x00040000>;
190 read-only;
191 };
192 partition1@40000 {
193 label = "MIBIB";
194 reg = <0x00040000 0x00020000>;
195 read-only;
196 };
197 partition2@60000 {
198 label = "QSEE";
199 reg = <0x00060000 0x00060000>;
200 read-only;
201 };
202 partition3@c0000 {
203 label = "CDT";
204 reg = <0x000c0000 0x00010000>;
205 read-only;
206 };
207 partition4@d0000 {
208 label = "DDRPARAMS";
209 reg = <0x000d0000 0x00010000>;
210 read-only;
211 };
212 partition5@e0000 {
213 label = "APPSBLENV"; /* uboot env*/
214 reg = <0x000e0000 0x00010000>;
215 read-only;
216 };
217 partition5@f0000 {
218 label = "APPSBL"; /* uboot */
219 reg = <0x000f0000 0x00080000>;
220 read-only;
221 };
222 partition5@170000 {
223 label = "ART";
224 reg = <0x00170000 0x00010000>;
225 read-only;
226 };
227 };
228 };
229
230 mt29f@1 {
231 status = "okay";
232 #address-cells = <1>;
233 #size-cells = <0>;
234 compatible = "spinand,mt29f", "w25n01gv";
235 reg = <1>;
236 spi-max-frequency = <24000000>;
237 partitions {
238 compatible = "fixed-partitions";
239 #address-cells = <1>;
240 #size-cells = <1>;
241
242 partition0@0 {
243 label = "ubi";
244 reg = <0x00000000 0x08000000>;
245 };
246 };
247 };
248 };
249
250 &cryptobam {
251 status = "okay";
252 };
253
254 &gmac0 {
255 qcom,poll_required = <1>;
256 qcom,poll_required_dynamic = <1>;
257 qcom,phy_mdio_addr = <3>;
258 vlan_tag = <1 0x10>;
259 };
260
261 &gmac1 {
262 qcom,poll_required = <1>;
263 qcom,poll_required_dynamic = <1>;
264 qcom,phy_mdio_addr = <4>;
265 vlan_tag = <2 0x20>;
266 };
267
268 &wifi0 {
269 status = "okay";
270 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
271 };
272
273 &wifi1 {
274 status = "okay";
275 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
276 };
277
278 &usb3_ss_phy {
279 status = "okay";
280 };
281
282 &usb3_hs_phy {
283 status = "okay";
284 };
285
286 &usb2_hs_phy {
287 status = "okay";
288 };