blob: ce7c5eb6d34667dae6addbd324c6258e0914071d [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
Michal Simeka7f1ab12024-01-30 15:51:06 +010028 clk_27: clock0 { /* u86 - DP */
29 compatible = "fixed-clock";
30 #clock-cells = <0>;
31 clock-frequency = <27000000>;
32 };
33
Michal Simek62fc45b2024-01-26 08:24:41 +010034 clk_125: si5332-0 { /* u17 - GEM0/1 */
Michal Simekae022cf2022-05-18 12:49:26 +020035 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <125000000>;
38 };
39
Michal Simeka7f1ab12024-01-30 15:51:06 +010040 clk_74: si5332-5 { /* u17 - SLVC-EC */
Michal Simekae022cf2022-05-18 12:49:26 +020041 compatible = "fixed-clock";
42 #clock-cells = <0>;
Michal Simeka7f1ab12024-01-30 15:51:06 +010043 clock-frequency = <74250000>;
Michal Simekae022cf2022-05-18 12:49:26 +020044 };
45
Michal Simek62fc45b2024-01-26 08:24:41 +010046 clk_26: si5332-2 { /* u17 - USB */
Michal Simekae022cf2022-05-18 12:49:26 +020047 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <26000000>;
50 };
51
Michal Simek62fc45b2024-01-26 08:24:41 +010052 clk_156: si5332-3 { /* u17 - SFP+ */
Michal Simekae022cf2022-05-18 12:49:26 +020053 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <156250000>;
56 };
57
Michal Simeka7f1ab12024-01-30 15:51:06 +010058 clk_25_0: si5332-1 { /* u17 - GEM2 */
Michal Simekae022cf2022-05-18 12:49:26 +020059 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <25000000>;
62 };
63
Michal Simeka7f1ab12024-01-30 15:51:06 +010064 clk_25_1: si5332-4 { /* u17 - GEM3 */
Michal Simekae022cf2022-05-18 12:49:26 +020065 compatible = "fixed-clock";
66 #clock-cells = <0>;
67 clock-frequency = <25000000>;
68 };
69};
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 */
Michal Simek62fc45b2024-01-26 08:24:41 +0100124 clocks = <&clk_125>, <&clk_27>, <&clk_26>;
Michal Simekae022cf2022-05-18 12:49:26 +0200125 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>;
Michal Simekee1e0252024-02-01 13:38:43 +0100177#if 0
Michal Simekae022cf2022-05-18 12:49:26 +0200178 usbhub1: usb-hub { /* u84 */
179 i2c-bus = <&usbhub_i2c1>;
180 compatible = "microchip,usb5744";
181 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
182 };
Michal Simekee1e0252024-02-01 13:38:43 +0100183#endif
Michal Simekae022cf2022-05-18 12:49:26 +0200184};
185
186&dwc3_1 {
187 status = "okay";
188 dr_mode = "host";
189 snps,usb3_lpm_capable;
190 maximum-speed = "super-speed";
191};
192
193&gem0 { /* mdio mio50/51 */
194 status = "okay";
195 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
196 phy-handle = <&phy0>;
197 phy-mode = "sgmii";
198 is-internal-pcspma;
Harini Katakam14d5fee2023-07-10 14:37:30 +0200199 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200200};
201
202&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
203 status = "okay";
204 pinctrl-names = "default";
205 pinctrl-0 = <&pinctrl_gem1_default>;
206 phy-handle = <&phy1>;
207 phy-mode = "rgmii-id";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200208 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200209
210 mdio: mdio {
211 #address-cells = <1>;
212 #size-cells = <0>;
213 phy0: ethernet-phy@4 { /* u81 */
214 #phy-cells = <1>;
215 compatible = "ethernet-phy-id2000.a231";
216 reg = <4>;
217 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
218 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
219 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
220 ti,dp83867-rxctrl-strap-quirk;
Harini Katakamf5a2d0c2023-07-10 14:37:32 +0200221 reset-assert-us = <300>;
Michal Simekae022cf2022-05-18 12:49:26 +0200222 reset-deassert-us = <280>;
223 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
224 };
225 phy1: ethernet-phy@8 { /* u36 */
226 #phy-cells = <1>;
227 compatible = "ethernet-phy-id2000.a231";
228 reg = <8>;
229 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
230 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
231 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
232 ti,dp83867-rxctrl-strap-quirk;
233 reset-assert-us = <100>;
234 reset-deassert-us = <280>;
235 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
236 };
237 };
238};
239
240/* gem2/gem3 via PL with phys u79@2 and u80@3 */
241
Michal Simek93987342023-02-20 09:09:04 +0100242&pinctrl0 {
Michal Simekae022cf2022-05-18 12:49:26 +0200243 status = "okay";
244
245 pinctrl_uart1_default: uart1-default {
246 conf {
247 groups = "uart1_9_grp";
248 slew-rate = <SLEW_RATE_SLOW>;
249 power-source = <IO_STANDARD_LVCMOS18>;
250 drive-strength = <12>;
251 };
252
253 conf-rx {
254 pins = "MIO37";
255 bias-high-impedance;
256 };
257
258 conf-tx {
259 pins = "MIO36";
260 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200261 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200262 };
263
264 mux {
265 groups = "uart1_9_grp";
266 function = "uart1";
267 };
268 };
269
270 pinctrl_i2c1_default: i2c1-default {
271 conf {
272 groups = "i2c1_6_grp";
273 bias-pull-up;
274 slew-rate = <SLEW_RATE_SLOW>;
275 power-source = <IO_STANDARD_LVCMOS18>;
276 };
277
278 mux {
279 groups = "i2c1_6_grp";
280 function = "i2c1";
281 };
282 };
283
Michal Simekcf3cd802023-12-19 17:16:50 +0100284 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekae022cf2022-05-18 12:49:26 +0200285 conf {
286 groups = "gpio0_24_grp", "gpio0_25_grp";
287 slew-rate = <SLEW_RATE_SLOW>;
288 power-source = <IO_STANDARD_LVCMOS18>;
289 };
290
291 mux {
292 groups = "gpio0_24_grp", "gpio0_25_grp";
293 function = "gpio0";
294 };
295 };
296
297 pinctrl_gem1_default: gem1-default {
298 conf {
299 groups = "ethernet1_0_grp";
300 slew-rate = <SLEW_RATE_SLOW>;
301 power-source = <IO_STANDARD_LVCMOS18>;
302 };
303
304 conf-rx {
305 pins = "MIO44", "MIO46", "MIO48";
306 bias-high-impedance;
307 low-power-disable;
308 };
309
310 conf-bootstrap {
311 pins = "MIO45", "MIO47", "MIO49";
312 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200313 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200314 low-power-disable;
315 };
316
317 conf-tx {
318 pins = "MIO38", "MIO39", "MIO40",
319 "MIO41", "MIO42", "MIO43";
320 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200321 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200322 low-power-enable;
323 };
324
325 conf-mdio {
326 groups = "mdio1_0_grp";
327 slew-rate = <SLEW_RATE_SLOW>;
328 power-source = <IO_STANDARD_LVCMOS18>;
329 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200330 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200331 };
332
333 mux-mdio {
334 function = "mdio1";
335 groups = "mdio1_0_grp";
336 };
337
338 mux {
339 function = "ethernet1";
340 groups = "ethernet1_0_grp";
341 };
342 };
343
344 pinctrl_usb0_default: usb0-default {
345 conf {
346 groups = "usb0_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200347 power-source = <IO_STANDARD_LVCMOS18>;
348 };
349
350 conf-rx {
351 pins = "MIO52", "MIO53", "MIO55";
352 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200353 drive-strength = <12>;
354 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200355 };
356
357 conf-tx {
358 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
359 "MIO60", "MIO61", "MIO62", "MIO63";
360 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200361 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200362 drive-strength = <4>;
363 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200364 };
365
366 mux {
367 groups = "usb0_0_grp";
368 function = "usb0";
369 };
370 };
371
372 pinctrl_usb1_default: usb1-default {
373 conf {
374 groups = "usb1_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200375 power-source = <IO_STANDARD_LVCMOS18>;
376 };
377
378 conf-rx {
379 pins = "MIO64", "MIO65", "MIO67";
380 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200381 drive-strength = <12>;
382 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200383 };
384
385 conf-tx {
386 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
387 "MIO72", "MIO73", "MIO74", "MIO75";
388 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200389 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200390 drive-strength = <4>;
391 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200392 };
393
394 mux {
395 groups = "usb1_0_grp";
396 function = "usb1";
397 };
398 };
399};
400
401&uart1 {
402 status = "okay";
403 pinctrl-names = "default";
404 pinctrl-0 = <&pinctrl_uart1_default>;
405};