blob: 4e8086c82f23228e603b32e7b78e50f18d451acd [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
15 #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>
19
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>;
118};
Michal Simek4bc77342021-05-10 16:02:15 +0200119
Michal Simekabedc0b2021-06-10 17:59:46 +0200120&zynqmp_dpdma {
121 status = "okay";
122};
Michal Simek4bc77342021-05-10 16:02:15 +0200123
Michal Simekabedc0b2021-06-10 17:59:46 +0200124&usb0 {
125 status = "okay";
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600128 phy-names = "usb3-phy";
129 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200130 usbhub: usb5744 { /* u43 */
131 compatible = "microchip,usb5744";
132 reset-gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
Michal Simek4bc77342021-05-10 16:02:15 +0200133 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200134};
Michal Simek4bc77342021-05-10 16:02:15 +0200135
Michal Simekabedc0b2021-06-10 17:59:46 +0200136&dwc3_0 {
137 status = "okay";
138 dr_mode = "host";
139 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200140 maximum-speed = "super-speed";
141};
Michal Simek4bc77342021-05-10 16:02:15 +0200142
Michal Simekabedc0b2021-06-10 17:59:46 +0200143&sdhci1 { /* on CC with tuned parameters */
144 status = "okay";
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_sdhci1_default>;
147 /*
148 * SD 3.0 requires level shifter and this property
149 * should be removed if the board has level shifter and
150 * need to work in UHS mode
151 */
152 no-1-8-v;
153 disable-wp;
154 xlnx,mio-bank = <1>;
155};
Michal Simek4bc77342021-05-10 16:02:15 +0200156
Michal Simekabedc0b2021-06-10 17:59:46 +0200157&gem3 { /* required by spec */
158 status = "okay";
159 pinctrl-names = "default";
160 pinctrl-0 = <&pinctrl_gem3_default>;
161 phy-handle = <&phy0>;
162 phy-mode = "rgmii-id";
Michal Simek4bc77342021-05-10 16:02:15 +0200163
Michal Simekabedc0b2021-06-10 17:59:46 +0200164 mdio: mdio {
165 #address-cells = <1>;
166 #size-cells = <0>;
167 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
168 reset-delay-us = <2>;
Michal Simek4bc77342021-05-10 16:02:15 +0200169
Michal Simekabedc0b2021-06-10 17:59:46 +0200170 phy0: ethernet-phy@1 {
171 #phy-cells = <1>;
172 reg = <1>;
173 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
174 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
175 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
176 ti,dp83867-rxctrl-strap-quirk;
Michal Simek4bc77342021-05-10 16:02:15 +0200177 };
178 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200179};
Michal Simek4bc77342021-05-10 16:02:15 +0200180
Michal Simekabedc0b2021-06-10 17:59:46 +0200181&pinctrl0 { /* required by spec */
182 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200183
Michal Simekabedc0b2021-06-10 17:59:46 +0200184 pinctrl_uart1_default: uart1-default {
185 conf {
186 groups = "uart1_9_grp";
187 slew-rate = <SLEW_RATE_SLOW>;
188 power-source = <IO_STANDARD_LVCMOS18>;
189 drive-strength = <12>;
190 };
Michal Simek4bc77342021-05-10 16:02:15 +0200191
Michal Simekabedc0b2021-06-10 17:59:46 +0200192 conf-rx {
193 pins = "MIO37";
194 bias-high-impedance;
195 };
Michal Simek4bc77342021-05-10 16:02:15 +0200196
Michal Simekabedc0b2021-06-10 17:59:46 +0200197 conf-tx {
198 pins = "MIO36";
199 bias-disable;
200 };
Michal Simek4bc77342021-05-10 16:02:15 +0200201
Michal Simekabedc0b2021-06-10 17:59:46 +0200202 mux {
203 groups = "uart1_9_grp";
204 function = "uart1";
205 };
206 };
Michal Simek4bc77342021-05-10 16:02:15 +0200207
Michal Simekabedc0b2021-06-10 17:59:46 +0200208 pinctrl_i2c1_default: i2c1-default {
209 conf {
210 groups = "i2c1_6_grp";
211 bias-pull-up;
212 slew-rate = <SLEW_RATE_SLOW>;
213 power-source = <IO_STANDARD_LVCMOS18>;
214 };
Michal Simek4bc77342021-05-10 16:02:15 +0200215
Michal Simekabedc0b2021-06-10 17:59:46 +0200216 mux {
217 groups = "i2c1_6_grp";
218 function = "i2c1";
219 };
220 };
Michal Simek4bc77342021-05-10 16:02:15 +0200221
Michal Simekabedc0b2021-06-10 17:59:46 +0200222 pinctrl_i2c1_gpio: i2c1-gpio {
223 conf {
224 groups = "gpio0_24_grp", "gpio0_25_grp";
225 slew-rate = <SLEW_RATE_SLOW>;
226 power-source = <IO_STANDARD_LVCMOS18>;
227 };
Michal Simek4bc77342021-05-10 16:02:15 +0200228
Michal Simekabedc0b2021-06-10 17:59:46 +0200229 mux {
230 groups = "gpio0_24_grp", "gpio0_25_grp";
231 function = "gpio0";
232 };
233 };
Michal Simek4bc77342021-05-10 16:02:15 +0200234
Michal Simekabedc0b2021-06-10 17:59:46 +0200235 pinctrl_gem3_default: gem3-default {
236 conf {
237 groups = "ethernet3_0_grp";
238 slew-rate = <SLEW_RATE_SLOW>;
239 power-source = <IO_STANDARD_LVCMOS18>;
240 };
Michal Simek4bc77342021-05-10 16:02:15 +0200241
Michal Simekabedc0b2021-06-10 17:59:46 +0200242 conf-rx {
243 pins = "MIO70", "MIO72", "MIO74";
244 bias-high-impedance;
245 low-power-disable;
246 };
Michal Simek4bc77342021-05-10 16:02:15 +0200247
Michal Simekabedc0b2021-06-10 17:59:46 +0200248 conf-bootstrap {
249 pins = "MIO71", "MIO73", "MIO75";
250 bias-disable;
251 low-power-disable;
252 };
Michal Simek4bc77342021-05-10 16:02:15 +0200253
Michal Simekabedc0b2021-06-10 17:59:46 +0200254 conf-tx {
255 pins = "MIO64", "MIO65", "MIO66",
256 "MIO67", "MIO68", "MIO69";
257 bias-disable;
258 low-power-enable;
259 };
Michal Simek4bc77342021-05-10 16:02:15 +0200260
Michal Simekabedc0b2021-06-10 17:59:46 +0200261 conf-mdio {
262 groups = "mdio3_0_grp";
263 slew-rate = <SLEW_RATE_SLOW>;
264 power-source = <IO_STANDARD_LVCMOS18>;
265 bias-disable;
266 };
Michal Simek4bc77342021-05-10 16:02:15 +0200267
Michal Simekabedc0b2021-06-10 17:59:46 +0200268 mux-mdio {
269 function = "mdio3";
270 groups = "mdio3_0_grp";
271 };
Michal Simek4bc77342021-05-10 16:02:15 +0200272
Michal Simekabedc0b2021-06-10 17:59:46 +0200273 mux {
274 function = "ethernet3";
275 groups = "ethernet3_0_grp";
276 };
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 pinctrl_usb0_default: usb0-default {
280 conf {
281 groups = "usb0_0_grp";
282 slew-rate = <SLEW_RATE_SLOW>;
283 power-source = <IO_STANDARD_LVCMOS18>;
284 };
Michal Simek4bc77342021-05-10 16:02:15 +0200285
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 conf-rx {
287 pins = "MIO52", "MIO53", "MIO55";
288 bias-high-impedance;
289 };
Michal Simek4bc77342021-05-10 16:02:15 +0200290
Michal Simekabedc0b2021-06-10 17:59:46 +0200291 conf-tx {
292 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
293 "MIO60", "MIO61", "MIO62", "MIO63";
294 bias-disable;
295 };
Michal Simek4bc77342021-05-10 16:02:15 +0200296
Michal Simekabedc0b2021-06-10 17:59:46 +0200297 mux {
298 groups = "usb0_0_grp";
299 function = "usb0";
300 };
301 };
Michal Simek4bc77342021-05-10 16:02:15 +0200302
Michal Simekabedc0b2021-06-10 17:59:46 +0200303 pinctrl_sdhci1_default: sdhci1-default {
304 conf {
305 groups = "sdio1_0_grp";
306 slew-rate = <SLEW_RATE_SLOW>;
307 power-source = <IO_STANDARD_LVCMOS18>;
308 bias-disable;
309 };
Michal Simek4bc77342021-05-10 16:02:15 +0200310
Michal Simekabedc0b2021-06-10 17:59:46 +0200311 conf-cd {
312 groups = "sdio1_cd_0_grp";
313 bias-high-impedance;
314 bias-pull-up;
315 slew-rate = <SLEW_RATE_SLOW>;
316 power-source = <IO_STANDARD_LVCMOS18>;
317 };
Michal Simek4bc77342021-05-10 16:02:15 +0200318
Michal Simekabedc0b2021-06-10 17:59:46 +0200319 mux-cd {
320 groups = "sdio1_cd_0_grp";
321 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200322 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200323
324 mux {
325 groups = "sdio1_0_grp";
326 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200327 };
328 };
329};
Michal Simekabedc0b2021-06-10 17:59:46 +0200330
331&uart1 {
332 status = "okay";
333 pinctrl-names = "default";
334 pinctrl-0 = <&pinctrl_uart1_default>;
335};