blob: f935f25c887f3cbb8bf7d392962b037d84cff096 [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;
196 };
Michal Simek4bc77342021-05-10 16:02:15 +0200197
Michal Simekabedc0b2021-06-10 17:59:46 +0200198 mux {
199 groups = "uart1_9_grp";
200 function = "uart1";
201 };
202 };
Michal Simek4bc77342021-05-10 16:02:15 +0200203
Michal Simekabedc0b2021-06-10 17:59:46 +0200204 pinctrl_i2c1_default: i2c1-default {
205 conf {
206 groups = "i2c1_6_grp";
207 bias-pull-up;
208 slew-rate = <SLEW_RATE_SLOW>;
209 power-source = <IO_STANDARD_LVCMOS18>;
210 };
Michal Simek4bc77342021-05-10 16:02:15 +0200211
Michal Simekabedc0b2021-06-10 17:59:46 +0200212 mux {
213 groups = "i2c1_6_grp";
214 function = "i2c1";
215 };
216 };
Michal Simek4bc77342021-05-10 16:02:15 +0200217
Michal Simekabedc0b2021-06-10 17:59:46 +0200218 pinctrl_i2c1_gpio: i2c1-gpio {
219 conf {
220 groups = "gpio0_24_grp", "gpio0_25_grp";
221 slew-rate = <SLEW_RATE_SLOW>;
222 power-source = <IO_STANDARD_LVCMOS18>;
223 };
Michal Simek4bc77342021-05-10 16:02:15 +0200224
Michal Simekabedc0b2021-06-10 17:59:46 +0200225 mux {
226 groups = "gpio0_24_grp", "gpio0_25_grp";
227 function = "gpio0";
228 };
229 };
Michal Simek4bc77342021-05-10 16:02:15 +0200230
Michal Simekabedc0b2021-06-10 17:59:46 +0200231 pinctrl_gem3_default: gem3-default {
232 conf {
233 groups = "ethernet3_0_grp";
234 slew-rate = <SLEW_RATE_SLOW>;
235 power-source = <IO_STANDARD_LVCMOS18>;
236 };
Michal Simek4bc77342021-05-10 16:02:15 +0200237
Michal Simekabedc0b2021-06-10 17:59:46 +0200238 conf-rx {
239 pins = "MIO70", "MIO72", "MIO74";
240 bias-high-impedance;
241 low-power-disable;
242 };
Michal Simek4bc77342021-05-10 16:02:15 +0200243
Michal Simekabedc0b2021-06-10 17:59:46 +0200244 conf-bootstrap {
245 pins = "MIO71", "MIO73", "MIO75";
246 bias-disable;
247 low-power-disable;
248 };
Michal Simek4bc77342021-05-10 16:02:15 +0200249
Michal Simekabedc0b2021-06-10 17:59:46 +0200250 conf-tx {
251 pins = "MIO64", "MIO65", "MIO66",
252 "MIO67", "MIO68", "MIO69";
253 bias-disable;
254 low-power-enable;
255 };
Michal Simek4bc77342021-05-10 16:02:15 +0200256
Michal Simekabedc0b2021-06-10 17:59:46 +0200257 conf-mdio {
258 groups = "mdio3_0_grp";
259 slew-rate = <SLEW_RATE_SLOW>;
260 power-source = <IO_STANDARD_LVCMOS18>;
261 bias-disable;
262 };
Michal Simek4bc77342021-05-10 16:02:15 +0200263
Michal Simekabedc0b2021-06-10 17:59:46 +0200264 mux-mdio {
265 function = "mdio3";
266 groups = "mdio3_0_grp";
267 };
Michal Simek4bc77342021-05-10 16:02:15 +0200268
Michal Simekabedc0b2021-06-10 17:59:46 +0200269 mux {
270 function = "ethernet3";
271 groups = "ethernet3_0_grp";
272 };
273 };
Michal Simek4bc77342021-05-10 16:02:15 +0200274
Michal Simekabedc0b2021-06-10 17:59:46 +0200275 pinctrl_usb0_default: usb0-default {
276 conf {
277 groups = "usb0_0_grp";
Michal Simekabedc0b2021-06-10 17:59:46 +0200278 power-source = <IO_STANDARD_LVCMOS18>;
279 };
Michal Simek4bc77342021-05-10 16:02:15 +0200280
Michal Simekabedc0b2021-06-10 17:59:46 +0200281 conf-rx {
282 pins = "MIO52", "MIO53", "MIO55";
283 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200284 drive-strength = <12>;
285 slew-rate = <SLEW_RATE_FAST>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200286 };
Michal Simek4bc77342021-05-10 16:02:15 +0200287
Michal Simekabedc0b2021-06-10 17:59:46 +0200288 conf-tx {
289 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
290 "MIO60", "MIO61", "MIO62", "MIO63";
291 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200292 drive-strength = <4>;
293 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 };
Michal Simek4bc77342021-05-10 16:02:15 +0200295
Michal Simekabedc0b2021-06-10 17:59:46 +0200296 mux {
297 groups = "usb0_0_grp";
298 function = "usb0";
299 };
300 };
Michal Simek4bc77342021-05-10 16:02:15 +0200301
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 pinctrl_sdhci1_default: sdhci1-default {
303 conf {
304 groups = "sdio1_0_grp";
305 slew-rate = <SLEW_RATE_SLOW>;
306 power-source = <IO_STANDARD_LVCMOS18>;
307 bias-disable;
308 };
Michal Simek4bc77342021-05-10 16:02:15 +0200309
Michal Simekabedc0b2021-06-10 17:59:46 +0200310 conf-cd {
311 groups = "sdio1_cd_0_grp";
312 bias-high-impedance;
313 bias-pull-up;
314 slew-rate = <SLEW_RATE_SLOW>;
315 power-source = <IO_STANDARD_LVCMOS18>;
316 };
Michal Simek4bc77342021-05-10 16:02:15 +0200317
Michal Simekabedc0b2021-06-10 17:59:46 +0200318 mux-cd {
319 groups = "sdio1_cd_0_grp";
320 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200321 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200322
323 mux {
324 groups = "sdio1_0_grp";
325 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200326 };
327 };
328};
Michal Simekabedc0b2021-06-10 17:59:46 +0200329
330&uart1 {
331 status = "okay";
332 pinctrl-names = "default";
333 pinctrl-0 = <&pinctrl_uart1_default>;
334};