blob: a4b4465d2038f083eac82b95bb1bf06dee41fa2f [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 Simek4bc77342021-05-10 16:02:15 +020025
Michal Simekabedc0b2021-06-10 17:59:46 +020026 ina260-u14 {
27 compatible = "iio-hwmon";
28 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
29 };
Michal Simek4bc77342021-05-10 16:02:15 +020030
Michal Simek7256cec2023-12-19 17:16:48 +010031 si5332_0: si5332-0 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020032 compatible = "fixed-clock";
33 #clock-cells = <0>;
34 clock-frequency = <125000000>;
35 };
Michal Simek4bc77342021-05-10 16:02:15 +020036
Michal Simek7256cec2023-12-19 17:16:48 +010037 si5332_1: si5332-1 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020038 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <25000000>;
41 };
Michal Simek4bc77342021-05-10 16:02:15 +020042
Michal Simek7256cec2023-12-19 17:16:48 +010043 si5332_2: si5332-2 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020044 compatible = "fixed-clock";
45 #clock-cells = <0>;
46 clock-frequency = <48000000>;
47 };
Michal Simek4bc77342021-05-10 16:02:15 +020048
Michal Simek7256cec2023-12-19 17:16:48 +010049 si5332_3: si5332-3 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020050 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <24000000>;
53 };
Michal Simek4bc77342021-05-10 16:02:15 +020054
Michal Simek7256cec2023-12-19 17:16:48 +010055 si5332_4: si5332-4 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020056 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <26000000>;
59 };
Michal Simek4bc77342021-05-10 16:02:15 +020060
Michal Simek7256cec2023-12-19 17:16:48 +010061 si5332_5: si5332-5 { /* u17 */
Michal Simekabedc0b2021-06-10 17:59:46 +020062 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020065 };
Michal Simekabedc0b2021-06-10 17:59:46 +020066};
Michal Simek4bc77342021-05-10 16:02:15 +020067
Michal Simek6946aaf2023-12-19 17:16:47 +010068&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
69 #address-cells = <1>;
70 #size-cells = <0>;
71 pinctrl-names = "default", "gpio";
72 pinctrl-0 = <&pinctrl_i2c1_default>;
73 pinctrl-1 = <&pinctrl_i2c1_gpio>;
74 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
75 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
76
77 u14: ina260@40 { /* u14 */
78 compatible = "ti,ina260";
79 #io-channel-cells = <1>;
80 label = "ina260-u14";
81 reg = <0x40>;
82 };
83 /* u43 - 0x2d - USB hub */
84 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
85};
86
Michal Simek4bc77342021-05-10 16:02:15 +020087/* 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 Simek30d1dfc2023-11-06 16:55:48 +0100114#if 0
Michal Simek1a9fe832022-02-23 16:17:37 +0100115 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 Simek30d1dfc2023-11-06 16:55:48 +0100121#endif
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>;
Michal Simek409af4a2023-09-22 12:35:34 +0200147 bus-width = <4>;
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
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530180 pinctrl_gpio0_default: gpio0-default {
181 conf {
182 groups = "gpio0_38_grp";
183 bias-pull-up;
184 power-source = <IO_STANDARD_LVCMOS18>;
185 };
186
187 mux {
188 groups = "gpio0_38_grp";
189 function = "gpio0";
190 };
191
192 conf-tx {
193 pins = "MIO38";
194 bias-disable;
195 output-enable;
196 };
197 };
198
Michal Simekabedc0b2021-06-10 17:59:46 +0200199 pinctrl_uart1_default: uart1-default {
200 conf {
201 groups = "uart1_9_grp";
202 slew-rate = <SLEW_RATE_SLOW>;
203 power-source = <IO_STANDARD_LVCMOS18>;
204 drive-strength = <12>;
205 };
Michal Simek4bc77342021-05-10 16:02:15 +0200206
Michal Simekabedc0b2021-06-10 17:59:46 +0200207 conf-rx {
208 pins = "MIO37";
209 bias-high-impedance;
210 };
Michal Simek4bc77342021-05-10 16:02:15 +0200211
Michal Simekabedc0b2021-06-10 17:59:46 +0200212 conf-tx {
213 pins = "MIO36";
214 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200215 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200216 };
Michal Simek4bc77342021-05-10 16:02:15 +0200217
Michal Simekabedc0b2021-06-10 17:59:46 +0200218 mux {
219 groups = "uart1_9_grp";
220 function = "uart1";
221 };
222 };
Michal Simek4bc77342021-05-10 16:02:15 +0200223
Michal Simekabedc0b2021-06-10 17:59:46 +0200224 pinctrl_i2c1_default: i2c1-default {
225 conf {
226 groups = "i2c1_6_grp";
227 bias-pull-up;
228 slew-rate = <SLEW_RATE_SLOW>;
229 power-source = <IO_STANDARD_LVCMOS18>;
230 };
Michal Simek4bc77342021-05-10 16:02:15 +0200231
Michal Simekabedc0b2021-06-10 17:59:46 +0200232 mux {
233 groups = "i2c1_6_grp";
234 function = "i2c1";
235 };
236 };
Michal Simek4bc77342021-05-10 16:02:15 +0200237
Michal Simekcf3cd802023-12-19 17:16:50 +0100238 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simekabedc0b2021-06-10 17:59:46 +0200239 conf {
240 groups = "gpio0_24_grp", "gpio0_25_grp";
241 slew-rate = <SLEW_RATE_SLOW>;
242 power-source = <IO_STANDARD_LVCMOS18>;
243 };
Michal Simek4bc77342021-05-10 16:02:15 +0200244
Michal Simekabedc0b2021-06-10 17:59:46 +0200245 mux {
246 groups = "gpio0_24_grp", "gpio0_25_grp";
247 function = "gpio0";
248 };
249 };
Michal Simek4bc77342021-05-10 16:02:15 +0200250
Michal Simekabedc0b2021-06-10 17:59:46 +0200251 pinctrl_gem3_default: gem3-default {
252 conf {
253 groups = "ethernet3_0_grp";
254 slew-rate = <SLEW_RATE_SLOW>;
255 power-source = <IO_STANDARD_LVCMOS18>;
256 };
Michal Simek4bc77342021-05-10 16:02:15 +0200257
Michal Simekabedc0b2021-06-10 17:59:46 +0200258 conf-rx {
259 pins = "MIO70", "MIO72", "MIO74";
260 bias-high-impedance;
261 low-power-disable;
262 };
Michal Simek4bc77342021-05-10 16:02:15 +0200263
Michal Simekabedc0b2021-06-10 17:59:46 +0200264 conf-bootstrap {
265 pins = "MIO71", "MIO73", "MIO75";
266 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200267 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200268 low-power-disable;
269 };
Michal Simek4bc77342021-05-10 16:02:15 +0200270
Michal Simekabedc0b2021-06-10 17:59:46 +0200271 conf-tx {
272 pins = "MIO64", "MIO65", "MIO66",
273 "MIO67", "MIO68", "MIO69";
274 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200275 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200276 low-power-enable;
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 conf-mdio {
280 groups = "mdio3_0_grp";
281 slew-rate = <SLEW_RATE_SLOW>;
282 power-source = <IO_STANDARD_LVCMOS18>;
283 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200284 output-enable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200285 };
Michal Simek4bc77342021-05-10 16:02:15 +0200286
Michal Simekabedc0b2021-06-10 17:59:46 +0200287 mux-mdio {
288 function = "mdio3";
289 groups = "mdio3_0_grp";
290 };
Michal Simek4bc77342021-05-10 16:02:15 +0200291
Michal Simekabedc0b2021-06-10 17:59:46 +0200292 mux {
293 function = "ethernet3";
294 groups = "ethernet3_0_grp";
295 };
296 };
Michal Simek4bc77342021-05-10 16:02:15 +0200297
Michal Simekabedc0b2021-06-10 17:59:46 +0200298 pinctrl_usb0_default: usb0-default {
299 conf {
300 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200301 power-source = <IO_STANDARD_LVCMOS18>;
302 };
Michal Simek4bc77342021-05-10 16:02:15 +0200303
Michal Simekabedc0b2021-06-10 17:59:46 +0200304 conf-rx {
305 pins = "MIO52", "MIO53", "MIO55";
306 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200307 drive-strength = <12>;
308 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200309 };
Michal Simek4bc77342021-05-10 16:02:15 +0200310
Michal Simekabedc0b2021-06-10 17:59:46 +0200311 conf-tx {
312 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
313 "MIO60", "MIO61", "MIO62", "MIO63";
314 bias-disable;
Neal Fragera299b662023-08-31 16:27:53 +0200315 output-enable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200316 drive-strength = <4>;
317 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200318 };
Michal Simek4bc77342021-05-10 16:02:15 +0200319
Michal Simekabedc0b2021-06-10 17:59:46 +0200320 mux {
321 groups = "usb0_0_grp";
322 function = "usb0";
323 };
324 };
Michal Simek4bc77342021-05-10 16:02:15 +0200325
Michal Simekabedc0b2021-06-10 17:59:46 +0200326 pinctrl_sdhci1_default: sdhci1-default {
327 conf {
328 groups = "sdio1_0_grp";
329 slew-rate = <SLEW_RATE_SLOW>;
330 power-source = <IO_STANDARD_LVCMOS18>;
331 bias-disable;
332 };
Michal Simek4bc77342021-05-10 16:02:15 +0200333
Michal Simekabedc0b2021-06-10 17:59:46 +0200334 conf-cd {
335 groups = "sdio1_cd_0_grp";
336 bias-high-impedance;
337 bias-pull-up;
338 slew-rate = <SLEW_RATE_SLOW>;
339 power-source = <IO_STANDARD_LVCMOS18>;
340 };
Michal Simek4bc77342021-05-10 16:02:15 +0200341
Michal Simekabedc0b2021-06-10 17:59:46 +0200342 mux-cd {
343 groups = "sdio1_cd_0_grp";
344 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200345 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200346
347 mux {
348 groups = "sdio1_0_grp";
349 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200350 };
351 };
352};
Michal Simekabedc0b2021-06-10 17:59:46 +0200353
Tejas Bhumkar9285d502023-10-20 10:36:22 +0530354&gpio {
355 status = "okay";
356 pinctrl-names = "default";
357 pinctrl-0 = <&pinctrl_gpio0_default>;
358};
359
Michal Simekabedc0b2021-06-10 17:59:46 +0200360&uart1 {
361 status = "okay";
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_uart1_default>;
364};