blob: b0d737d3caf002be8d3f2301f0f34750157a6083 [file] [log] [blame]
Michal Simekbaba22a2022-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 Simek174d72842023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simekbaba22a2022-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 Simek8489b6d2023-01-18 13:04:14 +010021 model = "ZynqMP KR260 revB";
Michal Simekbaba22a2022-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 Simekf8e125c2024-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 Sagar8e462bf2024-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 Simekbaba22a2022-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 Guntupalli28dc3562023-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 Simekbaba22a2022-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 Sagar8e462bf2024-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 Simekbaba22a2022-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 Simek4ff083f2023-11-06 16:55:48 +0100168#if 0
Michal Simekbaba22a2022-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 Simek4ff083f2023-11-06 16:55:48 +0100179#endif
Michal Simekbaba22a2022-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 Simek04dca752024-02-01 13:38:43 +0100198#if 0
Michal Simekbaba22a2022-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 Simek04dca752024-02-01 13:38:43 +0100204#endif
Michal Simekbaba22a2022-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";
Harini Katakamf6689612023-07-10 14:37:30 +0200219 assigned-clock-rates = <250000000>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200220};
221
222&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
223 status = "okay";
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_gem1_default>;
226 phy-handle = <&phy1>;
227 phy-mode = "rgmii-id";
Harini Katakamf6689612023-07-10 14:37:30 +0200228 assigned-clock-rates = <250000000>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200229
230 mdio: mdio {
231 #address-cells = <1>;
232 #size-cells = <0>;
233 phy0: ethernet-phy@4 { /* u81 */
234 #phy-cells = <1>;
235 compatible = "ethernet-phy-id2000.a231";
236 reg = <4>;
237 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
238 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
239 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
240 ti,dp83867-rxctrl-strap-quirk;
Harini Katakam414fc912023-07-10 14:37:32 +0200241 reset-assert-us = <300>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200242 reset-deassert-us = <280>;
243 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
244 };
245 phy1: ethernet-phy@8 { /* u36 */
246 #phy-cells = <1>;
247 compatible = "ethernet-phy-id2000.a231";
248 reg = <8>;
249 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
250 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
251 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
252 ti,dp83867-rxctrl-strap-quirk;
253 reset-assert-us = <100>;
254 reset-deassert-us = <280>;
255 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
256 };
257 };
258};
259
260/* gem2/gem3 via PL with phys u79@2 and u80@3 */
261
Michal Simekdd0ebfe2023-02-20 09:09:04 +0100262&pinctrl0 {
Michal Simekbaba22a2022-05-18 12:49:26 +0200263 status = "okay";
264
265 pinctrl_uart1_default: uart1-default {
266 conf {
267 groups = "uart1_9_grp";
268 slew-rate = <SLEW_RATE_SLOW>;
269 power-source = <IO_STANDARD_LVCMOS18>;
270 drive-strength = <12>;
271 };
272
273 conf-rx {
274 pins = "MIO37";
275 bias-high-impedance;
276 };
277
278 conf-tx {
279 pins = "MIO36";
280 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200281 output-enable;
Michal Simekbaba22a2022-05-18 12:49:26 +0200282 };
283
284 mux {
285 groups = "uart1_9_grp";
286 function = "uart1";
287 };
288 };
289
290 pinctrl_i2c1_default: i2c1-default {
291 conf {
292 groups = "i2c1_6_grp";
293 bias-pull-up;
294 slew-rate = <SLEW_RATE_SLOW>;
295 power-source = <IO_STANDARD_LVCMOS18>;
296 };
297
298 mux {
299 groups = "i2c1_6_grp";
300 function = "i2c1";
301 };
302 };
303
Michal Simek8026aa62023-12-19 17:16:50 +0100304 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekbaba22a2022-05-18 12:49:26 +0200305 conf {
306 groups = "gpio0_24_grp", "gpio0_25_grp";
307 slew-rate = <SLEW_RATE_SLOW>;
308 power-source = <IO_STANDARD_LVCMOS18>;
309 };
310
311 mux {
312 groups = "gpio0_24_grp", "gpio0_25_grp";
313 function = "gpio0";
314 };
315 };
316
317 pinctrl_gem1_default: gem1-default {
318 conf {
319 groups = "ethernet1_0_grp";
320 slew-rate = <SLEW_RATE_SLOW>;
321 power-source = <IO_STANDARD_LVCMOS18>;
322 };
323
324 conf-rx {
325 pins = "MIO44", "MIO46", "MIO48";
326 bias-high-impedance;
327 low-power-disable;
328 };
329
330 conf-bootstrap {
331 pins = "MIO45", "MIO47", "MIO49";
332 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200333 output-enable;
Michal Simekbaba22a2022-05-18 12:49:26 +0200334 low-power-disable;
335 };
336
337 conf-tx {
338 pins = "MIO38", "MIO39", "MIO40",
339 "MIO41", "MIO42", "MIO43";
340 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200341 output-enable;
Michal Simekbaba22a2022-05-18 12:49:26 +0200342 low-power-enable;
343 };
344
345 conf-mdio {
346 groups = "mdio1_0_grp";
347 slew-rate = <SLEW_RATE_SLOW>;
348 power-source = <IO_STANDARD_LVCMOS18>;
349 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200350 output-enable;
Michal Simekbaba22a2022-05-18 12:49:26 +0200351 };
352
353 mux-mdio {
354 function = "mdio1";
355 groups = "mdio1_0_grp";
356 };
357
358 mux {
359 function = "ethernet1";
360 groups = "ethernet1_0_grp";
361 };
362 };
363
364 pinctrl_usb0_default: usb0-default {
365 conf {
366 groups = "usb0_0_grp";
Michal Simekbaba22a2022-05-18 12:49:26 +0200367 power-source = <IO_STANDARD_LVCMOS18>;
368 };
369
370 conf-rx {
371 pins = "MIO52", "MIO53", "MIO55";
372 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200373 drive-strength = <12>;
374 slew-rate = <SLEW_RATE_FAST>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200375 };
376
377 conf-tx {
378 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
379 "MIO60", "MIO61", "MIO62", "MIO63";
380 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200381 output-enable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200382 drive-strength = <4>;
383 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200384 };
385
386 mux {
387 groups = "usb0_0_grp";
388 function = "usb0";
389 };
390 };
391
392 pinctrl_usb1_default: usb1-default {
393 conf {
394 groups = "usb1_0_grp";
Michal Simekbaba22a2022-05-18 12:49:26 +0200395 power-source = <IO_STANDARD_LVCMOS18>;
396 };
397
398 conf-rx {
399 pins = "MIO64", "MIO65", "MIO67";
400 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200401 drive-strength = <12>;
402 slew-rate = <SLEW_RATE_FAST>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200403 };
404
405 conf-tx {
406 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
407 "MIO72", "MIO73", "MIO74", "MIO75";
408 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200409 output-enable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200410 drive-strength = <4>;
411 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200412 };
413
414 mux {
415 groups = "usb1_0_grp";
416 function = "usb1";
417 };
418 };
419};
420
421&uart1 {
422 status = "okay";
423 pinctrl-names = "default";
424 pinctrl-0 = <&pinctrl_uart1_default>;
425};