Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * dts file for KR260 revB Carrier Card (A03 revision)
4 *
5 * (C) Copyright 2021 - 2022, Xilinx, Inc.
6 *
7 * Michal Simek <[email protected]>
8 */
9
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/net/ti-dp83867.h>
12 #include <dt-bindings/phy/phy.h>
13 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
14
15 /dts-v1/;
16 /plugin/;
17
18 &{/} {
19 compatible = "xlnx,zynqmp-sk-kr260-revB",
20 "xlnx,zynqmp-sk-kr260", "xlnx,zynqmp";
21 model = "ZynqMP KR260 revB";
22
23 aliases {
24 ethernet0 = "/axi/ethernet@ff0b0000"; /* &gem0 */
25 ethernet1 = "/axi/ethernet@ff0c0000"; /* &gem1 */
26 };
27
28 clk_125: clock0 { /* u87 - GEM0/1 */
29 compatible = "fixed-clock";
30 #clock-cells = <0>;
31 clock-frequency = <125000000>;
32 };
33
34 clk_27: clock1 { /* u86 - DP */
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <27000000>;
38 };
39
40 clk_26: clock2 { /* u89 - USB */
41 compatible = "fixed-clock";
42 #clock-cells = <0>;
43 clock-frequency = <26000000>;
44 };
45
46 clk_156: clock3 { /* u90 - SFP+ */
47 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <156250000>;
50 };
51
52 clk_25_0: clock4 { /* u92/u91 - GEM2 */
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <25000000>;
56 };
57
58 clk_25_1: clock5 { /* u92/u91 - GEM3 */
59 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <25000000>;
62 };
63
64 clk_74: clock6 { /* u88 - SLVC-EC */
65 compatible = "fixed-clock";
66 #clock-cells = <0>;
67 clock-frequency = <74250000>;
68 };
69
70 dpcon {
71 compatible = "dp-connector";
72 label = "P11";
73 type = "full-size";
74
75 port {
76 dpcon_in: endpoint {
77 remote-endpoint = <&dpsub_dp_out>;
78 };
79 };
80 };
81 };
82
83 &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
84 #address-cells = <1>;
85 #size-cells = <0>;
86 pinctrl-names = "default", "gpio";
87 pinctrl-0 = <&pinctrl_i2c1_default>;
88 pinctrl-1 = <&pinctrl_i2c1_gpio>;
89 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
90 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
91
92 u14: ina260@40 { /* u14 */
93 compatible = "ti,ina260";
94 label = "ina260-u14";
95 reg = <0x40>;
96 };
97
98 slg7xl45106: gpio@11 { /* u19 - reset logic */
99 compatible = "dlg,slg7xl45106";
100 reg = <0x11>;
101 gpio-controller;
102 #gpio-cells = <2>;
103 gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
104 "SD_RESET_B", "USB0_HUB_RESET_B",
105 "USB1_HUB_RESET_B", "PS_GEM0_RESET_B",
106 "PS_GEM1_RESET_B", "";
107 };
108
109 i2c-mux@74 { /* u18 */
110 compatible = "nxp,pca9546";
111 #address-cells = <1>;
112 #size-cells = <0>;
113 reg = <0x74>;
114 usbhub_i2c0: i2c@0 {
115 #address-cells = <1>;
116 #size-cells = <0>;
117 reg = <0>;
118 hub_1: usb-hub@2d {
119 compatible = "microchip,usb5744";
120 reg = <0x2d>;
121 };
122 };
123 usbhub_i2c1: i2c@1 {
124 #address-cells = <1>;
125 #size-cells = <0>;
126 reg = <1>;
127 hub_2: usb-hub@2d {
128 compatible = "microchip,usb5744";
129 reg = <0x2d>;
130 };
131 };
132 /* Bus 2/3 are not connected */
133 };
134
135 /* si5332@6a - u17 - clock-generator */
136 };
137
138 /* GEM SGMII/DP and USB 3.0 */
139 &psgtr {
140 status = "okay";
141 /* gem0/1, dp, usb */
142 clocks = <&clk_125>, <&clk_27>, <&clk_26>;
143 clock-names = "ref0", "ref1", "ref2";
144 };
145
146 &zynqmp_dpsub {
147 status = "okay";
148 phy-names = "dp-phy0";
149 phys = <&psgtr 1 PHY_TYPE_DP 0 1>;
150 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
151 };
152
153 &out_dp {
154 dpsub_dp_out: endpoint {
155 remote-endpoint = <&dpcon_in>;
156 };
157 };
158
159 &zynqmp_dpdma {
160 status = "okay";
161 assigned-clock-rates = <600000000>;
162 };
163
164 &usb0 { /* mio52 - mio63 */
165 status = "okay";
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_usb0_default>;
168 phy-names = "usb3-phy";
169 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
170 reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
171 assigned-clock-rates = <250000000>, <20000000>;
172 };
173
174 &dwc3_0 {
175 status = "okay";
176 dr_mode = "host";
177 snps,usb3_lpm_capable;
178 maximum-speed = "super-speed";
179 #address-cells = <1>;
180 #size-cells = <0>;
181
182 /* 2.0 hub on port 1 */
183 hub_2_0: hub@1 {
184 compatible = "usb424,2744";
185 reg = <1>;
186 peer-hub = <&hub_3_0>;
187 i2c-bus = <&hub_1>;
188 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
189 };
190
191 /* 3.0 hub on port 2 */
192 hub_3_0: hub@2 {
193 compatible = "usb424,5744";
194 reg = <2>;
195 peer-hub = <&hub_2_0>;
196 i2c-bus = <&hub_1>;
197 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
198 };
199 };
200
201 &usb1 { /* mio64 - mio75 */
202 status = "okay";
203 pinctrl-names = "default";
204 pinctrl-0 = <&pinctrl_usb1_default>;
205 phy-names = "usb3-phy";
206 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
207 reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
208 assigned-clock-rates = <250000000>, <20000000>;
209 };
210
211 &dwc3_1 {
212 status = "okay";
213 dr_mode = "host";
214 snps,usb3_lpm_capable;
215 maximum-speed = "super-speed";
216 #address-cells = <1>;
217 #size-cells = <0>;
218
219 /* 2.0 hub on port 1 */
220 hub1_2_0: hub@1 {
221 compatible = "usb424,2744";
222 reg = <1>;
223 peer-hub = <&hub1_3_0>;
224 i2c-bus = <&hub_2>;
225 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
226 };
227
228 /* 3.0 hub on port 2 */
229 hub1_3_0: hub@2 {
230 compatible = "usb424,5744";
231 reg = <2>;
232 peer-hub = <&hub1_2_0>;
233 i2c-bus = <&hub_2>;
234 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
235 };
236 };
237
238 &gem0 { /* mdio mio50/51 */
239 status = "okay";
240 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
241 phy-handle = <&phy0>;
242 phy-mode = "sgmii";
243 assigned-clock-rates = <250000000>;
244 };
245
246 &gem1 { /* mdio mio50/51, gem mio38 - mio49 */
247 status = "okay";
248 pinctrl-names = "default";
249 pinctrl-0 = <&pinctrl_gem1_default>;
250 phy-handle = <&phy1>;
251 phy-mode = "rgmii-id";
252 assigned-clock-rates = <250000000>;
253
254 mdio: mdio {
255 #address-cells = <1>;
256 #size-cells = <0>;
257 phy0: ethernet-phy@4 { /* u81 */
258 #phy-cells = <1>;
259 compatible = "ethernet-phy-id2000.a231";
260 reg = <4>;
261 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
262 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
263 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
264 ti,dp83867-rxctrl-strap-quirk;
265 reset-assert-us = <300>;
266 reset-deassert-us = <280>;
267 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
268 };
269 phy1: ethernet-phy@8 { /* u36 */
270 #phy-cells = <1>;
271 compatible = "ethernet-phy-id2000.a231";
272 reg = <8>;
273 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
274 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
275 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
276 ti,dp83867-rxctrl-strap-quirk;
277 reset-assert-us = <100>;
278 reset-deassert-us = <280>;
279 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
280 };
281 };
282 };
283
284 /* gem2/gem3 via PL with phys u79@2 and u80@3 */
285
286 &pinctrl0 {
287 status = "okay";
288
289 pinctrl_uart1_default: uart1-default {
290 conf {
291 groups = "uart1_9_grp";
292 slew-rate = <SLEW_RATE_SLOW>;
293 power-source = <IO_STANDARD_LVCMOS18>;
294 drive-strength = <12>;
295 };
296
297 conf-rx {
298 pins = "MIO37";
299 bias-high-impedance;
300 };
301
302 conf-tx {
303 pins = "MIO36";
304 bias-disable;
305 output-enable;
306 };
307
308 mux {
309 groups = "uart1_9_grp";
310 function = "uart1";
311 };
312 };
313
314 pinctrl_i2c1_default: i2c1-default {
315 conf {
316 groups = "i2c1_6_grp";
317 bias-pull-up;
318 slew-rate = <SLEW_RATE_SLOW>;
319 power-source = <IO_STANDARD_LVCMOS18>;
320 };
321
322 mux {
323 groups = "i2c1_6_grp";
324 function = "i2c1";
325 };
326 };
327
328 pinctrl_i2c1_gpio: i2c1-gpio-grp {
329 conf {
330 groups = "gpio0_24_grp", "gpio0_25_grp";
331 slew-rate = <SLEW_RATE_SLOW>;
332 power-source = <IO_STANDARD_LVCMOS18>;
333 };
334
335 mux {
336 groups = "gpio0_24_grp", "gpio0_25_grp";
337 function = "gpio0";
338 };
339 };
340
341 pinctrl_gem1_default: gem1-default {
342 conf {
343 groups = "ethernet1_0_grp";
344 slew-rate = <SLEW_RATE_SLOW>;
345 power-source = <IO_STANDARD_LVCMOS18>;
346 };
347
348 conf-rx {
349 pins = "MIO44", "MIO46", "MIO48";
350 bias-high-impedance;
351 low-power-disable;
352 };
353
354 conf-bootstrap {
355 pins = "MIO45", "MIO47", "MIO49";
356 bias-disable;
357 output-enable;
358 low-power-disable;
359 };
360
361 conf-tx {
362 pins = "MIO38", "MIO39", "MIO40",
363 "MIO41", "MIO42", "MIO43";
364 bias-disable;
365 output-enable;
366 low-power-enable;
367 };
368
369 conf-mdio {
370 groups = "mdio1_0_grp";
371 slew-rate = <SLEW_RATE_SLOW>;
372 power-source = <IO_STANDARD_LVCMOS18>;
373 bias-disable;
374 output-enable;
375 };
376
377 mux-mdio {
378 function = "mdio1";
379 groups = "mdio1_0_grp";
380 };
381
382 mux {
383 function = "ethernet1";
384 groups = "ethernet1_0_grp";
385 };
386 };
387
388 pinctrl_usb0_default: usb0-default {
389 conf {
390 groups = "usb0_0_grp";
391 power-source = <IO_STANDARD_LVCMOS18>;
392 };
393
394 conf-rx {
395 pins = "MIO52", "MIO53", "MIO55";
396 bias-high-impedance;
397 drive-strength = <12>;
398 slew-rate = <SLEW_RATE_FAST>;
399 };
400
401 conf-tx {
402 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
403 "MIO60", "MIO61", "MIO62", "MIO63";
404 bias-disable;
405 output-enable;
406 drive-strength = <4>;
407 slew-rate = <SLEW_RATE_SLOW>;
408 };
409
410 mux {
411 groups = "usb0_0_grp";
412 function = "usb0";
413 };
414 };
415
416 pinctrl_usb1_default: usb1-default {
417 conf {
418 groups = "usb1_0_grp";
419 power-source = <IO_STANDARD_LVCMOS18>;
420 };
421
422 conf-rx {
423 pins = "MIO64", "MIO65", "MIO67";
424 bias-high-impedance;
425 drive-strength = <12>;
426 slew-rate = <SLEW_RATE_FAST>;
427 };
428
429 conf-tx {
430 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
431 "MIO72", "MIO73", "MIO74", "MIO75";
432 bias-disable;
433 output-enable;
434 drive-strength = <4>;
435 slew-rate = <SLEW_RATE_SLOW>;
436 };
437
438 mux {
439 groups = "usb1_0_grp";
440 function = "usb1";
441 };
442 };
443 };
444
445 &uart1 {
446 status = "okay";
447 pinctrl-names = "default";
448 pinctrl-0 = <&pinctrl_uart1_default>;
449 };