Debian Codegraph @

scripts/dtc/include-prefixes/arm64/xilinx/zynqmp-sck-kv-g-revA.dtso

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * dts file for KV260 revA Carrier Card
4 *
5 * (C) Copyright 2020 - 2022, Xilinx, Inc.
6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
7 *
8 * SD level shifter:
9 * "A" - A01 board un-modified (NXP)
10 * "Y" - A01 board modified with legacy interposer (Nexperia)
11 * "Z" - A01 board modified with Diode interposer
12 *
13 * Michal Simek <[email protected]>
14 */
15
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/net/ti-dp83867.h>
18 #include <dt-bindings/phy/phy.h>
19 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
20
21 /dts-v1/;
22 /plugin/;
23
24 &{/} {
25 compatible = "xlnx,zynqmp-sk-kv260-revA",
26 "xlnx,zynqmp-sk-kv260-revY",
27 "xlnx,zynqmp-sk-kv260-revZ",
28 "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp";
29 model = "ZynqMP KV260 revA";
30
31 aliases {
32 ethernet0 = "/axi/ethernet@ff0e0000"; /* &gem3 */
33 };
34
35 si5332_0: si5332-0 { /* u17 */
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <125000000>;
39 };
40
41 si5332_1: si5332-1 { /* u17 */
42 compatible = "fixed-clock";
43 #clock-cells = <0>;
44 clock-frequency = <25000000>;
45 };
46
47 si5332_2: si5332-2 { /* u17 */
48 compatible = "fixed-clock";
49 #clock-cells = <0>;
50 clock-frequency = <48000000>;
51 };
52
53 si5332_3: si5332-3 { /* u17 */
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <24000000>;
57 };
58
59 si5332_4: si5332-4 { /* u17 */
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <26000000>;
63 };
64
65 si5332_5: si5332-5 { /* u17 */
66 compatible = "fixed-clock";
67 #clock-cells = <0>;
68 clock-frequency = <27000000>;
69 };
70 dpcon {
71 compatible = "dp-connector";
72 label = "P11";
73 type = "full-size";
74
75 port {
76 dpcon_in: endpoint {
77 remote-endpoint = <&dpsub_dp_out>;
78 };
79 };
80 };
81 };
82
83 &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
84 #address-cells = <1>;
85 #size-cells = <0>;
86 pinctrl-names = "default", "gpio";
87 pinctrl-0 = <&pinctrl_i2c1_default>;
88 pinctrl-1 = <&pinctrl_i2c1_gpio>;
89 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
90 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
91
92 u14: ina260@40 { /* u14 */
93 compatible = "ti,ina260";
94 label = "ina260-u14";
95 reg = <0x40>;
96 };
97 /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
98 };
99
100 /* DP/USB 3.0 and SATA */
101 &psgtr {
102 status = "okay";
103 /* pcie, usb3, sata */
104 clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
105 clock-names = "ref0", "ref1", "ref2";
106 };
107
108 &sata {
109 status = "okay";
110 /* SATA OOB timing settings */
111 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
112 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
113 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
114 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
115 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
116 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
117 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
118 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
119 phy-names = "sata-phy";
120 phys = <&psgtr 3 PHY_TYPE_SATA 1 2>;
121 };
122
123 &zynqmp_dpsub {
124 status = "okay";
125 phy-names = "dp-phy0", "dp-phy1";
126 phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
127 assigned-clock-rates = <27000000>, <25000000>, <300000000>;
128 };
129
130 &out_dp {
131 dpsub_dp_out: endpoint {
132 remote-endpoint = <&dpcon_in>;
133 };
134 };
135
136 &zynqmp_dpdma {
137 status = "okay";
138 assigned-clock-rates = <600000000>;
139 };
140
141 &usb0 {
142 status = "okay";
143 pinctrl-names = "default";
144 pinctrl-0 = <&pinctrl_usb0_default>;
145 phy-names = "usb3-phy";
146 phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
147 };
148
149 &dwc3_0 {
150 status = "okay";
151 dr_mode = "host";
152 snps,usb3_lpm_capable;
153 maximum-speed = "super-speed";
154 #address-cells = <1>;
155 #size-cells = <0>;
156
157 /* 2.0 hub on port 1 */
158 hub_2_0: hub@1 {
159 compatible = "usb424,2744";
160 reg = <1>;
161 peer-hub = <&hub_3_0>;
162 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
163 };
164
165 /* 3.0 hub on port 2 */
166 hub_3_0: hub@2 {
167 compatible = "usb424,5744";
168 reg = <2>;
169 peer-hub = <&hub_2_0>;
170 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
171 };
172 };
173
174 &sdhci1 { /* on CC with tuned parameters */
175 status = "okay";
176 pinctrl-names = "default";
177 pinctrl-0 = <&pinctrl_sdhci1_default>;
178 /*
179 * SD 3.0 requires level shifter and this property
180 * should be removed if the board has level shifter and
181 * need to work in UHS mode
182 */
183 no-1-8-v;
184 disable-wp;
185 xlnx,mio-bank = <1>;
186 assigned-clock-rates = <187498123>;
187 bus-width = <4>;
188 };
189
190 &gem3 {
191 status = "okay";
192 pinctrl-names = "default";
193 pinctrl-0 = <&pinctrl_gem3_default>;
194 phy-handle = <&phy0>;
195 phy-mode = "rgmii-id";
196 assigned-clock-rates = <250000000>;
197
198 mdio: mdio {
199 #address-cells = <1>;
200 #size-cells = <0>;
201
202 phy0: ethernet-phy@1 {
203 #phy-cells = <1>;
204 reg = <1>;
205 compatible = "ethernet-phy-id2000.a231";
206 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
207 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
208 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
209 ti,dp83867-rxctrl-strap-quirk;
210 reset-assert-us = <100>;
211 reset-deassert-us = <280>;
212 reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
213 };
214 };
215 };
216
217 &pinctrl0 {
218 status = "okay";
219
220 pinctrl_gpio0_default: gpio0-default {
221 conf {
222 groups = "gpio0_38_grp";
223 bias-pull-up;
224 power-source = <IO_STANDARD_LVCMOS18>;
225 };
226
227 mux {
228 groups = "gpio0_38_grp";
229 function = "gpio0";
230 };
231
232 conf-tx {
233 pins = "MIO38";
234 bias-disable;
235 output-enable;
236 };
237 };
238
239 pinctrl_uart1_default: uart1-default {
240 conf {
241 groups = "uart1_9_grp";
242 slew-rate = <SLEW_RATE_SLOW>;
243 power-source = <IO_STANDARD_LVCMOS18>;
244 drive-strength = <12>;
245 };
246
247 conf-rx {
248 pins = "MIO37";
249 bias-high-impedance;
250 };
251
252 conf-tx {
253 pins = "MIO36";
254 bias-disable;
255 output-enable;
256 };
257
258 mux {
259 groups = "uart1_9_grp";
260 function = "uart1";
261 };
262 };
263
264 pinctrl_i2c1_default: i2c1-default {
265 conf {
266 groups = "i2c1_6_grp";
267 bias-pull-up;
268 slew-rate = <SLEW_RATE_SLOW>;
269 power-source = <IO_STANDARD_LVCMOS18>;
270 };
271
272 mux {
273 groups = "i2c1_6_grp";
274 function = "i2c1";
275 };
276 };
277
278 pinctrl_i2c1_gpio: i2c1-gpio-grp {
279 conf {
280 groups = "gpio0_24_grp", "gpio0_25_grp";
281 slew-rate = <SLEW_RATE_SLOW>;
282 power-source = <IO_STANDARD_LVCMOS18>;
283 };
284
285 mux {
286 groups = "gpio0_24_grp", "gpio0_25_grp";
287 function = "gpio0";
288 };
289 };
290
291 pinctrl_gem3_default: gem3-default {
292 conf {
293 groups = "ethernet3_0_grp";
294 slew-rate = <SLEW_RATE_SLOW>;
295 power-source = <IO_STANDARD_LVCMOS18>;
296 };
297
298 conf-rx {
299 pins = "MIO70", "MIO72", "MIO74";
300 bias-high-impedance;
301 low-power-disable;
302 };
303
304 conf-bootstrap {
305 pins = "MIO71", "MIO73", "MIO75";
306 bias-disable;
307 output-enable;
308 low-power-disable;
309 };
310
311 conf-tx {
312 pins = "MIO64", "MIO65", "MIO66",
313 "MIO67", "MIO68", "MIO69";
314 bias-disable;
315 output-enable;
316 low-power-enable;
317 };
318
319 conf-mdio {
320 groups = "mdio3_0_grp";
321 slew-rate = <SLEW_RATE_SLOW>;
322 power-source = <IO_STANDARD_LVCMOS18>;
323 bias-disable;
324 output-enable;
325 };
326
327 mux-mdio {
328 function = "mdio3";
329 groups = "mdio3_0_grp";
330 };
331
332 mux {
333 function = "ethernet3";
334 groups = "ethernet3_0_grp";
335 };
336 };
337
338 pinctrl_usb0_default: usb0-default {
339 conf {
340 groups = "usb0_0_grp";
341 power-source = <IO_STANDARD_LVCMOS18>;
342 };
343
344 conf-rx {
345 pins = "MIO52", "MIO53", "MIO55";
346 bias-high-impedance;
347 drive-strength = <12>;
348 slew-rate = <SLEW_RATE_FAST>;
349 };
350
351 conf-tx {
352 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
353 "MIO60", "MIO61", "MIO62", "MIO63";
354 bias-disable;
355 output-enable;
356 drive-strength = <4>;
357 slew-rate = <SLEW_RATE_SLOW>;
358 };
359
360 mux {
361 groups = "usb0_0_grp";
362 function = "usb0";
363 };
364 };
365
366 pinctrl_sdhci1_default: sdhci1-default {
367 conf {
368 groups = "sdio1_0_grp";
369 slew-rate = <SLEW_RATE_SLOW>;
370 power-source = <IO_STANDARD_LVCMOS18>;
371 bias-disable;
372 output-enable;
373 };
374
375 conf-cd {
376 groups = "sdio1_cd_0_grp";
377 bias-high-impedance;
378 bias-pull-up;
379 slew-rate = <SLEW_RATE_SLOW>;
380 power-source = <IO_STANDARD_LVCMOS18>;
381 };
382
383 mux-cd {
384 groups = "sdio1_cd_0_grp";
385 function = "sdio1_cd";
386 };
387
388 mux {
389 groups = "sdio1_0_grp";
390 function = "sdio1";
391 };
392 };
393 };
394
395 &gpio {
396 status = "okay";
397 pinctrl-names = "default";
398 pinctrl-0 = <&pinctrl_gpio0_default>;
399 };
400
401 &uart1 {
402 status = "okay";
403 pinctrl-names = "default";
404 pinctrl-0 = <&pinctrl_uart1_default>;
405 };