Debian Codegraph @

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

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