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