blob: 1637ec5ab5eda55c1f692bd81e1e77f69bfbcdc3 [file] [log] [blame]
Lokesh Vutla8bfaf012018-08-27 15:59:08 +05301// SPDX-License-Identifier: GPL-2.0
2/*
Lokesh Vutla462275c2021-02-01 11:26:39 +05303 * Copyright (C) 2016-2020 Texas Instruments Incorporated - https://www.ti.com/
Lokesh Vutla8bfaf012018-08-27 15:59:08 +05304 */
5
6/dts-v1/;
7
8#include "k3-am654.dtsi"
Lokesh Vutla462275c2021-02-01 11:26:39 +05309#include <dt-bindings/input/input.h>
10#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutla8bfaf012018-08-27 15:59:08 +053011
12/ {
Bryan Brattloffd1fe632023-12-29 11:47:01 -060013 compatible = "ti,am654-evm", "ti,am654";
Lokesh Vutla8bfaf012018-08-27 15:59:08 +053014 model = "Texas Instruments AM654 Base Board";
15
Bryan Brattloffd1fe632023-12-29 11:47:01 -060016 aliases {
17 serial0 = &wkup_uart0;
18 serial1 = &mcu_uart0;
19 serial2 = &main_uart0;
20 i2c0 = &wkup_i2c0;
21 i2c1 = &mcu_i2c0;
22 i2c2 = &main_i2c0;
23 i2c3 = &main_i2c1;
24 i2c4 = &main_i2c2;
25 ethernet0 = &cpsw_port1;
26 mmc0 = &sdhci0;
27 mmc1 = &sdhci1;
28 };
29
Lokesh Vutla8bfaf012018-08-27 15:59:08 +053030 chosen {
31 stdout-path = "serial2:115200n8";
Lokesh Vutla8bfaf012018-08-27 15:59:08 +053032 };
33
34 memory@80000000 {
35 device_type = "memory";
36 /* 4G RAM */
37 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
38 <0x00000008 0x80000000 0x00000000 0x80000000>;
39 };
40
41 reserved-memory {
42 #address-cells = <2>;
43 #size-cells = <2>;
44 ranges;
Lokesh Vutla462275c2021-02-01 11:26:39 +053045
46 secure_ddr: secure-ddr@9e800000 {
Lokesh Vutla8bfaf012018-08-27 15:59:08 +053047 reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */
48 alignment = <0x1000>;
49 no-map;
50 };
Lokesh Vutla462275c2021-02-01 11:26:39 +053051
52 mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
53 compatible = "shared-dma-pool";
54 reg = <0 0xa0000000 0 0x100000>;
55 no-map;
56 };
57
58 mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
59 compatible = "shared-dma-pool";
60 reg = <0 0xa0100000 0 0xf00000>;
61 no-map;
62 };
63
64 mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
65 compatible = "shared-dma-pool";
66 reg = <0 0xa1000000 0 0x100000>;
67 no-map;
68 };
69
70 mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
71 compatible = "shared-dma-pool";
72 reg = <0 0xa1100000 0 0xf00000>;
73 no-map;
74 };
75
76 rtos_ipc_memory_region: ipc-memories@a2000000 {
77 reg = <0x00 0xa2000000 0x00 0x00100000>;
78 alignment = <0x1000>;
79 no-map;
80 };
81 };
82
83 gpio-keys {
84 compatible = "gpio-keys";
85 autorepeat;
86 pinctrl-names = "default";
87 pinctrl-0 = <&push_button_pins_default>;
88
Bryan Brattloffd1fe632023-12-29 11:47:01 -060089 switch-5 {
Lokesh Vutla462275c2021-02-01 11:26:39 +053090 label = "GPIO Key USER1";
91 linux,code = <BTN_0>;
92 gpios = <&wkup_gpio0 24 GPIO_ACTIVE_LOW>;
93 };
94
Bryan Brattloffd1fe632023-12-29 11:47:01 -060095 switch-6 {
Lokesh Vutla462275c2021-02-01 11:26:39 +053096 label = "GPIO Key USER2";
97 linux,code = <BTN_1>;
98 gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
99 };
100 };
101
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600102 evm_12v0: regulator-0 {
Tom Rinif8276452021-09-10 17:37:43 -0400103 /* main supply */
104 compatible = "regulator-fixed";
105 regulator-name = "evm_12v0";
106 regulator-min-microvolt = <12000000>;
107 regulator-max-microvolt = <12000000>;
108 regulator-always-on;
109 regulator-boot-on;
110 };
111
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600112 vcc3v3_io: regulator-1 {
Tom Rinif8276452021-09-10 17:37:43 -0400113 /* Output of TPS54334 */
114 compatible = "regulator-fixed";
115 regulator-name = "vcc3v3_io";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
118 regulator-always-on;
119 regulator-boot-on;
120 vin-supply = <&evm_12v0>;
121 };
122
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600123 vdd_mmc1_sd: regulator-2 {
Tom Rinif8276452021-09-10 17:37:43 -0400124 compatible = "regulator-fixed";
125 regulator-name = "vdd_mmc1_sd";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 regulator-boot-on;
129 enable-active-high;
130 vin-supply = <&vcc3v3_io>;
131 gpio = <&pca9554 4 GPIO_ACTIVE_HIGH>;
Lokesh Vutla8bfaf012018-08-27 15:59:08 +0530132 };
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600133
134 vtt_supply: regulator-3 {
135 compatible = "regulator-fixed";
136 regulator-name = "vtt";
137 pinctrl-names = "default";
138 pinctrl-0 = <&ddr_vtt_pins_default>;
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
141 enable-active-high;
142 regulator-always-on;
143 regulator-boot-on;
144 vin-supply = <&vcc3v3_io>;
145 gpio = <&wkup_gpio0 28 GPIO_ACTIVE_HIGH>;
146 };
Lokesh Vutla8bfaf012018-08-27 15:59:08 +0530147};
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530148
Lokesh Vutla462275c2021-02-01 11:26:39 +0530149&wkup_pmx0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600150 wkup_uart0_pins_default: wkup-uart0-default-pins {
151 pinctrl-single,pins = <
152 AM65X_WKUP_IOPAD(0x00a0, PIN_INPUT, 0) /* (AB1) WKUP_UART0_RXD */
153 AM65X_WKUP_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (AB5) WKUP_UART0_TXD */
154 AM65X_WKUP_IOPAD(0x00c8, PIN_INPUT, 1) /* (AC2) WKUP_GPIO0_6.WKUP_UART0_CTSn */
155 AM65X_WKUP_IOPAD(0x00cc, PIN_OUTPUT, 1) /* (AC1) WKUP_GPIO0_7.WKUP_UART0_RTSn */
156 >;
157 };
158
159 ddr_vtt_pins_default: ddr-vtt-default-pins {
160 pinctrl-single,pins = <
161 AM65X_WKUP_IOPAD(0x0040, PIN_OUTPUT_PULLUP, 7) /* WKUP_GPIO0_28 */
162 >;
163 };
164
165 wkup_i2c0_pins_default: wkup-i2c0-default-pins {
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530166 pinctrl-single,pins = <
Lokesh Vutla462275c2021-02-01 11:26:39 +0530167 AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
168 AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530169 >;
170 };
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530171
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600172 push_button_pins_default: push-button-default-pins {
Faiz Abbas43f69202021-02-04 15:10:56 +0530173 pinctrl-single,pins = <
Lokesh Vutla462275c2021-02-01 11:26:39 +0530174 AM65X_WKUP_IOPAD(0x0030, PIN_INPUT, 7) /* (R5) WKUP_GPIO0_24 */
175 AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) WKUP_GPIO0_27 */
Faiz Abbas43f69202021-02-04 15:10:56 +0530176 >;
177 };
178
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600179 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530180 pinctrl-single,pins = <
Lokesh Vutla462275c2021-02-01 11:26:39 +0530181 AM65X_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* (V1) MCU_OSPI0_CLK */
182 AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* (U2) MCU_OSPI0_DQS */
183 AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* (U4) MCU_OSPI0_D0 */
184 AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* (U5) MCU_OSPI0_D1 */
185 AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* (T2) MCU_OSPI0_D2 */
186 AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* (T3) MCU_OSPI0_D3 */
187 AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* (T4) MCU_OSPI0_D4 */
188 AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* (T5) MCU_OSPI0_D5 */
189 AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* (R2) MCU_OSPI0_D6 */
190 AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* (R3) MCU_OSPI0_D7 */
191 AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) MCU_OSPI0_CSn0 */
192 >;
193 };
194
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600195 wkup_pca554_default: wkup-pca554-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530196 pinctrl-single,pins = <
197 AM65X_WKUP_IOPAD(0x0034, PIN_INPUT, 7) /* (T1) MCU_OSPI1_CLK.WKUP_GPIO0_25 */
198 >;
199 };
200
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600201 mcu_uart0_pins_default: mcu-uart0-default-pins {
202 pinctrl-single,pins = <
203 AM65X_WKUP_IOPAD(0x0044, PIN_INPUT, 4) /* (P4) MCU_OSPI1_D1.MCU_UART0_RXD */
204 AM65X_WKUP_IOPAD(0x0048, PIN_OUTPUT, 4) /* (P5) MCU_OSPI1_D2.MCU_UART0_TXD */
205 AM65X_WKUP_IOPAD(0x004C, PIN_INPUT, 4) /* (P1) MCU_OSPI1_D3.MCU_UART0_CTSn */
206 AM65X_WKUP_IOPAD(0x0054, PIN_OUTPUT, 4) /* (N3) MCU_OSPI1_CSn1.MCU_UART0_RTSn */
207 >;
208 };
209
210 mcu_cpsw_pins_default: mcu-cpsw-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530211 pinctrl-single,pins = <
212 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
213 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
214 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
215 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
216 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
217 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
218 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
219 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
220 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
221 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
Tom Rinif8276452021-09-10 17:37:43 -0400222 AM65X_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* (N1) MCU_RGMII1_TXC */
Lokesh Vutla462275c2021-02-01 11:26:39 +0530223 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530224 >;
225 };
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530226
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600227 mcu_mdio_pins_default: mcu-mdio1-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530228 pinctrl-single,pins = <
229 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
230 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
231 >;
232 };
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600233
234 mcu_i2c0_pins_default: mcu-i2c0-default-pins {
235 pinctrl-single,pins = <
236 AM65X_WKUP_IOPAD(0x00e8, PIN_INPUT, 0) /* (AD8) MCU_I2C0_SCL */
237 AM65X_WKUP_IOPAD(0x00ec, PIN_INPUT, 0) /* (AD7) MCU_I2C0_SDA */
238 >;
239 };
Lokesh Vutla462275c2021-02-01 11:26:39 +0530240};
241
242&main_pmx0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600243 main_uart0_pins_default: main-uart0-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530244 pinctrl-single,pins = <
245 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
246 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
247 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
248 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
249 >;
250 };
251
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600252 main_i2c2_pins_default: main-i2c2-default-pins {
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530253 pinctrl-single,pins = <
254 AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */
255 AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */
256 >;
257 };
Lokesh Vutla462275c2021-02-01 11:26:39 +0530258
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600259 main_spi0_pins_default: main-spi0-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530260 pinctrl-single,pins = <
261 AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */
262 AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */
263 AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */
264 AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */
265 >;
266 };
267
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600268 main_mmc0_pins_default: main-mmc0-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530269 pinctrl-single,pins = <
270 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
271 AM65X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
272 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
273 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
274 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
275 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
276 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
277 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
278 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
279 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
280 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
281 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
282 >;
283 };
284
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600285 main_mmc1_pins_default: main-mmc1-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530286 pinctrl-single,pins = <
287 AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
288 AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
289 AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
290 AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
291 AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
292 AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
293 AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
294 AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
295 >;
296 };
297
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600298 usb1_pins_default: usb1-default-pins {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530299 pinctrl-single,pins = <
300 AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
301 >;
302 };
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530303};
304
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530305&main_pmx1 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600306 main_i2c0_pins_default: main-i2c0-default-pins {
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530307 pinctrl-single,pins = <
308 AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */
309 AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */
310 >;
311 };
312
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600313 main_i2c1_pins_default: main-i2c1-default-pins {
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530314 pinctrl-single,pins = <
315 AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */
316 AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */
317 >;
318 };
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530319
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600320 ecap0_pins_default: ecap0-default-pins {
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500321 pinctrl-single,pins = <
Lokesh Vutla462275c2021-02-01 11:26:39 +0530322 AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530323 >;
324 };
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500325};
326
Lokesh Vutla462275c2021-02-01 11:26:39 +0530327&wkup_uart0 {
328 /* Wakeup UART is used by System firmware */
329 status = "reserved";
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600330 pinctrl-names = "default";
331 pinctrl-0 = <&wkup_uart0_pins_default>;
332};
333
334&mcu_uart0 {
335 status = "okay";
336 pinctrl-names = "default";
337 pinctrl-0 = <&mcu_uart0_pins_default>;
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530338};
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500339
Lokesh Vutla462275c2021-02-01 11:26:39 +0530340&main_uart0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600341 status = "okay";
Faiz Abbas43f69202021-02-04 15:10:56 +0530342 pinctrl-names = "default";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530343 pinctrl-0 = <&main_uart0_pins_default>;
344 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
Faiz Abbas43f69202021-02-04 15:10:56 +0530345};
346
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500347&wkup_i2c0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600348 status = "okay";
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500349 pinctrl-names = "default";
350 pinctrl-0 = <&wkup_i2c0_pins_default>;
351 clock-frequency = <400000>;
Andreas Dannenberg67bb3872019-06-04 18:08:18 -0500352
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600353 eeprom@50 {
354 /* AT24CM01 */
355 compatible = "atmel,24c1024";
356 reg = <0x50>;
357 };
358
359 vdd_mpu: regulator@60 {
360 compatible = "ti,tps62363";
361 reg = <0x60>;
362 regulator-name = "VDD_MPU";
363 regulator-min-microvolt = <500000>;
364 regulator-max-microvolt = <1770000>;
365 regulator-always-on;
366 regulator-boot-on;
367 ti,vsel0-state-high;
368 ti,vsel1-state-high;
369 ti,enable-vout-discharge;
370 };
371
372 gpio@38 {
373 compatible = "nxp,pca9554";
374 reg = <0x38>;
375 gpio-controller;
376 #gpio-cells = <2>;
377 };
378
Lokesh Vutla462275c2021-02-01 11:26:39 +0530379 pca9554: gpio@39 {
Andreas Dannenberg67bb3872019-06-04 18:08:18 -0500380 compatible = "nxp,pca9554";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530381 reg = <0x39>;
Andreas Dannenberg67bb3872019-06-04 18:08:18 -0500382 gpio-controller;
383 #gpio-cells = <2>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530384 pinctrl-names = "default";
385 pinctrl-0 = <&wkup_pca554_default>;
386 interrupt-parent = <&wkup_gpio0>;
387 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
388 interrupt-controller;
389 #interrupt-cells = <2>;
Andreas Dannenberg67bb3872019-06-04 18:08:18 -0500390 };
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500391};
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530392
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600393&mcu_i2c0 {
394 status = "okay";
395 pinctrl-names = "default";
396 pinctrl-0 = <&mcu_i2c0_pins_default>;
397 clock-frequency = <400000>;
398};
399
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530400&main_i2c0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600401 status = "okay";
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530402 pinctrl-names = "default";
403 pinctrl-0 = <&main_i2c0_pins_default>;
404 clock-frequency = <400000>;
405
406 pca9555: gpio@21 {
407 compatible = "nxp,pca9555";
408 reg = <0x21>;
409 gpio-controller;
410 #gpio-cells = <2>;
411 };
412};
413
414&main_i2c1 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600415 status = "okay";
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530416 pinctrl-names = "default";
417 pinctrl-0 = <&main_i2c1_pins_default>;
418 clock-frequency = <400000>;
419};
420
421&main_i2c2 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600422 status = "okay";
Vignesh Raghavendrac7523c92020-02-17 13:22:55 +0530423 pinctrl-names = "default";
424 pinctrl-0 = <&main_i2c2_pins_default>;
425 clock-frequency = <400000>;
426};
427
Lokesh Vutla462275c2021-02-01 11:26:39 +0530428&ecap0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600429 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530430 pinctrl-names = "default";
431 pinctrl-0 = <&ecap0_pins_default>;
432};
433
434&main_spi0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600435 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530436 pinctrl-names = "default";
437 pinctrl-0 = <&main_spi0_pins_default>;
438 #address-cells = <1>;
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600439 #size-cells = <0>;
Tom Rinif8276452021-09-10 17:37:43 -0400440 ti,pindir-d0-out-d1-in;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530441
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600442 flash@0 {
Lokesh Vutla462275c2021-02-01 11:26:39 +0530443 compatible = "jedec,spi-nor";
444 reg = <0x0>;
445 spi-tx-bus-width = <1>;
446 spi-rx-bus-width = <1>;
447 spi-max-frequency = <48000000>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530448 };
449};
450
451&sdhci0 {
452 pinctrl-names = "default";
453 pinctrl-0 = <&main_mmc0_pins_default>;
454 bus-width = <8>;
455 non-removable;
456 ti,driver-strength-ohm = <50>;
457 disable-wp;
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530458};
459
Lokesh Vutla462275c2021-02-01 11:26:39 +0530460/*
461 * Because of erratas i2025 and i2026 for silicon revision 1.0, the
462 * SD card interface might fail. Boards with sr1.0 are recommended to
463 * disable sdhci1
464 */
465&sdhci1 {
Tom Rinif8276452021-09-10 17:37:43 -0400466 vmmc-supply = <&vdd_mmc1_sd>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530467 pinctrl-names = "default";
468 pinctrl-0 = <&main_mmc1_pins_default>;
469 ti,driver-strength-ohm = <50>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530470 disable-wp;
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530471};
472
473&usb1 {
474 pinctrl-names = "default";
475 pinctrl-0 = <&usb1_pins_default>;
476 dr_mode = "otg";
477};
478
479&dwc3_0 {
480 status = "disabled";
481};
482
483&usb0_phy {
484 status = "disabled";
485};
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530486
Lokesh Vutla462275c2021-02-01 11:26:39 +0530487&tscadc0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600488 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530489 adc {
490 ti,adc-channels = <0 1 2 3 4 5 6 7>;
491 };
492};
493
494&tscadc1 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600495 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530496 adc {
497 ti,adc-channels = <0 1 2 3 4 5 6 7>;
498 };
499};
500
501&serdes0 {
502 status = "disabled";
503};
504
505&serdes1 {
506 status = "disabled";
507};
508
Lokesh Vutla462275c2021-02-01 11:26:39 +0530509&mailbox0_cluster0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600510 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530511 interrupts = <436>;
512
513 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
514 ti,mbox-tx = <1 0 0>;
515 ti,mbox-rx = <0 0 0>;
516 };
517};
518
519&mailbox0_cluster1 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600520 status = "okay";
Lokesh Vutla462275c2021-02-01 11:26:39 +0530521 interrupts = <432>;
522
523 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
524 ti,mbox-tx = <1 0 0>;
525 ti,mbox-rx = <0 0 0>;
526 };
527};
528
Lokesh Vutla462275c2021-02-01 11:26:39 +0530529&mcu_r5fss0_core0 {
530 memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
531 <&mcu_r5fss0_core0_memory_region>;
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600532 mboxes = <&mailbox0_cluster0>, <&mbox_mcu_r5fss0_core0>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530533};
534
535&mcu_r5fss0_core1 {
536 memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
537 <&mcu_r5fss0_core1_memory_region>;
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600538 mboxes = <&mailbox0_cluster1>, <&mbox_mcu_r5fss0_core1>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530539};
540
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530541&ospi0 {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600542 status = "okay";
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530543 pinctrl-names = "default";
544 pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
545
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600546 flash@0 {
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530547 compatible = "jedec,spi-nor";
548 reg = <0x0>;
Tom Rinif8276452021-09-10 17:37:43 -0400549 spi-tx-bus-width = <8>;
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530550 spi-rx-bus-width = <8>;
Tom Rinif8276452021-09-10 17:37:43 -0400551 spi-max-frequency = <25000000>;
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530552 cdns,tshsl-ns = <60>;
553 cdns,tsd2d-ns = <60>;
554 cdns,tchsh-ns = <60>;
555 cdns,tslch-ns = <60>;
556 cdns,read-delay = <0>;
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600557
558 partitions {
559 compatible = "fixed-partitions";
560 #address-cells = <1>;
561 #size-cells = <1>;
562
563 partition@0 {
564 label = "ospi.tiboot3";
565 reg = <0x0 0x80000>;
566 };
567
568 partition@80000 {
569 label = "ospi.tispl";
570 reg = <0x80000 0x200000>;
571 };
572
573 partition@280000 {
574 label = "ospi.u-boot";
575 reg = <0x280000 0x400000>;
576 };
577
578 partition@680000 {
579 label = "ospi.env";
580 reg = <0x680000 0x20000>;
581 };
582
583 partition@6a0000 {
584 label = "ospi.env.backup";
585 reg = <0x6a0000 0x20000>;
586 };
587
588 partition@6c0000 {
589 label = "ospi.sysfw";
590 reg = <0x6c0000 0x100000>;
591 };
592
593 partition@800000 {
594 label = "ospi.rootfs";
595 reg = <0x800000 0x37c0000>;
596 };
597
598 partition@3fe0000 {
599 label = "ospi.phypattern";
600 reg = <0x3fe0000 0x20000>;
601 };
602 };
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530603 };
604};
Lokesh Vutla462275c2021-02-01 11:26:39 +0530605
Lokesh Vutla462275c2021-02-01 11:26:39 +0530606&mcu_cpsw {
607 pinctrl-names = "default";
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600608 pinctrl-0 = <&mcu_cpsw_pins_default>;
Lokesh Vutla462275c2021-02-01 11:26:39 +0530609};
610
611&davinci_mdio {
Bryan Brattloffd1fe632023-12-29 11:47:01 -0600612 status = "okay";
613 pinctrl-names = "default";
614 pinctrl-0 = <&mcu_mdio_pins_default>;
615
Lokesh Vutla462275c2021-02-01 11:26:39 +0530616 phy0: ethernet-phy@0 {
617 reg = <0>;
618 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
619 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
620 };
621};
622
623&cpsw_port1 {
624 phy-mode = "rgmii-rxid";
625 phy-handle = <&phy0>;
626};
627
Lokesh Vutla462275c2021-02-01 11:26:39 +0530628&dss {
629 status = "disabled";
630};