blob: 6c29f657413480fccb068e462ab2bfac3b6c809c [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 };
Michal Simekae022cf2022-05-18 12:49:26 +020069};
70
71&i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
72 #address-cells = <1>;
73 #size-cells = <0>;
74 pinctrl-names = "default", "gpio";
75 pinctrl-0 = <&pinctrl_i2c1_default>;
76 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020077 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
78 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simekae022cf2022-05-18 12:49:26 +020079
80 u14: ina260@40 { /* u14 */
81 compatible = "ti,ina260";
82 #io-channel-cells = <1>;
83 label = "ina260-u14";
84 reg = <0x40>;
85 };
86
87 slg7xl45106: gpio@11 { /* u19 - reset logic */
88 compatible = "dlg,slg7xl45106";
89 reg = <0x11>;
90 label = "resetchip";
91 gpio-controller;
92 #gpio-cells = <2>;
93 gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
94 "SD_RESET_B", "USB0_HUB_RESET_B",
95 "USB1_HUB_RESET_B", "PS_GEM0_RESET_B",
96 "PS_GEM1_RESET_B", "";
97 };
98
99 i2c-mux@74 { /* u18 */
100 compatible = "nxp,pca9546";
101 #address-cells = <1>;
102 #size-cells = <0>;
103 reg = <0x74>;
104 usbhub_i2c0: i2c@0 {
105 #address-cells = <1>;
106 #size-cells = <0>;
107 reg = <0>;
108 };
109 usbhub_i2c1: i2c@1 {
110 #address-cells = <1>;
111 #size-cells = <0>;
112 reg = <1>;
113 };
114 /* Bus 2/3 are not connected */
115 };
116
117 /* si5332@6a - u17 - clock-generator */
118};
119
120/* GEM SGMII/DP and USB 3.0 */
121&psgtr {
122 status = "okay";
123 /* gem0/1, dp, usb */
124 clocks = <&clk_125>, <&clk_27>, <&clk_26>;
125 clock-names = "ref0", "ref1", "ref2";
126};
127
128&zynqmp_dpsub {
129 status = "okay";
130 phy-names = "dp-phy0";
131 phys = <&psgtr 1 PHY_TYPE_DP 0 1>;
132 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
133};
134
135&zynqmp_dpdma {
136 status = "okay";
137 assigned-clock-rates = <600000000>;
138};
139
140&usb0 { /* mio52 - mio63 */
141 status = "okay";
142 pinctrl-names = "default";
143 pinctrl-0 = <&pinctrl_usb0_default>;
144 phy-names = "usb3-phy";
145 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
146 reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
147 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek30d1dfc2023-11-06 16:55:48 +0100148#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200149 usbhub0: usb-hub { /* u43 */
150 i2c-bus = <&usbhub_i2c0>;
151 compatible = "microchip,usb5744";
152 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
153 };
154
155 usb2244: usb-sd { /* u38 */
156 compatible = "microchip,usb2244";
157 reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_LOW>;
158 };
Michal Simek30d1dfc2023-11-06 16:55:48 +0100159#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200160};
161
162&dwc3_0 {
163 status = "okay";
164 dr_mode = "host";
165 snps,usb3_lpm_capable;
166 maximum-speed = "super-speed";
167};
168
169&usb1 { /* mio64 - mio75 */
170 status = "okay";
171 pinctrl-names = "default";
172 pinctrl-0 = <&pinctrl_usb1_default>;
173 phy-names = "usb3-phy";
174 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
175 reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
176 assigned-clock-rates = <250000000>, <20000000>;
177
Michal Simekee1e0252024-02-01 13:38:43 +0100178#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200179 usbhub1: usb-hub { /* u84 */
180 i2c-bus = <&usbhub_i2c1>;
181 compatible = "microchip,usb5744";
182 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
183 };
Michal Simekee1e0252024-02-01 13:38:43 +0100184#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200185};
186
187&dwc3_1 {
188 status = "okay";
189 dr_mode = "host";
190 snps,usb3_lpm_capable;
191 maximum-speed = "super-speed";
192};
193
194&gem0 { /* mdio mio50/51 */
195 status = "okay";
196 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
197 phy-handle = <&phy0>;
198 phy-mode = "sgmii";
199 is-internal-pcspma;
Harini Katakam14d5fee2023-07-10 14:37:30 +0200200 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200201};
202
203&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
204 status = "okay";
205 pinctrl-names = "default";
206 pinctrl-0 = <&pinctrl_gem1_default>;
207 phy-handle = <&phy1>;
208 phy-mode = "rgmii-id";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200209 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200210
211 mdio: mdio {
212 #address-cells = <1>;
213 #size-cells = <0>;
214 phy0: ethernet-phy@4 { /* u81 */
215 #phy-cells = <1>;
216 compatible = "ethernet-phy-id2000.a231";
217 reg = <4>;
218 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
219 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
220 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
221 ti,dp83867-rxctrl-strap-quirk;
Harini Katakamf5a2d0c2023-07-10 14:37:32 +0200222 reset-assert-us = <300>;
Michal Simekae022cf2022-05-18 12:49:26 +0200223 reset-deassert-us = <280>;
224 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
225 };
226 phy1: ethernet-phy@8 { /* u36 */
227 #phy-cells = <1>;
228 compatible = "ethernet-phy-id2000.a231";
229 reg = <8>;
230 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
231 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
232 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
233 ti,dp83867-rxctrl-strap-quirk;
234 reset-assert-us = <100>;
235 reset-deassert-us = <280>;
236 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
237 };
238 };
239};
240
241/* gem2/gem3 via PL with phys u79@2 and u80@3 */
242
Michal Simek93987342023-02-20 09:09:04 +0100243&pinctrl0 {
Michal Simekae022cf2022-05-18 12:49:26 +0200244 status = "okay";
245
246 pinctrl_uart1_default: uart1-default {
247 conf {
248 groups = "uart1_9_grp";
249 slew-rate = <SLEW_RATE_SLOW>;
250 power-source = <IO_STANDARD_LVCMOS18>;
251 drive-strength = <12>;
252 };
253
254 conf-rx {
255 pins = "MIO37";
256 bias-high-impedance;
257 };
258
259 conf-tx {
260 pins = "MIO36";
261 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200262 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200263 };
264
265 mux {
266 groups = "uart1_9_grp";
267 function = "uart1";
268 };
269 };
270
271 pinctrl_i2c1_default: i2c1-default {
272 conf {
273 groups = "i2c1_6_grp";
274 bias-pull-up;
275 slew-rate = <SLEW_RATE_SLOW>;
276 power-source = <IO_STANDARD_LVCMOS18>;
277 };
278
279 mux {
280 groups = "i2c1_6_grp";
281 function = "i2c1";
282 };
283 };
284
Michal Simekcf3cd802023-12-19 17:16:50 +0100285 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekae022cf2022-05-18 12:49:26 +0200286 conf {
287 groups = "gpio0_24_grp", "gpio0_25_grp";
288 slew-rate = <SLEW_RATE_SLOW>;
289 power-source = <IO_STANDARD_LVCMOS18>;
290 };
291
292 mux {
293 groups = "gpio0_24_grp", "gpio0_25_grp";
294 function = "gpio0";
295 };
296 };
297
298 pinctrl_gem1_default: gem1-default {
299 conf {
300 groups = "ethernet1_0_grp";
301 slew-rate = <SLEW_RATE_SLOW>;
302 power-source = <IO_STANDARD_LVCMOS18>;
303 };
304
305 conf-rx {
306 pins = "MIO44", "MIO46", "MIO48";
307 bias-high-impedance;
308 low-power-disable;
309 };
310
311 conf-bootstrap {
312 pins = "MIO45", "MIO47", "MIO49";
313 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200314 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200315 low-power-disable;
316 };
317
318 conf-tx {
319 pins = "MIO38", "MIO39", "MIO40",
320 "MIO41", "MIO42", "MIO43";
321 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200322 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200323 low-power-enable;
324 };
325
326 conf-mdio {
327 groups = "mdio1_0_grp";
328 slew-rate = <SLEW_RATE_SLOW>;
329 power-source = <IO_STANDARD_LVCMOS18>;
330 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200331 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200332 };
333
334 mux-mdio {
335 function = "mdio1";
336 groups = "mdio1_0_grp";
337 };
338
339 mux {
340 function = "ethernet1";
341 groups = "ethernet1_0_grp";
342 };
343 };
344
345 pinctrl_usb0_default: usb0-default {
346 conf {
347 groups = "usb0_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200348 power-source = <IO_STANDARD_LVCMOS18>;
349 };
350
351 conf-rx {
352 pins = "MIO52", "MIO53", "MIO55";
353 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200354 drive-strength = <12>;
355 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200356 };
357
358 conf-tx {
359 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
360 "MIO60", "MIO61", "MIO62", "MIO63";
361 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200362 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200363 drive-strength = <4>;
364 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200365 };
366
367 mux {
368 groups = "usb0_0_grp";
369 function = "usb0";
370 };
371 };
372
373 pinctrl_usb1_default: usb1-default {
374 conf {
375 groups = "usb1_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200376 power-source = <IO_STANDARD_LVCMOS18>;
377 };
378
379 conf-rx {
380 pins = "MIO64", "MIO65", "MIO67";
381 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200382 drive-strength = <12>;
383 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200384 };
385
386 conf-tx {
387 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
388 "MIO72", "MIO73", "MIO74", "MIO75";
389 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200390 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200391 drive-strength = <4>;
392 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200393 };
394
395 mux {
396 groups = "usb1_0_grp";
397 function = "usb1";
398 };
399 };
400};
401
402&uart1 {
403 status = "okay";
404 pinctrl-names = "default";
405 pinctrl-0 = <&pinctrl_uart1_default>;
406};