Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * dts file for KD240 revA Carrier Card
4 *
5 * Copyright (C) 2021 - 2022, Xilinx, Inc.
6 * Copyright (C) 2022 - 2023, Advanced Micro Devices, Inc.
7 *
8 * Michal Simek <[email protected]>
9 */
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/phy/phy.h>
13 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
14
15 /dts-v1/;
16 /plugin/;
17
18 &{/} {
19 compatible = "xlnx,zynqmp-sk-kd240-rev1",
20 "xlnx,zynqmp-sk-kd240-revB",
21 "xlnx,zynqmp-sk-kd240-revA",
22 "xlnx,zynqmp-sk-kd240", "xlnx,zynqmp";
23 model = "ZynqMP KD240 revA/B/1";
24
25 aliases {
26 ethernet0 = "/axi/ethernet@ff0c0000"; /* &gem1 */
27 };
28
29 clk_26: clock2 { /* u17 - USB */
30 compatible = "fixed-clock";
31 #clock-cells = <0>;
32 clock-frequency = <26000000>;
33 };
34
35 clk_25_0: clock4 { /* u92/u91 - GEM2 */
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <25000000>;
39 };
40
41 clk_25_1: clock5 { /* u92/u91 - GEM3 */
42 compatible = "fixed-clock";
43 #clock-cells = <0>;
44 clock-frequency = <25000000>;
45 };
46 };
47
48 &can0 {
49 status = "okay";
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_can0_default>;
52 };
53
54 &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
55 #address-cells = <1>;
56 #size-cells = <0>;
57 pinctrl-names = "default", "gpio";
58 pinctrl-0 = <&pinctrl_i2c1_default>;
59 pinctrl-1 = <&pinctrl_i2c1_gpio>;
60 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
61 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
62
63 u3: ina260@40 { /* u3 */
64 compatible = "ti,ina260";
65 label = "ina260-u14";
66 reg = <0x40>;
67 };
68
69 slg7xl45106: gpio@11 { /* u13 - reset logic */
70 compatible = "dlg,slg7xl45106";
71 reg = <0x11>;
72 gpio-controller;
73 #gpio-cells = <2>;
74 gpio-line-names = "USB0_PHY_RESET_B", "",
75 "SD_RESET_B", "USB0_HUB_RESET_B",
76 "", "PS_GEM0_RESET_B",
77 "", "";
78 };
79
80 hub: usb-hub@2d { /* u36 */
81 compatible = "microchip,usb5744";
82 reg = <0x2d>;
83 };
84 };
85
86 /* USB 3.0 */
87 &psgtr {
88 status = "okay";
89 /* usb */
90 clocks = <&clk_26>;
91 clock-names = "ref2";
92 };
93
94 &usb0 { /* mio52 - mio63 */
95 status = "okay";
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_usb0_default>;
98 phy-names = "usb3-phy";
99 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
100 reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
101 assigned-clock-rates = <250000000>, <20000000>;
102 };
103
104 &dwc3_0 {
105 status = "okay";
106 dr_mode = "host";
107 snps,usb3_lpm_capable;
108 maximum-speed = "super-speed";
109 #address-cells = <1>;
110 #size-cells = <0>;
111
112 /* 2.0 hub on port 1 */
113 hub_2_0: hub@1 {
114 compatible = "usb424,2744";
115 reg = <1>;
116 peer-hub = <&hub_3_0>;
117 i2c-bus = <&hub>;
118 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
119 };
120
121 /* 3.0 hub on port 2 */
122 hub_3_0: hub@2 {
123 compatible = "usb424,5744";
124 reg = <2>;
125 peer-hub = <&hub_2_0>;
126 i2c-bus = <&hub>;
127 reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
128 };
129 };
130
131 &gem1 { /* mdio mio50/51 */
132 status = "okay";
133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_gem1_default>;
135 assigned-clock-rates = <250000000>;
136
137 phy-handle = <&phy0>;
138 phy-mode = "rgmii-id";
139 mdio: mdio {
140 #address-cells = <1>;
141 #size-cells = <0>;
142 phy0: ethernet-phy@8 { /* Adin u31 */
143 #phy-cells = <1>;
144 compatible = "ethernet-phy-id0283.bc30";
145 reg = <8>;
146 adi,rx-internal-delay-ps = <2000>;
147 adi,tx-internal-delay-ps = <2000>;
148 adi,fifo-depth-bits = <8>;
149 reset-assert-us = <10>;
150 reset-deassert-us = <5000>;
151 reset-gpios = <&gpio 77 GPIO_ACTIVE_LOW>;
152 };
153 };
154 };
155
156 /* 2 more ethernet phys u32@2 and u34@3 */
157
158 &pinctrl0 { /* required by spec */
159 status = "okay";
160
161 pinctrl_can0_default: can0-default {
162 mux {
163 function = "can0";
164 groups = "can0_16_grp";
165 };
166
167 conf {
168 groups = "can0_16_grp";
169 slew-rate = <SLEW_RATE_SLOW>;
170 power-source = <IO_STANDARD_LVCMOS18>;
171 };
172
173 conf-rx {
174 pins = "MIO66";
175 bias-pull-up;
176 };
177
178 conf-tx {
179 pins = "MIO67";
180 bias-pull-up;
181 drive-strength = <4>;
182 };
183 };
184
185 pinctrl_uart0_default: uart0-default {
186 conf {
187 groups = "uart0_17_grp";
188 slew-rate = <SLEW_RATE_SLOW>;
189 power-source = <IO_STANDARD_LVCMOS18>;
190 drive-strength = <12>;
191 };
192
193 conf-rx {
194 pins = "MIO70";
195 bias-high-impedance;
196 };
197
198 conf-tx {
199 pins = "MIO71";
200 bias-disable;
201 };
202
203 mux {
204 groups = "uart0_17_grp";
205 function = "uart0";
206 };
207 };
208
209 pinctrl_uart1_default: uart1-default {
210 conf {
211 groups = "uart1_9_grp";
212 slew-rate = <SLEW_RATE_SLOW>;
213 power-source = <IO_STANDARD_LVCMOS18>;
214 drive-strength = <12>;
215 };
216
217 conf-rx {
218 pins = "MIO37";
219 bias-high-impedance;
220 };
221
222 conf-tx {
223 pins = "MIO36";
224 bias-disable;
225 output-enable;
226 };
227
228 mux {
229 groups = "uart1_9_grp";
230 function = "uart1";
231 };
232 };
233
234 pinctrl_i2c1_default: i2c1-default {
235 conf {
236 groups = "i2c1_6_grp";
237 bias-pull-up;
238 slew-rate = <SLEW_RATE_SLOW>;
239 power-source = <IO_STANDARD_LVCMOS18>;
240 };
241
242 mux {
243 groups = "i2c1_6_grp";
244 function = "i2c1";
245 };
246 };
247
248 pinctrl_i2c1_gpio: i2c1-gpio-grp {
249 conf {
250 groups = "gpio0_24_grp", "gpio0_25_grp";
251 slew-rate = <SLEW_RATE_SLOW>;
252 power-source = <IO_STANDARD_LVCMOS18>;
253 };
254
255 mux {
256 groups = "gpio0_24_grp", "gpio0_25_grp";
257 function = "gpio0";
258 };
259 };
260
261 pinctrl_gem1_default: gem1-default {
262 conf {
263 groups = "ethernet1_0_grp";
264 slew-rate = <SLEW_RATE_SLOW>;
265 power-source = <IO_STANDARD_LVCMOS18>;
266 };
267
268 conf-rx {
269 pins = "MIO45", "MIO46", "MIO47", "MIO48";
270 bias-disable;
271 low-power-disable;
272 };
273
274 conf-bootstrap {
275 pins = "MIO44", "MIO49";
276 bias-disable;
277 output-enable;
278 low-power-disable;
279 };
280
281 conf-tx {
282 pins = "MIO38", "MIO39", "MIO40",
283 "MIO41", "MIO42", "MIO43";
284 bias-disable;
285 output-enable;
286 low-power-enable;
287 };
288
289 conf-mdio {
290 groups = "mdio1_0_grp";
291 slew-rate = <SLEW_RATE_SLOW>;
292 power-source = <IO_STANDARD_LVCMOS18>;
293 bias-disable;
294 output-enable;
295 };
296
297 mux-mdio {
298 function = "mdio1";
299 groups = "mdio1_0_grp";
300 };
301
302 mux {
303 function = "ethernet1";
304 groups = "ethernet1_0_grp";
305 };
306 };
307
308 pinctrl_usb0_default: usb0-default {
309 conf {
310 groups = "usb0_0_grp";
311 power-source = <IO_STANDARD_LVCMOS18>;
312 };
313
314 conf-rx {
315 pins = "MIO52", "MIO53", "MIO55";
316 bias-high-impedance;
317 drive-strength = <12>;
318 slew-rate = <SLEW_RATE_FAST>;
319 };
320
321 conf-tx {
322 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
323 "MIO60", "MIO61", "MIO62", "MIO63";
324 bias-disable;
325 output-enable;
326 drive-strength = <4>;
327 slew-rate = <SLEW_RATE_SLOW>;
328 };
329
330 mux {
331 groups = "usb0_0_grp";
332 function = "usb0";
333 };
334 };
335
336 pinctrl_usb1_default: usb1-default {
337 conf {
338 groups = "usb1_0_grp";
339 power-source = <IO_STANDARD_LVCMOS18>;
340 };
341
342 conf-rx {
343 pins = "MIO64", "MIO65", "MIO67";
344 bias-high-impedance;
345 drive-strength = <12>;
346 slew-rate = <SLEW_RATE_FAST>;
347 };
348
349 conf-tx {
350 pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71",
351 "MIO72", "MIO73", "MIO74", "MIO75";
352 bias-disable;
353 output-enable;
354 drive-strength = <4>;
355 slew-rate = <SLEW_RATE_SLOW>;
356 };
357
358 mux {
359 groups = "usb1_0_grp";
360 function = "usb1";
361 };
362 };
363 };
364
365 &uart0 {
366 status = "okay";
367 rts-gpios = <&gpio 72 GPIO_ACTIVE_HIGH>;
368 linux,rs485-enabled-at-boot-time;
369 rs485-rts-delay = <10 10>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pinctrl_uart0_default>;
372 assigned-clock-rates = <100000000>;
373 };
374
375 &uart1 {
376 status = "okay";
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_uart1_default>;
379 };
380
381 &zynqmp_dpsub {
382 status = "disabled";
383 };