blob: a81b3f6f51ad85c6b831c240f55c09de82276604 [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:
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 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>;
159 bus-width = <8>;
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;
208 };
Michal Simek4bc77342021-05-10 16:02:15 +0200209
Michal Simekabedc0b2021-06-10 17:59:46 +0200210 mux {
211 groups = "uart1_9_grp";
212 function = "uart1";
213 };
214 };
Michal Simek4bc77342021-05-10 16:02:15 +0200215
Michal Simekabedc0b2021-06-10 17:59:46 +0200216 pinctrl_i2c1_default: i2c1-default {
217 conf {
218 groups = "i2c1_6_grp";
219 bias-pull-up;
220 slew-rate = <SLEW_RATE_SLOW>;
221 power-source = <IO_STANDARD_LVCMOS18>;
222 };
Michal Simek4bc77342021-05-10 16:02:15 +0200223
Michal Simekabedc0b2021-06-10 17:59:46 +0200224 mux {
225 groups = "i2c1_6_grp";
226 function = "i2c1";
227 };
228 };
Michal Simek4bc77342021-05-10 16:02:15 +0200229
Michal Simekabedc0b2021-06-10 17:59:46 +0200230 pinctrl_i2c1_gpio: i2c1-gpio {
231 conf {
232 groups = "gpio0_24_grp", "gpio0_25_grp";
233 slew-rate = <SLEW_RATE_SLOW>;
234 power-source = <IO_STANDARD_LVCMOS18>;
235 };
Michal Simek4bc77342021-05-10 16:02:15 +0200236
Michal Simekabedc0b2021-06-10 17:59:46 +0200237 mux {
238 groups = "gpio0_24_grp", "gpio0_25_grp";
239 function = "gpio0";
240 };
241 };
Michal Simek4bc77342021-05-10 16:02:15 +0200242
Michal Simekabedc0b2021-06-10 17:59:46 +0200243 pinctrl_gem3_default: gem3-default {
244 conf {
245 groups = "ethernet3_0_grp";
246 slew-rate = <SLEW_RATE_SLOW>;
247 power-source = <IO_STANDARD_LVCMOS18>;
248 };
Michal Simek4bc77342021-05-10 16:02:15 +0200249
Michal Simekabedc0b2021-06-10 17:59:46 +0200250 conf-rx {
251 pins = "MIO70", "MIO72", "MIO74";
252 bias-high-impedance;
253 low-power-disable;
254 };
Michal Simek4bc77342021-05-10 16:02:15 +0200255
Michal Simekabedc0b2021-06-10 17:59:46 +0200256 conf-bootstrap {
257 pins = "MIO71", "MIO73", "MIO75";
258 bias-disable;
259 low-power-disable;
260 };
Michal Simek4bc77342021-05-10 16:02:15 +0200261
Michal Simekabedc0b2021-06-10 17:59:46 +0200262 conf-tx {
263 pins = "MIO64", "MIO65", "MIO66",
264 "MIO67", "MIO68", "MIO69";
265 bias-disable;
266 low-power-enable;
267 };
Michal Simek4bc77342021-05-10 16:02:15 +0200268
Michal Simekabedc0b2021-06-10 17:59:46 +0200269 conf-mdio {
270 groups = "mdio3_0_grp";
271 slew-rate = <SLEW_RATE_SLOW>;
272 power-source = <IO_STANDARD_LVCMOS18>;
273 bias-disable;
274 };
Michal Simek4bc77342021-05-10 16:02:15 +0200275
Michal Simekabedc0b2021-06-10 17:59:46 +0200276 mux-mdio {
277 function = "mdio3";
278 groups = "mdio3_0_grp";
279 };
Michal Simek4bc77342021-05-10 16:02:15 +0200280
Michal Simekabedc0b2021-06-10 17:59:46 +0200281 mux {
282 function = "ethernet3";
283 groups = "ethernet3_0_grp";
284 };
285 };
Michal Simek4bc77342021-05-10 16:02:15 +0200286
Michal Simekabedc0b2021-06-10 17:59:46 +0200287 pinctrl_usb0_default: usb0-default {
288 conf {
289 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200290 power-source = <IO_STANDARD_LVCMOS18>;
291 };
Michal Simek4bc77342021-05-10 16:02:15 +0200292
Michal Simekabedc0b2021-06-10 17:59:46 +0200293 conf-rx {
294 pins = "MIO52", "MIO53", "MIO55";
295 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200296 drive-strength = <12>;
297 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200298 };
Michal Simek4bc77342021-05-10 16:02:15 +0200299
Michal Simekabedc0b2021-06-10 17:59:46 +0200300 conf-tx {
301 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
302 "MIO60", "MIO61", "MIO62", "MIO63";
303 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200304 drive-strength = <4>;
305 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200306 };
Michal Simek4bc77342021-05-10 16:02:15 +0200307
Michal Simekabedc0b2021-06-10 17:59:46 +0200308 mux {
309 groups = "usb0_0_grp";
310 function = "usb0";
311 };
312 };
Michal Simek4bc77342021-05-10 16:02:15 +0200313
Michal Simekabedc0b2021-06-10 17:59:46 +0200314 pinctrl_sdhci1_default: sdhci1-default {
315 conf {
316 groups = "sdio1_0_grp";
317 slew-rate = <SLEW_RATE_SLOW>;
318 power-source = <IO_STANDARD_LVCMOS18>;
319 bias-disable;
320 };
Michal Simek4bc77342021-05-10 16:02:15 +0200321
Michal Simekabedc0b2021-06-10 17:59:46 +0200322 conf-cd {
323 groups = "sdio1_cd_0_grp";
324 bias-high-impedance;
325 bias-pull-up;
326 slew-rate = <SLEW_RATE_SLOW>;
327 power-source = <IO_STANDARD_LVCMOS18>;
328 };
Michal Simek4bc77342021-05-10 16:02:15 +0200329
Michal Simekabedc0b2021-06-10 17:59:46 +0200330 mux-cd {
331 groups = "sdio1_cd_0_grp";
332 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200333 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200334
335 mux {
336 groups = "sdio1_0_grp";
337 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200338 };
339 };
340};
Michal Simekabedc0b2021-06-10 17:59:46 +0200341
342&uart1 {
343 status = "okay";
344 pinctrl-names = "default";
345 pinctrl-0 = <&pinctrl_uart1_default>;
346};