blob: f43c159cdca9412f774df813e2bbd7d5caca6ed1 [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 *
8 * SD level shifter:
Michal Simek355729d2023-09-22 12:35:40 +02009 * "A" - A01 board un-modified (NXP)
10 * "Y" - A01 board modified with legacy interposer (Nexperia)
11 * "Z" - A01 board modified with Diode interposer
Michal Simek4bc77342021-05-10 16:02:15 +020012 *
Michal Simeka8c94362023-07-10 14:35:49 +020013 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +020014 */
15
Michal Simekd9824aa2021-08-06 11:12:29 +020016#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/net/ti-dp83867.h>
18#include <dt-bindings/phy/phy.h>
19#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek4bc77342021-05-10 16:02:15 +020020
21/dts-v1/;
22/plugin/;
23
Michal Simekabedc0b2021-06-10 17:59:46 +020024&{/} {
Michal Simek4bc77342021-05-10 16:02:15 +020025 compatible = "xlnx,zynqmp-sk-kv260-revA",
26 "xlnx,zynqmp-sk-kv260-revY",
27 "xlnx,zynqmp-sk-kv260-revZ",
28 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010029 model = "ZynqMP KV260 revA";
Michal Simekabedc0b2021-06-10 17:59:46 +020030};
Michal Simek4bc77342021-05-10 16:02:15 +020031
Michal Simekabedc0b2021-06-10 17:59:46 +020032&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
33 #address-cells = <1>;
34 #size-cells = <0>;
35 pinctrl-names = "default", "gpio";
36 pinctrl-0 = <&pinctrl_i2c1_default>;
37 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020038 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
39 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simek4bc77342021-05-10 16:02:15 +020040
Michal Simekabedc0b2021-06-10 17:59:46 +020041 u14: ina260@40 { /* u14 */
42 compatible = "ti,ina260";
43 #io-channel-cells = <1>;
44 label = "ina260-u14";
45 reg = <0x40>;
Michal Simek4bc77342021-05-10 16:02:15 +020046 };
Michal Simekabedc0b2021-06-10 17:59:46 +020047 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
48};
Michal Simek4bc77342021-05-10 16:02:15 +020049
Michal Simekabedc0b2021-06-10 17:59:46 +020050&amba {
51 ina260-u14 {
52 compatible = "iio-hwmon";
53 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
54 };
Michal Simek4bc77342021-05-10 16:02:15 +020055
Michal Simekabedc0b2021-06-10 17:59:46 +020056 si5332_0: si5332_0 { /* u17 */
57 compatible = "fixed-clock";
58 #clock-cells = <0>;
59 clock-frequency = <125000000>;
60 };
Michal Simek4bc77342021-05-10 16:02:15 +020061
Michal Simekabedc0b2021-06-10 17:59:46 +020062 si5332_1: si5332_1 { /* u17 */
63 compatible = "fixed-clock";
64 #clock-cells = <0>;
65 clock-frequency = <25000000>;
66 };
Michal Simek4bc77342021-05-10 16:02:15 +020067
Michal Simekabedc0b2021-06-10 17:59:46 +020068 si5332_2: si5332_2 { /* u17 */
69 compatible = "fixed-clock";
70 #clock-cells = <0>;
71 clock-frequency = <48000000>;
72 };
Michal Simek4bc77342021-05-10 16:02:15 +020073
Michal Simekabedc0b2021-06-10 17:59:46 +020074 si5332_3: si5332_3 { /* u17 */
75 compatible = "fixed-clock";
76 #clock-cells = <0>;
77 clock-frequency = <24000000>;
78 };
Michal Simek4bc77342021-05-10 16:02:15 +020079
Michal Simekabedc0b2021-06-10 17:59:46 +020080 si5332_4: si5332_4 { /* u17 */
81 compatible = "fixed-clock";
82 #clock-cells = <0>;
83 clock-frequency = <26000000>;
84 };
Michal Simek4bc77342021-05-10 16:02:15 +020085
Michal Simekabedc0b2021-06-10 17:59:46 +020086 si5332_5: si5332_5 { /* u17 */
87 compatible = "fixed-clock";
88 #clock-cells = <0>;
89 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020090 };
Michal Simekabedc0b2021-06-10 17:59:46 +020091};
Michal Simek4bc77342021-05-10 16:02:15 +020092
93/* DP/USB 3.0 and SATA */
Michal Simekabedc0b2021-06-10 17:59:46 +020094&psgtr {
95 status = "okay";
96 /* pcie, usb3, sata */
97 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
98 clock-names = "ref0", "ref1", "ref2";
99};
Michal Simek4bc77342021-05-10 16:02:15 +0200100
Michal Simekabedc0b2021-06-10 17:59:46 +0200101&sata {
102 status = "okay";
103 /* SATA OOB timing settings */
104 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
105 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
106 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
107 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
108 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
109 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
110 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
111 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
112 phy-names = "sata-phy";
113 phys = <&psgtr 3 PHY_TYPE_SATA 1 2>;
114};
Michal Simek4bc77342021-05-10 16:02:15 +0200115
Michal Simekabedc0b2021-06-10 17:59:46 +0200116&zynqmp_dpsub {
Michal Simek1c8d3fc2022-06-24 14:14:25 +0200117 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +0200118 phy-names = "dp-phy0", "dp-phy1";
119 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +0100120 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200121};
Michal Simek4bc77342021-05-10 16:02:15 +0200122
Michal Simekabedc0b2021-06-10 17:59:46 +0200123&zynqmp_dpdma {
124 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100125 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200126};
Michal Simek4bc77342021-05-10 16:02:15 +0200127
Michal Simekabedc0b2021-06-10 17:59:46 +0200128&usb0 {
129 status = "okay";
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600132 phy-names = "usb3-phy";
133 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simek30d1dfc2023-11-06 16:55:48 +0100134#if 0
Michal Simekabedc0b2021-06-10 17:59:46 +0200135 usbhub: usb5744 { /* u43 */
136 compatible = "microchip,usb5744";
Michal Simekb993fec2022-02-23 16:17:42 +0100137 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200138 };
Michal Simek30d1dfc2023-11-06 16:55:48 +0100139#endif
Michal Simekabedc0b2021-06-10 17:59:46 +0200140};
Michal Simek4bc77342021-05-10 16:02:15 +0200141
Michal Simekabedc0b2021-06-10 17:59:46 +0200142&dwc3_0 {
143 status = "okay";
144 dr_mode = "host";
145 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200146 maximum-speed = "super-speed";
147};
Michal Simek4bc77342021-05-10 16:02:15 +0200148
Michal Simekabedc0b2021-06-10 17:59:46 +0200149&sdhci1 { /* on CC with tuned parameters */
150 status = "okay";
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_sdhci1_default>;
153 /*
154 * SD 3.0 requires level shifter and this property
155 * should be removed if the board has level shifter and
156 * need to work in UHS mode
157 */
158 no-1-8-v;
159 disable-wp;
160 xlnx,mio-bank = <1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100161 assigned-clock-rates = <187498123>;
Michal Simek409af4a2023-09-22 12:35:34 +0200162 bus-width = <4>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200163};
Michal Simek4bc77342021-05-10 16:02:15 +0200164
Michal Simek93987342023-02-20 09:09:04 +0100165&gem3 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200166 status = "okay";
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_gem3_default>;
169 phy-handle = <&phy0>;
170 phy-mode = "rgmii-id";
Harini Katakam451f57f2023-07-10 14:37:33 +0200171 assigned-clock-rates = <250000000>;
Michal Simek4bc77342021-05-10 16:02:15 +0200172
Michal Simekabedc0b2021-06-10 17:59:46 +0200173 mdio: mdio {
174 #address-cells = <1>;
175 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200176
Michal Simekabedc0b2021-06-10 17:59:46 +0200177 phy0: ethernet-phy@1 {
178 #phy-cells = <1>;
179 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100180 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200181 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
182 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
183 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
184 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100185 reset-assert-us = <100>;
186 reset-deassert-us = <280>;
187 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200188 };
189 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200190};
Michal Simek4bc77342021-05-10 16:02:15 +0200191
Michal Simek93987342023-02-20 09:09:04 +0100192&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200193 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200194
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530195 pinctrl_gpio0_default: gpio0-default {
196 conf {
197 groups = "gpio0_38_grp";
198 bias-pull-up;
199 power-source = <IO_STANDARD_LVCMOS18>;
200 };
201
202 mux {
203 groups = "gpio0_38_grp";
204 function = "gpio0";
205 };
206
207 conf-tx {
208 pins = "MIO38";
209 bias-disable;
210 output-enable;
211 };
212 };
213
Michal Simekabedc0b2021-06-10 17:59:46 +0200214 pinctrl_uart1_default: uart1-default {
215 conf {
216 groups = "uart1_9_grp";
217 slew-rate = <SLEW_RATE_SLOW>;
218 power-source = <IO_STANDARD_LVCMOS18>;
219 drive-strength = <12>;
220 };
Michal Simek4bc77342021-05-10 16:02:15 +0200221
Michal Simekabedc0b2021-06-10 17:59:46 +0200222 conf-rx {
223 pins = "MIO37";
224 bias-high-impedance;
225 };
Michal Simek4bc77342021-05-10 16:02:15 +0200226
Michal Simekabedc0b2021-06-10 17:59:46 +0200227 conf-tx {
228 pins = "MIO36";
229 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200230 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200231 };
Michal Simek4bc77342021-05-10 16:02:15 +0200232
Michal Simekabedc0b2021-06-10 17:59:46 +0200233 mux {
234 groups = "uart1_9_grp";
235 function = "uart1";
236 };
237 };
Michal Simek4bc77342021-05-10 16:02:15 +0200238
Michal Simekabedc0b2021-06-10 17:59:46 +0200239 pinctrl_i2c1_default: i2c1-default {
240 conf {
241 groups = "i2c1_6_grp";
242 bias-pull-up;
243 slew-rate = <SLEW_RATE_SLOW>;
244 power-source = <IO_STANDARD_LVCMOS18>;
245 };
Michal Simek4bc77342021-05-10 16:02:15 +0200246
Michal Simekabedc0b2021-06-10 17:59:46 +0200247 mux {
248 groups = "i2c1_6_grp";
249 function = "i2c1";
250 };
251 };
Michal Simek4bc77342021-05-10 16:02:15 +0200252
Michal Simekabedc0b2021-06-10 17:59:46 +0200253 pinctrl_i2c1_gpio: i2c1-gpio {
254 conf {
255 groups = "gpio0_24_grp", "gpio0_25_grp";
256 slew-rate = <SLEW_RATE_SLOW>;
257 power-source = <IO_STANDARD_LVCMOS18>;
258 };
Michal Simek4bc77342021-05-10 16:02:15 +0200259
Michal Simekabedc0b2021-06-10 17:59:46 +0200260 mux {
261 groups = "gpio0_24_grp", "gpio0_25_grp";
262 function = "gpio0";
263 };
264 };
Michal Simek4bc77342021-05-10 16:02:15 +0200265
Michal Simekabedc0b2021-06-10 17:59:46 +0200266 pinctrl_gem3_default: gem3-default {
267 conf {
268 groups = "ethernet3_0_grp";
269 slew-rate = <SLEW_RATE_SLOW>;
270 power-source = <IO_STANDARD_LVCMOS18>;
271 };
Michal Simek4bc77342021-05-10 16:02:15 +0200272
Michal Simekabedc0b2021-06-10 17:59:46 +0200273 conf-rx {
274 pins = "MIO70", "MIO72", "MIO74";
275 bias-high-impedance;
276 low-power-disable;
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 conf-bootstrap {
280 pins = "MIO71", "MIO73", "MIO75";
281 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200282 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200283 low-power-disable;
284 };
Michal Simek4bc77342021-05-10 16:02:15 +0200285
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 conf-tx {
287 pins = "MIO64", "MIO65", "MIO66",
288 "MIO67", "MIO68", "MIO69";
289 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200290 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200291 low-power-enable;
292 };
Michal Simek4bc77342021-05-10 16:02:15 +0200293
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 conf-mdio {
295 groups = "mdio3_0_grp";
296 slew-rate = <SLEW_RATE_SLOW>;
297 power-source = <IO_STANDARD_LVCMOS18>;
298 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200299 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200300 };
Michal Simek4bc77342021-05-10 16:02:15 +0200301
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 mux-mdio {
303 function = "mdio3";
304 groups = "mdio3_0_grp";
305 };
Michal Simek4bc77342021-05-10 16:02:15 +0200306
Michal Simekabedc0b2021-06-10 17:59:46 +0200307 mux {
308 function = "ethernet3";
309 groups = "ethernet3_0_grp";
310 };
311 };
Michal Simek4bc77342021-05-10 16:02:15 +0200312
Michal Simekabedc0b2021-06-10 17:59:46 +0200313 pinctrl_usb0_default: usb0-default {
314 conf {
315 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200316 power-source = <IO_STANDARD_LVCMOS18>;
317 };
Michal Simek4bc77342021-05-10 16:02:15 +0200318
Michal Simekabedc0b2021-06-10 17:59:46 +0200319 conf-rx {
320 pins = "MIO52", "MIO53", "MIO55";
321 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200322 drive-strength = <12>;
323 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200324 };
Michal Simek4bc77342021-05-10 16:02:15 +0200325
Michal Simekabedc0b2021-06-10 17:59:46 +0200326 conf-tx {
327 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
328 "MIO60", "MIO61", "MIO62", "MIO63";
329 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200330 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200331 drive-strength = <4>;
332 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200333 };
Michal Simek4bc77342021-05-10 16:02:15 +0200334
Michal Simekabedc0b2021-06-10 17:59:46 +0200335 mux {
336 groups = "usb0_0_grp";
337 function = "usb0";
338 };
339 };
Michal Simek4bc77342021-05-10 16:02:15 +0200340
Michal Simekabedc0b2021-06-10 17:59:46 +0200341 pinctrl_sdhci1_default: sdhci1-default {
342 conf {
343 groups = "sdio1_0_grp";
344 slew-rate = <SLEW_RATE_SLOW>;
345 power-source = <IO_STANDARD_LVCMOS18>;
346 bias-disable;
347 };
Michal Simek4bc77342021-05-10 16:02:15 +0200348
Michal Simekabedc0b2021-06-10 17:59:46 +0200349 conf-cd {
350 groups = "sdio1_cd_0_grp";
351 bias-high-impedance;
352 bias-pull-up;
353 slew-rate = <SLEW_RATE_SLOW>;
354 power-source = <IO_STANDARD_LVCMOS18>;
355 };
Michal Simek4bc77342021-05-10 16:02:15 +0200356
Michal Simekabedc0b2021-06-10 17:59:46 +0200357 mux-cd {
358 groups = "sdio1_cd_0_grp";
359 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200360 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200361
362 mux {
363 groups = "sdio1_0_grp";
364 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200365 };
366 };
367};
Michal Simekabedc0b2021-06-10 17:59:46 +0200368
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530369&gpio {
370 status = "okay";
371 pinctrl-names = "default";
372 pinctrl-0 = <&pinctrl_gpio0_default>;
373};
374
Michal Simekabedc0b2021-06-10 17:59:46 +0200375&uart1 {
376 status = "okay";
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_uart1_default>;
379};