blob: 1b1d9e772f5564ceff47d4afe4e8350d21f3bee5 [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 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +02008 */
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 Simek045d0312023-07-10 14:37:34 +020019 compatible = "xlnx,zynqmp-sk-kv260-rev2",
20 "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek20fddd72021-06-10 18:52:14 +020021 "xlnx,zynqmp-sk-kv260-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020022 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010023 model = "ZynqMP KV260 revB";
Michal Simekabedc0b2021-06-10 17:59:46 +020024};
Michal Simek4bc77342021-05-10 16:02:15 +020025
Michal Simekabedc0b2021-06-10 17:59:46 +020026&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
27 #address-cells = <1>;
28 #size-cells = <0>;
29 pinctrl-names = "default", "gpio";
30 pinctrl-0 = <&pinctrl_i2c1_default>;
31 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020032 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
33 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simek4bc77342021-05-10 16:02:15 +020034
Michal Simekabedc0b2021-06-10 17:59:46 +020035 u14: ina260@40 { /* u14 */
36 compatible = "ti,ina260";
37 #io-channel-cells = <1>;
38 label = "ina260-u14";
39 reg = <0x40>;
Michal Simek4bc77342021-05-10 16:02:15 +020040 };
Michal Simek1a9fe832022-02-23 16:17:37 +010041 /* u43 - 0x2d - USB hub */
Michal Simekabedc0b2021-06-10 17:59:46 +020042 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
43};
Michal Simek4bc77342021-05-10 16:02:15 +020044
Michal Simekabedc0b2021-06-10 17:59:46 +020045&amba {
46 ina260-u14 {
47 compatible = "iio-hwmon";
48 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
49 };
Michal Simek4bc77342021-05-10 16:02:15 +020050
Michal Simekabedc0b2021-06-10 17:59:46 +020051 si5332_0: si5332_0 { /* u17 */
52 compatible = "fixed-clock";
53 #clock-cells = <0>;
54 clock-frequency = <125000000>;
55 };
Michal Simek4bc77342021-05-10 16:02:15 +020056
Michal Simekabedc0b2021-06-10 17:59:46 +020057 si5332_1: si5332_1 { /* u17 */
58 compatible = "fixed-clock";
59 #clock-cells = <0>;
60 clock-frequency = <25000000>;
61 };
Michal Simek4bc77342021-05-10 16:02:15 +020062
Michal Simekabedc0b2021-06-10 17:59:46 +020063 si5332_2: si5332_2 { /* u17 */
64 compatible = "fixed-clock";
65 #clock-cells = <0>;
66 clock-frequency = <48000000>;
67 };
Michal Simek4bc77342021-05-10 16:02:15 +020068
Michal Simekabedc0b2021-06-10 17:59:46 +020069 si5332_3: si5332_3 { /* u17 */
70 compatible = "fixed-clock";
71 #clock-cells = <0>;
72 clock-frequency = <24000000>;
73 };
Michal Simek4bc77342021-05-10 16:02:15 +020074
Michal Simekabedc0b2021-06-10 17:59:46 +020075 si5332_4: si5332_4 { /* u17 */
76 compatible = "fixed-clock";
77 #clock-cells = <0>;
78 clock-frequency = <26000000>;
79 };
Michal Simek4bc77342021-05-10 16:02:15 +020080
Michal Simekabedc0b2021-06-10 17:59:46 +020081 si5332_5: si5332_5 { /* u17 */
82 compatible = "fixed-clock";
83 #clock-cells = <0>;
84 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020085 };
Michal Simekabedc0b2021-06-10 17:59:46 +020086};
Michal Simek4bc77342021-05-10 16:02:15 +020087
88/* DP/USB 3.0 */
Michal Simekabedc0b2021-06-10 17:59:46 +020089&psgtr {
90 status = "okay";
91 /* pcie, usb3, sata */
92 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
93 clock-names = "ref0", "ref1", "ref2";
94};
Michal Simek4bc77342021-05-10 16:02:15 +020095
Michal Simekabedc0b2021-06-10 17:59:46 +020096&zynqmp_dpsub {
Michal Simekf499a812022-02-23 16:17:41 +010097 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +020098 phy-names = "dp-phy0", "dp-phy1";
99 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +0100100 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200101};
Michal Simek4bc77342021-05-10 16:02:15 +0200102
Michal Simekabedc0b2021-06-10 17:59:46 +0200103&zynqmp_dpdma {
104 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100105 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200106};
Michal Simek4bc77342021-05-10 16:02:15 +0200107
Michal Simekabedc0b2021-06-10 17:59:46 +0200108&usb0 {
109 status = "okay";
110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600112 phy-names = "usb3-phy";
113 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100114 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100115
116 usb5744: usb-hub { /* u43 */
117 status = "okay";
118 compatible = "microchip,usb5744";
119 i2c-bus = <&i2c1>;
Michal Simekb993fec2022-02-23 16:17:42 +0100120 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100121 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200122};
Michal Simek4bc77342021-05-10 16:02:15 +0200123
Michal Simekabedc0b2021-06-10 17:59:46 +0200124&dwc3_0 {
125 status = "okay";
126 dr_mode = "host";
127 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200128 maximum-speed = "super-speed";
129};
Michal Simek4bc77342021-05-10 16:02:15 +0200130
Michal Simekabedc0b2021-06-10 17:59:46 +0200131&sdhci1 { /* on CC with tuned parameters */
132 status = "okay";
133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_sdhci1_default>;
135 /*
136 * SD 3.0 requires level shifter and this property
137 * should be removed if the board has level shifter and
138 * need to work in UHS mode
139 */
140 no-1-8-v;
141 disable-wp;
142 xlnx,mio-bank = <1>;
143 clk-phase-sd-hs = <126>, <60>;
144 clk-phase-uhs-sdr25 = <120>, <60>;
145 clk-phase-uhs-ddr50 = <126>, <48>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100146 assigned-clock-rates = <187498123>;
147 bus-width = <8>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200148};
Michal Simek4bc77342021-05-10 16:02:15 +0200149
Michal Simek93987342023-02-20 09:09:04 +0100150&gem3 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200151 status = "okay";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_gem3_default>;
154 phy-handle = <&phy0>;
155 phy-mode = "rgmii-id";
Harini Katakam451f57f2023-07-10 14:37:33 +0200156 assigned-clock-rates = <250000000>;
Michal Simek4bc77342021-05-10 16:02:15 +0200157
Michal Simekabedc0b2021-06-10 17:59:46 +0200158 mdio: mdio {
159 #address-cells = <1>;
160 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200161
Michal Simekabedc0b2021-06-10 17:59:46 +0200162 phy0: ethernet-phy@1 {
163 #phy-cells = <1>;
164 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100165 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200166 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
167 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
168 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
169 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100170 reset-assert-us = <100>;
171 reset-deassert-us = <280>;
172 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200173 };
174 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200175};
Michal Simek4bc77342021-05-10 16:02:15 +0200176
Michal Simek93987342023-02-20 09:09:04 +0100177&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200178 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200179
Michal Simekabedc0b2021-06-10 17:59:46 +0200180 pinctrl_uart1_default: uart1-default {
181 conf {
182 groups = "uart1_9_grp";
183 slew-rate = <SLEW_RATE_SLOW>;
184 power-source = <IO_STANDARD_LVCMOS18>;
185 drive-strength = <12>;
186 };
Michal Simek4bc77342021-05-10 16:02:15 +0200187
Michal Simekabedc0b2021-06-10 17:59:46 +0200188 conf-rx {
189 pins = "MIO37";
190 bias-high-impedance;
191 };
Michal Simek4bc77342021-05-10 16:02:15 +0200192
Michal Simekabedc0b2021-06-10 17:59:46 +0200193 conf-tx {
194 pins = "MIO36";
195 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200196 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200197 };
Michal Simek4bc77342021-05-10 16:02:15 +0200198
Michal Simekabedc0b2021-06-10 17:59:46 +0200199 mux {
200 groups = "uart1_9_grp";
201 function = "uart1";
202 };
203 };
Michal Simek4bc77342021-05-10 16:02:15 +0200204
Michal Simekabedc0b2021-06-10 17:59:46 +0200205 pinctrl_i2c1_default: i2c1-default {
206 conf {
207 groups = "i2c1_6_grp";
208 bias-pull-up;
209 slew-rate = <SLEW_RATE_SLOW>;
210 power-source = <IO_STANDARD_LVCMOS18>;
211 };
Michal Simek4bc77342021-05-10 16:02:15 +0200212
Michal Simekabedc0b2021-06-10 17:59:46 +0200213 mux {
214 groups = "i2c1_6_grp";
215 function = "i2c1";
216 };
217 };
Michal Simek4bc77342021-05-10 16:02:15 +0200218
Michal Simekabedc0b2021-06-10 17:59:46 +0200219 pinctrl_i2c1_gpio: i2c1-gpio {
220 conf {
221 groups = "gpio0_24_grp", "gpio0_25_grp";
222 slew-rate = <SLEW_RATE_SLOW>;
223 power-source = <IO_STANDARD_LVCMOS18>;
224 };
Michal Simek4bc77342021-05-10 16:02:15 +0200225
Michal Simekabedc0b2021-06-10 17:59:46 +0200226 mux {
227 groups = "gpio0_24_grp", "gpio0_25_grp";
228 function = "gpio0";
229 };
230 };
Michal Simek4bc77342021-05-10 16:02:15 +0200231
Michal Simekabedc0b2021-06-10 17:59:46 +0200232 pinctrl_gem3_default: gem3-default {
233 conf {
234 groups = "ethernet3_0_grp";
235 slew-rate = <SLEW_RATE_SLOW>;
236 power-source = <IO_STANDARD_LVCMOS18>;
237 };
Michal Simek4bc77342021-05-10 16:02:15 +0200238
Michal Simekabedc0b2021-06-10 17:59:46 +0200239 conf-rx {
240 pins = "MIO70", "MIO72", "MIO74";
241 bias-high-impedance;
242 low-power-disable;
243 };
Michal Simek4bc77342021-05-10 16:02:15 +0200244
Michal Simekabedc0b2021-06-10 17:59:46 +0200245 conf-bootstrap {
246 pins = "MIO71", "MIO73", "MIO75";
247 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200248 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200249 low-power-disable;
250 };
Michal Simek4bc77342021-05-10 16:02:15 +0200251
Michal Simekabedc0b2021-06-10 17:59:46 +0200252 conf-tx {
253 pins = "MIO64", "MIO65", "MIO66",
254 "MIO67", "MIO68", "MIO69";
255 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200256 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200257 low-power-enable;
258 };
Michal Simek4bc77342021-05-10 16:02:15 +0200259
Michal Simekabedc0b2021-06-10 17:59:46 +0200260 conf-mdio {
261 groups = "mdio3_0_grp";
262 slew-rate = <SLEW_RATE_SLOW>;
263 power-source = <IO_STANDARD_LVCMOS18>;
264 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200265 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200266 };
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";
Michal Simekabedc0b2021-06-10 17:59:46 +0200282 power-source = <IO_STANDARD_LVCMOS18>;
283 };
Michal Simek4bc77342021-05-10 16:02:15 +0200284
Michal Simekabedc0b2021-06-10 17:59:46 +0200285 conf-rx {
286 pins = "MIO52", "MIO53", "MIO55";
287 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200288 drive-strength = <12>;
289 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200290 };
Michal Simek4bc77342021-05-10 16:02:15 +0200291
Michal Simekabedc0b2021-06-10 17:59:46 +0200292 conf-tx {
293 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
294 "MIO60", "MIO61", "MIO62", "MIO63";
295 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200296 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200297 drive-strength = <4>;
298 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200299 };
Michal Simek4bc77342021-05-10 16:02:15 +0200300
Michal Simekabedc0b2021-06-10 17:59:46 +0200301 mux {
302 groups = "usb0_0_grp";
303 function = "usb0";
304 };
305 };
Michal Simek4bc77342021-05-10 16:02:15 +0200306
Michal Simekabedc0b2021-06-10 17:59:46 +0200307 pinctrl_sdhci1_default: sdhci1-default {
308 conf {
309 groups = "sdio1_0_grp";
310 slew-rate = <SLEW_RATE_SLOW>;
311 power-source = <IO_STANDARD_LVCMOS18>;
312 bias-disable;
313 };
Michal Simek4bc77342021-05-10 16:02:15 +0200314
Michal Simekabedc0b2021-06-10 17:59:46 +0200315 conf-cd {
316 groups = "sdio1_cd_0_grp";
317 bias-high-impedance;
318 bias-pull-up;
319 slew-rate = <SLEW_RATE_SLOW>;
320 power-source = <IO_STANDARD_LVCMOS18>;
321 };
Michal Simek4bc77342021-05-10 16:02:15 +0200322
Michal Simekabedc0b2021-06-10 17:59:46 +0200323 mux-cd {
324 groups = "sdio1_cd_0_grp";
325 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200326 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200327
328 mux {
329 groups = "sdio1_0_grp";
330 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200331 };
332 };
333};
Michal Simekabedc0b2021-06-10 17:59:46 +0200334
335&uart1 {
336 status = "okay";
337 pinctrl-names = "default";
338 pinctrl-0 = <&pinctrl_uart1_default>;
339};