xref: /linux/arch/arm64/boot/dts/ti/k3-am654-base-board.dts (revision 6fdcba32711044c35c0e1b094cbd8f3f0b4472c9)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include "k3-am654.dtsi"
9#include <dt-bindings/input/input.h>
10
11/ {
12	compatible =  "ti,am654-evm", "ti,am654";
13	model = "Texas Instruments AM654 Base Board";
14
15	chosen {
16		stdout-path = "serial2:115200n8";
17		bootargs = "earlycon=ns16550a,mmio32,0x02800000";
18	};
19
20	memory@80000000 {
21		device_type = "memory";
22		/* 4G RAM */
23		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
24		      <0x00000008 0x80000000 0x00000000 0x80000000>;
25	};
26
27	reserved-memory {
28		#address-cells = <2>;
29		#size-cells = <2>;
30		ranges;
31		secure_ddr: secure_ddr@9e800000 {
32			reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */
33			alignment = <0x1000>;
34			no-map;
35		};
36	};
37
38	gpio-keys {
39		compatible = "gpio-keys";
40		autorepeat;
41		pinctrl-names = "default";
42		pinctrl-0 = <&push_button_pins_default>;
43
44		sw5 {
45			label = "GPIO Key USER1";
46			linux,code = <BTN_0>;
47			gpios = <&wkup_gpio0 24 GPIO_ACTIVE_LOW>;
48		};
49
50		sw6 {
51			label = "GPIO Key USER2";
52			linux,code = <BTN_1>;
53			gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
54		};
55	};
56};
57
58&wkup_pmx0 {
59	wkup_i2c0_pins_default: wkup-i2c0-pins-default {
60		pinctrl-single,pins = <
61			AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
62			AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
63		>;
64	};
65
66	push_button_pins_default: push_button__pins_default {
67		pinctrl-single,pins = <
68			AM65X_WKUP_IOPAD(0x0030, PIN_INPUT, 7) /* (R5) WKUP_GPIO0_24 */
69			AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) WKUP_GPIO0_27 */
70		>;
71	};
72};
73
74&main_pmx0 {
75	main_uart0_pins_default: main-uart0-pins-default {
76		pinctrl-single,pins = <
77			AM65X_IOPAD(0x01e4, PIN_INPUT, 0)	/* (AF11) UART0_RXD */
78			AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0)	/* (AE11) UART0_TXD */
79			AM65X_IOPAD(0x01ec, PIN_INPUT, 0)	/* (AG11) UART0_CTSn */
80			AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0)	/* (AD11) UART0_RTSn */
81		>;
82	};
83
84	main_i2c2_pins_default: main-i2c2-pins-default {
85		pinctrl-single,pins = <
86			AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */
87			AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */
88		>;
89	};
90
91	main_spi0_pins_default: main-spi0-pins-default {
92		pinctrl-single,pins = <
93			AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */
94			AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */
95			AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */
96			AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */
97		>;
98	};
99
100	main_mmc0_pins_default: main-mmc0-pins-default {
101		pinctrl-single,pins = <
102			AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
103			AM65X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
104			AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
105			AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
106			AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
107			AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
108			AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
109			AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
110			AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
111			AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
112			AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
113			AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
114		>;
115	};
116
117	usb1_pins_default: usb1_pins_default {
118		pinctrl-single,pins = <
119			AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
120		>;
121	};
122};
123
124&main_pmx1 {
125	main_i2c0_pins_default: main-i2c0-pins-default {
126		pinctrl-single,pins = <
127			AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */
128			AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */
129		>;
130	};
131
132	main_i2c1_pins_default: main-i2c1-pins-default {
133		pinctrl-single,pins = <
134			AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */
135			AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */
136		>;
137	};
138
139	ecap0_pins_default: ecap0-pins-default {
140		pinctrl-single,pins = <
141			AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
142		>;
143	};
144};
145
146&wkup_uart0 {
147	/* Wakeup UART is used by System firmware */
148	status = "disabled";
149};
150
151&main_uart0 {
152	pinctrl-names = "default";
153	pinctrl-0 = <&main_uart0_pins_default>;
154	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
155};
156
157&wkup_i2c0 {
158	pinctrl-names = "default";
159	pinctrl-0 = <&wkup_i2c0_pins_default>;
160	clock-frequency = <400000>;
161
162	pca9554: gpio@39 {
163		compatible = "nxp,pca9554";
164		reg = <0x39>;
165		gpio-controller;
166		#gpio-cells = <2>;
167	};
168};
169
170&main_i2c0 {
171	pinctrl-names = "default";
172	pinctrl-0 = <&main_i2c0_pins_default>;
173	clock-frequency = <400000>;
174
175	pca9555: gpio@21 {
176		compatible = "nxp,pca9555";
177		reg = <0x21>;
178		gpio-controller;
179		#gpio-cells = <2>;
180	};
181};
182
183&main_i2c1 {
184	pinctrl-names = "default";
185	pinctrl-0 = <&main_i2c1_pins_default>;
186	clock-frequency = <400000>;
187};
188
189&main_i2c2 {
190	pinctrl-names = "default";
191	pinctrl-0 = <&main_i2c2_pins_default>;
192	clock-frequency = <400000>;
193};
194
195&ecap0 {
196	pinctrl-names = "default";
197	pinctrl-0 = <&ecap0_pins_default>;
198};
199
200&main_spi0 {
201	pinctrl-names = "default";
202	pinctrl-0 = <&main_spi0_pins_default>;
203	#address-cells = <1>;
204	#size-cells= <0>;
205	ti,pindir-d0-out-d1-in = <1>;
206
207	flash@0{
208		compatible = "jedec,spi-nor";
209		reg = <0x0>;
210		spi-tx-bus-width = <1>;
211		spi-rx-bus-width = <1>;
212		spi-max-frequency = <48000000>;
213		#address-cells = <1>;
214		#size-cells= <1>;
215	};
216};
217
218&sdhci0 {
219	pinctrl-names = "default";
220	pinctrl-0 = <&main_mmc0_pins_default>;
221	bus-width = <8>;
222	non-removable;
223	ti,driver-strength-ohm = <50>;
224	disable-wp;
225};
226
227&dwc3_1 {
228	status = "okay";
229};
230
231&usb1_phy {
232	status = "okay";
233};
234
235&usb1 {
236	pinctrl-names = "default";
237	pinctrl-0 = <&usb1_pins_default>;
238	dr_mode = "otg";
239};
240
241&dwc3_0 {
242	status = "disabled";
243};
244
245&usb0_phy {
246	status = "disabled";
247};
248
249&tscadc0 {
250	adc {
251		ti,adc-channels = <0 1 2 3 4 5 6 7>;
252	};
253};
254
255&tscadc1 {
256	adc {
257		ti,adc-channels = <0 1 2 3 4 5 6 7>;
258	};
259};
260
261&serdes0 {
262	status = "disabled";
263};
264
265&serdes1 {
266	status = "disabled";
267};
268
269&pcie0_rc {
270	status = "disabled";
271};
272
273&pcie0_ep {
274	status = "disabled";
275};
276
277&pcie1_rc {
278	status = "disabled";
279};
280
281&pcie1_ep {
282	status = "disabled";
283};
284
285&mailbox0_cluster0 {
286	interrupts = <164 0>;
287
288	mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
289		ti,mbox-tx = <1 0 0>;
290		ti,mbox-rx = <0 0 0>;
291	};
292};
293
294&mailbox0_cluster1 {
295	interrupts = <165 0>;
296
297	mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
298		ti,mbox-tx = <1 0 0>;
299		ti,mbox-rx = <0 0 0>;
300	};
301};
302
303&mailbox0_cluster2 {
304	status = "disabled";
305};
306
307&mailbox0_cluster3 {
308	status = "disabled";
309};
310
311&mailbox0_cluster4 {
312	status = "disabled";
313};
314
315&mailbox0_cluster5 {
316	status = "disabled";
317};
318
319&mailbox0_cluster6 {
320	status = "disabled";
321};
322
323&mailbox0_cluster7 {
324	status = "disabled";
325};
326
327&mailbox0_cluster8 {
328	status = "disabled";
329};
330
331&mailbox0_cluster9 {
332	status = "disabled";
333};
334
335&mailbox0_cluster10 {
336	status = "disabled";
337};
338
339&mailbox0_cluster11 {
340	status = "disabled";
341};
342