ipq40xx: use existing labels for MDIO node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / 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 counter@4a1000 {
16 compatible = "qcom,qca-gcnt";
17 reg = <0x4a1000 0x4>;
18 };
19
20 tcsr@1949000 {
21 compatible = "qcom,tcsr";
22 reg = <0x1949000 0x100>;
23 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
24 };
25
26 tcsr@194b000 {
27 status = "okay";
28
29 compatible = "qcom,tcsr";
30 reg = <0x194b000 0x100>;
31 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
32 };
33
34 ess_tcsr@1953000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1953000 0x1000>;
37 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
38 };
39
40 tcsr@1957000 {
41 compatible = "qcom,tcsr";
42 reg = <0x1957000 0x100>;
43 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
44 };
45 };
46 };
47
48 &watchdog {
49 status = "okay";
50 };
51
52 &prng {
53 status = "okay";
54 };
55
56 &crypto {
57 status = "okay";
58 };
59
60 &tlmm {
61 mdio_pins: mdio_pinmux {
62 pinmux_1 {
63 pins = "gpio53";
64 function = "mdio";
65 };
66
67 pinmux_2 {
68 pins = "gpio52";
69 function = "mdc";
70 };
71
72 pinconf {
73 pins = "gpio52", "gpio53";
74 bias-pull-up;
75 };
76 };
77
78 serial_pins: serial_pinmux {
79 mux {
80 pins = "gpio60", "gpio61";
81 function = "blsp_uart0";
82 bias-disable;
83 };
84 };
85
86 spi_0_pins: spi_0_pinmux {
87 pin {
88 function = "blsp_spi0";
89 pins = "gpio55", "gpio56", "gpio57";
90 drive-strength = <2>;
91 bias-disable;
92 };
93
94 pin_cs {
95 function = "gpio";
96 pins = "gpio54", "gpio59";
97 drive-strength = <2>;
98 bias-disable;
99 output-high;
100 };
101 };
102 };
103
104 &blsp_dma {
105 status = "okay";
106 };
107
108 &blsp1_spi1 {
109 status = "okay";
110
111 pinctrl-0 = <&spi_0_pins>;
112 pinctrl-names = "default";
113 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
114
115 flash@0 {
116 status = "okay";
117
118 compatible = "jedec,spi-nor";
119 reg = <0>;
120 spi-max-frequency = <24000000>;
121
122 partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 partition@0 {
128 label = "SBL1";
129 reg = <0x00000000 0x00040000>;
130 read-only;
131 };
132
133 partition@40000 {
134 label = "MIBIB";
135 reg = <0x00040000 0x00020000>;
136 read-only;
137 };
138
139 partition@60000 {
140 label = "QSEE";
141 reg = <0x00060000 0x00060000>;
142 read-only;
143 };
144
145 partition@c0000 {
146 label = "CDT";
147 reg = <0x000c0000 0x00010000>;
148 read-only;
149 };
150
151 partition@d0000 {
152 label = "DDRPARAMS";
153 reg = <0x000d0000 0x00010000>;
154 read-only;
155 };
156
157 partition@e0000 {
158 label = "APPSBLENV"; /* uboot env*/
159 reg = <0x000e0000 0x00010000>;
160 read-only;
161 };
162
163 partition@f0000 {
164 label = "APPSBL"; /* uboot */
165 reg = <0x000f0000 0x00080000>;
166 read-only;
167 };
168
169 partition@170000 {
170 label = "ART";
171 reg = <0x00170000 0x00010000>;
172 read-only;
173
174 nvmem-layout {
175 compatible = "fixed-layout";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 precal_art_1000: precal@1000 {
180 reg = <0x1000 0x2f20>;
181 };
182
183 precal_art_5000: precal@5000 {
184 reg = <0x5000 0x2f20>;
185 };
186 };
187 };
188 };
189 };
190
191 spi-nand@1 {
192 status = "okay";
193
194 compatible = "spi-nand";
195 reg = <1>;
196 spi-max-frequency = <24000000>;
197
198 partitions {
199 compatible = "fixed-partitions";
200 #address-cells = <1>;
201 #size-cells = <1>;
202
203 partition@0 {
204 label = "ubi";
205 reg = <0x00000000 0x08000000>;
206 };
207 };
208 };
209 };
210
211 &blsp1_uart1 {
212 status = "okay";
213
214 pinctrl-0 = <&serial_pins>;
215 pinctrl-names = "default";
216 };
217
218 &cryptobam {
219 status = "okay";
220 };
221
222 &mdio {
223 status = "okay";
224 pinctrl-0 = <&mdio_pins>;
225 pinctrl-names = "default";
226 };
227
228 &gmac {
229 status = "okay";
230 };
231
232 &switch {
233 status = "okay";
234 };
235
236 &swport4 {
237 status = "okay";
238
239 label = "lan";
240 };
241
242 &swport5 {
243 status = "okay";
244 };
245
246 &wifi0 {
247 status = "okay";
248 nvmem-cell-names = "pre-calibration";
249 nvmem-cells = <&precal_art_1000>;
250 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
251 };
252
253 &wifi1 {
254 status = "okay";
255 nvmem-cell-names = "pre-calibration";
256 nvmem-cells = <&precal_art_5000>;
257 qcom,ath10k-calibration-variant = "8devices-Jalapeno";
258 };
259
260 &usb3 {
261 status = "okay";
262 };
263
264 &usb3_ss_phy {
265 status = "okay";
266 };
267
268 &usb3_hs_phy {
269 status = "okay";
270 };
271
272 &usb2 {
273 status = "okay";
274 };
275
276 &usb2_hs_phy {
277 status = "okay";
278 };