blob: 28a3f3c219926988e58374e649871ca4c67929d0 [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 {
Michal Simekf499a812022-02-23 16:17:41 +010095 status = "okay";
Michal Simekabedc0b2021-06-10 17:59:46 +020096 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>;
Michal Simek4bc77342021-05-10 16:02:15 +0200158
Michal Simekabedc0b2021-06-10 17:59:46 +0200159 phy0: ethernet-phy@1 {
160 #phy-cells = <1>;
161 reg = <1>;
Michal Simek01b01122022-02-23 16:17:40 +0100162 compatible = "ethernet-phy-id2000.a231";
Michal Simekabedc0b2021-06-10 17:59:46 +0200163 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
164 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
165 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
166 ti,dp83867-rxctrl-strap-quirk;
Michal Simek01b01122022-02-23 16:17:40 +0100167 reset-assert-us = <100>;
168 reset-deassert-us = <280>;
169 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
Michal Simek4bc77342021-05-10 16:02:15 +0200170 };
171 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200172};
Michal Simek4bc77342021-05-10 16:02:15 +0200173
Michal Simekabedc0b2021-06-10 17:59:46 +0200174&pinctrl0 { /* required by spec */
175 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200176
Michal Simekabedc0b2021-06-10 17:59:46 +0200177 pinctrl_uart1_default: uart1-default {
178 conf {
179 groups = "uart1_9_grp";
180 slew-rate = <SLEW_RATE_SLOW>;
181 power-source = <IO_STANDARD_LVCMOS18>;
182 drive-strength = <12>;
183 };
Michal Simek4bc77342021-05-10 16:02:15 +0200184
Michal Simekabedc0b2021-06-10 17:59:46 +0200185 conf-rx {
186 pins = "MIO37";
187 bias-high-impedance;
188 };
Michal Simek4bc77342021-05-10 16:02:15 +0200189
Michal Simekabedc0b2021-06-10 17:59:46 +0200190 conf-tx {
191 pins = "MIO36";
192 bias-disable;
193 };
Michal Simek4bc77342021-05-10 16:02:15 +0200194
Michal Simekabedc0b2021-06-10 17:59:46 +0200195 mux {
196 groups = "uart1_9_grp";
197 function = "uart1";
198 };
199 };
Michal Simek4bc77342021-05-10 16:02:15 +0200200
Michal Simekabedc0b2021-06-10 17:59:46 +0200201 pinctrl_i2c1_default: i2c1-default {
202 conf {
203 groups = "i2c1_6_grp";
204 bias-pull-up;
205 slew-rate = <SLEW_RATE_SLOW>;
206 power-source = <IO_STANDARD_LVCMOS18>;
207 };
Michal Simek4bc77342021-05-10 16:02:15 +0200208
Michal Simekabedc0b2021-06-10 17:59:46 +0200209 mux {
210 groups = "i2c1_6_grp";
211 function = "i2c1";
212 };
213 };
Michal Simek4bc77342021-05-10 16:02:15 +0200214
Michal Simekabedc0b2021-06-10 17:59:46 +0200215 pinctrl_i2c1_gpio: i2c1-gpio {
216 conf {
217 groups = "gpio0_24_grp", "gpio0_25_grp";
218 slew-rate = <SLEW_RATE_SLOW>;
219 power-source = <IO_STANDARD_LVCMOS18>;
220 };
Michal Simek4bc77342021-05-10 16:02:15 +0200221
Michal Simekabedc0b2021-06-10 17:59:46 +0200222 mux {
223 groups = "gpio0_24_grp", "gpio0_25_grp";
224 function = "gpio0";
225 };
226 };
Michal Simek4bc77342021-05-10 16:02:15 +0200227
Michal Simekabedc0b2021-06-10 17:59:46 +0200228 pinctrl_gem3_default: gem3-default {
229 conf {
230 groups = "ethernet3_0_grp";
231 slew-rate = <SLEW_RATE_SLOW>;
232 power-source = <IO_STANDARD_LVCMOS18>;
233 };
Michal Simek4bc77342021-05-10 16:02:15 +0200234
Michal Simekabedc0b2021-06-10 17:59:46 +0200235 conf-rx {
236 pins = "MIO70", "MIO72", "MIO74";
237 bias-high-impedance;
238 low-power-disable;
239 };
Michal Simek4bc77342021-05-10 16:02:15 +0200240
Michal Simekabedc0b2021-06-10 17:59:46 +0200241 conf-bootstrap {
242 pins = "MIO71", "MIO73", "MIO75";
243 bias-disable;
244 low-power-disable;
245 };
Michal Simek4bc77342021-05-10 16:02:15 +0200246
Michal Simekabedc0b2021-06-10 17:59:46 +0200247 conf-tx {
248 pins = "MIO64", "MIO65", "MIO66",
249 "MIO67", "MIO68", "MIO69";
250 bias-disable;
251 low-power-enable;
252 };
Michal Simek4bc77342021-05-10 16:02:15 +0200253
Michal Simekabedc0b2021-06-10 17:59:46 +0200254 conf-mdio {
255 groups = "mdio3_0_grp";
256 slew-rate = <SLEW_RATE_SLOW>;
257 power-source = <IO_STANDARD_LVCMOS18>;
258 bias-disable;
259 };
Michal Simek4bc77342021-05-10 16:02:15 +0200260
Michal Simekabedc0b2021-06-10 17:59:46 +0200261 mux-mdio {
262 function = "mdio3";
263 groups = "mdio3_0_grp";
264 };
Michal Simek4bc77342021-05-10 16:02:15 +0200265
Michal Simekabedc0b2021-06-10 17:59:46 +0200266 mux {
267 function = "ethernet3";
268 groups = "ethernet3_0_grp";
269 };
270 };
Michal Simek4bc77342021-05-10 16:02:15 +0200271
Michal Simekabedc0b2021-06-10 17:59:46 +0200272 pinctrl_usb0_default: usb0-default {
273 conf {
274 groups = "usb0_0_grp";
275 slew-rate = <SLEW_RATE_SLOW>;
276 power-source = <IO_STANDARD_LVCMOS18>;
277 };
Michal Simek4bc77342021-05-10 16:02:15 +0200278
Michal Simekabedc0b2021-06-10 17:59:46 +0200279 conf-rx {
280 pins = "MIO52", "MIO53", "MIO55";
281 bias-high-impedance;
282 };
Michal Simek4bc77342021-05-10 16:02:15 +0200283
Michal Simekabedc0b2021-06-10 17:59:46 +0200284 conf-tx {
285 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
286 "MIO60", "MIO61", "MIO62", "MIO63";
287 bias-disable;
288 };
Michal Simek4bc77342021-05-10 16:02:15 +0200289
Michal Simekabedc0b2021-06-10 17:59:46 +0200290 mux {
291 groups = "usb0_0_grp";
292 function = "usb0";
293 };
294 };
Michal Simek4bc77342021-05-10 16:02:15 +0200295
Michal Simekabedc0b2021-06-10 17:59:46 +0200296 pinctrl_sdhci1_default: sdhci1-default {
297 conf {
298 groups = "sdio1_0_grp";
299 slew-rate = <SLEW_RATE_SLOW>;
300 power-source = <IO_STANDARD_LVCMOS18>;
301 bias-disable;
302 };
Michal Simek4bc77342021-05-10 16:02:15 +0200303
Michal Simekabedc0b2021-06-10 17:59:46 +0200304 conf-cd {
305 groups = "sdio1_cd_0_grp";
306 bias-high-impedance;
307 bias-pull-up;
308 slew-rate = <SLEW_RATE_SLOW>;
309 power-source = <IO_STANDARD_LVCMOS18>;
310 };
Michal Simek4bc77342021-05-10 16:02:15 +0200311
Michal Simekabedc0b2021-06-10 17:59:46 +0200312 mux-cd {
313 groups = "sdio1_cd_0_grp";
314 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200315 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200316
317 mux {
318 groups = "sdio1_0_grp";
319 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200320 };
321 };
322};
Michal Simekabedc0b2021-06-10 17:59:46 +0200323
324&uart1 {
325 status = "okay";
326 pinctrl-names = "default";
327 pinctrl-0 = <&pinctrl_uart1_default>;
328};