blob: 7236e03a5a74f063a1bd2aa791a29fb0d27de3c2 [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 *
7 * Michal Simek <michal.simek@xilinx.com>
8 */
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 Simek4bc77342021-05-10 16:02:15 +020019 compatible = "xlnx,zynqmp-sk-kv260-rev1",
Michal Simek20fddd72021-06-10 18:52:14 +020020 "xlnx,zynqmp-sk-kv260-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020021 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
Michal Simekabedc0b2021-06-10 17:59:46 +020022};
Michal Simek4bc77342021-05-10 16:02:15 +020023
Michal Simekabedc0b2021-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 Simek4bc77342021-05-10 16:02:15 +020032
Michal Simekabedc0b2021-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>;
Michal Simek4bc77342021-05-10 16:02:15 +020038 };
Michal Simek1a9fe832022-02-23 16:17:37 +010039 /* u43 - 0x2d - USB hub */
Michal Simekabedc0b2021-06-10 17:59:46 +020040 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
41};
Michal Simek4bc77342021-05-10 16:02:15 +020042
Michal Simekabedc0b2021-06-10 17:59:46 +020043&amba {
44 ina260-u14 {
45 compatible = "iio-hwmon";
46 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
47 };
Michal Simek4bc77342021-05-10 16:02:15 +020048
Michal Simekabedc0b2021-06-10 17:59:46 +020049 si5332_0: si5332_0 { /* u17 */
50 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <125000000>;
53 };
Michal Simek4bc77342021-05-10 16:02:15 +020054
Michal Simekabedc0b2021-06-10 17:59:46 +020055 si5332_1: si5332_1 { /* u17 */
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <25000000>;
59 };
Michal Simek4bc77342021-05-10 16:02:15 +020060
Michal Simekabedc0b2021-06-10 17:59:46 +020061 si5332_2: si5332_2 { /* u17 */
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <48000000>;
65 };
Michal Simek4bc77342021-05-10 16:02:15 +020066
Michal Simekabedc0b2021-06-10 17:59:46 +020067 si5332_3: si5332_3 { /* u17 */
68 compatible = "fixed-clock";
69 #clock-cells = <0>;
70 clock-frequency = <24000000>;
71 };
Michal Simek4bc77342021-05-10 16:02:15 +020072
Michal Simekabedc0b2021-06-10 17:59:46 +020073 si5332_4: si5332_4 { /* u17 */
74 compatible = "fixed-clock";
75 #clock-cells = <0>;
76 clock-frequency = <26000000>;
77 };
Michal Simek4bc77342021-05-10 16:02:15 +020078
Michal Simekabedc0b2021-06-10 17:59:46 +020079 si5332_5: si5332_5 { /* u17 */
80 compatible = "fixed-clock";
81 #clock-cells = <0>;
82 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020083 };
Michal Simekabedc0b2021-06-10 17:59:46 +020084};
Michal Simek4bc77342021-05-10 16:02:15 +020085
86/* DP/USB 3.0 */
Michal Simekabedc0b2021-06-10 17:59:46 +020087&psgtr {
88 status = "okay";
89 /* pcie, usb3, sata */
90 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
91 clock-names = "ref0", "ref1", "ref2";
92};
Michal Simek4bc77342021-05-10 16:02:15 +020093
Michal Simekabedc0b2021-06-10 17:59:46 +020094&zynqmp_dpsub {
95 status = "disabled";
96 phy-names = "dp-phy0", "dp-phy1";
97 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
Michal Simekeb10f6a2022-02-23 16:17:38 +010098 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +020099};
Michal Simek4bc77342021-05-10 16:02:15 +0200100
Michal Simekabedc0b2021-06-10 17:59:46 +0200101&zynqmp_dpdma {
102 status = "okay";
Michal Simekeb10f6a2022-02-23 16:17:38 +0100103 assigned-clock-rates = <600000000>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200104};
Michal Simek4bc77342021-05-10 16:02:15 +0200105
Michal Simekabedc0b2021-06-10 17:59:46 +0200106&usb0 {
107 status = "okay";
108 pinctrl-names = "default";
109 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600110 phy-names = "usb3-phy";
111 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100112 assigned-clock-rates = <250000000>, <20000000>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100113
114 usb5744: usb-hub { /* u43 */
115 status = "okay";
116 compatible = "microchip,usb5744";
117 i2c-bus = <&i2c1>;
118 reset-gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
119 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200120};
Michal Simek4bc77342021-05-10 16:02:15 +0200121
Michal Simekabedc0b2021-06-10 17:59:46 +0200122&dwc3_0 {
123 status = "okay";
124 dr_mode = "host";
125 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200126 maximum-speed = "super-speed";
127};
Michal Simek4bc77342021-05-10 16:02:15 +0200128
Michal Simekabedc0b2021-06-10 17:59:46 +0200129&sdhci1 { /* on CC with tuned parameters */
130 status = "okay";
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_sdhci1_default>;
133 /*
134 * SD 3.0 requires level shifter and this property
135 * should be removed if the board has level shifter and
136 * need to work in UHS mode
137 */
138 no-1-8-v;
139 disable-wp;
140 xlnx,mio-bank = <1>;
141 clk-phase-sd-hs = <126>, <60>;
142 clk-phase-uhs-sdr25 = <120>, <60>;
143 clk-phase-uhs-ddr50 = <126>, <48>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100144 assigned-clock-rates = <187498123>;
145 bus-width = <8>;
Michal Simekabedc0b2021-06-10 17:59:46 +0200146};
Michal Simek4bc77342021-05-10 16:02:15 +0200147
Michal Simekabedc0b2021-06-10 17:59:46 +0200148&gem3 { /* required by spec */
149 status = "okay";
150 pinctrl-names = "default";
151 pinctrl-0 = <&pinctrl_gem3_default>;
152 phy-handle = <&phy0>;
153 phy-mode = "rgmii-id";
Michal Simek4bc77342021-05-10 16:02:15 +0200154
Michal Simekabedc0b2021-06-10 17:59:46 +0200155 mdio: mdio {
156 #address-cells = <1>;
157 #size-cells = <0>;
158 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
159 reset-delay-us = <2>;
Michal Simek4bc77342021-05-10 16:02:15 +0200160
Michal Simekabedc0b2021-06-10 17:59:46 +0200161 phy0: ethernet-phy@1 {
162 #phy-cells = <1>;
163 reg = <1>;
164 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
165 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
166 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
167 ti,dp83867-rxctrl-strap-quirk;
Michal Simek4bc77342021-05-10 16:02:15 +0200168 };
169 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200170};
Michal Simek4bc77342021-05-10 16:02:15 +0200171
Michal Simekabedc0b2021-06-10 17:59:46 +0200172&pinctrl0 { /* required by spec */
173 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200174
Michal Simekabedc0b2021-06-10 17:59:46 +0200175 pinctrl_uart1_default: uart1-default {
176 conf {
177 groups = "uart1_9_grp";
178 slew-rate = <SLEW_RATE_SLOW>;
179 power-source = <IO_STANDARD_LVCMOS18>;
180 drive-strength = <12>;
181 };
Michal Simek4bc77342021-05-10 16:02:15 +0200182
Michal Simekabedc0b2021-06-10 17:59:46 +0200183 conf-rx {
184 pins = "MIO37";
185 bias-high-impedance;
186 };
Michal Simek4bc77342021-05-10 16:02:15 +0200187
Michal Simekabedc0b2021-06-10 17:59:46 +0200188 conf-tx {
189 pins = "MIO36";
190 bias-disable;
191 };
Michal Simek4bc77342021-05-10 16:02:15 +0200192
Michal Simekabedc0b2021-06-10 17:59:46 +0200193 mux {
194 groups = "uart1_9_grp";
195 function = "uart1";
196 };
197 };
Michal Simek4bc77342021-05-10 16:02:15 +0200198
Michal Simekabedc0b2021-06-10 17:59:46 +0200199 pinctrl_i2c1_default: i2c1-default {
200 conf {
201 groups = "i2c1_6_grp";
202 bias-pull-up;
203 slew-rate = <SLEW_RATE_SLOW>;
204 power-source = <IO_STANDARD_LVCMOS18>;
205 };
Michal Simek4bc77342021-05-10 16:02:15 +0200206
Michal Simekabedc0b2021-06-10 17:59:46 +0200207 mux {
208 groups = "i2c1_6_grp";
209 function = "i2c1";
210 };
211 };
Michal Simek4bc77342021-05-10 16:02:15 +0200212
Michal Simekabedc0b2021-06-10 17:59:46 +0200213 pinctrl_i2c1_gpio: i2c1-gpio {
214 conf {
215 groups = "gpio0_24_grp", "gpio0_25_grp";
216 slew-rate = <SLEW_RATE_SLOW>;
217 power-source = <IO_STANDARD_LVCMOS18>;
218 };
Michal Simek4bc77342021-05-10 16:02:15 +0200219
Michal Simekabedc0b2021-06-10 17:59:46 +0200220 mux {
221 groups = "gpio0_24_grp", "gpio0_25_grp";
222 function = "gpio0";
223 };
224 };
Michal Simek4bc77342021-05-10 16:02:15 +0200225
Michal Simekabedc0b2021-06-10 17:59:46 +0200226 pinctrl_gem3_default: gem3-default {
227 conf {
228 groups = "ethernet3_0_grp";
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 conf-rx {
234 pins = "MIO70", "MIO72", "MIO74";
235 bias-high-impedance;
236 low-power-disable;
237 };
Michal Simek4bc77342021-05-10 16:02:15 +0200238
Michal Simekabedc0b2021-06-10 17:59:46 +0200239 conf-bootstrap {
240 pins = "MIO71", "MIO73", "MIO75";
241 bias-disable;
242 low-power-disable;
243 };
Michal Simek4bc77342021-05-10 16:02:15 +0200244
Michal Simekabedc0b2021-06-10 17:59:46 +0200245 conf-tx {
246 pins = "MIO64", "MIO65", "MIO66",
247 "MIO67", "MIO68", "MIO69";
248 bias-disable;
249 low-power-enable;
250 };
Michal Simek4bc77342021-05-10 16:02:15 +0200251
Michal Simekabedc0b2021-06-10 17:59:46 +0200252 conf-mdio {
253 groups = "mdio3_0_grp";
254 slew-rate = <SLEW_RATE_SLOW>;
255 power-source = <IO_STANDARD_LVCMOS18>;
256 bias-disable;
257 };
Michal Simek4bc77342021-05-10 16:02:15 +0200258
Michal Simekabedc0b2021-06-10 17:59:46 +0200259 mux-mdio {
260 function = "mdio3";
261 groups = "mdio3_0_grp";
262 };
Michal Simek4bc77342021-05-10 16:02:15 +0200263
Michal Simekabedc0b2021-06-10 17:59:46 +0200264 mux {
265 function = "ethernet3";
266 groups = "ethernet3_0_grp";
267 };
268 };
Michal Simek4bc77342021-05-10 16:02:15 +0200269
Michal Simekabedc0b2021-06-10 17:59:46 +0200270 pinctrl_usb0_default: usb0-default {
271 conf {
272 groups = "usb0_0_grp";
273 slew-rate = <SLEW_RATE_SLOW>;
274 power-source = <IO_STANDARD_LVCMOS18>;
275 };
Michal Simek4bc77342021-05-10 16:02:15 +0200276
Michal Simekabedc0b2021-06-10 17:59:46 +0200277 conf-rx {
278 pins = "MIO52", "MIO53", "MIO55";
279 bias-high-impedance;
280 };
Michal Simek4bc77342021-05-10 16:02:15 +0200281
Michal Simekabedc0b2021-06-10 17:59:46 +0200282 conf-tx {
283 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
284 "MIO60", "MIO61", "MIO62", "MIO63";
285 bias-disable;
286 };
Michal Simek4bc77342021-05-10 16:02:15 +0200287
Michal Simekabedc0b2021-06-10 17:59:46 +0200288 mux {
289 groups = "usb0_0_grp";
290 function = "usb0";
291 };
292 };
Michal Simek4bc77342021-05-10 16:02:15 +0200293
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 pinctrl_sdhci1_default: sdhci1-default {
295 conf {
296 groups = "sdio1_0_grp";
297 slew-rate = <SLEW_RATE_SLOW>;
298 power-source = <IO_STANDARD_LVCMOS18>;
299 bias-disable;
300 };
Michal Simek4bc77342021-05-10 16:02:15 +0200301
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 conf-cd {
303 groups = "sdio1_cd_0_grp";
304 bias-high-impedance;
305 bias-pull-up;
306 slew-rate = <SLEW_RATE_SLOW>;
307 power-source = <IO_STANDARD_LVCMOS18>;
308 };
Michal Simek4bc77342021-05-10 16:02:15 +0200309
Michal Simekabedc0b2021-06-10 17:59:46 +0200310 mux-cd {
311 groups = "sdio1_cd_0_grp";
312 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200313 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200314
315 mux {
316 groups = "sdio1_0_grp";
317 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200318 };
319 };
320};
Michal Simekabedc0b2021-06-10 17:59:46 +0200321
322&uart1 {
323 status = "okay";
324 pinctrl-names = "default";
325 pinctrl-0 = <&pinctrl_uart1_default>;
326};