blob: 9445dace7393c4df25492fdc8da73e28237dff4e [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 *
12 * Michal Simek <michal.simek@xilinx.com>
13 */
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 Simekabedc0b2021-06-10 17:59:46 +020028};
Michal Simek4bc77342021-05-10 16:02:15 +020029
Michal Simekabedc0b2021-06-10 17:59:46 +020030&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
31 #address-cells = <1>;
32 #size-cells = <0>;
33 pinctrl-names = "default", "gpio";
34 pinctrl-0 = <&pinctrl_i2c1_default>;
35 pinctrl-1 = <&pinctrl_i2c1_gpio>;
36 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
37 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
Michal Simek4bc77342021-05-10 16:02:15 +020038
Michal Simekabedc0b2021-06-10 17:59:46 +020039 u14: ina260@40 { /* u14 */
40 compatible = "ti,ina260";
41 #io-channel-cells = <1>;
42 label = "ina260-u14";
43 reg = <0x40>;
Michal Simek4bc77342021-05-10 16:02:15 +020044 };
Michal Simekabedc0b2021-06-10 17:59:46 +020045 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
46};
Michal Simek4bc77342021-05-10 16:02:15 +020047
Michal Simekabedc0b2021-06-10 17:59:46 +020048&amba {
49 ina260-u14 {
50 compatible = "iio-hwmon";
51 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
52 };
Michal Simek4bc77342021-05-10 16:02:15 +020053
Michal Simekabedc0b2021-06-10 17:59:46 +020054 si5332_0: si5332_0 { /* u17 */
55 compatible = "fixed-clock";
56 #clock-cells = <0>;
57 clock-frequency = <125000000>;
58 };
Michal Simek4bc77342021-05-10 16:02:15 +020059
Michal Simekabedc0b2021-06-10 17:59:46 +020060 si5332_1: si5332_1 { /* u17 */
61 compatible = "fixed-clock";
62 #clock-cells = <0>;
63 clock-frequency = <25000000>;
64 };
Michal Simek4bc77342021-05-10 16:02:15 +020065
Michal Simekabedc0b2021-06-10 17:59:46 +020066 si5332_2: si5332_2 { /* u17 */
67 compatible = "fixed-clock";
68 #clock-cells = <0>;
69 clock-frequency = <48000000>;
70 };
Michal Simek4bc77342021-05-10 16:02:15 +020071
Michal Simekabedc0b2021-06-10 17:59:46 +020072 si5332_3: si5332_3 { /* u17 */
73 compatible = "fixed-clock";
74 #clock-cells = <0>;
75 clock-frequency = <24000000>;
76 };
Michal Simek4bc77342021-05-10 16:02:15 +020077
Michal Simekabedc0b2021-06-10 17:59:46 +020078 si5332_4: si5332_4 { /* u17 */
79 compatible = "fixed-clock";
80 #clock-cells = <0>;
81 clock-frequency = <26000000>;
82 };
Michal Simek4bc77342021-05-10 16:02:15 +020083
Michal Simekabedc0b2021-06-10 17:59:46 +020084 si5332_5: si5332_5 { /* u17 */
85 compatible = "fixed-clock";
86 #clock-cells = <0>;
87 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020088 };
Michal Simekabedc0b2021-06-10 17:59:46 +020089};
Michal Simek4bc77342021-05-10 16:02:15 +020090
91/* DP/USB 3.0 and SATA */
Michal Simekabedc0b2021-06-10 17:59:46 +020092&psgtr {
93 status = "okay";
94 /* pcie, usb3, sata */
95 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
96 clock-names = "ref0", "ref1", "ref2";
97};
Michal Simek4bc77342021-05-10 16:02:15 +020098
Michal Simekabedc0b2021-06-10 17:59:46 +020099&sata {
100 status = "okay";
101 /* SATA OOB timing settings */
102 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
103 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
104 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
105 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
106 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
107 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
108 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
109 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
110 phy-names = "sata-phy";
111 phys = <&psgtr 3 PHY_TYPE_SATA 1 2>;
112};
Michal Simek4bc77342021-05-10 16:02:15 +0200113
Michal Simekabedc0b2021-06-10 17:59:46 +0200114&zynqmp_dpsub {
115 status = "disabled";
116 phy-names = "dp-phy0", "dp-phy1";
117 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +0100118 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200119};
Michal Simek4bc77342021-05-10 16:02:15 +0200120
Michal Simekabedc0b2021-06-10 17:59:46 +0200121&zynqmp_dpdma {
122 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100123 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200124};
Michal Simek4bc77342021-05-10 16:02:15 +0200125
Michal Simekabedc0b2021-06-10 17:59:46 +0200126&usb0 {
127 status = "okay";
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600130 phy-names = "usb3-phy";
131 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200132 usbhub: usb5744 { /* u43 */
133 compatible = "microchip,usb5744";
134 reset-gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
Michal Simek4bc77342021-05-10 16:02:15 +0200135 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200136};
Michal Simek4bc77342021-05-10 16:02:15 +0200137
Michal Simekabedc0b2021-06-10 17:59:46 +0200138&dwc3_0 {
139 status = "okay";
140 dr_mode = "host";
141 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200142 maximum-speed = "super-speed";
143};
Michal Simek4bc77342021-05-10 16:02:15 +0200144
Michal Simekabedc0b2021-06-10 17:59:46 +0200145&sdhci1 { /* on CC with tuned parameters */
146 status = "okay";
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_sdhci1_default>;
149 /*
150 * SD 3.0 requires level shifter and this property
151 * should be removed if the board has level shifter and
152 * need to work in UHS mode
153 */
154 no-1-8-v;
155 disable-wp;
156 xlnx,mio-bank = <1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100157 assigned-clock-rates = <187498123>;
158 bus-width = <8>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200159};
Michal Simek4bc77342021-05-10 16:02:15 +0200160
Michal Simekabedc0b2021-06-10 17:59:46 +0200161&gem3 { /* required by spec */
162 status = "okay";
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_gem3_default>;
165 phy-handle = <&phy0>;
166 phy-mode = "rgmii-id";
Michal Simek4bc77342021-05-10 16:02:15 +0200167
Michal Simekabedc0b2021-06-10 17:59:46 +0200168 mdio: mdio {
169 #address-cells = <1>;
170 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200171
Michal Simekabedc0b2021-06-10 17:59:46 +0200172 phy0: ethernet-phy@1 {
173 #phy-cells = <1>;
174 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100175 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200176 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
177 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
178 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
179 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100180 reset-assert-us = <100>;
181 reset-deassert-us = <280>;
182 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200183 };
184 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200185};
Michal Simek4bc77342021-05-10 16:02:15 +0200186
Michal Simekabedc0b2021-06-10 17:59:46 +0200187&pinctrl0 { /* required by spec */
188 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200189
Michal Simekabedc0b2021-06-10 17:59:46 +0200190 pinctrl_uart1_default: uart1-default {
191 conf {
192 groups = "uart1_9_grp";
193 slew-rate = <SLEW_RATE_SLOW>;
194 power-source = <IO_STANDARD_LVCMOS18>;
195 drive-strength = <12>;
196 };
Michal Simek4bc77342021-05-10 16:02:15 +0200197
Michal Simekabedc0b2021-06-10 17:59:46 +0200198 conf-rx {
199 pins = "MIO37";
200 bias-high-impedance;
201 };
Michal Simek4bc77342021-05-10 16:02:15 +0200202
Michal Simekabedc0b2021-06-10 17:59:46 +0200203 conf-tx {
204 pins = "MIO36";
205 bias-disable;
206 };
Michal Simek4bc77342021-05-10 16:02:15 +0200207
Michal Simekabedc0b2021-06-10 17:59:46 +0200208 mux {
209 groups = "uart1_9_grp";
210 function = "uart1";
211 };
212 };
Michal Simek4bc77342021-05-10 16:02:15 +0200213
Michal Simekabedc0b2021-06-10 17:59:46 +0200214 pinctrl_i2c1_default: i2c1-default {
215 conf {
216 groups = "i2c1_6_grp";
217 bias-pull-up;
218 slew-rate = <SLEW_RATE_SLOW>;
219 power-source = <IO_STANDARD_LVCMOS18>;
220 };
Michal Simek4bc77342021-05-10 16:02:15 +0200221
Michal Simekabedc0b2021-06-10 17:59:46 +0200222 mux {
223 groups = "i2c1_6_grp";
224 function = "i2c1";
225 };
226 };
Michal Simek4bc77342021-05-10 16:02:15 +0200227
Michal Simekabedc0b2021-06-10 17:59:46 +0200228 pinctrl_i2c1_gpio: i2c1-gpio {
229 conf {
230 groups = "gpio0_24_grp", "gpio0_25_grp";
231 slew-rate = <SLEW_RATE_SLOW>;
232 power-source = <IO_STANDARD_LVCMOS18>;
233 };
Michal Simek4bc77342021-05-10 16:02:15 +0200234
Michal Simekabedc0b2021-06-10 17:59:46 +0200235 mux {
236 groups = "gpio0_24_grp", "gpio0_25_grp";
237 function = "gpio0";
238 };
239 };
Michal Simek4bc77342021-05-10 16:02:15 +0200240
Michal Simekabedc0b2021-06-10 17:59:46 +0200241 pinctrl_gem3_default: gem3-default {
242 conf {
243 groups = "ethernet3_0_grp";
244 slew-rate = <SLEW_RATE_SLOW>;
245 power-source = <IO_STANDARD_LVCMOS18>;
246 };
Michal Simek4bc77342021-05-10 16:02:15 +0200247
Michal Simekabedc0b2021-06-10 17:59:46 +0200248 conf-rx {
249 pins = "MIO70", "MIO72", "MIO74";
250 bias-high-impedance;
251 low-power-disable;
252 };
Michal Simek4bc77342021-05-10 16:02:15 +0200253
Michal Simekabedc0b2021-06-10 17:59:46 +0200254 conf-bootstrap {
255 pins = "MIO71", "MIO73", "MIO75";
256 bias-disable;
257 low-power-disable;
258 };
Michal Simek4bc77342021-05-10 16:02:15 +0200259
Michal Simekabedc0b2021-06-10 17:59:46 +0200260 conf-tx {
261 pins = "MIO64", "MIO65", "MIO66",
262 "MIO67", "MIO68", "MIO69";
263 bias-disable;
264 low-power-enable;
265 };
Michal Simek4bc77342021-05-10 16:02:15 +0200266
Michal Simekabedc0b2021-06-10 17:59:46 +0200267 conf-mdio {
268 groups = "mdio3_0_grp";
269 slew-rate = <SLEW_RATE_SLOW>;
270 power-source = <IO_STANDARD_LVCMOS18>;
271 bias-disable;
272 };
Michal Simek4bc77342021-05-10 16:02:15 +0200273
Michal Simekabedc0b2021-06-10 17:59:46 +0200274 mux-mdio {
275 function = "mdio3";
276 groups = "mdio3_0_grp";
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 mux {
280 function = "ethernet3";
281 groups = "ethernet3_0_grp";
282 };
283 };
Michal Simek4bc77342021-05-10 16:02:15 +0200284
Michal Simekabedc0b2021-06-10 17:59:46 +0200285 pinctrl_usb0_default: usb0-default {
286 conf {
287 groups = "usb0_0_grp";
288 slew-rate = <SLEW_RATE_SLOW>;
289 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;
295 };
Michal Simek4bc77342021-05-10 16:02:15 +0200296
Michal Simekabedc0b2021-06-10 17:59:46 +0200297 conf-tx {
298 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
299 "MIO60", "MIO61", "MIO62", "MIO63";
300 bias-disable;
301 };
Michal Simek4bc77342021-05-10 16:02:15 +0200302
Michal Simekabedc0b2021-06-10 17:59:46 +0200303 mux {
304 groups = "usb0_0_grp";
305 function = "usb0";
306 };
307 };
Michal Simek4bc77342021-05-10 16:02:15 +0200308
Michal Simekabedc0b2021-06-10 17:59:46 +0200309 pinctrl_sdhci1_default: sdhci1-default {
310 conf {
311 groups = "sdio1_0_grp";
312 slew-rate = <SLEW_RATE_SLOW>;
313 power-source = <IO_STANDARD_LVCMOS18>;
314 bias-disable;
315 };
Michal Simek4bc77342021-05-10 16:02:15 +0200316
Michal Simekabedc0b2021-06-10 17:59:46 +0200317 conf-cd {
318 groups = "sdio1_cd_0_grp";
319 bias-high-impedance;
320 bias-pull-up;
321 slew-rate = <SLEW_RATE_SLOW>;
322 power-source = <IO_STANDARD_LVCMOS18>;
323 };
Michal Simek4bc77342021-05-10 16:02:15 +0200324
Michal Simekabedc0b2021-06-10 17:59:46 +0200325 mux-cd {
326 groups = "sdio1_cd_0_grp";
327 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200328 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200329
330 mux {
331 groups = "sdio1_0_grp";
332 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200333 };
334 };
335};
Michal Simekabedc0b2021-06-10 17:59:46 +0200336
337&uart1 {
338 status = "okay";
339 pinctrl-names = "default";
340 pinctrl-0 = <&pinctrl_uart1_default>;
341};