blob: 01b14ebcb609a1093e23c05745f346a34fa966a2 [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>;
98};
Michal Simek4bc77342021-05-10 16:02:15 +020099
Michal Simekabedc0b2021-06-10 17:59:46 +0200100&zynqmp_dpdma {
101 status = "okay";
102};
Michal Simek4bc77342021-05-10 16:02:15 +0200103
Michal Simekabedc0b2021-06-10 17:59:46 +0200104&usb0 {
105 status = "okay";
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600108 phy-names = "usb3-phy";
109 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
Michal Simek1a9fe832022-02-23 16:17:37 +0100110
111 usb5744: usb-hub { /* u43 */
112 status = "okay";
113 compatible = "microchip,usb5744";
114 i2c-bus = <&i2c1>;
115 reset-gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
116 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200117};
Michal Simek4bc77342021-05-10 16:02:15 +0200118
Michal Simekabedc0b2021-06-10 17:59:46 +0200119&dwc3_0 {
120 status = "okay";
121 dr_mode = "host";
122 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200123 maximum-speed = "super-speed";
124};
Michal Simek4bc77342021-05-10 16:02:15 +0200125
Michal Simekabedc0b2021-06-10 17:59:46 +0200126&sdhci1 { /* on CC with tuned parameters */
127 status = "okay";
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_sdhci1_default>;
130 /*
131 * SD 3.0 requires level shifter and this property
132 * should be removed if the board has level shifter and
133 * need to work in UHS mode
134 */
135 no-1-8-v;
136 disable-wp;
137 xlnx,mio-bank = <1>;
138 clk-phase-sd-hs = <126>, <60>;
139 clk-phase-uhs-sdr25 = <120>, <60>;
140 clk-phase-uhs-ddr50 = <126>, <48>;
141};
Michal Simek4bc77342021-05-10 16:02:15 +0200142
Michal Simekabedc0b2021-06-10 17:59:46 +0200143&gem3 { /* required by spec */
144 status = "okay";
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_gem3_default>;
147 phy-handle = <&phy0>;
148 phy-mode = "rgmii-id";
Michal Simek4bc77342021-05-10 16:02:15 +0200149
Michal Simekabedc0b2021-06-10 17:59:46 +0200150 mdio: mdio {
151 #address-cells = <1>;
152 #size-cells = <0>;
153 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
154 reset-delay-us = <2>;
Michal Simek4bc77342021-05-10 16:02:15 +0200155
Michal Simekabedc0b2021-06-10 17:59:46 +0200156 phy0: ethernet-phy@1 {
157 #phy-cells = <1>;
158 reg = <1>;
159 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
160 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
161 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
162 ti,dp83867-rxctrl-strap-quirk;
Michal Simek4bc77342021-05-10 16:02:15 +0200163 };
164 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200165};
Michal Simek4bc77342021-05-10 16:02:15 +0200166
Michal Simekabedc0b2021-06-10 17:59:46 +0200167&pinctrl0 { /* required by spec */
168 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200169
Michal Simekabedc0b2021-06-10 17:59:46 +0200170 pinctrl_uart1_default: uart1-default {
171 conf {
172 groups = "uart1_9_grp";
173 slew-rate = <SLEW_RATE_SLOW>;
174 power-source = <IO_STANDARD_LVCMOS18>;
175 drive-strength = <12>;
176 };
Michal Simek4bc77342021-05-10 16:02:15 +0200177
Michal Simekabedc0b2021-06-10 17:59:46 +0200178 conf-rx {
179 pins = "MIO37";
180 bias-high-impedance;
181 };
Michal Simek4bc77342021-05-10 16:02:15 +0200182
Michal Simekabedc0b2021-06-10 17:59:46 +0200183 conf-tx {
184 pins = "MIO36";
185 bias-disable;
186 };
Michal Simek4bc77342021-05-10 16:02:15 +0200187
Michal Simekabedc0b2021-06-10 17:59:46 +0200188 mux {
189 groups = "uart1_9_grp";
190 function = "uart1";
191 };
192 };
Michal Simek4bc77342021-05-10 16:02:15 +0200193
Michal Simekabedc0b2021-06-10 17:59:46 +0200194 pinctrl_i2c1_default: i2c1-default {
195 conf {
196 groups = "i2c1_6_grp";
197 bias-pull-up;
198 slew-rate = <SLEW_RATE_SLOW>;
199 power-source = <IO_STANDARD_LVCMOS18>;
200 };
Michal Simek4bc77342021-05-10 16:02:15 +0200201
Michal Simekabedc0b2021-06-10 17:59:46 +0200202 mux {
203 groups = "i2c1_6_grp";
204 function = "i2c1";
205 };
206 };
Michal Simek4bc77342021-05-10 16:02:15 +0200207
Michal Simekabedc0b2021-06-10 17:59:46 +0200208 pinctrl_i2c1_gpio: i2c1-gpio {
209 conf {
210 groups = "gpio0_24_grp", "gpio0_25_grp";
211 slew-rate = <SLEW_RATE_SLOW>;
212 power-source = <IO_STANDARD_LVCMOS18>;
213 };
Michal Simek4bc77342021-05-10 16:02:15 +0200214
Michal Simekabedc0b2021-06-10 17:59:46 +0200215 mux {
216 groups = "gpio0_24_grp", "gpio0_25_grp";
217 function = "gpio0";
218 };
219 };
Michal Simek4bc77342021-05-10 16:02:15 +0200220
Michal Simekabedc0b2021-06-10 17:59:46 +0200221 pinctrl_gem3_default: gem3-default {
222 conf {
223 groups = "ethernet3_0_grp";
224 slew-rate = <SLEW_RATE_SLOW>;
225 power-source = <IO_STANDARD_LVCMOS18>;
226 };
Michal Simek4bc77342021-05-10 16:02:15 +0200227
Michal Simekabedc0b2021-06-10 17:59:46 +0200228 conf-rx {
229 pins = "MIO70", "MIO72", "MIO74";
230 bias-high-impedance;
231 low-power-disable;
232 };
Michal Simek4bc77342021-05-10 16:02:15 +0200233
Michal Simekabedc0b2021-06-10 17:59:46 +0200234 conf-bootstrap {
235 pins = "MIO71", "MIO73", "MIO75";
236 bias-disable;
237 low-power-disable;
238 };
Michal Simek4bc77342021-05-10 16:02:15 +0200239
Michal Simekabedc0b2021-06-10 17:59:46 +0200240 conf-tx {
241 pins = "MIO64", "MIO65", "MIO66",
242 "MIO67", "MIO68", "MIO69";
243 bias-disable;
244 low-power-enable;
245 };
Michal Simek4bc77342021-05-10 16:02:15 +0200246
Michal Simekabedc0b2021-06-10 17:59:46 +0200247 conf-mdio {
248 groups = "mdio3_0_grp";
249 slew-rate = <SLEW_RATE_SLOW>;
250 power-source = <IO_STANDARD_LVCMOS18>;
251 bias-disable;
252 };
Michal Simek4bc77342021-05-10 16:02:15 +0200253
Michal Simekabedc0b2021-06-10 17:59:46 +0200254 mux-mdio {
255 function = "mdio3";
256 groups = "mdio3_0_grp";
257 };
Michal Simek4bc77342021-05-10 16:02:15 +0200258
Michal Simekabedc0b2021-06-10 17:59:46 +0200259 mux {
260 function = "ethernet3";
261 groups = "ethernet3_0_grp";
262 };
263 };
Michal Simek4bc77342021-05-10 16:02:15 +0200264
Michal Simekabedc0b2021-06-10 17:59:46 +0200265 pinctrl_usb0_default: usb0-default {
266 conf {
267 groups = "usb0_0_grp";
268 slew-rate = <SLEW_RATE_SLOW>;
269 power-source = <IO_STANDARD_LVCMOS18>;
270 };
Michal Simek4bc77342021-05-10 16:02:15 +0200271
Michal Simekabedc0b2021-06-10 17:59:46 +0200272 conf-rx {
273 pins = "MIO52", "MIO53", "MIO55";
274 bias-high-impedance;
275 };
Michal Simek4bc77342021-05-10 16:02:15 +0200276
Michal Simekabedc0b2021-06-10 17:59:46 +0200277 conf-tx {
278 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
279 "MIO60", "MIO61", "MIO62", "MIO63";
280 bias-disable;
281 };
Michal Simek4bc77342021-05-10 16:02:15 +0200282
Michal Simekabedc0b2021-06-10 17:59:46 +0200283 mux {
284 groups = "usb0_0_grp";
285 function = "usb0";
286 };
287 };
Michal Simek4bc77342021-05-10 16:02:15 +0200288
Michal Simekabedc0b2021-06-10 17:59:46 +0200289 pinctrl_sdhci1_default: sdhci1-default {
290 conf {
291 groups = "sdio1_0_grp";
292 slew-rate = <SLEW_RATE_SLOW>;
293 power-source = <IO_STANDARD_LVCMOS18>;
294 bias-disable;
295 };
Michal Simek4bc77342021-05-10 16:02:15 +0200296
Michal Simekabedc0b2021-06-10 17:59:46 +0200297 conf-cd {
298 groups = "sdio1_cd_0_grp";
299 bias-high-impedance;
300 bias-pull-up;
301 slew-rate = <SLEW_RATE_SLOW>;
302 power-source = <IO_STANDARD_LVCMOS18>;
303 };
Michal Simek4bc77342021-05-10 16:02:15 +0200304
Michal Simekabedc0b2021-06-10 17:59:46 +0200305 mux-cd {
306 groups = "sdio1_cd_0_grp";
307 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200308 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200309
310 mux {
311 groups = "sdio1_0_grp";
312 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200313 };
314 };
315};
Michal Simekabedc0b2021-06-10 17:59:46 +0200316
317&uart1 {
318 status = "okay";
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_uart1_default>;
321};