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}; 225 226&dwc3_1 { 227 status = "okay"; 228}; 229 230&usb1_phy { 231 status = "okay"; 232}; 233 234&usb1 { 235 pinctrl-names = "default"; 236 pinctrl-0 = <&usb1_pins_default>; 237 dr_mode = "otg"; 238}; 239 240&dwc3_0 { 241 status = "disabled"; 242}; 243 244&usb0_phy { 245 status = "disabled"; 246}; 247 248&tscadc0 { 249 adc { 250 ti,adc-channels = <0 1 2 3 4 5 6 7>; 251 }; 252}; 253 254&tscadc1 { 255 adc { 256 ti,adc-channels = <0 1 2 3 4 5 6 7>; 257 }; 258}; 259 260&serdes0 { 261 status = "disabled"; 262}; 263 264&serdes1 { 265 status = "disabled"; 266}; 267 268&pcie0_rc { 269 status = "disabled"; 270}; 271 272&pcie0_ep { 273 status = "disabled"; 274}; 275 276&pcie1_rc { 277 status = "disabled"; 278}; 279 280&pcie1_ep { 281 status = "disabled"; 282}; 283 284&mailbox0_cluster0 { 285 interrupts = <164 0>; 286 287 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 { 288 ti,mbox-tx = <1 0 0>; 289 ti,mbox-rx = <0 0 0>; 290 }; 291}; 292 293&mailbox0_cluster1 { 294 interrupts = <165 0>; 295 296 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 { 297 ti,mbox-tx = <1 0 0>; 298 ti,mbox-rx = <0 0 0>; 299 }; 300}; 301 302&mailbox0_cluster2 { 303 status = "disabled"; 304}; 305 306&mailbox0_cluster3 { 307 status = "disabled"; 308}; 309 310&mailbox0_cluster4 { 311 status = "disabled"; 312}; 313 314&mailbox0_cluster5 { 315 status = "disabled"; 316}; 317 318&mailbox0_cluster6 { 319 status = "disabled"; 320}; 321 322&mailbox0_cluster7 { 323 status = "disabled"; 324}; 325 326&mailbox0_cluster8 { 327 status = "disabled"; 328}; 329 330&mailbox0_cluster9 { 331 status = "disabled"; 332}; 333 334&mailbox0_cluster10 { 335 status = "disabled"; 336}; 337 338&mailbox0_cluster11 { 339 status = "disabled"; 340}; 341