ipq40xx: convert some boards to DSA
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / 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 aliases {
11 ethernet1 = &swport5;
12 };
13
14 soc {
15 rng@22000 {
16 status = "okay";
17 };
18
19 mdio@90000 {
20 status = "okay";
21
22 pinctrl-0 = <&mdio_pins>;
23 pinctrl-names = "default";
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 };
74
75 &tlmm {
76 mdio_pins: mdio_pinmux {
77 pinmux_1 {
78 pins = "gpio53";
79 function = "mdio";
80 };
81
82 pinmux_2 {
83 pins = "gpio52";
84 function = "mdc";
85 };
86
87 pinconf {
88 pins = "gpio52", "gpio53";
89 bias-pull-up;
90 };
91 };
92
93 serial_pins: serial_pinmux {
94 mux {
95 pins = "gpio60", "gpio61";
96 function = "blsp_uart0";
97 bias-disable;
98 };
99 };
100
101 spi_0_pins: spi_0_pinmux {
102 pin {
103 function = "blsp_spi0";
104 pins = "gpio55", "gpio56", "gpio57";
105 drive-strength = <2>;
106 bias-disable;
107 };
108
109 pin_cs {
110 function = "gpio";
111 pins = "gpio54", "gpio59";
112 drive-strength = <2>;
113 bias-disable;
114 output-high;
115 };
116 };
117 };
118
119 &blsp_dma {
120 status = "okay";
121 };
122
123 &blsp1_spi1 {
124 status = "okay";
125
126 pinctrl-0 = <&spi_0_pins>;
127 pinctrl-names = "default";
128 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
129
130 flash@0 {
131 status = "okay";
132
133 compatible = "jedec,spi-nor";
134 reg = <0>;
135 spi-max-frequency = <24000000>;
136
137 partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 partition@0 {
143 label = "SBL1";
144 reg = <0x00000000 0x00040000>;
145 read-only;
146 };
147
148 partition@40000 {
149 label = "MIBIB";
150 reg = <0x00040000 0x00020000>;
151 read-only;
152 };
153
154 partition@60000 {
155 label = "QSEE";
156 reg = <0x00060000 0x00060000>;
157 read-only;
158 };
159
160 partition@c0000 {
161 label = "CDT";
162 reg = <0x000c0000 0x00010000>;
163 read-only;
164 };
165
166 partition@d0000 {
167 label = "DDRPARAMS";
168 reg = <0x000d0000 0x00010000>;
169 read-only;
170 };
171
172 partition@e0000 {
173 label = "APPSBLENV"; /* uboot env*/
174 reg = <0x000e0000 0x00010000>;
175 read-only;
176 };
177
178 partition@f0000 {
179 label = "APPSBL"; /* uboot */
180 reg = <0x000f0000 0x00080000>;
181 read-only;
182 };
183
184 partition@170000 {
185 label = "ART";
186 reg = <0x00170000 0x00010000>;
187 read-only;
188 compatible = "nvmem-cells";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 precal_art_1000: precal@1000 {
193 reg = <0x1000 0x2f20>;
194 };
195
196 precal_art_5000: precal@5000 {
197 reg = <0x5000 0x2f20>;
198 };
199 };
200 };
201 };
202
203 spi-nand@1 {
204 status = "okay";
205
206 compatible = "spi-nand";
207 reg = <1>;
208 spi-max-frequency = <24000000>;
209
210 partitions {
211 compatible = "fixed-partitions";
212 #address-cells = <1>;
213 #size-cells = <1>;
214
215 partition@0 {
216 label = "ubi";
217 reg = <0x00000000 0x08000000>;
218 };
219 };
220 };
221 };
222
223 &blsp1_uart1 {
224 status = "okay";
225
226 pinctrl-0 = <&serial_pins>;
227 pinctrl-names = "default";
228 };
229
230 &cryptobam {
231 status = "okay";
232 };
233
234 &gmac {
235 status = "okay";
236 };
237
238 &switch {
239 status = "okay";
240 };
241
242 &swport4 {
243 status = "okay";
244
245 label = "lan";
246 };
247
248 &swport5 {
249 status = "okay";
250 };
251
252 &wifi0 {
253 status = "okay";
254 nvmem-cell-names = "pre-calibration";
255 nvmem-cells = <&precal_art_1000>;
256 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
257 };
258
259 &wifi1 {
260 status = "okay";
261 nvmem-cell-names = "pre-calibration";
262 nvmem-cells = <&precal_art_5000>;
263 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
264 };
265
266 &usb3_ss_phy {
267 status = "okay";
268 };
269
270 &usb3_hs_phy {
271 status = "okay";
272 };
273
274 &usb2_hs_phy {
275 status = "okay";
276 };