Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am642-evm.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /*
3 * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6 /dts-v1/;
7
8 #include <dt-bindings/phy/phy.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/net/ti-dp83867.h>
12 #include "k3-am642.dtsi"
13
14 #include "k3-serdes.h"
15
16 / {
17 compatible = "ti,am642-evm", "ti,am642";
18 model = "Texas Instruments AM642 EVM";
19
20 chosen {
21 stdout-path = &main_uart0;
22 };
23
24 aliases {
25 serial0 = &mcu_uart0;
26 serial1 = &main_uart1;
27 serial2 = &main_uart0;
28 serial3 = &main_uart3;
29 i2c0 = &main_i2c0;
30 i2c1 = &main_i2c1;
31 mmc0 = &sdhci0;
32 mmc1 = &sdhci1;
33 ethernet0 = &cpsw_port1;
34 ethernet1 = &cpsw_port2;
35 ethernet2 = &icssg1_emac0;
36 };
37
38 memory@80000000 {
39 bootph-all;
40 device_type = "memory";
41 /* 2G RAM */
42 reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
43 };
44
45 reserved_memory: reserved-memory {
46 #address-cells = <2>;
47 #size-cells = <2>;
48 ranges;
49
50 secure_ddr: optee@9e800000 {
51 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
52 alignment = <0x1000>;
53 no-map;
54 };
55
56 main_r5fss0_core0_dma_memory_region: memory@a0000000 {
57 compatible = "shared-dma-pool";
58 reg = <0x00 0xa0000000 0x00 0x100000>;
59 no-map;
60 };
61
62 main_r5fss0_core0_memory_region: memory@a0100000 {
63 compatible = "shared-dma-pool";
64 reg = <0x00 0xa0100000 0x00 0xf00000>;
65 no-map;
66 };
67 };
68
69 evm_12v0: regulator-0 {
70 /* main DC jack */
71 bootph-all;
72 compatible = "regulator-fixed";
73 regulator-name = "evm_12v0";
74 regulator-min-microvolt = <12000000>;
75 regulator-max-microvolt = <12000000>;
76 regulator-always-on;
77 regulator-boot-on;
78 };
79
80 vsys_5v0: regulator-1 {
81 /* output of LM5140 */
82 compatible = "regulator-fixed";
83 regulator-name = "vsys_5v0";
84 regulator-min-microvolt = <5000000>;
85 regulator-max-microvolt = <5000000>;
86 vin-supply = <&evm_12v0>;
87 regulator-always-on;
88 regulator-boot-on;
89 };
90
91 vsys_3v3: regulator-2 {
92 /* output of LM5140 */
93 bootph-all;
94 compatible = "regulator-fixed";
95 regulator-name = "vsys_3v3";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
98 vin-supply = <&evm_12v0>;
99 regulator-always-on;
100 regulator-boot-on;
101 };
102
103 vdd_mmc1: regulator-3 {
104 /* TPS2051BD */
105 bootph-all;
106 compatible = "regulator-fixed";
107 regulator-name = "vdd_mmc1";
108 regulator-min-microvolt = <3300000>;
109 regulator-max-microvolt = <3300000>;
110 regulator-boot-on;
111 enable-active-high;
112 vin-supply = <&vsys_3v3>;
113 gpio = <&exp1 6 GPIO_ACTIVE_HIGH>;
114 };
115
116 vddb: regulator-4 {
117 compatible = "regulator-fixed";
118 regulator-name = "vddb_3v3_display";
119 regulator-min-microvolt = <3300000>;
120 regulator-max-microvolt = <3300000>;
121 vin-supply = <&vsys_3v3>;
122 regulator-always-on;
123 regulator-boot-on;
124 };
125
126 vtt_supply: regulator-5 {
127 bootph-all;
128 compatible = "regulator-fixed";
129 regulator-name = "vtt";
130 pinctrl-names = "default";
131 pinctrl-0 = <&ddr_vtt_pins_default>;
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
134 gpio = <&main_gpio0 12 GPIO_ACTIVE_HIGH>;
135 vin-supply = <&vsys_3v3>;
136 enable-active-high;
137 regulator-always-on;
138 regulator-boot-on;
139 };
140
141 leds {
142 compatible = "gpio-leds";
143
144 led-0 {
145 label = "am64-evm:red:heartbeat";
146 gpios = <&exp1 16 GPIO_ACTIVE_HIGH>;
147 linux,default-trigger = "heartbeat";
148 function = LED_FUNCTION_HEARTBEAT;
149 default-state = "off";
150 };
151 };
152
153 mdio_mux: mux-controller {
154 compatible = "gpio-mux";
155 #mux-control-cells = <0>;
156
157 mux-gpios = <&exp1 12 GPIO_ACTIVE_HIGH>;
158 };
159
160 mdio_mux_1: mdio-mux-1 {
161 compatible = "mdio-mux-multiplexer";
162 mux-controls = <&mdio_mux>;
163 mdio-parent-bus = <&cpsw3g_mdio>;
164 #address-cells = <1>;
165 #size-cells = <0>;
166
167 mdio@1 {
168 reg = <0x1>;
169 #address-cells = <1>;
170 #size-cells = <0>;
171
172 cpsw3g_phy3: ethernet-phy@3 {
173 reg = <3>;
174 };
175 };
176 };
177
178 transceiver1: can-phy0 {
179 compatible = "ti,tcan1042";
180 #phy-cells = <0>;
181 max-bitrate = <5000000>;
182 standby-gpios = <&exp1 8 GPIO_ACTIVE_HIGH>;
183 };
184
185 transceiver2: can-phy1 {
186 compatible = "ti,tcan1042";
187 #phy-cells = <0>;
188 max-bitrate = <5000000>;
189 standby-gpios = <&exp1 9 GPIO_ACTIVE_HIGH>;
190 };
191
192 icssg1_eth: icssg1-eth {
193 compatible = "ti,am642-icssg-prueth";
194 pinctrl-names = "default";
195 pinctrl-0 = <&icssg1_rgmii1_pins_default>;
196 sram = <&oc_sram>;
197 ti,prus = <&pru1_0>, <&rtu1_0>, <&tx_pru1_0>, <&pru1_1>, <&rtu1_1>, <&tx_pru1_1>;
198 firmware-name = "ti-pruss/am64x-sr2-pru0-prueth-fw.elf",
199 "ti-pruss/am64x-sr2-rtu0-prueth-fw.elf",
200 "ti-pruss/am64x-sr2-txpru0-prueth-fw.elf",
201 "ti-pruss/am64x-sr2-pru1-prueth-fw.elf",
202 "ti-pruss/am64x-sr2-rtu1-prueth-fw.elf",
203 "ti-pruss/am64x-sr2-txpru1-prueth-fw.elf";
204
205 ti,pruss-gp-mux-sel = <2>, /* MII mode */
206 <2>,
207 <2>,
208 <2>, /* MII mode */
209 <2>,
210 <2>;
211 ti,mii-g-rt = <&icssg1_mii_g_rt>;
212 ti,mii-rt = <&icssg1_mii_rt>;
213 ti,iep = <&icssg1_iep0>, <&icssg1_iep1>;
214 ti,pa-stats = <&icssg1_pa_stats>;
215 interrupt-parent = <&icssg1_intc>;
216 interrupts = <24 0 2>, <25 1 3>;
217 interrupt-names = "tx_ts0", "tx_ts1";
218 dmas = <&main_pktdma 0xc200 15>, /* egress slice 0 */
219 <&main_pktdma 0xc201 15>, /* egress slice 0 */
220 <&main_pktdma 0xc202 15>, /* egress slice 0 */
221 <&main_pktdma 0xc203 15>, /* egress slice 0 */
222 <&main_pktdma 0xc204 15>, /* egress slice 1 */
223 <&main_pktdma 0xc205 15>, /* egress slice 1 */
224 <&main_pktdma 0xc206 15>, /* egress slice 1 */
225 <&main_pktdma 0xc207 15>, /* egress slice 1 */
226 <&main_pktdma 0x4200 15>, /* ingress slice 0 */
227 <&main_pktdma 0x4201 15>; /* ingress slice 1 */
228 dma-names = "tx0-0", "tx0-1", "tx0-2", "tx0-3",
229 "tx1-0", "tx1-1", "tx1-2", "tx1-3",
230 "rx0", "rx1";
231
232 ethernet-ports {
233 #address-cells = <1>;
234 #size-cells = <0>;
235 icssg1_emac0: port@0 {
236 reg = <0>;
237 phy-handle = <&icssg1_phy1>;
238 phy-mode = "rgmii-id";
239 /* Filled in by bootloader */
240 local-mac-address = [00 00 00 00 00 00];
241 };
242 icssg1_emac1: port@1 {
243 reg = <1>;
244 /* Filled in by bootloader */
245 local-mac-address = [00 00 00 00 00 00];
246 status = "disabled";
247 };
248 };
249 };
250 };
251
252 &main_pmx0 {
253 main_mmc1_pins_default: main-mmc1-default-pins {
254 pinctrl-single,pins = <
255 AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */
256 AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */
257 AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */
258 AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */
259 AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */
260 AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */
261 AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
262 AM64X_IOPAD(0x029c, PIN_INPUT, 0) /* (C20) MMC1_SDWP */
263 AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* MMC1_CLKLB */
264 >;
265 };
266
267 main_uart1_pins_default: main-uart1-default-pins {
268 pinctrl-single,pins = <
269 AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */
270 AM64X_IOPAD(0x024c, PIN_OUTPUT, 0) /* (E16) UART1_RTSn */
271 AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */
272 AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */
273 >;
274 };
275
276 main_uart0_pins_default: main-uart0-default-pins {
277 bootph-all;
278 pinctrl-single,pins = <
279 AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
280 AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
281 AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
282 AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
283 >;
284 };
285
286 main_spi0_pins_default: main-spi0-default-pins {
287 pinctrl-single,pins = <
288 AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */
289 AM64X_IOPAD(0x0208, PIN_OUTPUT, 0) /* (D12) SPI0_CS0 */
290 AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */
291 AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */
292 >;
293 };
294
295 main_i2c0_pins_default: main-i2c0-default-pins {
296 bootph-all;
297 pinctrl-single,pins = <
298 AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
299 AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
300 >;
301 };
302
303 main_i2c1_pins_default: main-i2c1-default-pins {
304 bootph-all;
305 pinctrl-single,pins = <
306 AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
307 AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
308 >;
309 };
310
311 mdio1_pins_default: mdio1-default-pins {
312 bootph-all;
313 pinctrl-single,pins = <
314 AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */
315 AM64X_IOPAD(0x01f8, PIN_INPUT, 4) /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */
316 >;
317 };
318
319 rgmii1_pins_default: rgmii1-default-pins {
320 bootph-all;
321 pinctrl-single,pins = <
322 AM64X_IOPAD(0x01cc, PIN_INPUT, 4) /* (W5) PRG0_PRU1_GPO7.RGMII1_RD0 */
323 AM64X_IOPAD(0x01d4, PIN_INPUT, 4) /* (Y5) PRG0_PRU1_GPO9.RGMII1_RD1 */
324 AM64X_IOPAD(0x01d8, PIN_INPUT, 4) /* (V6) PRG0_PRU1_GPO10.RGMII1_RD2 */
325 AM64X_IOPAD(0x01f4, PIN_INPUT, 4) /* (V5) PRG0_PRU1_GPO17.RGMII1_RD3 */
326 AM64X_IOPAD(0x0188, PIN_INPUT, 4) /* (AA5) PRG0_PRU0_GPO10.RGMII1_RXC */
327 AM64X_IOPAD(0x0184, PIN_INPUT, 4) /* (W6) PRG0_PRU0_GPO9.RGMII1_RX_CTL */
328 AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */
329 AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */
330 AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */
331 AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */
332 AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */
333 AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */
334 >;
335 };
336
337 rgmii2_pins_default: rgmii2-default-pins {
338 bootph-all;
339 pinctrl-single,pins = <
340 AM64X_IOPAD(0x0108, PIN_INPUT, 4) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */
341 AM64X_IOPAD(0x010c, PIN_INPUT, 4) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */
342 AM64X_IOPAD(0x0110, PIN_INPUT, 4) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */
343 AM64X_IOPAD(0x0114, PIN_INPUT, 4) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */
344 AM64X_IOPAD(0x0120, PIN_INPUT, 4) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */
345 AM64X_IOPAD(0x0118, PIN_INPUT, 4) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */
346 AM64X_IOPAD(0x0134, PIN_OUTPUT, 4) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */
347 AM64X_IOPAD(0x0138, PIN_OUTPUT, 4) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */
348 AM64X_IOPAD(0x013c, PIN_OUTPUT, 4) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */
349 AM64X_IOPAD(0x0140, PIN_OUTPUT, 4) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */
350 AM64X_IOPAD(0x0148, PIN_OUTPUT, 4) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */
351 AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
352 >;
353 };
354
355 main_usb0_pins_default: main-usb0-default-pins {
356 bootph-all;
357 pinctrl-single,pins = <
358 AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
359 >;
360 };
361
362 ospi0_pins_default: ospi0-default-pins {
363 pinctrl-single,pins = <
364 AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (N20) OSPI0_CLK */
365 AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) /* (L19) OSPI0_CSn0 */
366 AM64X_IOPAD(0x000c, PIN_INPUT, 0) /* (M19) OSPI0_D0 */
367 AM64X_IOPAD(0x0010, PIN_INPUT, 0) /* (M18) OSPI0_D1 */
368 AM64X_IOPAD(0x0014, PIN_INPUT, 0) /* (M20) OSPI0_D2 */
369 AM64X_IOPAD(0x0018, PIN_INPUT, 0) /* (M21) OSPI0_D3 */
370 AM64X_IOPAD(0x001c, PIN_INPUT, 0) /* (P21) OSPI0_D4 */
371 AM64X_IOPAD(0x0020, PIN_INPUT, 0) /* (P20) OSPI0_D5 */
372 AM64X_IOPAD(0x0024, PIN_INPUT, 0) /* (N18) OSPI0_D6 */
373 AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */
374 AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */
375 >;
376 };
377
378 main_ecap0_pins_default: main-ecap0-default-pins {
379 pinctrl-single,pins = <
380 AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */
381 >;
382 };
383
384 main_mcan0_pins_default: main-mcan0-default-pins {
385 pinctrl-single,pins = <
386 AM64X_IOPAD(0x0254, PIN_INPUT, 0) /* (B17) MCAN0_RX */
387 AM64X_IOPAD(0x0250, PIN_OUTPUT, 0) /* (A17) MCAN0_TX */
388 >;
389 };
390
391 main_mcan1_pins_default: main-mcan1-default-pins {
392 pinctrl-single,pins = <
393 AM64X_IOPAD(0x025c, PIN_INPUT, 0) /* (D17) MCAN1_RX */
394 AM64X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (C17) MCAN1_TX */
395 >;
396 };
397
398 ddr_vtt_pins_default: ddr-vtt-default-pins {
399 bootph-all;
400 pinctrl-single,pins = <
401 AM64X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7) /* (L18) OSPI0_CSN1.GPIO0_12 */
402 >;
403 };
404
405 icssg1_mdio1_pins_default: icssg1-mdio1-default-pins {
406 pinctrl-single,pins = <
407 AM64X_IOPAD(0x015c, PIN_OUTPUT, 0) /* (Y6) PRG1_MDIO0_MDC */
408 AM64X_IOPAD(0x0158, PIN_INPUT, 0) /* (AA6) PRG1_MDIO0_MDIO */
409 >;
410 };
411
412 icssg1_rgmii1_pins_default: icssg1-rgmii1-default-pins {
413 pinctrl-single,pins = <
414 AM64X_IOPAD(0x00b8, PIN_INPUT, 2) /* (Y7) PRG1_PRU0_GPO0.PRG1_RGMII1_RD0 */
415 AM64X_IOPAD(0x00bc, PIN_INPUT, 2) /* (U8) PRG1_PRU0_GPO1.PRG1_RGMII1_RD1 */
416 AM64X_IOPAD(0x00c0, PIN_INPUT, 2) /* (W8) PRG1_PRU0_GPO2.PRG1_RGMII1_RD2 */
417 AM64X_IOPAD(0x00c4, PIN_INPUT, 2) /* (V8) PRG1_PRU0_GPO3.PRG1_RGMII1_RD3 */
418 AM64X_IOPAD(0x00d0, PIN_INPUT, 2) /* (AA7) PRG1_PRU0_GPO6.PRG1_RGMII1_RXC */
419 AM64X_IOPAD(0x00c8, PIN_INPUT, 2) /* (Y8) PRG1_PRU0_GPO4.PRG1_RGMII1_RX_CTL */
420 AM64X_IOPAD(0x00e4, PIN_INPUT, 2) /* (AA8) PRG1_PRU0_GPO11.PRG1_RGMII1_TD0 */
421 AM64X_IOPAD(0x00e8, PIN_INPUT, 2) /* (U9) PRG1_PRU0_GPO12.PRG1_RGMII1_TD1 */
422 AM64X_IOPAD(0x00ec, PIN_INPUT, 2) /* (W9) PRG1_PRU0_GPO13.PRG1_RGMII1_TD2 */
423 AM64X_IOPAD(0x00f0, PIN_INPUT, 2) /* (AA9) PRG1_PRU0_GPO14.PRG1_RGMII1_TD3 */
424 AM64X_IOPAD(0x00f8, PIN_INPUT, 2) /* (V9) PRG1_PRU0_GPO16.PRG1_RGMII1_TXC */
425 AM64X_IOPAD(0x00f4, PIN_INPUT, 2) /* (Y9) PRG1_PRU0_GPO15.PRG1_RGMII1_TX_CTL */
426 >;
427 };
428
429 icssg1_iep0_pins_default: icssg1-iep0-default-pins {
430 pinctrl-single,pins = <
431 AM64X_IOPAD(0x0104, PIN_OUTPUT, 2) /* (W7) PRG1_PRU0_GPO19.PRG1_IEP0_EDC_SYNC_OUT0 */
432 >;
433 };
434 };
435
436 &main_uart0 {
437 bootph-all;
438 status = "okay";
439 pinctrl-names = "default";
440 pinctrl-0 = <&main_uart0_pins_default>;
441 };
442
443 /* main_uart1 is reserved for firmware usage */
444 &main_uart1 {
445 status = "reserved";
446 pinctrl-names = "default";
447 pinctrl-0 = <&main_uart1_pins_default>;
448 };
449
450 &main_i2c0 {
451 bootph-all;
452 status = "okay";
453 pinctrl-names = "default";
454 pinctrl-0 = <&main_i2c0_pins_default>;
455 clock-frequency = <400000>;
456
457 gpio@38 {
458 /* TCA9554 */
459 compatible = "nxp,pca9554";
460 reg = <0x38>;
461 gpio-controller;
462 #gpio-cells = <2>;
463 gpio-line-names = "HSE_DETECT";
464 };
465
466 eeprom@50 {
467 /* AT24CM01 */
468 compatible = "atmel,24c1024";
469 reg = <0x50>;
470 };
471 };
472
473 &main_i2c1 {
474 bootph-all;
475 status = "okay";
476 pinctrl-names = "default";
477 pinctrl-0 = <&main_i2c1_pins_default>;
478 clock-frequency = <400000>;
479
480 exp1: gpio@22 {
481 bootph-all;
482 compatible = "ti,tca6424";
483 reg = <0x22>;
484 gpio-controller;
485 #gpio-cells = <2>;
486 gpio-line-names = "GPIO_eMMC_RSTn", "CAN_MUX_SEL",
487 "GPIO_CPSW1_RST", "GPIO_RGMII1_RST",
488 "GPIO_RGMII2_RST", "GPIO_PCIe_RST_OUT",
489 "MMC1_SD_EN", "FSI_FET_SEL",
490 "MCAN0_STB_3V3", "MCAN1_STB_3V3",
491 "CPSW_FET_SEL", "CPSW_FET2_SEL",
492 "PRG1_RGMII2_FET_SEL", "TEST_GPIO2",
493 "GPIO_OLED_RESETn", "VPP_LDO_EN",
494 "TEST_LED1", "TP92", "TP90", "TP88",
495 "TP87", "TP86", "TP89", "TP91";
496 };
497
498 /* osd9616p0899-10 */
499 display@3c {
500 compatible = "solomon,ssd1306fb-i2c";
501 reg = <0x3c>;
502 reset-gpios = <&exp1 14 GPIO_ACTIVE_LOW>;
503 vbat-supply = <&vddb>;
504 solomon,height = <16>;
505 solomon,width = <96>;
506 solomon,com-seq;
507 solomon,com-invdir;
508 solomon,page-offset = <0>;
509 solomon,prechargep1 = <2>;
510 solomon,prechargep2 = <13>;
511 };
512 };
513
514 &main_gpio0 {
515 bootph-all;
516 };
517
518 /* mcu_gpio0 and mcu_gpio_intr are reserved for mcu firmware usage */
519 &mcu_gpio0 {
520 status = "reserved";
521 };
522
523 &mcu_gpio_intr {
524 status = "reserved";
525 };
526
527 &main_spi0 {
528 status = "okay";
529 pinctrl-names = "default";
530 pinctrl-0 = <&main_spi0_pins_default>;
531 ti,pindir-d0-out-d1-in;
532 eeprom@0 {
533 compatible = "microchip,93lc46b";
534 reg = <0>;
535 spi-max-frequency = <1000000>;
536 spi-cs-high;
537 data-size = <16>;
538 };
539 };
540
541 /* eMMC */
542 &sdhci0 {
543 status = "okay";
544 non-removable;
545 ti,driver-strength-ohm = <50>;
546 bootph-all;
547 };
548
549 /* SD/MMC */
550 &sdhci1 {
551 bootph-all;
552 status = "okay";
553 vmmc-supply = <&vdd_mmc1>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&main_mmc1_pins_default>;
556 disable-wp;
557 };
558
559 &usbss0 {
560 bootph-all;
561 ti,vbus-divider;
562 ti,usb2-only;
563 };
564
565 &usb0 {
566 bootph-all;
567 dr_mode = "otg";
568 maximum-speed = "high-speed";
569 pinctrl-names = "default";
570 pinctrl-0 = <&main_usb0_pins_default>;
571 };
572
573 &cpsw3g {
574 bootph-all;
575 pinctrl-names = "default";
576 pinctrl-0 = <&rgmii1_pins_default>, <&rgmii2_pins_default>;
577 status = "okay";
578 };
579
580 &cpsw_port1 {
581 bootph-all;
582 phy-mode = "rgmii-id";
583 phy-handle = <&cpsw3g_phy0>;
584 status = "okay";
585 };
586
587 &cpsw_port2 {
588 phy-mode = "rgmii-id";
589 phy-handle = <&cpsw3g_phy3>;
590 status = "okay";
591 };
592
593 &cpsw3g_mdio {
594 bootph-all;
595 status = "okay";
596 pinctrl-names = "default";
597 pinctrl-0 = <&mdio1_pins_default>;
598
599 cpsw3g_phy0: ethernet-phy@0 {
600 bootph-all;
601 reg = <0>;
602 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
603 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
604 };
605 };
606
607 &tscadc0 {
608 /* ADC is reserved for R5 usage */
609 status = "reserved";
610
611 dmas = <&main_bcdma 0 0x440f 0>, <&main_bcdma 0 0x4410 0>;
612 dma-names = "fifo0", "fifo1";
613
614 adc {
615 ti,adc-channels = <0 1 2 3 4 5 6 7>;
616 };
617 };
618
619 &ospi0 {
620 status = "okay";
621 pinctrl-names = "default";
622 pinctrl-0 = <&ospi0_pins_default>;
623
624 flash@0 {
625 compatible = "jedec,spi-nor";
626 reg = <0x0>;
627 spi-tx-bus-width = <8>;
628 spi-rx-bus-width = <8>;
629 spi-max-frequency = <25000000>;
630 cdns,tshsl-ns = <60>;
631 cdns,tsd2d-ns = <60>;
632 cdns,tchsh-ns = <60>;
633 cdns,tslch-ns = <60>;
634 cdns,read-delay = <4>;
635
636 partitions {
637 compatible = "fixed-partitions";
638 #address-cells = <1>;
639 #size-cells = <1>;
640
641 partition@0 {
642 label = "ospi.tiboot3";
643 reg = <0x0 0x100000>;
644 };
645
646 partition@100000 {
647 label = "ospi.tispl";
648 reg = <0x100000 0x200000>;
649 };
650
651 partition@300000 {
652 label = "ospi.u-boot";
653 reg = <0x300000 0x400000>;
654 };
655
656 partition@700000 {
657 label = "ospi.env";
658 reg = <0x700000 0x40000>;
659 };
660
661 partition@740000 {
662 label = "ospi.env.backup";
663 reg = <0x740000 0x40000>;
664 };
665
666 partition@800000 {
667 label = "ospi.rootfs";
668 reg = <0x800000 0x37c0000>;
669 };
670
671 partition@3fc0000 {
672 label = "ospi.phypattern";
673 reg = <0x3fc0000 0x40000>;
674 };
675 };
676 };
677 };
678
679 &serdes_ln_ctrl {
680 idle-states = <AM64_SERDES0_LANE0_PCIE0>;
681 };
682
683 &serdes0 {
684 serdes0_pcie_link: phy@0 {
685 reg = <0>;
686 cdns,num-lanes = <1>;
687 #phy-cells = <0>;
688 cdns,phy-type = <PHY_TYPE_PCIE>;
689 resets = <&serdes_wiz0 1>;
690 };
691 };
692
693 &pcie0_rc {
694 status = "okay";
695 reset-gpios = <&exp1 5 GPIO_ACTIVE_HIGH>;
696 phys = <&serdes0_pcie_link>;
697 phy-names = "pcie-phy";
698 num-lanes = <1>;
699 };
700
701 &ecap0 {
702 status = "okay";
703 /* PWM is available on Pin 1 of header J12 */
704 pinctrl-names = "default";
705 pinctrl-0 = <&main_ecap0_pins_default>;
706 };
707
708 &main_mcan0 {
709 status = "okay";
710 pinctrl-names = "default";
711 pinctrl-0 = <&main_mcan0_pins_default>;
712 phys = <&transceiver1>;
713 };
714
715 &main_mcan1 {
716 status = "okay";
717 pinctrl-names = "default";
718 pinctrl-0 = <&main_mcan1_pins_default>;
719 phys = <&transceiver2>;
720 };
721
722 &icssg1_mdio {
723 status = "okay";
724 pinctrl-names = "default";
725 pinctrl-0 = <&icssg1_mdio1_pins_default>;
726
727 icssg1_phy1: ethernet-phy@f {
728 reg = <0xf>;
729 tx-internal-delay-ps = <250>;
730 rx-internal-delay-ps = <2000>;
731 };
732 };
733
734 &gpmc0 {
735 ranges = <0 0 0x00 0x51000000 0x01000000>; /* CS0 space. Min partition = 16MB */
736 };
737
738 &icssg1_iep0 {
739 pinctrl-names = "default";
740 pinctrl-0 = <&icssg1_iep0_pins_default>;
741 };
742
743 #include "k3-am64-ti-ipc-firmware.dtsi"