blob: 0a0cbd2b69ae20fbf1aaedcd2337e68e8611faff [file] [log] [blame]
Michal Simekae022cf2022-05-18 12:49:26 +02001// 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 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simekae022cf2022-05-18 12:49:26 +02008 */
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";
Michal Simekf2d270d2023-01-18 13:04:14 +010021 model = "ZynqMP KR260 revB";
Michal Simekae022cf2022-05-18 12:49:26 +020022
23 ina260-u14 {
24 compatible = "iio-hwmon";
25 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
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 };
Michal Simeka7f1ab12024-01-30 15:51:06 +010063
64 clk_74: clock6 { /* u88 - SLVC-EC */
65 compatible = "fixed-clock";
66 #clock-cells = <0>;
67 clock-frequency = <74250000>;
68 };
Vishal Sagarcfda0aa2024-03-21 16:54:56 +010069
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 };
Michal Simekae022cf2022-05-18 12:49:26 +020081};
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>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020089 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
90 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simekae022cf2022-05-18 12:49:26 +020091
92 u14: ina260@40 { /* u14 */
93 compatible = "ti,ina260";
94 #io-channel-cells = <1>;
95 label = "ina260-u14";
96 reg = <0x40>;
97 };
98
99 slg7xl45106: gpio@11 { /* u19 - reset logic */
100 compatible = "dlg,slg7xl45106";
101 reg = <0x11>;
102 label = "resetchip";
103 gpio-controller;
104 #gpio-cells = <2>;
105 gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
106 "SD_RESET_B", "USB0_HUB_RESET_B",
107 "USB1_HUB_RESET_B", "PS_GEM0_RESET_B",
108 "PS_GEM1_RESET_B", "";
109 };
110
111 i2c-mux@74 { /* u18 */
112 compatible = "nxp,pca9546";
113 #address-cells = <1>;
114 #size-cells = <0>;
115 reg = <0x74>;
116 usbhub_i2c0: i2c@0 {
117 #address-cells = <1>;
118 #size-cells = <0>;
119 reg = <0>;
120 };
121 usbhub_i2c1: i2c@1 {
122 #address-cells = <1>;
123 #size-cells = <0>;
124 reg = <1>;
125 };
126 /* Bus 2/3 are not connected */
127 };
128
129 /* si5332@6a - u17 - clock-generator */
130};
131
132/* GEM SGMII/DP and USB 3.0 */
133&psgtr {
134 status = "okay";
135 /* gem0/1, dp, usb */
136 clocks = <&clk_125>, <&clk_27>, <&clk_26>;
137 clock-names = "ref0", "ref1", "ref2";
138};
139
140&zynqmp_dpsub {
141 status = "okay";
142 phy-names = "dp-phy0";
143 phys = <&psgtr 1 PHY_TYPE_DP 0 1>;
144 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Vishal Sagarcfda0aa2024-03-21 16:54:56 +0100145
146 ports {
147 port@5 {
148 dpsub_dp_out: endpoint {
149 remote-endpoint = <&dpcon_in>;
150 };
151 };
152 };
Michal Simekae022cf2022-05-18 12:49:26 +0200153};
154
155&zynqmp_dpdma {
156 status = "okay";
157 assigned-clock-rates = <600000000>;
158};
159
160&usb0 { /* mio52 - mio63 */
161 status = "okay";
162 pinctrl-names = "default";
163 pinctrl-0 = <&pinctrl_usb0_default>;
164 phy-names = "usb3-phy";
165 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
166 reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
167 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek30d1dfc2023-11-06 16:55:48 +0100168#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200169 usbhub0: usb-hub { /* u43 */
170 i2c-bus = <&usbhub_i2c0>;
171 compatible = "microchip,usb5744";
172 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
173 };
174
175 usb2244: usb-sd { /* u38 */
176 compatible = "microchip,usb2244";
177 reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_LOW>;
178 };
Michal Simek30d1dfc2023-11-06 16:55:48 +0100179#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200180};
181
182&dwc3_0 {
183 status = "okay";
184 dr_mode = "host";
185 snps,usb3_lpm_capable;
186 maximum-speed = "super-speed";
187};
188
189&usb1 { /* mio64 - mio75 */
190 status = "okay";
191 pinctrl-names = "default";
192 pinctrl-0 = <&pinctrl_usb1_default>;
193 phy-names = "usb3-phy";
194 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
195 reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
196 assigned-clock-rates = <250000000>, <20000000>;
197
Michal Simekee1e0252024-02-01 13:38:43 +0100198#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200199 usbhub1: usb-hub { /* u84 */
200 i2c-bus = <&usbhub_i2c1>;
201 compatible = "microchip,usb5744";
202 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
203 };
Michal Simekee1e0252024-02-01 13:38:43 +0100204#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200205};
206
207&dwc3_1 {
208 status = "okay";
209 dr_mode = "host";
210 snps,usb3_lpm_capable;
211 maximum-speed = "super-speed";
212};
213
214&gem0 { /* mdio mio50/51 */
215 status = "okay";
216 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
217 phy-handle = <&phy0>;
218 phy-mode = "sgmii";
219 is-internal-pcspma;
Harini Katakam14d5fee2023-07-10 14:37:30 +0200220 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200221};
222
223&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
224 status = "okay";
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_gem1_default>;
227 phy-handle = <&phy1>;
228 phy-mode = "rgmii-id";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200229 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200230
231 mdio: mdio {
232 #address-cells = <1>;
233 #size-cells = <0>;
234 phy0: ethernet-phy@4 { /* u81 */
235 #phy-cells = <1>;
236 compatible = "ethernet-phy-id2000.a231";
237 reg = <4>;
238 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
239 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
240 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
241 ti,dp83867-rxctrl-strap-quirk;
Harini Katakamf5a2d0c2023-07-10 14:37:32 +0200242 reset-assert-us = <300>;
Michal Simekae022cf2022-05-18 12:49:26 +0200243 reset-deassert-us = <280>;
244 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
245 };
246 phy1: ethernet-phy@8 { /* u36 */
247 #phy-cells = <1>;
248 compatible = "ethernet-phy-id2000.a231";
249 reg = <8>;
250 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
251 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
252 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
253 ti,dp83867-rxctrl-strap-quirk;
254 reset-assert-us = <100>;
255 reset-deassert-us = <280>;
256 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
257 };
258 };
259};
260
261/* gem2/gem3 via PL with phys u79@2 and u80@3 */
262
Michal Simek93987342023-02-20 09:09:04 +0100263&pinctrl0 {
Michal Simekae022cf2022-05-18 12:49:26 +0200264 status = "okay";
265
266 pinctrl_uart1_default: uart1-default {
267 conf {
268 groups = "uart1_9_grp";
269 slew-rate = <SLEW_RATE_SLOW>;
270 power-source = <IO_STANDARD_LVCMOS18>;
271 drive-strength = <12>;
272 };
273
274 conf-rx {
275 pins = "MIO37";
276 bias-high-impedance;
277 };
278
279 conf-tx {
280 pins = "MIO36";
281 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200282 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200283 };
284
285 mux {
286 groups = "uart1_9_grp";
287 function = "uart1";
288 };
289 };
290
291 pinctrl_i2c1_default: i2c1-default {
292 conf {
293 groups = "i2c1_6_grp";
294 bias-pull-up;
295 slew-rate = <SLEW_RATE_SLOW>;
296 power-source = <IO_STANDARD_LVCMOS18>;
297 };
298
299 mux {
300 groups = "i2c1_6_grp";
301 function = "i2c1";
302 };
303 };
304
Michal Simekcf3cd802023-12-19 17:16:50 +0100305 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekae022cf2022-05-18 12:49:26 +0200306 conf {
307 groups = "gpio0_24_grp", "gpio0_25_grp";
308 slew-rate = <SLEW_RATE_SLOW>;
309 power-source = <IO_STANDARD_LVCMOS18>;
310 };
311
312 mux {
313 groups = "gpio0_24_grp", "gpio0_25_grp";
314 function = "gpio0";
315 };
316 };
317
318 pinctrl_gem1_default: gem1-default {
319 conf {
320 groups = "ethernet1_0_grp";
321 slew-rate = <SLEW_RATE_SLOW>;
322 power-source = <IO_STANDARD_LVCMOS18>;
323 };
324
325 conf-rx {
326 pins = "MIO44", "MIO46", "MIO48";
327 bias-high-impedance;
328 low-power-disable;
329 };
330
331 conf-bootstrap {
332 pins = "MIO45", "MIO47", "MIO49";
333 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200334 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200335 low-power-disable;
336 };
337
338 conf-tx {
339 pins = "MIO38", "MIO39", "MIO40",
340 "MIO41", "MIO42", "MIO43";
341 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200342 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200343 low-power-enable;
344 };
345
346 conf-mdio {
347 groups = "mdio1_0_grp";
348 slew-rate = <SLEW_RATE_SLOW>;
349 power-source = <IO_STANDARD_LVCMOS18>;
350 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200351 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200352 };
353
354 mux-mdio {
355 function = "mdio1";
356 groups = "mdio1_0_grp";
357 };
358
359 mux {
360 function = "ethernet1";
361 groups = "ethernet1_0_grp";
362 };
363 };
364
365 pinctrl_usb0_default: usb0-default {
366 conf {
367 groups = "usb0_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200368 power-source = <IO_STANDARD_LVCMOS18>;
369 };
370
371 conf-rx {
372 pins = "MIO52", "MIO53", "MIO55";
373 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200374 drive-strength = <12>;
375 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200376 };
377
378 conf-tx {
379 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
380 "MIO60", "MIO61", "MIO62", "MIO63";
381 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200382 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200383 drive-strength = <4>;
384 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200385 };
386
387 mux {
388 groups = "usb0_0_grp";
389 function = "usb0";
390 };
391 };
392
393 pinctrl_usb1_default: usb1-default {
394 conf {
395 groups = "usb1_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200396 power-source = <IO_STANDARD_LVCMOS18>;
397 };
398
399 conf-rx {
400 pins = "MIO64", "MIO65", "MIO67";
401 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200402 drive-strength = <12>;
403 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200404 };
405
406 conf-tx {
407 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
408 "MIO72", "MIO73", "MIO74", "MIO75";
409 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200410 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200411 drive-strength = <4>;
412 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200413 };
414
415 mux {
416 groups = "usb1_0_grp";
417 function = "usb1";
418 };
419 };
420};
421
422&uart1 {
423 status = "okay";
424 pinctrl-names = "default";
425 pinctrl-0 = <&pinctrl_uart1_default>;
426};