blob: 95b1dc5aa571805813041bfa1e3c55c8199bae0e [file] [log] [blame]
Michal Simekae022cf2022-05-18 12:49:26 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for KR260 revA Carrier Card
4 *
5 * (C) Copyright 2021, 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-revA",
20 "xlnx,zynqmp-sk-kr260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010021 model = "ZynqMP KR260 revA";
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 si5332_0: si5332_0 { /* u17 - GEM0/1 */
29 compatible = "fixed-clock";
30 #clock-cells = <0>;
31 clock-frequency = <125000000>;
32 };
33
34 si5332_1: si5332_1 { /* u17 - DP */
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <27000000>;
38 };
39
40 si5332_2: si5332_2 { /* u17 - USB */
41 compatible = "fixed-clock";
42 #clock-cells = <0>;
43 clock-frequency = <26000000>;
44 };
45
46 si5332_3: si5332_3 { /* u17 - SFP+ */
47 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <156250000>;
50 };
51
52 si5332_4: si5332_4 { /* u17 - GEM2 */
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <25000000>;
56 };
57
58 si5332_5: si5332_5 { /* u17 - GEM3 */
59 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <25000000>;
62 };
63};
64
65&i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
66 #address-cells = <1>;
67 #size-cells = <0>;
68 pinctrl-names = "default", "gpio";
69 pinctrl-0 = <&pinctrl_i2c1_default>;
70 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020071 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
72 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simekae022cf2022-05-18 12:49:26 +020073
74 u14: ina260@40 { /* u14 */
75 compatible = "ti,ina260";
76 #io-channel-cells = <1>;
77 label = "ina260-u14";
78 reg = <0x40>;
79 };
80
81 slg7xl45106: gpio@11 { /* u19 - reset logic */
82 compatible = "dlg,slg7xl45106";
83 reg = <0x11>;
84 label = "resetchip";
85 gpio-controller;
86 #gpio-cells = <2>;
87 gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
88 "SD_RESET_B", "USB0_HUB_RESET_B",
89 "USB1_HUB_RESET_B", "PS_GEM0_RESET_B",
90 "PS_GEM1_RESET_B", "";
91 };
92
93 i2c-mux@74 { /* u18 */
94 compatible = "nxp,pca9546";
95 #address-cells = <1>;
96 #size-cells = <0>;
97 reg = <0x74>;
98 usbhub_i2c0: i2c@0 {
99 #address-cells = <1>;
100 #size-cells = <0>;
101 reg = <0>;
102 };
103 usbhub_i2c1: i2c@1 {
104 #address-cells = <1>;
105 #size-cells = <0>;
106 reg = <1>;
107 };
108 /* Bus 2/3 are not connected */
109 };
110
111 /* si5332@6a - u17 - clock-generator */
112};
113
114/* GEM SGMII/DP and USB 3.0 */
115&psgtr {
116 status = "okay";
117 /* gem0/1, dp, usb */
118 clocks = <&si5332_0>, <&si5332_1>, <&si5332_2>;
119 clock-names = "ref0", "ref1", "ref2";
120};
121
122&zynqmp_dpsub {
123 status = "okay";
124 phy-names = "dp-phy0";
125 phys = <&psgtr 1 PHY_TYPE_DP 0 1>;
126 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
127};
128
129&zynqmp_dpdma {
130 status = "okay";
131 assigned-clock-rates = <600000000>;
132};
133
134&usb0 { /* mio52 - mio63 */
135 status = "okay";
136 pinctrl-names = "default";
137 pinctrl-0 = <&pinctrl_usb0_default>;
138 phy-names = "usb3-phy";
139 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
140 reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
141 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek30d1dfc2023-11-06 16:55:48 +0100142#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200143 usbhub0: usb-hub { /* u43 */
144 i2c-bus = <&usbhub_i2c0>;
145 compatible = "microchip,usb5744";
146 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
147 };
148
149 usb2244: usb-sd { /* u38 */
150 compatible = "microchip,usb2244";
151 reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_LOW>;
152 };
Michal Simek30d1dfc2023-11-06 16:55:48 +0100153#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200154};
155
156&dwc3_0 {
157 status = "okay";
158 dr_mode = "host";
159 snps,usb3_lpm_capable;
160 maximum-speed = "super-speed";
161};
162
163&usb1 { /* mio64 - mio75 */
164 status = "okay";
165 pinctrl-names = "default";
166 pinctrl-0 = <&pinctrl_usb1_default>;
167 phy-names = "usb3-phy";
168 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
169 reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
170 assigned-clock-rates = <250000000>, <20000000>;
171
172 usbhub1: usb-hub { /* u84 */
173 i2c-bus = <&usbhub_i2c1>;
174 compatible = "microchip,usb5744";
175 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
176 };
177};
178
179&dwc3_1 {
180 status = "okay";
181 dr_mode = "host";
182 snps,usb3_lpm_capable;
183 maximum-speed = "super-speed";
184};
185
186&gem0 { /* mdio mio50/51 */
187 status = "okay";
188 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
189 phy-handle = <&phy0>;
190 phy-mode = "sgmii";
191 is-internal-pcspma;
Harini Katakam14d5fee2023-07-10 14:37:30 +0200192 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200193};
194
195&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
196 status = "okay";
197 pinctrl-names = "default";
198 pinctrl-0 = <&pinctrl_gem1_default>;
199 phy-handle = <&phy1>;
200 phy-mode = "rgmii-id";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200201 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200202
203 mdio: mdio {
204 #address-cells = <1>;
205 #size-cells = <0>;
206 phy0: ethernet-phy@4 { /* u81 */
207 #phy-cells = <1>;
208 compatible = "ethernet-phy-id2000.a231";
209 reg = <4>;
210 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
211 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
212 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
213 ti,dp83867-rxctrl-strap-quirk;
Harini Katakamf5a2d0c2023-07-10 14:37:32 +0200214 reset-assert-us = <300>;
Michal Simekae022cf2022-05-18 12:49:26 +0200215 reset-deassert-us = <280>;
216 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
217 };
218 phy1: ethernet-phy@8 { /* u36 */
219 #phy-cells = <1>;
220 compatible = "ethernet-phy-id2000.a231";
221 reg = <8>;
222 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
223 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
224 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
225 ti,dp83867-rxctrl-strap-quirk;
226 reset-assert-us = <100>;
227 reset-deassert-us = <280>;
228 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
229 };
230 };
231};
232
233/* gem2/gem3 via PL with phys u79@2 and u80@3 */
234
Michal Simek93987342023-02-20 09:09:04 +0100235&pinctrl0 {
Michal Simekae022cf2022-05-18 12:49:26 +0200236 status = "okay";
237
238 pinctrl_uart1_default: uart1-default {
239 conf {
240 groups = "uart1_9_grp";
241 slew-rate = <SLEW_RATE_SLOW>;
242 power-source = <IO_STANDARD_LVCMOS18>;
243 drive-strength = <12>;
244 };
245
246 conf-rx {
247 pins = "MIO37";
248 bias-high-impedance;
249 };
250
251 conf-tx {
252 pins = "MIO36";
253 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200254 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200255 };
256
257 mux {
258 groups = "uart1_9_grp";
259 function = "uart1";
260 };
261 };
262
263 pinctrl_i2c1_default: i2c1-default {
264 conf {
265 groups = "i2c1_6_grp";
266 bias-pull-up;
267 slew-rate = <SLEW_RATE_SLOW>;
268 power-source = <IO_STANDARD_LVCMOS18>;
269 };
270
271 mux {
272 groups = "i2c1_6_grp";
273 function = "i2c1";
274 };
275 };
276
277 pinctrl_i2c1_gpio: i2c1-gpio {
278 conf {
279 groups = "gpio0_24_grp", "gpio0_25_grp";
280 slew-rate = <SLEW_RATE_SLOW>;
281 power-source = <IO_STANDARD_LVCMOS18>;
282 };
283
284 mux {
285 groups = "gpio0_24_grp", "gpio0_25_grp";
286 function = "gpio0";
287 };
288 };
289
290 pinctrl_gem1_default: gem1-default {
291 conf {
292 groups = "ethernet1_0_grp";
293 slew-rate = <SLEW_RATE_SLOW>;
294 power-source = <IO_STANDARD_LVCMOS18>;
295 };
296
297 conf-rx {
298 pins = "MIO44", "MIO46", "MIO48";
299 bias-high-impedance;
300 low-power-disable;
301 };
302
303 conf-bootstrap {
304 pins = "MIO45", "MIO47", "MIO49";
305 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200306 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200307 low-power-disable;
308 };
309
310 conf-tx {
311 pins = "MIO38", "MIO39", "MIO40",
312 "MIO41", "MIO42", "MIO43";
313 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200314 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200315 low-power-enable;
316 };
317
318 conf-mdio {
319 groups = "mdio1_0_grp";
320 slew-rate = <SLEW_RATE_SLOW>;
321 power-source = <IO_STANDARD_LVCMOS18>;
322 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200323 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200324 };
325
326 mux-mdio {
327 function = "mdio1";
328 groups = "mdio1_0_grp";
329 };
330
331 mux {
332 function = "ethernet1";
333 groups = "ethernet1_0_grp";
334 };
335 };
336
337 pinctrl_usb0_default: usb0-default {
338 conf {
339 groups = "usb0_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200340 power-source = <IO_STANDARD_LVCMOS18>;
341 };
342
343 conf-rx {
344 pins = "MIO52", "MIO53", "MIO55";
345 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200346 drive-strength = <12>;
347 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200348 };
349
350 conf-tx {
351 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
352 "MIO60", "MIO61", "MIO62", "MIO63";
353 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200354 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200355 drive-strength = <4>;
356 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200357 };
358
359 mux {
360 groups = "usb0_0_grp";
361 function = "usb0";
362 };
363 };
364
365 pinctrl_usb1_default: usb1-default {
366 conf {
367 groups = "usb1_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200368 power-source = <IO_STANDARD_LVCMOS18>;
369 };
370
371 conf-rx {
372 pins = "MIO64", "MIO65", "MIO67";
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 = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
380 "MIO72", "MIO73", "MIO74", "MIO75";
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 = "usb1_0_grp";
389 function = "usb1";
390 };
391 };
392};
393
394&uart1 {
395 status = "okay";
396 pinctrl-names = "default";
397 pinctrl-0 = <&pinctrl_uart1_default>;
398};