blob: 55bef1df75d000102f072640652ada68a8841e40 [file] [log] [blame]
Michal Simeka502a872021-05-10 16:02:15 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for KV260 revA Carrier Card
4 *
Michal Simek3972ae62021-06-14 15:07:07 +02005 * (C) Copyright 2020 - 2021, Xilinx, Inc.
Michal Simeka502a872021-05-10 16:02:15 +02006 *
7 * SD level shifter:
8 * "A" – A01 board un-modified (NXP)
9 * "Y" – A01 board modified with legacy interposer (Nexperia)
10 * "Z" – A01 board modified with Diode interposer
11 *
Michal Simek174d72842023-07-10 14:35:49 +020012 * Michal Simek <michal.simek@amd.com>
Michal Simeka502a872021-05-10 16:02:15 +020013 */
14
Michal Simek464f6552021-08-06 11:12:29 +020015#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/net/ti-dp83867.h>
17#include <dt-bindings/phy/phy.h>
18#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simeka502a872021-05-10 16:02:15 +020019
20/dts-v1/;
21/plugin/;
22
Michal Simekb6d8d4b2021-06-10 17:59:46 +020023&{/} {
Michal Simeka502a872021-05-10 16:02:15 +020024 compatible = "xlnx,zynqmp-sk-kv260-revA",
25 "xlnx,zynqmp-sk-kv260-revY",
26 "xlnx,zynqmp-sk-kv260-revZ",
27 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simek8489b6d2023-01-18 13:04:14 +010028 model = "ZynqMP KV260 revA";
Michal Simekb6d8d4b2021-06-10 17:59:46 +020029};
Michal Simeka502a872021-05-10 16:02:15 +020030
Michal Simekb6d8d4b2021-06-10 17:59:46 +020031&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
32 #address-cells = <1>;
33 #size-cells = <0>;
34 pinctrl-names = "default", "gpio";
35 pinctrl-0 = <&pinctrl_i2c1_default>;
36 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupalli28dc3562023-07-10 14:37:28 +020037 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
38 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simeka502a872021-05-10 16:02:15 +020039
Michal Simekb6d8d4b2021-06-10 17:59:46 +020040 u14: ina260@40 { /* u14 */
41 compatible = "ti,ina260";
42 #io-channel-cells = <1>;
43 label = "ina260-u14";
44 reg = <0x40>;
45 };
46 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
47};
Michal Simeka502a872021-05-10 16:02:15 +020048
Michal Simekb6d8d4b2021-06-10 17:59:46 +020049&amba {
50 ina260-u14 {
51 compatible = "iio-hwmon";
52 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
Michal Simeka502a872021-05-10 16:02:15 +020053 };
54
Michal Simekb6d8d4b2021-06-10 17:59:46 +020055 si5332_0: si5332_0 { /* u17 */
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <125000000>;
Michal Simeka502a872021-05-10 16:02:15 +020059 };
60
Michal Simekb6d8d4b2021-06-10 17:59:46 +020061 si5332_1: si5332_1 { /* u17 */
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <25000000>;
65 };
66
67 si5332_2: si5332_2 { /* u17 */
68 compatible = "fixed-clock";
69 #clock-cells = <0>;
70 clock-frequency = <48000000>;
71 };
72
73 si5332_3: si5332_3 { /* u17 */
74 compatible = "fixed-clock";
75 #clock-cells = <0>;
76 clock-frequency = <24000000>;
77 };
78
79 si5332_4: si5332_4 { /* u17 */
80 compatible = "fixed-clock";
81 #clock-cells = <0>;
82 clock-frequency = <26000000>;
83 };
84
85 si5332_5: si5332_5 { /* u17 */
86 compatible = "fixed-clock";
87 #clock-cells = <0>;
88 clock-frequency = <27000000>;
89 };
90};
91
Michal Simeka502a872021-05-10 16:02:15 +020092/* DP/USB 3.0 and SATA */
Michal Simekb6d8d4b2021-06-10 17:59:46 +020093&psgtr {
94 status = "okay";
95 /* pcie, usb3, sata */
96 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
97 clock-names = "ref0", "ref1", "ref2";
98};
99
100&sata {
101 status = "okay";
102 /* SATA OOB timing settings */
103 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
104 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
105 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
106 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
107 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
108 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
109 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
110 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
111 phy-names = "sata-phy";
112 phys = <&psgtr 3 PHY_TYPE_SATA 1 2>;
113};
114
115&zynqmp_dpsub {
Michal Simekb611f7f2022-06-24 14:14:25 +0200116 status = "okay";
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200117 phy-names = "dp-phy0", "dp-phy1";
118 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simek59e1bdd2022-02-23 16:17:38 +0100119 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200120};
121
122&zynqmp_dpdma {
123 status = "okay";
Michal Simek59e1bdd2022-02-23 16:17:38 +0100124 assigned-clock-rates = <600000000>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200125};
126
127&usb0 {
128 status = "okay";
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Narani15ca9eb2021-07-14 06:17:19 -0600131 phy-names = "usb3-phy";
132 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200133 usbhub: usb5744 { /* u43 */
134 compatible = "microchip,usb5744";
Michal Simek2f6e1dd2022-02-23 16:17:42 +0100135 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200136 };
137};
138
139&dwc3_0 {
140 status = "okay";
141 dr_mode = "host";
142 snps,usb3_lpm_capable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200143 maximum-speed = "super-speed";
144};
145
146&sdhci1 { /* on CC with tuned parameters */
147 status = "okay";
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinctrl_sdhci1_default>;
150 /*
151 * SD 3.0 requires level shifter and this property
152 * should be removed if the board has level shifter and
153 * need to work in UHS mode
154 */
155 no-1-8-v;
156 disable-wp;
157 xlnx,mio-bank = <1>;
Michal Simeka3efa532022-02-23 16:17:39 +0100158 assigned-clock-rates = <187498123>;
159 bus-width = <8>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200160};
161
Michal Simekdd0ebfe2023-02-20 09:09:04 +0100162&gem3 {
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200163 status = "okay";
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_gem3_default>;
166 phy-handle = <&phy0>;
167 phy-mode = "rgmii-id";
Harini Katakam6a251f22023-07-10 14:37:33 +0200168 assigned-clock-rates = <250000000>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200169
170 mdio: mdio {
171 #address-cells = <1>;
172 #size-cells = <0>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200173
174 phy0: ethernet-phy@1 {
175 #phy-cells = <1>;
176 reg = <1>;
Michal Simekff794482022-02-23 16:17:40 +0100177 compatible = "ethernet-phy-id2000.a231";
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200178 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
179 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
180 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
181 ti,dp83867-rxctrl-strap-quirk;
Michal Simekff794482022-02-23 16:17:40 +0100182 reset-assert-us = <100>;
183 reset-deassert-us = <280>;
184 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200185 };
186 };
187};
188
Michal Simekdd0ebfe2023-02-20 09:09:04 +0100189&pinctrl0 {
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200190 status = "okay";
191
192 pinctrl_uart1_default: uart1-default {
193 conf {
194 groups = "uart1_9_grp";
195 slew-rate = <SLEW_RATE_SLOW>;
196 power-source = <IO_STANDARD_LVCMOS18>;
197 drive-strength = <12>;
198 };
199
200 conf-rx {
201 pins = "MIO37";
202 bias-high-impedance;
203 };
204
205 conf-tx {
206 pins = "MIO36";
207 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200208 output-enable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200209 };
210
211 mux {
212 groups = "uart1_9_grp";
213 function = "uart1";
Michal Simeka502a872021-05-10 16:02:15 +0200214 };
215 };
216
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200217 pinctrl_i2c1_default: i2c1-default {
218 conf {
219 groups = "i2c1_6_grp";
220 bias-pull-up;
221 slew-rate = <SLEW_RATE_SLOW>;
222 power-source = <IO_STANDARD_LVCMOS18>;
223 };
224
225 mux {
226 groups = "i2c1_6_grp";
227 function = "i2c1";
Michal Simeka502a872021-05-10 16:02:15 +0200228 };
229 };
230
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200231 pinctrl_i2c1_gpio: i2c1-gpio {
232 conf {
233 groups = "gpio0_24_grp", "gpio0_25_grp";
234 slew-rate = <SLEW_RATE_SLOW>;
235 power-source = <IO_STANDARD_LVCMOS18>;
236 };
237
238 mux {
239 groups = "gpio0_24_grp", "gpio0_25_grp";
240 function = "gpio0";
Michal Simeka502a872021-05-10 16:02:15 +0200241 };
242 };
243
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200244 pinctrl_gem3_default: gem3-default {
245 conf {
246 groups = "ethernet3_0_grp";
247 slew-rate = <SLEW_RATE_SLOW>;
248 power-source = <IO_STANDARD_LVCMOS18>;
249 };
250
251 conf-rx {
252 pins = "MIO70", "MIO72", "MIO74";
253 bias-high-impedance;
254 low-power-disable;
255 };
256
257 conf-bootstrap {
258 pins = "MIO71", "MIO73", "MIO75";
259 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200260 output-enable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200261 low-power-disable;
262 };
263
264 conf-tx {
265 pins = "MIO64", "MIO65", "MIO66",
266 "MIO67", "MIO68", "MIO69";
267 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200268 output-enable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200269 low-power-enable;
270 };
271
272 conf-mdio {
273 groups = "mdio3_0_grp";
274 slew-rate = <SLEW_RATE_SLOW>;
275 power-source = <IO_STANDARD_LVCMOS18>;
276 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200277 output-enable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200278 };
279
280 mux-mdio {
281 function = "mdio3";
282 groups = "mdio3_0_grp";
283 };
284
285 mux {
286 function = "ethernet3";
287 groups = "ethernet3_0_grp";
Michal Simeka502a872021-05-10 16:02:15 +0200288 };
289 };
290
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200291 pinctrl_usb0_default: usb0-default {
292 conf {
293 groups = "usb0_0_grp";
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200294 power-source = <IO_STANDARD_LVCMOS18>;
295 };
296
297 conf-rx {
298 pins = "MIO52", "MIO53", "MIO55";
299 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200300 drive-strength = <12>;
301 slew-rate = <SLEW_RATE_FAST>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200302 };
303
304 conf-tx {
305 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
306 "MIO60", "MIO61", "MIO62", "MIO63";
307 bias-disable;
Neal Frager771635f2023-08-31 16:27:53 +0200308 output-enable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200309 drive-strength = <4>;
310 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200311 };
312
313 mux {
314 groups = "usb0_0_grp";
315 function = "usb0";
Michal Simeka502a872021-05-10 16:02:15 +0200316 };
317 };
318
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200319 pinctrl_sdhci1_default: sdhci1-default {
320 conf {
321 groups = "sdio1_0_grp";
322 slew-rate = <SLEW_RATE_SLOW>;
323 power-source = <IO_STANDARD_LVCMOS18>;
324 bias-disable;
325 };
326
327 conf-cd {
328 groups = "sdio1_cd_0_grp";
329 bias-high-impedance;
330 bias-pull-up;
331 slew-rate = <SLEW_RATE_SLOW>;
332 power-source = <IO_STANDARD_LVCMOS18>;
333 };
334
335 mux-cd {
336 groups = "sdio1_cd_0_grp";
337 function = "sdio1_cd";
338 };
339
340 mux {
341 groups = "sdio1_0_grp";
342 function = "sdio1";
Michal Simeka502a872021-05-10 16:02:15 +0200343 };
344 };
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200345};
Michal Simeka502a872021-05-10 16:02:15 +0200346
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200347&uart1 {
348 status = "okay";
349 pinctrl-names = "default";
350 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeka502a872021-05-10 16:02:15 +0200351};