Debian Codegraph @

scripts/dtc/include-prefixes/arm64/xilinx/zynqmp-sck-kv-g-revB.dtso

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * dts file for KV260 revA Carrier Card
4 *
5 * (C) Copyright 2020 - 2022, Xilinx, Inc.
6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
7 *
8 * Michal Simek <[email protected]>
9 */
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/net/ti-dp83867.h>
13 #include <dt-bindings/phy/phy.h>
14 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
15
16 /dts-v1/;
17 /plugin/;
18
19 &{/} {
20 compatible = "xlnx,zynqmp-sk-kv260-rev2",
21 "xlnx,zynqmp-sk-kv260-rev1",
22 "xlnx,zynqmp-sk-kv260-revB",
23 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
24 model = "ZynqMP KV260 revB";
25
26 aliases {
27 ethernet0 = "/axi/ethernet@ff0e0000"; /* &gem3 */
28 };
29
30 si5332_0: si5332-0 { /* u17 */
31 compatible = "fixed-clock";
32 #clock-cells = <0>;
33 clock-frequency = <125000000>;
34 };
35
36 si5332_1: si5332-1 { /* u17 */
37 compatible = "fixed-clock";
38 #clock-cells = <0>;
39 clock-frequency = <25000000>;
40 };
41
42 si5332_2: si5332-2 { /* u17 */
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <48000000>;
46 };
47
48 si5332_3: si5332-3 { /* u17 */
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
51 clock-frequency = <24000000>;
52 };
53
54 si5332_4: si5332-4 { /* u17 */
55 compatible = "fixed-clock";
56 #clock-cells = <0>;
57 clock-frequency = <26000000>;
58 };
59
60 si5332_5: si5332-5 { /* u17 */
61 compatible = "fixed-clock";
62 #clock-cells = <0>;
63 clock-frequency = <27000000>;
64 };
65
66 dpcon {
67 compatible = "dp-connector";
68 label = "P11";
69 type = "full-size";
70
71 port {
72 dpcon_in: endpoint {
73 remote-endpoint = <&dpsub_dp_out>;
74 };
75 };
76 };
77 };
78
79 &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
80 #address-cells = <1>;
81 #size-cells = <0>;
82 pinctrl-names = "default", "gpio";
83 pinctrl-0 = <&pinctrl_i2c1_default>;
84 pinctrl-1 = <&pinctrl_i2c1_gpio>;
85 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
86 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
87
88 u14: ina260@40 { /* u14 */
89 compatible = "ti,ina260";
90 label = "ina260-u14";
91 reg = <0x40>;
92 };
93 hub: usb-hub@2d {
94 compatible = "microchip,usb5744";
95 reg = <0x2d>;
96 };
97 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
98 };
99
100 /* DP/USB 3.0 */
101 &psgtr {
102 status = "okay";
103 /* pcie, usb3, sata */
104 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
105 clock-names = "ref0", "ref1", "ref2";
106 };
107
108 &zynqmp_dpsub {
109 status = "okay";
110 phy-names = "dp-phy0", "dp-phy1";
111 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
112 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
113 };
114
115 &out_dp {
116 dpsub_dp_out: endpoint {
117 remote-endpoint = <&dpcon_in>;
118 };
119 };
120
121 &zynqmp_dpdma {
122 status = "okay";
123 assigned-clock-rates = <600000000>;
124 };
125
126 &usb0 {
127 status = "okay";
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_usb0_default>;
130 phy-names = "usb3-phy";
131 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
132 assigned-clock-rates = <250000000>, <20000000>;
133 };
134
135 &dwc3_0 {
136 status = "okay";
137 dr_mode = "host";
138 snps,usb3_lpm_capable;
139 maximum-speed = "super-speed";
140 #address-cells = <1>;
141 #size-cells = <0>;
142
143 /* 2.0 hub on port 1 */
144 hub_2_0: hub@1 {
145 compatible = "usb424,2744";
146 reg = <1>;
147 peer-hub = <&hub_3_0>;
148 i2c-bus = <&hub>;
149 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
150 };
151
152 /* 3.0 hub on port 2 */
153 hub_3_0: hub@2 {
154 compatible = "usb424,5744";
155 reg = <2>;
156 peer-hub = <&hub_2_0>;
157 i2c-bus = <&hub>;
158 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
159 };
160 };
161
162 &sdhci1 { /* on CC with tuned parameters */
163 status = "okay";
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_sdhci1_default>;
166 /*
167 * SD 3.0 requires level shifter and this property
168 * should be removed if the board has level shifter and
169 * need to work in UHS mode
170 */
171 no-1-8-v;
172 disable-wp;
173 xlnx,mio-bank = <1>;
174 clk-phase-sd-hs = <126>, <60>;
175 clk-phase-uhs-sdr25 = <120>, <60>;
176 clk-phase-uhs-ddr50 = <126>, <48>;
177 assigned-clock-rates = <187498123>;
178 bus-width = <4>;
179 };
180
181 &gem3 {
182 status = "okay";
183 pinctrl-names = "default";
184 pinctrl-0 = <&pinctrl_gem3_default>;
185 phy-handle = <&phy0>;
186 phy-mode = "rgmii-id";
187 assigned-clock-rates = <250000000>;
188
189 mdio: mdio {
190 #address-cells = <1>;
191 #size-cells = <0>;
192
193 phy0: ethernet-phy@1 {
194 #phy-cells = <1>;
195 reg = <1>;
196 compatible = "ethernet-phy-id2000.a231";
197 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
198 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
199 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
200 ti,dp83867-rxctrl-strap-quirk;
201 reset-assert-us = <100>;
202 reset-deassert-us = <280>;
203 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
204 };
205 };
206 };
207
208 &pinctrl0 {
209 status = "okay";
210
211 pinctrl_gpio0_default: gpio0-default {
212 conf {
213 groups = "gpio0_38_grp";
214 bias-pull-up;
215 power-source = <IO_STANDARD_LVCMOS18>;
216 };
217
218 mux {
219 groups = "gpio0_38_grp";
220 function = "gpio0";
221 };
222
223 conf-tx {
224 pins = "MIO38";
225 bias-disable;
226 output-enable;
227 };
228 };
229
230 pinctrl_uart1_default: uart1-default {
231 conf {
232 groups = "uart1_9_grp";
233 slew-rate = <SLEW_RATE_SLOW>;
234 power-source = <IO_STANDARD_LVCMOS18>;
235 drive-strength = <12>;
236 };
237
238 conf-rx {
239 pins = "MIO37";
240 bias-high-impedance;
241 };
242
243 conf-tx {
244 pins = "MIO36";
245 bias-disable;
246 output-enable;
247 };
248
249 mux {
250 groups = "uart1_9_grp";
251 function = "uart1";
252 };
253 };
254
255 pinctrl_i2c1_default: i2c1-default {
256 conf {
257 groups = "i2c1_6_grp";
258 bias-pull-up;
259 slew-rate = <SLEW_RATE_SLOW>;
260 power-source = <IO_STANDARD_LVCMOS18>;
261 };
262
263 mux {
264 groups = "i2c1_6_grp";
265 function = "i2c1";
266 };
267 };
268
269 pinctrl_i2c1_gpio: i2c1-gpio-grp {
270 conf {
271 groups = "gpio0_24_grp", "gpio0_25_grp";
272 slew-rate = <SLEW_RATE_SLOW>;
273 power-source = <IO_STANDARD_LVCMOS18>;
274 };
275
276 mux {
277 groups = "gpio0_24_grp", "gpio0_25_grp";
278 function = "gpio0";
279 };
280 };
281
282 pinctrl_gem3_default: gem3-default {
283 conf {
284 groups = "ethernet3_0_grp";
285 slew-rate = <SLEW_RATE_SLOW>;
286 power-source = <IO_STANDARD_LVCMOS18>;
287 };
288
289 conf-rx {
290 pins = "MIO70", "MIO72", "MIO74";
291 bias-high-impedance;
292 low-power-disable;
293 };
294
295 conf-bootstrap {
296 pins = "MIO71", "MIO73", "MIO75";
297 bias-disable;
298 output-enable;
299 low-power-disable;
300 };
301
302 conf-tx {
303 pins = "MIO64", "MIO65", "MIO66",
304 "MIO67", "MIO68", "MIO69";
305 bias-disable;
306 output-enable;
307 low-power-enable;
308 };
309
310 conf-mdio {
311 groups = "mdio3_0_grp";
312 slew-rate = <SLEW_RATE_SLOW>;
313 power-source = <IO_STANDARD_LVCMOS18>;
314 bias-disable;
315 output-enable;
316 };
317
318 mux-mdio {
319 function = "mdio3";
320 groups = "mdio3_0_grp";
321 };
322
323 mux {
324 function = "ethernet3";
325 groups = "ethernet3_0_grp";
326 };
327 };
328
329 pinctrl_usb0_default: usb0-default {
330 conf {
331 groups = "usb0_0_grp";
332 power-source = <IO_STANDARD_LVCMOS18>;
333 };
334
335 conf-rx {
336 pins = "MIO52", "MIO53", "MIO55";
337 bias-high-impedance;
338 drive-strength = <12>;
339 slew-rate = <SLEW_RATE_FAST>;
340 };
341
342 conf-tx {
343 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
344 "MIO60", "MIO61", "MIO62", "MIO63";
345 bias-disable;
346 output-enable;
347 drive-strength = <4>;
348 slew-rate = <SLEW_RATE_SLOW>;
349 };
350
351 mux {
352 groups = "usb0_0_grp";
353 function = "usb0";
354 };
355 };
356
357 pinctrl_sdhci1_default: sdhci1-default {
358 conf {
359 groups = "sdio1_0_grp";
360 slew-rate = <SLEW_RATE_SLOW>;
361 power-source = <IO_STANDARD_LVCMOS18>;
362 bias-disable;
363 output-enable;
364 };
365
366 conf-cd {
367 groups = "sdio1_cd_0_grp";
368 bias-high-impedance;
369 bias-pull-up;
370 slew-rate = <SLEW_RATE_SLOW>;
371 power-source = <IO_STANDARD_LVCMOS18>;
372 };
373
374 mux-cd {
375 groups = "sdio1_cd_0_grp";
376 function = "sdio1_cd";
377 };
378
379 mux {
380 groups = "sdio1_0_grp";
381 function = "sdio1";
382 };
383 };
384 };
385
386 &gpio {
387 status = "okay";
388 pinctrl-names = "default";
389 pinctrl-0 = <&pinctrl_gpio0_default>;
390 };
391
392 &uart1 {
393 status = "okay";
394 pinctrl-names = "default";
395 pinctrl-0 = <&pinctrl_uart1_default>;
396 };