blob: 64683e0ccbb86f0fe0c900a6afa56aff68ab04d8 [file] [log] [blame]
Michal Simek4bc77342021-05-10 16:02:15 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for KV260 revA Carrier Card
4 *
Michal Simek3f283ea2023-09-22 12:35:41 +02005 * (C) Copyright 2020 - 2022, Xilinx, Inc.
6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
Michal Simek4bc77342021-05-10 16:02:15 +02007 *
Michal Simeka8c94362023-07-10 14:35:49 +02008 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +02009 */
10
Michal Simekd9824aa2021-08-06 11:12:29 +020011#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/net/ti-dp83867.h>
13#include <dt-bindings/phy/phy.h>
14#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek4bc77342021-05-10 16:02:15 +020015
16/dts-v1/;
17/plugin/;
18
Michal Simekabedc0b2021-06-10 17:59:46 +020019&{/} {
Michal Simek045d0312023-07-10 14:37:34 +020020 compatible = "xlnx,zynqmp-sk-kv260-rev2",
21 "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek20fddd72021-06-10 18:52:14 +020022 "xlnx,zynqmp-sk-kv260-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020023 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010024 model = "ZynqMP KV260 revB";
Michal Simek4bc77342021-05-10 16:02:15 +020025
Michal Simekabedc0b2021-06-10 17:59:46 +020026 ina260-u14 {
27 compatible = "iio-hwmon";
28 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
29 };
Michal Simek4bc77342021-05-10 16:02:15 +020030
Michal Simek7256cec2023-12-19 17:16:48 +010031 si5332_0: si5332-0 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020032 compatible = "fixed-clock";
33 #clock-cells = <0>;
34 clock-frequency = <125000000>;
35 };
Michal Simek4bc77342021-05-10 16:02:15 +020036
Michal Simek7256cec2023-12-19 17:16:48 +010037 si5332_1: si5332-1 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020038 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <25000000>;
41 };
Michal Simek4bc77342021-05-10 16:02:15 +020042
Michal Simek7256cec2023-12-19 17:16:48 +010043 si5332_2: si5332-2 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020044 compatible = "fixed-clock";
45 #clock-cells = <0>;
46 clock-frequency = <48000000>;
47 };
Michal Simek4bc77342021-05-10 16:02:15 +020048
Michal Simek7256cec2023-12-19 17:16:48 +010049 si5332_3: si5332-3 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020050 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <24000000>;
53 };
Michal Simek4bc77342021-05-10 16:02:15 +020054
Michal Simek7256cec2023-12-19 17:16:48 +010055 si5332_4: si5332-4 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020056 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <26000000>;
59 };
Michal Simek4bc77342021-05-10 16:02:15 +020060
Michal Simek7256cec2023-12-19 17:16:48 +010061 si5332_5: si5332-5 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020062 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020065 };
Vishal Sagarcfda0aa2024-03-21 16:54:56 +010066
67 dpcon {
68 compatible = "dp-connector";
69 label = "P11";
70 type = "full-size";
71
72 port {
73 dpcon_in: endpoint {
74 remote-endpoint = <&dpsub_dp_out>;
75 };
76 };
77 };
Michal Simekabedc0b2021-06-10 17:59:46 +020078};
Michal Simek4bc77342021-05-10 16:02:15 +020079
Michal Simek6946aaf2023-12-19 17:16:47 +010080&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
81 #address-cells = <1>;
82 #size-cells = <0>;
83 pinctrl-names = "default", "gpio";
84 pinctrl-0 = <&pinctrl_i2c1_default>;
85 pinctrl-1 = <&pinctrl_i2c1_gpio>;
86 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
87 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
88
89 u14: ina260@40 { /* u14 */
90 compatible = "ti,ina260";
91 #io-channel-cells = <1>;
92 label = "ina260-u14";
93 reg = <0x40>;
94 };
95 /* u43 - 0x2d - USB hub */
96 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
97};
98
Michal Simek4bc77342021-05-10 16:02:15 +020099/* DP/USB 3.0 */
Michal Simekabedc0b2021-06-10 17:59:46 +0200100&psgtr {
101 status = "okay";
102 /* pcie, usb3, sata */
103 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
104 clock-names = "ref0", "ref1", "ref2";
105};
Michal Simek4bc77342021-05-10 16:02:15 +0200106
Michal Simekabedc0b2021-06-10 17:59:46 +0200107&zynqmp_dpsub {
Michal Simekf499a812022-02-23 16:17:41 +0100108 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +0200109 phy-names = "dp-phy0", "dp-phy1";
110 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +0100111 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Vishal Sagarcfda0aa2024-03-21 16:54:56 +0100112
113 ports {
114 port@5 {
115 dpsub_dp_out: endpoint {
116 remote-endpoint = <&dpcon_in>;
117 };
118 };
119 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200120};
Michal Simek4bc77342021-05-10 16:02:15 +0200121
Michal Simekabedc0b2021-06-10 17:59:46 +0200122&zynqmp_dpdma {
123 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100124 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200125};
Michal Simek4bc77342021-05-10 16:02:15 +0200126
Michal Simekabedc0b2021-06-10 17:59:46 +0200127&usb0 {
128 status = "okay";
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600131 phy-names = "usb3-phy";
132 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100133 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek30d1dfc2023-11-06 16:55:48 +0100134#if 0
Michal Simek1a9fe832022-02-23 16:17:37 +0100135 usb5744: usb-hub { /* u43 */
136 status = "okay";
137 compatible = "microchip,usb5744";
138 i2c-bus = <&i2c1>;
Michal Simekb993fec2022-02-23 16:17:42 +0100139 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100140 };
Michal Simek30d1dfc2023-11-06 16:55:48 +0100141#endif
Michal Simekabedc0b2021-06-10 17:59:46 +0200142};
Michal Simek4bc77342021-05-10 16:02:15 +0200143
Michal Simekabedc0b2021-06-10 17:59:46 +0200144&dwc3_0 {
145 status = "okay";
146 dr_mode = "host";
147 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200148 maximum-speed = "super-speed";
149};
Michal Simek4bc77342021-05-10 16:02:15 +0200150
Michal Simekabedc0b2021-06-10 17:59:46 +0200151&sdhci1 { /* on CC with tuned parameters */
152 status = "okay";
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_sdhci1_default>;
155 /*
156 * SD 3.0 requires level shifter and this property
157 * should be removed if the board has level shifter and
158 * need to work in UHS mode
159 */
160 no-1-8-v;
161 disable-wp;
162 xlnx,mio-bank = <1>;
163 clk-phase-sd-hs = <126>, <60>;
164 clk-phase-uhs-sdr25 = <120>, <60>;
165 clk-phase-uhs-ddr50 = <126>, <48>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100166 assigned-clock-rates = <187498123>;
Michal Simek409af4a2023-09-22 12:35:34 +0200167 bus-width = <4>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200168};
Michal Simek4bc77342021-05-10 16:02:15 +0200169
Michal Simek93987342023-02-20 09:09:04 +0100170&gem3 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200171 status = "okay";
172 pinctrl-names = "default";
173 pinctrl-0 = <&pinctrl_gem3_default>;
174 phy-handle = <&phy0>;
175 phy-mode = "rgmii-id";
Harini Katakam451f57f2023-07-10 14:37:33 +0200176 assigned-clock-rates = <250000000>;
Michal Simek4bc77342021-05-10 16:02:15 +0200177
Michal Simekabedc0b2021-06-10 17:59:46 +0200178 mdio: mdio {
179 #address-cells = <1>;
180 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200181
Michal Simekabedc0b2021-06-10 17:59:46 +0200182 phy0: ethernet-phy@1 {
183 #phy-cells = <1>;
184 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100185 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200186 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
187 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
188 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
189 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100190 reset-assert-us = <100>;
191 reset-deassert-us = <280>;
192 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200193 };
194 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200195};
Michal Simek4bc77342021-05-10 16:02:15 +0200196
Michal Simek93987342023-02-20 09:09:04 +0100197&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200198 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200199
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530200 pinctrl_gpio0_default: gpio0-default {
201 conf {
202 groups = "gpio0_38_grp";
203 bias-pull-up;
204 power-source = <IO_STANDARD_LVCMOS18>;
205 };
206
207 mux {
208 groups = "gpio0_38_grp";
209 function = "gpio0";
210 };
211
212 conf-tx {
213 pins = "MIO38";
214 bias-disable;
215 output-enable;
216 };
217 };
218
Michal Simekabedc0b2021-06-10 17:59:46 +0200219 pinctrl_uart1_default: uart1-default {
220 conf {
221 groups = "uart1_9_grp";
222 slew-rate = <SLEW_RATE_SLOW>;
223 power-source = <IO_STANDARD_LVCMOS18>;
224 drive-strength = <12>;
225 };
Michal Simek4bc77342021-05-10 16:02:15 +0200226
Michal Simekabedc0b2021-06-10 17:59:46 +0200227 conf-rx {
228 pins = "MIO37";
229 bias-high-impedance;
230 };
Michal Simek4bc77342021-05-10 16:02:15 +0200231
Michal Simekabedc0b2021-06-10 17:59:46 +0200232 conf-tx {
233 pins = "MIO36";
234 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200235 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200236 };
Michal Simek4bc77342021-05-10 16:02:15 +0200237
Michal Simekabedc0b2021-06-10 17:59:46 +0200238 mux {
239 groups = "uart1_9_grp";
240 function = "uart1";
241 };
242 };
Michal Simek4bc77342021-05-10 16:02:15 +0200243
Michal Simekabedc0b2021-06-10 17:59:46 +0200244 pinctrl_i2c1_default: i2c1-default {
245 conf {
246 groups = "i2c1_6_grp";
247 bias-pull-up;
248 slew-rate = <SLEW_RATE_SLOW>;
249 power-source = <IO_STANDARD_LVCMOS18>;
250 };
Michal Simek4bc77342021-05-10 16:02:15 +0200251
Michal Simekabedc0b2021-06-10 17:59:46 +0200252 mux {
253 groups = "i2c1_6_grp";
254 function = "i2c1";
255 };
256 };
Michal Simek4bc77342021-05-10 16:02:15 +0200257
Michal Simekcf3cd802023-12-19 17:16:50 +0100258 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekabedc0b2021-06-10 17:59:46 +0200259 conf {
260 groups = "gpio0_24_grp", "gpio0_25_grp";
261 slew-rate = <SLEW_RATE_SLOW>;
262 power-source = <IO_STANDARD_LVCMOS18>;
263 };
Michal Simek4bc77342021-05-10 16:02:15 +0200264
Michal Simekabedc0b2021-06-10 17:59:46 +0200265 mux {
266 groups = "gpio0_24_grp", "gpio0_25_grp";
267 function = "gpio0";
268 };
269 };
Michal Simek4bc77342021-05-10 16:02:15 +0200270
Michal Simekabedc0b2021-06-10 17:59:46 +0200271 pinctrl_gem3_default: gem3-default {
272 conf {
273 groups = "ethernet3_0_grp";
274 slew-rate = <SLEW_RATE_SLOW>;
275 power-source = <IO_STANDARD_LVCMOS18>;
276 };
Michal Simek4bc77342021-05-10 16:02:15 +0200277
Michal Simekabedc0b2021-06-10 17:59:46 +0200278 conf-rx {
279 pins = "MIO70", "MIO72", "MIO74";
280 bias-high-impedance;
281 low-power-disable;
282 };
Michal Simek4bc77342021-05-10 16:02:15 +0200283
Michal Simekabedc0b2021-06-10 17:59:46 +0200284 conf-bootstrap {
285 pins = "MIO71", "MIO73", "MIO75";
286 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200287 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200288 low-power-disable;
289 };
Michal Simek4bc77342021-05-10 16:02:15 +0200290
Michal Simekabedc0b2021-06-10 17:59:46 +0200291 conf-tx {
292 pins = "MIO64", "MIO65", "MIO66",
293 "MIO67", "MIO68", "MIO69";
294 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200295 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200296 low-power-enable;
297 };
Michal Simek4bc77342021-05-10 16:02:15 +0200298
Michal Simekabedc0b2021-06-10 17:59:46 +0200299 conf-mdio {
300 groups = "mdio3_0_grp";
301 slew-rate = <SLEW_RATE_SLOW>;
302 power-source = <IO_STANDARD_LVCMOS18>;
303 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200304 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200305 };
Michal Simek4bc77342021-05-10 16:02:15 +0200306
Michal Simekabedc0b2021-06-10 17:59:46 +0200307 mux-mdio {
308 function = "mdio3";
309 groups = "mdio3_0_grp";
310 };
Michal Simek4bc77342021-05-10 16:02:15 +0200311
Michal Simekabedc0b2021-06-10 17:59:46 +0200312 mux {
313 function = "ethernet3";
314 groups = "ethernet3_0_grp";
315 };
316 };
Michal Simek4bc77342021-05-10 16:02:15 +0200317
Michal Simekabedc0b2021-06-10 17:59:46 +0200318 pinctrl_usb0_default: usb0-default {
319 conf {
320 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200321 power-source = <IO_STANDARD_LVCMOS18>;
322 };
Michal Simek4bc77342021-05-10 16:02:15 +0200323
Michal Simekabedc0b2021-06-10 17:59:46 +0200324 conf-rx {
325 pins = "MIO52", "MIO53", "MIO55";
326 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200327 drive-strength = <12>;
328 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200329 };
Michal Simek4bc77342021-05-10 16:02:15 +0200330
Michal Simekabedc0b2021-06-10 17:59:46 +0200331 conf-tx {
332 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
333 "MIO60", "MIO61", "MIO62", "MIO63";
334 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200335 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200336 drive-strength = <4>;
337 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200338 };
Michal Simek4bc77342021-05-10 16:02:15 +0200339
Michal Simekabedc0b2021-06-10 17:59:46 +0200340 mux {
341 groups = "usb0_0_grp";
342 function = "usb0";
343 };
344 };
Michal Simek4bc77342021-05-10 16:02:15 +0200345
Michal Simekabedc0b2021-06-10 17:59:46 +0200346 pinctrl_sdhci1_default: sdhci1-default {
347 conf {
348 groups = "sdio1_0_grp";
349 slew-rate = <SLEW_RATE_SLOW>;
350 power-source = <IO_STANDARD_LVCMOS18>;
351 bias-disable;
Tejas Bhumkar25f34b22024-03-21 14:22:20 +0530352 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200353 };
Michal Simek4bc77342021-05-10 16:02:15 +0200354
Michal Simekabedc0b2021-06-10 17:59:46 +0200355 conf-cd {
356 groups = "sdio1_cd_0_grp";
357 bias-high-impedance;
358 bias-pull-up;
359 slew-rate = <SLEW_RATE_SLOW>;
360 power-source = <IO_STANDARD_LVCMOS18>;
361 };
Michal Simek4bc77342021-05-10 16:02:15 +0200362
Michal Simekabedc0b2021-06-10 17:59:46 +0200363 mux-cd {
364 groups = "sdio1_cd_0_grp";
365 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200366 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200367
368 mux {
369 groups = "sdio1_0_grp";
370 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200371 };
372 };
373};
Michal Simekabedc0b2021-06-10 17:59:46 +0200374
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530375&gpio {
376 status = "okay";
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_gpio0_default>;
379};
380
Michal Simekabedc0b2021-06-10 17:59:46 +0200381&uart1 {
382 status = "okay";
383 pinctrl-names = "default";
384 pinctrl-0 = <&pinctrl_uart1_default>;
385};