blob: fca57a6d91eba1c49f75329567d86f24a712e03b [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 * Michal Simek <michal.simek@xilinx.com>
8 */
9
Michal Simekd9824aa2021-08-06 11:12:29 +020010#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/net/ti-dp83867.h>
12#include <dt-bindings/phy/phy.h>
13#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek4bc77342021-05-10 16:02:15 +020014
15/dts-v1/;
16/plugin/;
17
Michal Simekabedc0b2021-06-10 17:59:46 +020018&{/} {
Michal Simek4bc77342021-05-10 16:02:15 +020019 compatible = "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek20fddd72021-06-10 18:52:14 +020020 "xlnx,zynqmp-sk-kv260-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020021 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010022 model = "ZynqMP KV260 revB";
Michal Simekabedc0b2021-06-10 17:59:46 +020023};
Michal Simek4bc77342021-05-10 16:02:15 +020024
Michal Simekabedc0b2021-06-10 17:59:46 +020025&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
26 #address-cells = <1>;
27 #size-cells = <0>;
28 pinctrl-names = "default", "gpio";
29 pinctrl-0 = <&pinctrl_i2c1_default>;
30 pinctrl-1 = <&pinctrl_i2c1_gpio>;
31 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
32 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
Michal Simek4bc77342021-05-10 16:02:15 +020033
Michal Simekabedc0b2021-06-10 17:59:46 +020034 u14: ina260@40 { /* u14 */
35 compatible = "ti,ina260";
36 #io-channel-cells = <1>;
37 label = "ina260-u14";
38 reg = <0x40>;
Michal Simek4bc77342021-05-10 16:02:15 +020039 };
Michal Simek1a9fe832022-02-23 16:17:37 +010040 /* u43 - 0x2d - USB hub */
Michal Simekabedc0b2021-06-10 17:59:46 +020041 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
42};
Michal Simek4bc77342021-05-10 16:02:15 +020043
Michal Simekabedc0b2021-06-10 17:59:46 +020044&amba {
45 ina260-u14 {
46 compatible = "iio-hwmon";
47 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
48 };
Michal Simek4bc77342021-05-10 16:02:15 +020049
Michal Simekabedc0b2021-06-10 17:59:46 +020050 si5332_0: si5332_0 { /* u17 */
51 compatible = "fixed-clock";
52 #clock-cells = <0>;
53 clock-frequency = <125000000>;
54 };
Michal Simek4bc77342021-05-10 16:02:15 +020055
Michal Simekabedc0b2021-06-10 17:59:46 +020056 si5332_1: si5332_1 { /* u17 */
57 compatible = "fixed-clock";
58 #clock-cells = <0>;
59 clock-frequency = <25000000>;
60 };
Michal Simek4bc77342021-05-10 16:02:15 +020061
Michal Simekabedc0b2021-06-10 17:59:46 +020062 si5332_2: si5332_2 { /* u17 */
63 compatible = "fixed-clock";
64 #clock-cells = <0>;
65 clock-frequency = <48000000>;
66 };
Michal Simek4bc77342021-05-10 16:02:15 +020067
Michal Simekabedc0b2021-06-10 17:59:46 +020068 si5332_3: si5332_3 { /* u17 */
69 compatible = "fixed-clock";
70 #clock-cells = <0>;
71 clock-frequency = <24000000>;
72 };
Michal Simek4bc77342021-05-10 16:02:15 +020073
Michal Simekabedc0b2021-06-10 17:59:46 +020074 si5332_4: si5332_4 { /* u17 */
75 compatible = "fixed-clock";
76 #clock-cells = <0>;
77 clock-frequency = <26000000>;
78 };
Michal Simek4bc77342021-05-10 16:02:15 +020079
Michal Simekabedc0b2021-06-10 17:59:46 +020080 si5332_5: si5332_5 { /* u17 */
81 compatible = "fixed-clock";
82 #clock-cells = <0>;
83 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020084 };
Michal Simekabedc0b2021-06-10 17:59:46 +020085};
Michal Simek4bc77342021-05-10 16:02:15 +020086
87/* DP/USB 3.0 */
Michal Simekabedc0b2021-06-10 17:59:46 +020088&psgtr {
89 status = "okay";
90 /* pcie, usb3, sata */
91 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
92 clock-names = "ref0", "ref1", "ref2";
93};
Michal Simek4bc77342021-05-10 16:02:15 +020094
Michal Simekabedc0b2021-06-10 17:59:46 +020095&zynqmp_dpsub {
Michal Simekf499a812022-02-23 16:17:41 +010096 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +020097 phy-names = "dp-phy0", "dp-phy1";
98 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +010099 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200100};
Michal Simek4bc77342021-05-10 16:02:15 +0200101
Michal Simekabedc0b2021-06-10 17:59:46 +0200102&zynqmp_dpdma {
103 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100104 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200105};
Michal Simek4bc77342021-05-10 16:02:15 +0200106
Michal Simekabedc0b2021-06-10 17:59:46 +0200107&usb0 {
108 status = "okay";
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600111 phy-names = "usb3-phy";
112 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100113 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100114
115 usb5744: usb-hub { /* u43 */
116 status = "okay";
117 compatible = "microchip,usb5744";
118 i2c-bus = <&i2c1>;
Michal Simekb993fec2022-02-23 16:17:42 +0100119 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100120 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200121};
Michal Simek4bc77342021-05-10 16:02:15 +0200122
Michal Simekabedc0b2021-06-10 17:59:46 +0200123&dwc3_0 {
124 status = "okay";
125 dr_mode = "host";
126 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200127 maximum-speed = "super-speed";
128};
Michal Simek4bc77342021-05-10 16:02:15 +0200129
Michal Simekabedc0b2021-06-10 17:59:46 +0200130&sdhci1 { /* on CC with tuned parameters */
131 status = "okay";
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_sdhci1_default>;
134 /*
135 * SD 3.0 requires level shifter and this property
136 * should be removed if the board has level shifter and
137 * need to work in UHS mode
138 */
139 no-1-8-v;
140 disable-wp;
141 xlnx,mio-bank = <1>;
142 clk-phase-sd-hs = <126>, <60>;
143 clk-phase-uhs-sdr25 = <120>, <60>;
144 clk-phase-uhs-ddr50 = <126>, <48>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100145 assigned-clock-rates = <187498123>;
146 bus-width = <8>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200147};
Michal Simek4bc77342021-05-10 16:02:15 +0200148
Michal Simekabedc0b2021-06-10 17:59:46 +0200149&gem3 { /* required by spec */
150 status = "okay";
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_gem3_default>;
153 phy-handle = <&phy0>;
154 phy-mode = "rgmii-id";
Michal Simek4bc77342021-05-10 16:02:15 +0200155
Michal Simekabedc0b2021-06-10 17:59:46 +0200156 mdio: mdio {
157 #address-cells = <1>;
158 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200159
Michal Simekabedc0b2021-06-10 17:59:46 +0200160 phy0: ethernet-phy@1 {
161 #phy-cells = <1>;
162 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100163 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200164 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
165 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
166 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
167 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100168 reset-assert-us = <100>;
169 reset-deassert-us = <280>;
170 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200171 };
172 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200173};
Michal Simek4bc77342021-05-10 16:02:15 +0200174
Michal Simekabedc0b2021-06-10 17:59:46 +0200175&pinctrl0 { /* required by spec */
176 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200177
Michal Simekabedc0b2021-06-10 17:59:46 +0200178 pinctrl_uart1_default: uart1-default {
179 conf {
180 groups = "uart1_9_grp";
181 slew-rate = <SLEW_RATE_SLOW>;
182 power-source = <IO_STANDARD_LVCMOS18>;
183 drive-strength = <12>;
184 };
Michal Simek4bc77342021-05-10 16:02:15 +0200185
Michal Simekabedc0b2021-06-10 17:59:46 +0200186 conf-rx {
187 pins = "MIO37";
188 bias-high-impedance;
189 };
Michal Simek4bc77342021-05-10 16:02:15 +0200190
Michal Simekabedc0b2021-06-10 17:59:46 +0200191 conf-tx {
192 pins = "MIO36";
193 bias-disable;
194 };
Michal Simek4bc77342021-05-10 16:02:15 +0200195
Michal Simekabedc0b2021-06-10 17:59:46 +0200196 mux {
197 groups = "uart1_9_grp";
198 function = "uart1";
199 };
200 };
Michal Simek4bc77342021-05-10 16:02:15 +0200201
Michal Simekabedc0b2021-06-10 17:59:46 +0200202 pinctrl_i2c1_default: i2c1-default {
203 conf {
204 groups = "i2c1_6_grp";
205 bias-pull-up;
206 slew-rate = <SLEW_RATE_SLOW>;
207 power-source = <IO_STANDARD_LVCMOS18>;
208 };
Michal Simek4bc77342021-05-10 16:02:15 +0200209
Michal Simekabedc0b2021-06-10 17:59:46 +0200210 mux {
211 groups = "i2c1_6_grp";
212 function = "i2c1";
213 };
214 };
Michal Simek4bc77342021-05-10 16:02:15 +0200215
Michal Simekabedc0b2021-06-10 17:59:46 +0200216 pinctrl_i2c1_gpio: i2c1-gpio {
217 conf {
218 groups = "gpio0_24_grp", "gpio0_25_grp";
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 = "gpio0_24_grp", "gpio0_25_grp";
225 function = "gpio0";
226 };
227 };
Michal Simek4bc77342021-05-10 16:02:15 +0200228
Michal Simekabedc0b2021-06-10 17:59:46 +0200229 pinctrl_gem3_default: gem3-default {
230 conf {
231 groups = "ethernet3_0_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 conf-rx {
237 pins = "MIO70", "MIO72", "MIO74";
238 bias-high-impedance;
239 low-power-disable;
240 };
Michal Simek4bc77342021-05-10 16:02:15 +0200241
Michal Simekabedc0b2021-06-10 17:59:46 +0200242 conf-bootstrap {
243 pins = "MIO71", "MIO73", "MIO75";
244 bias-disable;
245 low-power-disable;
246 };
Michal Simek4bc77342021-05-10 16:02:15 +0200247
Michal Simekabedc0b2021-06-10 17:59:46 +0200248 conf-tx {
249 pins = "MIO64", "MIO65", "MIO66",
250 "MIO67", "MIO68", "MIO69";
251 bias-disable;
252 low-power-enable;
253 };
Michal Simek4bc77342021-05-10 16:02:15 +0200254
Michal Simekabedc0b2021-06-10 17:59:46 +0200255 conf-mdio {
256 groups = "mdio3_0_grp";
257 slew-rate = <SLEW_RATE_SLOW>;
258 power-source = <IO_STANDARD_LVCMOS18>;
259 bias-disable;
260 };
Michal Simek4bc77342021-05-10 16:02:15 +0200261
Michal Simekabedc0b2021-06-10 17:59:46 +0200262 mux-mdio {
263 function = "mdio3";
264 groups = "mdio3_0_grp";
265 };
Michal Simek4bc77342021-05-10 16:02:15 +0200266
Michal Simekabedc0b2021-06-10 17:59:46 +0200267 mux {
268 function = "ethernet3";
269 groups = "ethernet3_0_grp";
270 };
271 };
Michal Simek4bc77342021-05-10 16:02:15 +0200272
Michal Simekabedc0b2021-06-10 17:59:46 +0200273 pinctrl_usb0_default: usb0-default {
274 conf {
275 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200276 power-source = <IO_STANDARD_LVCMOS18>;
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 conf-rx {
280 pins = "MIO52", "MIO53", "MIO55";
281 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200282 drive-strength = <12>;
283 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200284 };
Michal Simek4bc77342021-05-10 16:02:15 +0200285
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 conf-tx {
287 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
288 "MIO60", "MIO61", "MIO62", "MIO63";
289 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200290 drive-strength = <4>;
291 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200292 };
Michal Simek4bc77342021-05-10 16:02:15 +0200293
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 mux {
295 groups = "usb0_0_grp";
296 function = "usb0";
297 };
298 };
Michal Simek4bc77342021-05-10 16:02:15 +0200299
Michal Simekabedc0b2021-06-10 17:59:46 +0200300 pinctrl_sdhci1_default: sdhci1-default {
301 conf {
302 groups = "sdio1_0_grp";
303 slew-rate = <SLEW_RATE_SLOW>;
304 power-source = <IO_STANDARD_LVCMOS18>;
305 bias-disable;
306 };
Michal Simek4bc77342021-05-10 16:02:15 +0200307
Michal Simekabedc0b2021-06-10 17:59:46 +0200308 conf-cd {
309 groups = "sdio1_cd_0_grp";
310 bias-high-impedance;
311 bias-pull-up;
312 slew-rate = <SLEW_RATE_SLOW>;
313 power-source = <IO_STANDARD_LVCMOS18>;
314 };
Michal Simek4bc77342021-05-10 16:02:15 +0200315
Michal Simekabedc0b2021-06-10 17:59:46 +0200316 mux-cd {
317 groups = "sdio1_cd_0_grp";
318 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200319 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200320
321 mux {
322 groups = "sdio1_0_grp";
323 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200324 };
325 };
326};
Michal Simekabedc0b2021-06-10 17:59:46 +0200327
328&uart1 {
329 status = "okay";
330 pinctrl-names = "default";
331 pinctrl-0 = <&pinctrl_uart1_default>;
332};