blob: 6c5e0e5660615df036a1b1eb0bc56ce7a4207b8b [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 Simek3f283ea2023-09-22 12:35:41 +02005 * (C) Copyright 2020 - 2022, Xilinx, Inc.
6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
Michal Simek4bc77342021-05-10 16:02:15 +02007 *
Michal Simeka8c94362023-07-10 14:35:49 +02008 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +02009 */
10
Michal Simekd9824aa2021-08-06 11:12:29 +020011#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/net/ti-dp83867.h>
13#include <dt-bindings/phy/phy.h>
14#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek4bc77342021-05-10 16:02:15 +020015
16/dts-v1/;
17/plugin/;
18
Michal Simekabedc0b2021-06-10 17:59:46 +020019&{/} {
Michal Simek045d0312023-07-10 14:37:34 +020020 compatible = "xlnx,zynqmp-sk-kv260-rev2",
21 "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek20fddd72021-06-10 18:52:14 +020022 "xlnx,zynqmp-sk-kv260-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020023 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekf2d270d2023-01-18 13:04:14 +010024 model = "ZynqMP KV260 revB";
Michal Simekabedc0b2021-06-10 17:59:46 +020025};
Michal Simek4bc77342021-05-10 16:02:15 +020026
Michal Simekabedc0b2021-06-10 17:59:46 +020027&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
28 #address-cells = <1>;
29 #size-cells = <0>;
30 pinctrl-names = "default", "gpio";
31 pinctrl-0 = <&pinctrl_i2c1_default>;
32 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +020033 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
34 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simek4bc77342021-05-10 16:02:15 +020035
Michal Simekabedc0b2021-06-10 17:59:46 +020036 u14: ina260@40 { /* u14 */
37 compatible = "ti,ina260";
38 #io-channel-cells = <1>;
39 label = "ina260-u14";
40 reg = <0x40>;
Michal Simek4bc77342021-05-10 16:02:15 +020041 };
Michal Simek1a9fe832022-02-23 16:17:37 +010042 /* u43 - 0x2d - USB hub */
Michal Simekabedc0b2021-06-10 17:59:46 +020043 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
44};
Michal Simek4bc77342021-05-10 16:02:15 +020045
Michal Simekabedc0b2021-06-10 17:59:46 +020046&amba {
47 ina260-u14 {
48 compatible = "iio-hwmon";
49 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
50 };
Michal Simek4bc77342021-05-10 16:02:15 +020051
Michal Simekabedc0b2021-06-10 17:59:46 +020052 si5332_0: si5332_0 { /* u17 */
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <125000000>;
56 };
Michal Simek4bc77342021-05-10 16:02:15 +020057
Michal Simekabedc0b2021-06-10 17:59:46 +020058 si5332_1: si5332_1 { /* u17 */
59 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <25000000>;
62 };
Michal Simek4bc77342021-05-10 16:02:15 +020063
Michal Simekabedc0b2021-06-10 17:59:46 +020064 si5332_2: si5332_2 { /* u17 */
65 compatible = "fixed-clock";
66 #clock-cells = <0>;
67 clock-frequency = <48000000>;
68 };
Michal Simek4bc77342021-05-10 16:02:15 +020069
Michal Simekabedc0b2021-06-10 17:59:46 +020070 si5332_3: si5332_3 { /* u17 */
71 compatible = "fixed-clock";
72 #clock-cells = <0>;
73 clock-frequency = <24000000>;
74 };
Michal Simek4bc77342021-05-10 16:02:15 +020075
Michal Simekabedc0b2021-06-10 17:59:46 +020076 si5332_4: si5332_4 { /* u17 */
77 compatible = "fixed-clock";
78 #clock-cells = <0>;
79 clock-frequency = <26000000>;
80 };
Michal Simek4bc77342021-05-10 16:02:15 +020081
Michal Simekabedc0b2021-06-10 17:59:46 +020082 si5332_5: si5332_5 { /* u17 */
83 compatible = "fixed-clock";
84 #clock-cells = <0>;
85 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020086 };
Michal Simekabedc0b2021-06-10 17:59:46 +020087};
Michal Simek4bc77342021-05-10 16:02:15 +020088
89/* DP/USB 3.0 */
Michal Simekabedc0b2021-06-10 17:59:46 +020090&psgtr {
91 status = "okay";
92 /* pcie, usb3, sata */
93 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
94 clock-names = "ref0", "ref1", "ref2";
95};
Michal Simek4bc77342021-05-10 16:02:15 +020096
Michal Simekabedc0b2021-06-10 17:59:46 +020097&zynqmp_dpsub {
Michal Simekf499a812022-02-23 16:17:41 +010098 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +020099 phy-names = "dp-phy0", "dp-phy1";
100 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +0100101 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200102};
Michal Simek4bc77342021-05-10 16:02:15 +0200103
Michal Simekabedc0b2021-06-10 17:59:46 +0200104&zynqmp_dpdma {
105 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100106 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200107};
Michal Simek4bc77342021-05-10 16:02:15 +0200108
Michal Simekabedc0b2021-06-10 17:59:46 +0200109&usb0 {
110 status = "okay";
111 pinctrl-names = "default";
112 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600113 phy-names = "usb3-phy";
114 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100115 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100116
117 usb5744: usb-hub { /* u43 */
118 status = "okay";
119 compatible = "microchip,usb5744";
120 i2c-bus = <&i2c1>;
Michal Simekb993fec2022-02-23 16:17:42 +0100121 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100122 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200123};
Michal Simek4bc77342021-05-10 16:02:15 +0200124
Michal Simekabedc0b2021-06-10 17:59:46 +0200125&dwc3_0 {
126 status = "okay";
127 dr_mode = "host";
128 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200129 maximum-speed = "super-speed";
130};
Michal Simek4bc77342021-05-10 16:02:15 +0200131
Michal Simekabedc0b2021-06-10 17:59:46 +0200132&sdhci1 { /* on CC with tuned parameters */
133 status = "okay";
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_sdhci1_default>;
136 /*
137 * SD 3.0 requires level shifter and this property
138 * should be removed if the board has level shifter and
139 * need to work in UHS mode
140 */
141 no-1-8-v;
142 disable-wp;
143 xlnx,mio-bank = <1>;
144 clk-phase-sd-hs = <126>, <60>;
145 clk-phase-uhs-sdr25 = <120>, <60>;
146 clk-phase-uhs-ddr50 = <126>, <48>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100147 assigned-clock-rates = <187498123>;
Michal Simek409af4a2023-09-22 12:35:34 +0200148 bus-width = <4>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200149};
Michal Simek4bc77342021-05-10 16:02:15 +0200150
Michal Simek93987342023-02-20 09:09:04 +0100151&gem3 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200152 status = "okay";
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_gem3_default>;
155 phy-handle = <&phy0>;
156 phy-mode = "rgmii-id";
Harini Katakam451f57f2023-07-10 14:37:33 +0200157 assigned-clock-rates = <250000000>;
Michal Simek4bc77342021-05-10 16:02:15 +0200158
Michal Simekabedc0b2021-06-10 17:59:46 +0200159 mdio: mdio {
160 #address-cells = <1>;
161 #size-cells = <0>;
Michal Simek4bc77342021-05-10 16:02:15 +0200162
Michal Simekabedc0b2021-06-10 17:59:46 +0200163 phy0: ethernet-phy@1 {
164 #phy-cells = <1>;
165 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100166 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200167 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
168 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
169 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
170 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100171 reset-assert-us = <100>;
172 reset-deassert-us = <280>;
173 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200174 };
175 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200176};
Michal Simek4bc77342021-05-10 16:02:15 +0200177
Michal Simek93987342023-02-20 09:09:04 +0100178&pinctrl0 {
Michal Simekabedc0b2021-06-10 17:59:46 +0200179 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200180
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530181 pinctrl_gpio0_default: gpio0-default {
182 conf {
183 groups = "gpio0_38_grp";
184 bias-pull-up;
185 power-source = <IO_STANDARD_LVCMOS18>;
186 };
187
188 mux {
189 groups = "gpio0_38_grp";
190 function = "gpio0";
191 };
192
193 conf-tx {
194 pins = "MIO38";
195 bias-disable;
196 output-enable;
197 };
198 };
199
Michal Simekabedc0b2021-06-10 17:59:46 +0200200 pinctrl_uart1_default: uart1-default {
201 conf {
202 groups = "uart1_9_grp";
203 slew-rate = <SLEW_RATE_SLOW>;
204 power-source = <IO_STANDARD_LVCMOS18>;
205 drive-strength = <12>;
206 };
Michal Simek4bc77342021-05-10 16:02:15 +0200207
Michal Simekabedc0b2021-06-10 17:59:46 +0200208 conf-rx {
209 pins = "MIO37";
210 bias-high-impedance;
211 };
Michal Simek4bc77342021-05-10 16:02:15 +0200212
Michal Simekabedc0b2021-06-10 17:59:46 +0200213 conf-tx {
214 pins = "MIO36";
215 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200216 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200217 };
Michal Simek4bc77342021-05-10 16:02:15 +0200218
Michal Simekabedc0b2021-06-10 17:59:46 +0200219 mux {
220 groups = "uart1_9_grp";
221 function = "uart1";
222 };
223 };
Michal Simek4bc77342021-05-10 16:02:15 +0200224
Michal Simekabedc0b2021-06-10 17:59:46 +0200225 pinctrl_i2c1_default: i2c1-default {
226 conf {
227 groups = "i2c1_6_grp";
228 bias-pull-up;
229 slew-rate = <SLEW_RATE_SLOW>;
230 power-source = <IO_STANDARD_LVCMOS18>;
231 };
Michal Simek4bc77342021-05-10 16:02:15 +0200232
Michal Simekabedc0b2021-06-10 17:59:46 +0200233 mux {
234 groups = "i2c1_6_grp";
235 function = "i2c1";
236 };
237 };
Michal Simek4bc77342021-05-10 16:02:15 +0200238
Michal Simekabedc0b2021-06-10 17:59:46 +0200239 pinctrl_i2c1_gpio: i2c1-gpio {
240 conf {
241 groups = "gpio0_24_grp", "gpio0_25_grp";
242 slew-rate = <SLEW_RATE_SLOW>;
243 power-source = <IO_STANDARD_LVCMOS18>;
244 };
Michal Simek4bc77342021-05-10 16:02:15 +0200245
Michal Simekabedc0b2021-06-10 17:59:46 +0200246 mux {
247 groups = "gpio0_24_grp", "gpio0_25_grp";
248 function = "gpio0";
249 };
250 };
Michal Simek4bc77342021-05-10 16:02:15 +0200251
Michal Simekabedc0b2021-06-10 17:59:46 +0200252 pinctrl_gem3_default: gem3-default {
253 conf {
254 groups = "ethernet3_0_grp";
255 slew-rate = <SLEW_RATE_SLOW>;
256 power-source = <IO_STANDARD_LVCMOS18>;
257 };
Michal Simek4bc77342021-05-10 16:02:15 +0200258
Michal Simekabedc0b2021-06-10 17:59:46 +0200259 conf-rx {
260 pins = "MIO70", "MIO72", "MIO74";
261 bias-high-impedance;
262 low-power-disable;
263 };
Michal Simek4bc77342021-05-10 16:02:15 +0200264
Michal Simekabedc0b2021-06-10 17:59:46 +0200265 conf-bootstrap {
266 pins = "MIO71", "MIO73", "MIO75";
267 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200268 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200269 low-power-disable;
270 };
Michal Simek4bc77342021-05-10 16:02:15 +0200271
Michal Simekabedc0b2021-06-10 17:59:46 +0200272 conf-tx {
273 pins = "MIO64", "MIO65", "MIO66",
274 "MIO67", "MIO68", "MIO69";
275 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200276 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200277 low-power-enable;
278 };
Michal Simek4bc77342021-05-10 16:02:15 +0200279
Michal Simekabedc0b2021-06-10 17:59:46 +0200280 conf-mdio {
281 groups = "mdio3_0_grp";
282 slew-rate = <SLEW_RATE_SLOW>;
283 power-source = <IO_STANDARD_LVCMOS18>;
284 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200285 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 };
Michal Simek4bc77342021-05-10 16:02:15 +0200287
Michal Simekabedc0b2021-06-10 17:59:46 +0200288 mux-mdio {
289 function = "mdio3";
290 groups = "mdio3_0_grp";
291 };
Michal Simek4bc77342021-05-10 16:02:15 +0200292
Michal Simekabedc0b2021-06-10 17:59:46 +0200293 mux {
294 function = "ethernet3";
295 groups = "ethernet3_0_grp";
296 };
297 };
Michal Simek4bc77342021-05-10 16:02:15 +0200298
Michal Simekabedc0b2021-06-10 17:59:46 +0200299 pinctrl_usb0_default: usb0-default {
300 conf {
301 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 power-source = <IO_STANDARD_LVCMOS18>;
303 };
Michal Simek4bc77342021-05-10 16:02:15 +0200304
Michal Simekabedc0b2021-06-10 17:59:46 +0200305 conf-rx {
306 pins = "MIO52", "MIO53", "MIO55";
307 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200308 drive-strength = <12>;
309 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200310 };
Michal Simek4bc77342021-05-10 16:02:15 +0200311
Michal Simekabedc0b2021-06-10 17:59:46 +0200312 conf-tx {
313 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
314 "MIO60", "MIO61", "MIO62", "MIO63";
315 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200316 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200317 drive-strength = <4>;
318 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200319 };
Michal Simek4bc77342021-05-10 16:02:15 +0200320
Michal Simekabedc0b2021-06-10 17:59:46 +0200321 mux {
322 groups = "usb0_0_grp";
323 function = "usb0";
324 };
325 };
Michal Simek4bc77342021-05-10 16:02:15 +0200326
Michal Simekabedc0b2021-06-10 17:59:46 +0200327 pinctrl_sdhci1_default: sdhci1-default {
328 conf {
329 groups = "sdio1_0_grp";
330 slew-rate = <SLEW_RATE_SLOW>;
331 power-source = <IO_STANDARD_LVCMOS18>;
332 bias-disable;
333 };
Michal Simek4bc77342021-05-10 16:02:15 +0200334
Michal Simekabedc0b2021-06-10 17:59:46 +0200335 conf-cd {
336 groups = "sdio1_cd_0_grp";
337 bias-high-impedance;
338 bias-pull-up;
339 slew-rate = <SLEW_RATE_SLOW>;
340 power-source = <IO_STANDARD_LVCMOS18>;
341 };
Michal Simek4bc77342021-05-10 16:02:15 +0200342
Michal Simekabedc0b2021-06-10 17:59:46 +0200343 mux-cd {
344 groups = "sdio1_cd_0_grp";
345 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200346 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200347
348 mux {
349 groups = "sdio1_0_grp";
350 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200351 };
352 };
353};
Michal Simekabedc0b2021-06-10 17:59:46 +0200354
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530355&gpio {
356 status = "okay";
357 pinctrl-names = "default";
358 pinctrl-0 = <&pinctrl_gpio0_default>;
359};
360
Michal Simekabedc0b2021-06-10 17:59:46 +0200361&uart1 {
362 status = "okay";
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_uart1_default>;
365};