blob: 2b6c3946e85813bfbe28ef06ee20a3e1c1e37164 [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>;
37 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
38 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
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";
Michal Simek4bc77342021-05-10 16:02:15 +0200168
Michal Simekabedc0b2021-06-10 17:59:46 +0200169 mdio: mdio {
170 #address-cells = <1>;
171 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200172
Michal Simekabedc0b2021-06-10 17:59:46 +0200173 phy0: ethernet-phy@1 {
174 #phy-cells = <1>;
175 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100176 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-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 Simek01b01122022-02-23 16:17:40 +0100181 reset-assert-us = <100>;
182 reset-deassert-us = <280>;
183 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200184 };
185 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200186};
Michal Simek4bc77342021-05-10 16:02:15 +0200187
Michal Simek93987342023-02-20 09:09:04 +0100188&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200189 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200190
Michal Simekabedc0b2021-06-10 17:59:46 +0200191 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200198
Michal Simekabedc0b2021-06-10 17:59:46 +0200199 conf-rx {
200 pins = "MIO37";
201 bias-high-impedance;
202 };
Michal Simek4bc77342021-05-10 16:02:15 +0200203
Michal Simekabedc0b2021-06-10 17:59:46 +0200204 conf-tx {
205 pins = "MIO36";
206 bias-disable;
207 };
Michal Simek4bc77342021-05-10 16:02:15 +0200208
Michal Simekabedc0b2021-06-10 17:59:46 +0200209 mux {
210 groups = "uart1_9_grp";
211 function = "uart1";
212 };
213 };
Michal Simek4bc77342021-05-10 16:02:15 +0200214
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200222
Michal Simekabedc0b2021-06-10 17:59:46 +0200223 mux {
224 groups = "i2c1_6_grp";
225 function = "i2c1";
226 };
227 };
Michal Simek4bc77342021-05-10 16:02:15 +0200228
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200235
Michal Simekabedc0b2021-06-10 17:59:46 +0200236 mux {
237 groups = "gpio0_24_grp", "gpio0_25_grp";
238 function = "gpio0";
239 };
240 };
Michal Simek4bc77342021-05-10 16:02:15 +0200241
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200248
Michal Simekabedc0b2021-06-10 17:59:46 +0200249 conf-rx {
250 pins = "MIO70", "MIO72", "MIO74";
251 bias-high-impedance;
252 low-power-disable;
253 };
Michal Simek4bc77342021-05-10 16:02:15 +0200254
Michal Simekabedc0b2021-06-10 17:59:46 +0200255 conf-bootstrap {
256 pins = "MIO71", "MIO73", "MIO75";
257 bias-disable;
258 low-power-disable;
259 };
Michal Simek4bc77342021-05-10 16:02:15 +0200260
Michal Simekabedc0b2021-06-10 17:59:46 +0200261 conf-tx {
262 pins = "MIO64", "MIO65", "MIO66",
263 "MIO67", "MIO68", "MIO69";
264 bias-disable;
265 low-power-enable;
266 };
Michal Simek4bc77342021-05-10 16:02:15 +0200267
Michal Simekabedc0b2021-06-10 17:59:46 +0200268 conf-mdio {
269 groups = "mdio3_0_grp";
270 slew-rate = <SLEW_RATE_SLOW>;
271 power-source = <IO_STANDARD_LVCMOS18>;
272 bias-disable;
273 };
Michal Simek4bc77342021-05-10 16:02:15 +0200274
Michal Simekabedc0b2021-06-10 17:59:46 +0200275 mux-mdio {
276 function = "mdio3";
277 groups = "mdio3_0_grp";
278 };
Michal Simek4bc77342021-05-10 16:02:15 +0200279
Michal Simekabedc0b2021-06-10 17:59:46 +0200280 mux {
281 function = "ethernet3";
282 groups = "ethernet3_0_grp";
283 };
284 };
Michal Simek4bc77342021-05-10 16:02:15 +0200285
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 pinctrl_usb0_default: usb0-default {
287 conf {
288 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200289 power-source = <IO_STANDARD_LVCMOS18>;
290 };
Michal Simek4bc77342021-05-10 16:02:15 +0200291
Michal Simekabedc0b2021-06-10 17:59:46 +0200292 conf-rx {
293 pins = "MIO52", "MIO53", "MIO55";
294 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200295 drive-strength = <12>;
296 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200297 };
Michal Simek4bc77342021-05-10 16:02:15 +0200298
Michal Simekabedc0b2021-06-10 17:59:46 +0200299 conf-tx {
300 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
301 "MIO60", "MIO61", "MIO62", "MIO63";
302 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200303 drive-strength = <4>;
304 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200305 };
Michal Simek4bc77342021-05-10 16:02:15 +0200306
Michal Simekabedc0b2021-06-10 17:59:46 +0200307 mux {
308 groups = "usb0_0_grp";
309 function = "usb0";
310 };
311 };
Michal Simek4bc77342021-05-10 16:02:15 +0200312
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200320
Michal Simekabedc0b2021-06-10 17:59:46 +0200321 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200328
Michal Simekabedc0b2021-06-10 17:59:46 +0200329 mux-cd {
330 groups = "sdio1_cd_0_grp";
331 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200332 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200333
334 mux {
335 groups = "sdio1_0_grp";
336 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200337 };
338 };
339};
Michal Simekabedc0b2021-06-10 17:59:46 +0200340
341&uart1 {
342 status = "okay";
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_uart1_default>;
345};