blob: c82e1dfac9da4a234d389c8354561d6d05da41f2 [file] [log] [blame]
Michal Simekbaba22a2022-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 *
7 * Michal Simek <michal.simek@xilinx.com>
8 */
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 Simek8489b6d2023-01-18 13:04:14 +010021 model = "ZynqMP KR260 revA";
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 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>;
71 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
72 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
73
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>;
142
143 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 };
153};
154
155&dwc3_0 {
156 status = "okay";
157 dr_mode = "host";
158 snps,usb3_lpm_capable;
159 maximum-speed = "super-speed";
160};
161
162&usb1 { /* mio64 - mio75 */
163 status = "okay";
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_usb1_default>;
166 phy-names = "usb3-phy";
167 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
168 reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
169 assigned-clock-rates = <250000000>, <20000000>;
170
171 usbhub1: usb-hub { /* u84 */
172 i2c-bus = <&usbhub_i2c1>;
173 compatible = "microchip,usb5744";
174 reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
175 };
176};
177
178&dwc3_1 {
179 status = "okay";
180 dr_mode = "host";
181 snps,usb3_lpm_capable;
182 maximum-speed = "super-speed";
183};
184
185&gem0 { /* mdio mio50/51 */
186 status = "okay";
187 phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
188 phy-handle = <&phy0>;
189 phy-mode = "sgmii";
190 is-internal-pcspma;
191};
192
193&gem1 { /* mdio mio50/51, gem mio38 - mio49 */
194 status = "okay";
195 pinctrl-names = "default";
196 pinctrl-0 = <&pinctrl_gem1_default>;
197 phy-handle = <&phy1>;
198 phy-mode = "rgmii-id";
199
200 mdio: mdio {
201 #address-cells = <1>;
202 #size-cells = <0>;
203 phy0: ethernet-phy@4 { /* u81 */
204 #phy-cells = <1>;
205 compatible = "ethernet-phy-id2000.a231";
206 reg = <4>;
207 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
208 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
209 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
210 ti,dp83867-rxctrl-strap-quirk;
211 reset-assert-us = <100>;
212 reset-deassert-us = <280>;
213 reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;
214 };
215 phy1: ethernet-phy@8 { /* u36 */
216 #phy-cells = <1>;
217 compatible = "ethernet-phy-id2000.a231";
218 reg = <8>;
219 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
220 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
221 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
222 ti,dp83867-rxctrl-strap-quirk;
223 reset-assert-us = <100>;
224 reset-deassert-us = <280>;
225 reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
226 };
227 };
228};
229
230/* gem2/gem3 via PL with phys u79@2 and u80@3 */
231
Michal Simekdd0ebfe2023-02-20 09:09:04 +0100232&pinctrl0 {
Michal Simekbaba22a2022-05-18 12:49:26 +0200233 status = "okay";
234
235 pinctrl_uart1_default: uart1-default {
236 conf {
237 groups = "uart1_9_grp";
238 slew-rate = <SLEW_RATE_SLOW>;
239 power-source = <IO_STANDARD_LVCMOS18>;
240 drive-strength = <12>;
241 };
242
243 conf-rx {
244 pins = "MIO37";
245 bias-high-impedance;
246 };
247
248 conf-tx {
249 pins = "MIO36";
250 bias-disable;
251 };
252
253 mux {
254 groups = "uart1_9_grp";
255 function = "uart1";
256 };
257 };
258
259 pinctrl_i2c1_default: i2c1-default {
260 conf {
261 groups = "i2c1_6_grp";
262 bias-pull-up;
263 slew-rate = <SLEW_RATE_SLOW>;
264 power-source = <IO_STANDARD_LVCMOS18>;
265 };
266
267 mux {
268 groups = "i2c1_6_grp";
269 function = "i2c1";
270 };
271 };
272
273 pinctrl_i2c1_gpio: i2c1-gpio {
274 conf {
275 groups = "gpio0_24_grp", "gpio0_25_grp";
276 slew-rate = <SLEW_RATE_SLOW>;
277 power-source = <IO_STANDARD_LVCMOS18>;
278 };
279
280 mux {
281 groups = "gpio0_24_grp", "gpio0_25_grp";
282 function = "gpio0";
283 };
284 };
285
286 pinctrl_gem1_default: gem1-default {
287 conf {
288 groups = "ethernet1_0_grp";
289 slew-rate = <SLEW_RATE_SLOW>;
290 power-source = <IO_STANDARD_LVCMOS18>;
291 };
292
293 conf-rx {
294 pins = "MIO44", "MIO46", "MIO48";
295 bias-high-impedance;
296 low-power-disable;
297 };
298
299 conf-bootstrap {
300 pins = "MIO45", "MIO47", "MIO49";
301 bias-disable;
302 low-power-disable;
303 };
304
305 conf-tx {
306 pins = "MIO38", "MIO39", "MIO40",
307 "MIO41", "MIO42", "MIO43";
308 bias-disable;
309 low-power-enable;
310 };
311
312 conf-mdio {
313 groups = "mdio1_0_grp";
314 slew-rate = <SLEW_RATE_SLOW>;
315 power-source = <IO_STANDARD_LVCMOS18>;
316 bias-disable;
317 };
318
319 mux-mdio {
320 function = "mdio1";
321 groups = "mdio1_0_grp";
322 };
323
324 mux {
325 function = "ethernet1";
326 groups = "ethernet1_0_grp";
327 };
328 };
329
330 pinctrl_usb0_default: usb0-default {
331 conf {
332 groups = "usb0_0_grp";
Michal Simekbaba22a2022-05-18 12:49:26 +0200333 power-source = <IO_STANDARD_LVCMOS18>;
334 };
335
336 conf-rx {
337 pins = "MIO52", "MIO53", "MIO55";
338 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200339 drive-strength = <12>;
340 slew-rate = <SLEW_RATE_FAST>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200341 };
342
343 conf-tx {
344 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
345 "MIO60", "MIO61", "MIO62", "MIO63";
346 bias-disable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200347 drive-strength = <4>;
348 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200349 };
350
351 mux {
352 groups = "usb0_0_grp";
353 function = "usb0";
354 };
355 };
356
357 pinctrl_usb1_default: usb1-default {
358 conf {
359 groups = "usb1_0_grp";
Michal Simekbaba22a2022-05-18 12:49:26 +0200360 power-source = <IO_STANDARD_LVCMOS18>;
361 };
362
363 conf-rx {
364 pins = "MIO64", "MIO65", "MIO67";
365 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200366 drive-strength = <12>;
367 slew-rate = <SLEW_RATE_FAST>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200368 };
369
370 conf-tx {
371 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
372 "MIO72", "MIO73", "MIO74", "MIO75";
373 bias-disable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200374 drive-strength = <4>;
375 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekbaba22a2022-05-18 12:49:26 +0200376 };
377
378 mux {
379 groups = "usb1_0_grp";
380 function = "usb1";
381 };
382 };
383};
384
385&uart1 {
386 status = "okay";
387 pinctrl-names = "default";
388 pinctrl-0 = <&pinctrl_uart1_default>;
389};