blob: 6f5a426065684bd4d84bcd5a15185d77d2bfe322 [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 *
12 * Michal Simek <michal.simek@xilinx.com>
13 */
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>;
37 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
38 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
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";
168
169 mdio: mdio {
170 #address-cells = <1>;
171 #size-cells = <0>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200172
173 phy0: ethernet-phy@1 {
174 #phy-cells = <1>;
175 reg = <1>;
Michal Simekff794482022-02-23 16:17:40 +0100176 compatible = "ethernet-phy-id2000.a231";
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200177 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
178 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
179 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
180 ti,dp83867-rxctrl-strap-quirk;
Michal Simekff794482022-02-23 16:17:40 +0100181 reset-assert-us = <100>;
182 reset-deassert-us = <280>;
183 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200184 };
185 };
186};
187
Michal Simekdd0ebfe2023-02-20 09:09:04 +0100188&pinctrl0 {
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200189 status = "okay";
190
191 pinctrl_uart1_default: uart1-default {
192 conf {
193 groups = "uart1_9_grp";
194 slew-rate = <SLEW_RATE_SLOW>;
195 power-source = <IO_STANDARD_LVCMOS18>;
196 drive-strength = <12>;
197 };
198
199 conf-rx {
200 pins = "MIO37";
201 bias-high-impedance;
202 };
203
204 conf-tx {
205 pins = "MIO36";
206 bias-disable;
207 };
208
209 mux {
210 groups = "uart1_9_grp";
211 function = "uart1";
Michal Simeka502a872021-05-10 16:02:15 +0200212 };
213 };
214
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200215 pinctrl_i2c1_default: i2c1-default {
216 conf {
217 groups = "i2c1_6_grp";
218 bias-pull-up;
219 slew-rate = <SLEW_RATE_SLOW>;
220 power-source = <IO_STANDARD_LVCMOS18>;
221 };
222
223 mux {
224 groups = "i2c1_6_grp";
225 function = "i2c1";
Michal Simeka502a872021-05-10 16:02:15 +0200226 };
227 };
228
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200229 pinctrl_i2c1_gpio: i2c1-gpio {
230 conf {
231 groups = "gpio0_24_grp", "gpio0_25_grp";
232 slew-rate = <SLEW_RATE_SLOW>;
233 power-source = <IO_STANDARD_LVCMOS18>;
234 };
235
236 mux {
237 groups = "gpio0_24_grp", "gpio0_25_grp";
238 function = "gpio0";
Michal Simeka502a872021-05-10 16:02:15 +0200239 };
240 };
241
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200242 pinctrl_gem3_default: gem3-default {
243 conf {
244 groups = "ethernet3_0_grp";
245 slew-rate = <SLEW_RATE_SLOW>;
246 power-source = <IO_STANDARD_LVCMOS18>;
247 };
248
249 conf-rx {
250 pins = "MIO70", "MIO72", "MIO74";
251 bias-high-impedance;
252 low-power-disable;
253 };
254
255 conf-bootstrap {
256 pins = "MIO71", "MIO73", "MIO75";
257 bias-disable;
258 low-power-disable;
259 };
260
261 conf-tx {
262 pins = "MIO64", "MIO65", "MIO66",
263 "MIO67", "MIO68", "MIO69";
264 bias-disable;
265 low-power-enable;
266 };
267
268 conf-mdio {
269 groups = "mdio3_0_grp";
270 slew-rate = <SLEW_RATE_SLOW>;
271 power-source = <IO_STANDARD_LVCMOS18>;
272 bias-disable;
273 };
274
275 mux-mdio {
276 function = "mdio3";
277 groups = "mdio3_0_grp";
278 };
279
280 mux {
281 function = "ethernet3";
282 groups = "ethernet3_0_grp";
Michal Simeka502a872021-05-10 16:02:15 +0200283 };
284 };
285
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200286 pinctrl_usb0_default: usb0-default {
287 conf {
288 groups = "usb0_0_grp";
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200289 power-source = <IO_STANDARD_LVCMOS18>;
290 };
291
292 conf-rx {
293 pins = "MIO52", "MIO53", "MIO55";
294 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200295 drive-strength = <12>;
296 slew-rate = <SLEW_RATE_FAST>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200297 };
298
299 conf-tx {
300 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
301 "MIO60", "MIO61", "MIO62", "MIO63";
302 bias-disable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200303 drive-strength = <4>;
304 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200305 };
306
307 mux {
308 groups = "usb0_0_grp";
309 function = "usb0";
Michal Simeka502a872021-05-10 16:02:15 +0200310 };
311 };
312
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200313 pinctrl_sdhci1_default: sdhci1-default {
314 conf {
315 groups = "sdio1_0_grp";
316 slew-rate = <SLEW_RATE_SLOW>;
317 power-source = <IO_STANDARD_LVCMOS18>;
318 bias-disable;
319 };
320
321 conf-cd {
322 groups = "sdio1_cd_0_grp";
323 bias-high-impedance;
324 bias-pull-up;
325 slew-rate = <SLEW_RATE_SLOW>;
326 power-source = <IO_STANDARD_LVCMOS18>;
327 };
328
329 mux-cd {
330 groups = "sdio1_cd_0_grp";
331 function = "sdio1_cd";
332 };
333
334 mux {
335 groups = "sdio1_0_grp";
336 function = "sdio1";
Michal Simeka502a872021-05-10 16:02:15 +0200337 };
338 };
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200339};
Michal Simeka502a872021-05-10 16:02:15 +0200340
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200341&uart1 {
342 status = "okay";
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeka502a872021-05-10 16:02:15 +0200345};