blob: df054e152a77e5287cb9613c60806fe1c5ad8ea6 [file] [log] [blame]
Michal Simeka502a872021-05-10 16:02:15 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for KV260 revA Carrier Card
4 *
Michal Simek3972ae62021-06-14 15:07:07 +02005 * (C) Copyright 2020 - 2021, Xilinx, Inc.
Michal Simeka502a872021-05-10 16:02:15 +02006 *
7 * Michal Simek <michal.simek@xilinx.com>
8 */
9
Michal Simek464f6552021-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 Simeka502a872021-05-10 16:02:15 +020014
15/dts-v1/;
16/plugin/;
17
Michal Simekb6d8d4b2021-06-10 17:59:46 +020018&{/} {
Michal Simeka502a872021-05-10 16:02:15 +020019 compatible = "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek3dbd5312021-06-10 18:52:14 +020020 "xlnx,zynqmp-sk-kv260-revB",
Michal Simeka502a872021-05-10 16:02:15 +020021 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekb6d8d4b2021-06-10 17:59:46 +020022};
Michal Simeka502a872021-05-10 16:02:15 +020023
Michal Simekb6d8d4b2021-06-10 17:59:46 +020024&i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
25 #address-cells = <1>;
26 #size-cells = <0>;
27 pinctrl-names = "default", "gpio";
28 pinctrl-0 = <&pinctrl_i2c1_default>;
29 pinctrl-1 = <&pinctrl_i2c1_gpio>;
30 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
31 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
Michal Simeka502a872021-05-10 16:02:15 +020032
Michal Simekb6d8d4b2021-06-10 17:59:46 +020033 u14: ina260@40 { /* u14 */
34 compatible = "ti,ina260";
35 #io-channel-cells = <1>;
36 label = "ina260-u14";
37 reg = <0x40>;
38 };
39 usbhub: usb5744@2d { /* u43 */
40 compatible = "microchip,usb5744";
41 reg = <0x2d>;
42 reset-gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
43 };
44 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
45};
Michal Simeka502a872021-05-10 16:02:15 +020046
Michal Simekb6d8d4b2021-06-10 17:59:46 +020047&amba {
48 ina260-u14 {
49 compatible = "iio-hwmon";
50 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
Michal Simeka502a872021-05-10 16:02:15 +020051 };
52
Michal Simekb6d8d4b2021-06-10 17:59:46 +020053 si5332_0: si5332_0 { /* u17 */
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <125000000>;
Michal Simeka502a872021-05-10 16:02:15 +020057 };
58
Michal Simekb6d8d4b2021-06-10 17:59:46 +020059 si5332_1: si5332_1 { /* u17 */
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <25000000>;
63 };
64
65 si5332_2: si5332_2 { /* u17 */
66 compatible = "fixed-clock";
67 #clock-cells = <0>;
68 clock-frequency = <48000000>;
69 };
70
71 si5332_3: si5332_3 { /* u17 */
72 compatible = "fixed-clock";
73 #clock-cells = <0>;
74 clock-frequency = <24000000>;
75 };
76
77 si5332_4: si5332_4 { /* u17 */
78 compatible = "fixed-clock";
79 #clock-cells = <0>;
80 clock-frequency = <26000000>;
81 };
82
83 si5332_5: si5332_5 { /* u17 */
84 compatible = "fixed-clock";
85 #clock-cells = <0>;
86 clock-frequency = <27000000>;
87 };
88};
89
Michal Simeka502a872021-05-10 16:02:15 +020090/* DP/USB 3.0 */
Michal Simekb6d8d4b2021-06-10 17:59:46 +020091&psgtr {
92 status = "okay";
93 /* pcie, usb3, sata */
94 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
95 clock-names = "ref0", "ref1", "ref2";
96};
97
98&zynqmp_dpsub {
99 status = "disabled";
100 phy-names = "dp-phy0", "dp-phy1";
101 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
102};
103
104&zynqmp_dpdma {
105 status = "okay";
106};
107
108&usb0 {
109 status = "okay";
110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Narani15ca9eb2021-07-14 06:17:19 -0600112 phy-names = "usb3-phy";
113 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200114};
115
116&dwc3_0 {
117 status = "okay";
118 dr_mode = "host";
119 snps,usb3_lpm_capable;
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200120 maximum-speed = "super-speed";
121};
122
123&sdhci1 { /* on CC with tuned parameters */
124 status = "okay";
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_sdhci1_default>;
127 /*
128 * SD 3.0 requires level shifter and this property
129 * should be removed if the board has level shifter and
130 * need to work in UHS mode
131 */
132 no-1-8-v;
133 disable-wp;
134 xlnx,mio-bank = <1>;
135 clk-phase-sd-hs = <126>, <60>;
136 clk-phase-uhs-sdr25 = <120>, <60>;
137 clk-phase-uhs-ddr50 = <126>, <48>;
138};
139
140&gem3 { /* required by spec */
141 status = "okay";
142 pinctrl-names = "default";
143 pinctrl-0 = <&pinctrl_gem3_default>;
144 phy-handle = <&phy0>;
145 phy-mode = "rgmii-id";
146
147 mdio: mdio {
148 #address-cells = <1>;
149 #size-cells = <0>;
150 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
151 reset-delay-us = <2>;
152
153 phy0: ethernet-phy@1 {
154 #phy-cells = <1>;
155 reg = <1>;
156 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
157 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
158 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
159 ti,dp83867-rxctrl-strap-quirk;
160 };
161 };
162};
163
164&pinctrl0 { /* required by spec */
165 status = "okay";
166
167 pinctrl_uart1_default: uart1-default {
168 conf {
169 groups = "uart1_9_grp";
170 slew-rate = <SLEW_RATE_SLOW>;
171 power-source = <IO_STANDARD_LVCMOS18>;
172 drive-strength = <12>;
173 };
174
175 conf-rx {
176 pins = "MIO37";
177 bias-high-impedance;
178 };
179
180 conf-tx {
181 pins = "MIO36";
182 bias-disable;
183 };
184
185 mux {
186 groups = "uart1_9_grp";
187 function = "uart1";
Michal Simeka502a872021-05-10 16:02:15 +0200188 };
189 };
190
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200191 pinctrl_i2c1_default: i2c1-default {
192 conf {
193 groups = "i2c1_6_grp";
194 bias-pull-up;
195 slew-rate = <SLEW_RATE_SLOW>;
196 power-source = <IO_STANDARD_LVCMOS18>;
197 };
198
199 mux {
200 groups = "i2c1_6_grp";
201 function = "i2c1";
Michal Simeka502a872021-05-10 16:02:15 +0200202 };
203 };
204
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200205 pinctrl_i2c1_gpio: i2c1-gpio {
206 conf {
207 groups = "gpio0_24_grp", "gpio0_25_grp";
208 slew-rate = <SLEW_RATE_SLOW>;
209 power-source = <IO_STANDARD_LVCMOS18>;
210 };
211
212 mux {
213 groups = "gpio0_24_grp", "gpio0_25_grp";
214 function = "gpio0";
Michal Simeka502a872021-05-10 16:02:15 +0200215 };
216 };
217
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200218 pinctrl_gem3_default: gem3-default {
219 conf {
220 groups = "ethernet3_0_grp";
221 slew-rate = <SLEW_RATE_SLOW>;
222 power-source = <IO_STANDARD_LVCMOS18>;
223 };
224
225 conf-rx {
226 pins = "MIO70", "MIO72", "MIO74";
227 bias-high-impedance;
228 low-power-disable;
229 };
230
231 conf-bootstrap {
232 pins = "MIO71", "MIO73", "MIO75";
233 bias-disable;
234 low-power-disable;
235 };
236
237 conf-tx {
238 pins = "MIO64", "MIO65", "MIO66",
239 "MIO67", "MIO68", "MIO69";
240 bias-disable;
241 low-power-enable;
242 };
243
244 conf-mdio {
245 groups = "mdio3_0_grp";
246 slew-rate = <SLEW_RATE_SLOW>;
247 power-source = <IO_STANDARD_LVCMOS18>;
248 bias-disable;
249 };
250
251 mux-mdio {
252 function = "mdio3";
253 groups = "mdio3_0_grp";
254 };
255
256 mux {
257 function = "ethernet3";
258 groups = "ethernet3_0_grp";
Michal Simeka502a872021-05-10 16:02:15 +0200259 };
260 };
261
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200262 pinctrl_usb0_default: usb0-default {
263 conf {
264 groups = "usb0_0_grp";
265 slew-rate = <SLEW_RATE_SLOW>;
266 power-source = <IO_STANDARD_LVCMOS18>;
267 };
268
269 conf-rx {
270 pins = "MIO52", "MIO53", "MIO55";
271 bias-high-impedance;
272 };
273
274 conf-tx {
275 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
276 "MIO60", "MIO61", "MIO62", "MIO63";
277 bias-disable;
278 };
279
280 mux {
281 groups = "usb0_0_grp";
282 function = "usb0";
Michal Simeka502a872021-05-10 16:02:15 +0200283 };
284 };
285
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200286 pinctrl_sdhci1_default: sdhci1-default {
287 conf {
288 groups = "sdio1_0_grp";
289 slew-rate = <SLEW_RATE_SLOW>;
290 power-source = <IO_STANDARD_LVCMOS18>;
291 bias-disable;
292 };
293
294 conf-cd {
295 groups = "sdio1_cd_0_grp";
296 bias-high-impedance;
297 bias-pull-up;
298 slew-rate = <SLEW_RATE_SLOW>;
299 power-source = <IO_STANDARD_LVCMOS18>;
300 };
301
302 mux-cd {
303 groups = "sdio1_cd_0_grp";
304 function = "sdio1_cd";
305 };
306
307 mux {
308 groups = "sdio1_0_grp";
309 function = "sdio1";
Michal Simeka502a872021-05-10 16:02:15 +0200310 };
311 };
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200312};
Michal Simeka502a872021-05-10 16:02:15 +0200313
Michal Simekb6d8d4b2021-06-10 17:59:46 +0200314&uart1 {
315 status = "okay";
316 pinctrl-names = "default";
317 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeka502a872021-05-10 16:02:15 +0200318};