blob: 530bc9076d9442e9e09330e66aa041769b758146 [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 Simek40d83492021-06-14 15:07:07 +02005 * (C) Copyright 2020 - 2021, Xilinx, Inc.
Michal Simek4bc77342021-05-10 16:02:15 +02006 *
7 * SD level shifter:
Michal Simek355729d2023-09-22 12:35:40 +02008 * "A" - A01 board un-modified (NXP)
9 * "Y" - A01 board modified with legacy interposer (Nexperia)
10 * "Z" - A01 board modified with Diode interposer
Michal Simek4bc77342021-05-10 16:02:15 +020011 *
Michal Simeka8c94362023-07-10 14:35:49 +020012 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +020013 */
14
Michal Simekd9824aa2021-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 Simek4bc77342021-05-10 16:02:15 +020019
20/dts-v1/;
21/plugin/;
22
Michal Simekabedc0b2021-06-10 17:59:46 +020023&{/} {
Michal Simek4bc77342021-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 Simekf2d270d2023-01-18 13:04:14 +010028 model = "ZynqMP KV260 revA";
Michal Simekabedc0b2021-06-10 17:59:46 +020029};
Michal Simek4bc77342021-05-10 16:02:15 +020030
Michal Simekabedc0b2021-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 Guntupallicc45c9c2023-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 Simek4bc77342021-05-10 16:02:15 +020039
Michal Simekabedc0b2021-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>;
Michal Simek4bc77342021-05-10 16:02:15 +020045 };
Michal Simekabedc0b2021-06-10 17:59:46 +020046 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
47};
Michal Simek4bc77342021-05-10 16:02:15 +020048
Michal Simekabedc0b2021-06-10 17:59:46 +020049&amba {
50 ina260-u14 {
51 compatible = "iio-hwmon";
52 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
53 };
Michal Simek4bc77342021-05-10 16:02:15 +020054
Michal Simekabedc0b2021-06-10 17:59:46 +020055 si5332_0: si5332_0 { /* u17 */
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <125000000>;
59 };
Michal Simek4bc77342021-05-10 16:02:15 +020060
Michal Simekabedc0b2021-06-10 17:59:46 +020061 si5332_1: si5332_1 { /* u17 */
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <25000000>;
65 };
Michal Simek4bc77342021-05-10 16:02:15 +020066
Michal Simekabedc0b2021-06-10 17:59:46 +020067 si5332_2: si5332_2 { /* u17 */
68 compatible = "fixed-clock";
69 #clock-cells = <0>;
70 clock-frequency = <48000000>;
71 };
Michal Simek4bc77342021-05-10 16:02:15 +020072
Michal Simekabedc0b2021-06-10 17:59:46 +020073 si5332_3: si5332_3 { /* u17 */
74 compatible = "fixed-clock";
75 #clock-cells = <0>;
76 clock-frequency = <24000000>;
77 };
Michal Simek4bc77342021-05-10 16:02:15 +020078
Michal Simekabedc0b2021-06-10 17:59:46 +020079 si5332_4: si5332_4 { /* u17 */
80 compatible = "fixed-clock";
81 #clock-cells = <0>;
82 clock-frequency = <26000000>;
83 };
Michal Simek4bc77342021-05-10 16:02:15 +020084
Michal Simekabedc0b2021-06-10 17:59:46 +020085 si5332_5: si5332_5 { /* u17 */
86 compatible = "fixed-clock";
87 #clock-cells = <0>;
88 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020089 };
Michal Simekabedc0b2021-06-10 17:59:46 +020090};
Michal Simek4bc77342021-05-10 16:02:15 +020091
92/* DP/USB 3.0 and SATA */
Michal Simekabedc0b2021-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};
Michal Simek4bc77342021-05-10 16:02:15 +020099
Michal Simekabedc0b2021-06-10 17:59:46 +0200100&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};
Michal Simek4bc77342021-05-10 16:02:15 +0200114
Michal Simekabedc0b2021-06-10 17:59:46 +0200115&zynqmp_dpsub {
Michal Simek1c8d3fc2022-06-24 14:14:25 +0200116 status = "okay";
Michal Simekabedc0b2021-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 Simekeb10f6a2022-02-23 16:17:38 +0100119 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
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 Simekabedc0b2021-06-10 17:59:46 +0200133 usbhub: usb5744 { /* u43 */
134 compatible = "microchip,usb5744";
Michal Simekb993fec2022-02-23 16:17:42 +0100135 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200136 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200137};
Michal Simek4bc77342021-05-10 16:02:15 +0200138
Michal Simekabedc0b2021-06-10 17:59:46 +0200139&dwc3_0 {
140 status = "okay";
141 dr_mode = "host";
142 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200143 maximum-speed = "super-speed";
144};
Michal Simek4bc77342021-05-10 16:02:15 +0200145
Michal Simekabedc0b2021-06-10 17:59:46 +0200146&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 Simekbd8ca912022-02-23 16:17:39 +0100158 assigned-clock-rates = <187498123>;
Michal Simek409af4a2023-09-22 12:35:34 +0200159 bus-width = <4>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200160};
Michal Simek4bc77342021-05-10 16:02:15 +0200161
Michal Simek93987342023-02-20 09:09:04 +0100162&gem3 {
Michal Simekabedc0b2021-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 Katakam451f57f2023-07-10 14:37:33 +0200168 assigned-clock-rates = <250000000>;
Michal Simek4bc77342021-05-10 16:02:15 +0200169
Michal Simekabedc0b2021-06-10 17:59:46 +0200170 mdio: mdio {
171 #address-cells = <1>;
172 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200173
Michal Simekabedc0b2021-06-10 17:59:46 +0200174 phy0: ethernet-phy@1 {
175 #phy-cells = <1>;
176 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100177 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-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 Simek01b01122022-02-23 16:17:40 +0100182 reset-assert-us = <100>;
183 reset-deassert-us = <280>;
184 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200185 };
186 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200187};
Michal Simek4bc77342021-05-10 16:02:15 +0200188
Michal Simek93987342023-02-20 09:09:04 +0100189&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200190 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200191
Michal Simekabedc0b2021-06-10 17:59:46 +0200192 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200199
Michal Simekabedc0b2021-06-10 17:59:46 +0200200 conf-rx {
201 pins = "MIO37";
202 bias-high-impedance;
203 };
Michal Simek4bc77342021-05-10 16:02:15 +0200204
Michal Simekabedc0b2021-06-10 17:59:46 +0200205 conf-tx {
206 pins = "MIO36";
207 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200208 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200209 };
Michal Simek4bc77342021-05-10 16:02:15 +0200210
Michal Simekabedc0b2021-06-10 17:59:46 +0200211 mux {
212 groups = "uart1_9_grp";
213 function = "uart1";
214 };
215 };
Michal Simek4bc77342021-05-10 16:02:15 +0200216
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200224
Michal Simekabedc0b2021-06-10 17:59:46 +0200225 mux {
226 groups = "i2c1_6_grp";
227 function = "i2c1";
228 };
229 };
Michal Simek4bc77342021-05-10 16:02:15 +0200230
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200237
Michal Simekabedc0b2021-06-10 17:59:46 +0200238 mux {
239 groups = "gpio0_24_grp", "gpio0_25_grp";
240 function = "gpio0";
241 };
242 };
Michal Simek4bc77342021-05-10 16:02:15 +0200243
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200250
Michal Simekabedc0b2021-06-10 17:59:46 +0200251 conf-rx {
252 pins = "MIO70", "MIO72", "MIO74";
253 bias-high-impedance;
254 low-power-disable;
255 };
Michal Simek4bc77342021-05-10 16:02:15 +0200256
Michal Simekabedc0b2021-06-10 17:59:46 +0200257 conf-bootstrap {
258 pins = "MIO71", "MIO73", "MIO75";
259 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200260 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200261 low-power-disable;
262 };
Michal Simek4bc77342021-05-10 16:02:15 +0200263
Michal Simekabedc0b2021-06-10 17:59:46 +0200264 conf-tx {
265 pins = "MIO64", "MIO65", "MIO66",
266 "MIO67", "MIO68", "MIO69";
267 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200268 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200269 low-power-enable;
270 };
Michal Simek4bc77342021-05-10 16:02:15 +0200271
Michal Simekabedc0b2021-06-10 17:59:46 +0200272 conf-mdio {
273 groups = "mdio3_0_grp";
274 slew-rate = <SLEW_RATE_SLOW>;
275 power-source = <IO_STANDARD_LVCMOS18>;
276 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200277 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200278 };
Michal Simek4bc77342021-05-10 16:02:15 +0200279
Michal Simekabedc0b2021-06-10 17:59:46 +0200280 mux-mdio {
281 function = "mdio3";
282 groups = "mdio3_0_grp";
283 };
Michal Simek4bc77342021-05-10 16:02:15 +0200284
Michal Simekabedc0b2021-06-10 17:59:46 +0200285 mux {
286 function = "ethernet3";
287 groups = "ethernet3_0_grp";
288 };
289 };
Michal Simek4bc77342021-05-10 16:02:15 +0200290
Michal Simekabedc0b2021-06-10 17:59:46 +0200291 pinctrl_usb0_default: usb0-default {
292 conf {
293 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 power-source = <IO_STANDARD_LVCMOS18>;
295 };
Michal Simek4bc77342021-05-10 16:02:15 +0200296
Michal Simekabedc0b2021-06-10 17:59:46 +0200297 conf-rx {
298 pins = "MIO52", "MIO53", "MIO55";
299 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200300 drive-strength = <12>;
301 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 };
Michal Simek4bc77342021-05-10 16:02:15 +0200303
Michal Simekabedc0b2021-06-10 17:59:46 +0200304 conf-tx {
305 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
306 "MIO60", "MIO61", "MIO62", "MIO63";
307 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200308 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200309 drive-strength = <4>;
310 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200311 };
Michal Simek4bc77342021-05-10 16:02:15 +0200312
Michal Simekabedc0b2021-06-10 17:59:46 +0200313 mux {
314 groups = "usb0_0_grp";
315 function = "usb0";
316 };
317 };
Michal Simek4bc77342021-05-10 16:02:15 +0200318
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200326
Michal Simekabedc0b2021-06-10 17:59:46 +0200327 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200334
Michal Simekabedc0b2021-06-10 17:59:46 +0200335 mux-cd {
336 groups = "sdio1_cd_0_grp";
337 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200338 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200339
340 mux {
341 groups = "sdio1_0_grp";
342 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200343 };
344 };
345};
Michal Simekabedc0b2021-06-10 17:59:46 +0200346
347&uart1 {
348 status = "okay";
349 pinctrl-names = "default";
350 pinctrl-0 = <&pinctrl_uart1_default>;
351};