blob: 6349a0e10877aa929d871197a17e8c066a928284 [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";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200198 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200199};
200
201&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
202 status = "okay";
203 pinctrl-names = "default";
204 pinctrl-0 = <&pinctrl_gem1_default>;
205 phy-handle = <&phy1>;
206 phy-mode = "rgmii-id";
Harini Katakam14d5fee2023-07-10 14:37:30 +0200207 assigned-clock-rates = <250000000>;
Michal Simekae022cf2022-05-18 12:49:26 +0200208
209 mdio: mdio {
210 #address-cells = <1>;
211 #size-cells = <0>;
212 phy0: ethernet-phy@4 { /* u81 */
213 #phy-cells = <1>;
214 compatible = "ethernet-phy-id2000.a231";
215 reg = <4>;
216 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
217 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
218 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
219 ti,dp83867-rxctrl-strap-quirk;
Harini Katakamf5a2d0c2023-07-10 14:37:32 +0200220 reset-assert-us = <300>;
Michal Simekae022cf2022-05-18 12:49:26 +0200221 reset-deassert-us = <280>;
222 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
223 };
224 phy1: ethernet-phy@8 { /* u36 */
225 #phy-cells = <1>;
226 compatible = "ethernet-phy-id2000.a231";
227 reg = <8>;
228 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
229 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
230 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
231 ti,dp83867-rxctrl-strap-quirk;
232 reset-assert-us = <100>;
233 reset-deassert-us = <280>;
234 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
235 };
236 };
237};
238
239/* gem2/gem3 via PL with phys u79@2 and u80@3 */
240
Michal Simek93987342023-02-20 09:09:04 +0100241&pinctrl0 {
Michal Simekae022cf2022-05-18 12:49:26 +0200242 status = "okay";
243
244 pinctrl_uart1_default: uart1-default {
245 conf {
246 groups = "uart1_9_grp";
247 slew-rate = <SLEW_RATE_SLOW>;
248 power-source = <IO_STANDARD_LVCMOS18>;
249 drive-strength = <12>;
250 };
251
252 conf-rx {
253 pins = "MIO37";
254 bias-high-impedance;
255 };
256
257 conf-tx {
258 pins = "MIO36";
259 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200260 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200261 };
262
263 mux {
264 groups = "uart1_9_grp";
265 function = "uart1";
266 };
267 };
268
269 pinctrl_i2c1_default: i2c1-default {
270 conf {
271 groups = "i2c1_6_grp";
272 bias-pull-up;
273 slew-rate = <SLEW_RATE_SLOW>;
274 power-source = <IO_STANDARD_LVCMOS18>;
275 };
276
277 mux {
278 groups = "i2c1_6_grp";
279 function = "i2c1";
280 };
281 };
282
Michal Simekcf3cd802023-12-19 17:16:50 +0100283 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekae022cf2022-05-18 12:49:26 +0200284 conf {
285 groups = "gpio0_24_grp", "gpio0_25_grp";
286 slew-rate = <SLEW_RATE_SLOW>;
287 power-source = <IO_STANDARD_LVCMOS18>;
288 };
289
290 mux {
291 groups = "gpio0_24_grp", "gpio0_25_grp";
292 function = "gpio0";
293 };
294 };
295
296 pinctrl_gem1_default: gem1-default {
297 conf {
298 groups = "ethernet1_0_grp";
299 slew-rate = <SLEW_RATE_SLOW>;
300 power-source = <IO_STANDARD_LVCMOS18>;
301 };
302
303 conf-rx {
304 pins = "MIO44", "MIO46", "MIO48";
305 bias-high-impedance;
306 low-power-disable;
307 };
308
309 conf-bootstrap {
310 pins = "MIO45", "MIO47", "MIO49";
311 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200312 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200313 low-power-disable;
314 };
315
316 conf-tx {
317 pins = "MIO38", "MIO39", "MIO40",
318 "MIO41", "MIO42", "MIO43";
319 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200320 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200321 low-power-enable;
322 };
323
324 conf-mdio {
325 groups = "mdio1_0_grp";
326 slew-rate = <SLEW_RATE_SLOW>;
327 power-source = <IO_STANDARD_LVCMOS18>;
328 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200329 output-enable;
Michal Simekae022cf2022-05-18 12:49:26 +0200330 };
331
332 mux-mdio {
333 function = "mdio1";
334 groups = "mdio1_0_grp";
335 };
336
337 mux {
338 function = "ethernet1";
339 groups = "ethernet1_0_grp";
340 };
341 };
342
343 pinctrl_usb0_default: usb0-default {
344 conf {
345 groups = "usb0_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200346 power-source = <IO_STANDARD_LVCMOS18>;
347 };
348
349 conf-rx {
350 pins = "MIO52", "MIO53", "MIO55";
351 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200352 drive-strength = <12>;
353 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200354 };
355
356 conf-tx {
357 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
358 "MIO60", "MIO61", "MIO62", "MIO63";
359 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200360 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200361 drive-strength = <4>;
362 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200363 };
364
365 mux {
366 groups = "usb0_0_grp";
367 function = "usb0";
368 };
369 };
370
371 pinctrl_usb1_default: usb1-default {
372 conf {
373 groups = "usb1_0_grp";
Michal Simekae022cf2022-05-18 12:49:26 +0200374 power-source = <IO_STANDARD_LVCMOS18>;
375 };
376
377 conf-rx {
378 pins = "MIO64", "MIO65", "MIO67";
379 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200380 drive-strength = <12>;
381 slew-rate = <SLEW_RATE_FAST>;
Michal Simekae022cf2022-05-18 12:49:26 +0200382 };
383
384 conf-tx {
385 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
386 "MIO72", "MIO73", "MIO74", "MIO75";
387 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200388 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200389 drive-strength = <4>;
390 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekae022cf2022-05-18 12:49:26 +0200391 };
392
393 mux {
394 groups = "usb1_0_grp";
395 function = "usb1";
396 };
397 };
398};
399
400&uart1 {
401 status = "okay";
402 pinctrl-names = "default";
403 pinctrl-0 = <&pinctrl_uart1_default>;
404};