blob: 048d5665c57bbb86f8aebd2a2728ebcb4eeb69c7 [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
10 #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>
14
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 Simekabedc0b2021-06-10 17:59:46 +020039 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 Simek4bc77342021-05-10 16:02:15 +020046
Michal Simekabedc0b2021-06-10 17:59:46 +020047&amba {
48 ina260-u14 {
49 compatible = "iio-hwmon";
50 io-channels = <&u14 0>, <&u14 1>, <&u14 2>;
51 };
Michal Simek4bc77342021-05-10 16:02:15 +020052
Michal Simekabedc0b2021-06-10 17:59:46 +020053 si5332_0: si5332_0 { /* u17 */
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <125000000>;
57 };
Michal Simek4bc77342021-05-10 16:02:15 +020058
Michal Simekabedc0b2021-06-10 17:59:46 +020059 si5332_1: si5332_1 { /* u17 */
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <25000000>;
63 };
Michal Simek4bc77342021-05-10 16:02:15 +020064
Michal Simekabedc0b2021-06-10 17:59:46 +020065 si5332_2: si5332_2 { /* u17 */
66 compatible = "fixed-clock";
67 #clock-cells = <0>;
68 clock-frequency = <48000000>;
69 };
Michal Simek4bc77342021-05-10 16:02:15 +020070
Michal Simekabedc0b2021-06-10 17:59:46 +020071 si5332_3: si5332_3 { /* u17 */
72 compatible = "fixed-clock";
73 #clock-cells = <0>;
74 clock-frequency = <24000000>;
75 };
Michal Simek4bc77342021-05-10 16:02:15 +020076
Michal Simekabedc0b2021-06-10 17:59:46 +020077 si5332_4: si5332_4 { /* u17 */
78 compatible = "fixed-clock";
79 #clock-cells = <0>;
80 clock-frequency = <26000000>;
81 };
Michal Simek4bc77342021-05-10 16:02:15 +020082
Michal Simekabedc0b2021-06-10 17:59:46 +020083 si5332_5: si5332_5 { /* u17 */
84 compatible = "fixed-clock";
85 #clock-cells = <0>;
86 clock-frequency = <27000000>;
Michal Simek4bc77342021-05-10 16:02:15 +020087 };
Michal Simekabedc0b2021-06-10 17:59:46 +020088};
Michal Simek4bc77342021-05-10 16:02:15 +020089
90/* DP/USB 3.0 */
Michal Simekabedc0b2021-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};
Michal Simek4bc77342021-05-10 16:02:15 +020097
Michal Simekabedc0b2021-06-10 17:59:46 +020098&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};
Michal Simek4bc77342021-05-10 16:02:15 +0200103
Michal Simekabedc0b2021-06-10 17:59:46 +0200104&zynqmp_dpdma {
105 status = "okay";
106};
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 Simekabedc0b2021-06-10 17:59:46 +0200114};
Michal Simek4bc77342021-05-10 16:02:15 +0200115
Michal Simekabedc0b2021-06-10 17:59:46 +0200116&dwc3_0 {
117 status = "okay";
118 dr_mode = "host";
119 snps,usb3_lpm_capable;
Michal Simekabedc0b2021-06-10 17:59:46 +0200120 maximum-speed = "super-speed";
121};
Michal Simek4bc77342021-05-10 16:02:15 +0200122
Michal Simekabedc0b2021-06-10 17:59:46 +0200123&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};
Michal Simek4bc77342021-05-10 16:02:15 +0200139
Michal Simekabedc0b2021-06-10 17:59:46 +0200140&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";
Michal Simek4bc77342021-05-10 16:02:15 +0200146
Michal Simekabedc0b2021-06-10 17:59:46 +0200147 mdio: mdio {
148 #address-cells = <1>;
149 #size-cells = <0>;
150 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
151 reset-delay-us = <2>;
Michal Simek4bc77342021-05-10 16:02:15 +0200152
Michal Simekabedc0b2021-06-10 17:59:46 +0200153 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;
Michal Simek4bc77342021-05-10 16:02:15 +0200160 };
161 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200162};
Michal Simek4bc77342021-05-10 16:02:15 +0200163
Michal Simekabedc0b2021-06-10 17:59:46 +0200164&pinctrl0 { /* required by spec */
165 status = "okay";
Michal Simek4bc77342021-05-10 16:02:15 +0200166
Michal Simekabedc0b2021-06-10 17:59:46 +0200167 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200174
Michal Simekabedc0b2021-06-10 17:59:46 +0200175 conf-rx {
176 pins = "MIO37";
177 bias-high-impedance;
178 };
Michal Simek4bc77342021-05-10 16:02:15 +0200179
Michal Simekabedc0b2021-06-10 17:59:46 +0200180 conf-tx {
181 pins = "MIO36";
182 bias-disable;
183 };
Michal Simek4bc77342021-05-10 16:02:15 +0200184
Michal Simekabedc0b2021-06-10 17:59:46 +0200185 mux {
186 groups = "uart1_9_grp";
187 function = "uart1";
188 };
189 };
Michal Simek4bc77342021-05-10 16:02:15 +0200190
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200198
Michal Simekabedc0b2021-06-10 17:59:46 +0200199 mux {
200 groups = "i2c1_6_grp";
201 function = "i2c1";
202 };
203 };
Michal Simek4bc77342021-05-10 16:02:15 +0200204
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200211
Michal Simekabedc0b2021-06-10 17:59:46 +0200212 mux {
213 groups = "gpio0_24_grp", "gpio0_25_grp";
214 function = "gpio0";
215 };
216 };
Michal Simek4bc77342021-05-10 16:02:15 +0200217
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200224
Michal Simekabedc0b2021-06-10 17:59:46 +0200225 conf-rx {
226 pins = "MIO70", "MIO72", "MIO74";
227 bias-high-impedance;
228 low-power-disable;
229 };
Michal Simek4bc77342021-05-10 16:02:15 +0200230
Michal Simekabedc0b2021-06-10 17:59:46 +0200231 conf-bootstrap {
232 pins = "MIO71", "MIO73", "MIO75";
233 bias-disable;
234 low-power-disable;
235 };
Michal Simek4bc77342021-05-10 16:02:15 +0200236
Michal Simekabedc0b2021-06-10 17:59:46 +0200237 conf-tx {
238 pins = "MIO64", "MIO65", "MIO66",
239 "MIO67", "MIO68", "MIO69";
240 bias-disable;
241 low-power-enable;
242 };
Michal Simek4bc77342021-05-10 16:02:15 +0200243
Michal Simekabedc0b2021-06-10 17:59:46 +0200244 conf-mdio {
245 groups = "mdio3_0_grp";
246 slew-rate = <SLEW_RATE_SLOW>;
247 power-source = <IO_STANDARD_LVCMOS18>;
248 bias-disable;
249 };
Michal Simek4bc77342021-05-10 16:02:15 +0200250
Michal Simekabedc0b2021-06-10 17:59:46 +0200251 mux-mdio {
252 function = "mdio3";
253 groups = "mdio3_0_grp";
254 };
Michal Simek4bc77342021-05-10 16:02:15 +0200255
Michal Simekabedc0b2021-06-10 17:59:46 +0200256 mux {
257 function = "ethernet3";
258 groups = "ethernet3_0_grp";
259 };
260 };
Michal Simek4bc77342021-05-10 16:02:15 +0200261
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200268
Michal Simekabedc0b2021-06-10 17:59:46 +0200269 conf-rx {
270 pins = "MIO52", "MIO53", "MIO55";
271 bias-high-impedance;
272 };
Michal Simek4bc77342021-05-10 16:02:15 +0200273
Michal Simekabedc0b2021-06-10 17:59:46 +0200274 conf-tx {
275 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
276 "MIO60", "MIO61", "MIO62", "MIO63";
277 bias-disable;
278 };
Michal Simek4bc77342021-05-10 16:02:15 +0200279
Michal Simekabedc0b2021-06-10 17:59:46 +0200280 mux {
281 groups = "usb0_0_grp";
282 function = "usb0";
283 };
284 };
Michal Simek4bc77342021-05-10 16:02:15 +0200285
Michal Simekabedc0b2021-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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200293
Michal Simekabedc0b2021-06-10 17:59:46 +0200294 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 };
Michal Simek4bc77342021-05-10 16:02:15 +0200301
Michal Simekabedc0b2021-06-10 17:59:46 +0200302 mux-cd {
303 groups = "sdio1_cd_0_grp";
304 function = "sdio1_cd";
Michal Simek4bc77342021-05-10 16:02:15 +0200305 };
Michal Simekabedc0b2021-06-10 17:59:46 +0200306
307 mux {
308 groups = "sdio1_0_grp";
309 function = "sdio1";
Michal Simek4bc77342021-05-10 16:02:15 +0200310 };
311 };
312};
Michal Simekabedc0b2021-06-10 17:59:46 +0200313
314&uart1 {
315 status = "okay";
316 pinctrl-names = "default";
317 pinctrl-0 = <&pinctrl_uart1_default>;
318};