1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
8 #include "k3-am654.dtsi"
9 #include <dt-bindings/input/input.h>
12 compatible = "ti,am654-evm", "ti,am654";
13 model = "Texas Instruments AM654 Base Board";
16 stdout-path = "serial2:115200n8";
17 bootargs = "earlycon=ns16550a,mmio32,0x02800000";
21 device_type = "memory";
23 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
24 <0x00000008 0x80000000 0x00000000 0x80000000>;
31 secure_ddr: secure_ddr@9e800000 {
32 reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */
39 compatible = "gpio-keys";
41 pinctrl-names = "default";
42 pinctrl-0 = <&push_button_pins_default>;
45 label = "GPIO Key USER1";
47 gpios = <&wkup_gpio0 24 GPIO_ACTIVE_LOW>;
51 label = "GPIO Key USER2";
53 gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
57 clk_ov5640_fixed: clock {
58 compatible = "fixed-clock";
60 clock-frequency = <24000000>;
65 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
66 pinctrl-single,pins = <
67 AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
68 AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
72 push_button_pins_default: push_button__pins_default {
73 pinctrl-single,pins = <
74 AM65X_WKUP_IOPAD(0x0030, PIN_INPUT, 7) /* (R5) WKUP_GPIO0_24 */
75 AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) WKUP_GPIO0_27 */
79 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
80 pinctrl-single,pins = <
81 AM65X_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* (V1) MCU_OSPI0_CLK */
82 AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* (U2) MCU_OSPI0_DQS */
83 AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* (U4) MCU_OSPI0_D0 */
84 AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* (U5) MCU_OSPI0_D1 */
85 AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* (T2) MCU_OSPI0_D2 */
86 AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* (T3) MCU_OSPI0_D3 */
87 AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* (T4) MCU_OSPI0_D4 */
88 AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* (T5) MCU_OSPI0_D5 */
89 AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* (R2) MCU_OSPI0_D6 */
90 AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* (R3) MCU_OSPI0_D7 */
91 AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) MCU_OSPI0_CSn0 */
95 wkup_pca554_default: wkup_pca554_default {
96 pinctrl-single,pins = <
97 AM65X_WKUP_IOPAD(0x0034, PIN_INPUT, 7) /* (T1) MCU_OSPI1_CLK.WKUP_GPIO0_25 */
104 main_uart0_pins_default: main-uart0-pins-default {
105 pinctrl-single,pins = <
106 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
107 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
108 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
109 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
113 main_i2c2_pins_default: main-i2c2-pins-default {
114 pinctrl-single,pins = <
115 AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */
116 AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */
120 main_spi0_pins_default: main-spi0-pins-default {
121 pinctrl-single,pins = <
122 AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */
123 AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */
124 AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */
125 AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */
129 main_mmc0_pins_default: main-mmc0-pins-default {
130 pinctrl-single,pins = <
131 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
132 AM65X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
133 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
134 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
135 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
136 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
137 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
138 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
139 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
140 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
141 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
142 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
146 usb1_pins_default: usb1_pins_default {
147 pinctrl-single,pins = <
148 AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
154 main_i2c0_pins_default: main-i2c0-pins-default {
155 pinctrl-single,pins = <
156 AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */
157 AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */
161 main_i2c1_pins_default: main-i2c1-pins-default {
162 pinctrl-single,pins = <
163 AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */
164 AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */
168 ecap0_pins_default: ecap0-pins-default {
169 pinctrl-single,pins = <
170 AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
176 /* Wakeup UART is used by System firmware */
181 pinctrl-names = "default";
182 pinctrl-0 = <&main_uart0_pins_default>;
183 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&wkup_i2c0_pins_default>;
189 clock-frequency = <400000>;
192 compatible = "nxp,pca9554";
196 pinctrl-names = "default";
197 pinctrl-0 = <&wkup_pca554_default>;
198 interrupt-parent = <&wkup_gpio0>;
199 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
200 interrupt-controller;
201 #interrupt-cells = <2>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&main_i2c0_pins_default>;
208 clock-frequency = <400000>;
211 compatible = "nxp,pca9555";
219 pinctrl-names = "default";
220 pinctrl-0 = <&main_i2c1_pins_default>;
221 clock-frequency = <400000>;
224 compatible = "ovti,ov5640";
227 clocks = <&clk_ov5640_fixed>;
228 clock-names = "xclk";
231 csi2_cam0: endpoint {
232 remote-endpoint = <&csi2_phy0>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&main_i2c2_pins_default>;
244 clock-frequency = <400000>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&ecap0_pins_default>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&main_spi0_pins_default>;
255 #address-cells = <1>;
257 ti,pindir-d0-out-d1-in = <1>;
260 compatible = "jedec,spi-nor";
262 spi-tx-bus-width = <1>;
263 spi-rx-bus-width = <1>;
264 spi-max-frequency = <48000000>;
265 #address-cells = <1>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&main_mmc0_pins_default>;
275 ti,driver-strength-ohm = <50>;
288 pinctrl-names = "default";
289 pinctrl-0 = <&usb1_pins_default>;
303 ti,adc-channels = <0 1 2 3 4 5 6 7>;
309 ti,adc-channels = <0 1 2 3 4 5 6 7>;
338 interrupts = <164 0>;
340 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
341 ti,mbox-tx = <1 0 0>;
342 ti,mbox-rx = <0 0 0>;
347 interrupts = <165 0>;
349 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
350 ti,mbox-tx = <1 0 0>;
351 ti,mbox-rx = <0 0 0>;
387 &mailbox0_cluster10 {
391 &mailbox0_cluster11 {
396 pinctrl-names = "default";
397 pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
400 compatible = "jedec,spi-nor";
402 spi-tx-bus-width = <1>;
403 spi-rx-bus-width = <8>;
404 spi-max-frequency = <40000000>;
405 cdns,tshsl-ns = <60>;
406 cdns,tsd2d-ns = <60>;
407 cdns,tchsh-ns = <60>;
408 cdns,tslch-ns = <60>;
409 cdns,read-delay = <0>;
410 #address-cells = <1>;
416 csi2_phy0: endpoint {
417 remote-endpoint = <&csi2_cam0>;