| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Copyright (C) 2016-2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
|
| 8 |
#include "k3-am654.dtsi" |
| 9 |
#include <dt-bindings/input/input.h> |
| 10 |
#include <dt-bindings/net/ti-dp83867.h> |
| 11 |
|
| 12 |
/ { |
| 13 |
compatible = "ti,am654-evm", "ti,am654"; |
| 14 |
model = "Texas Instruments AM654 Base Board"; |
| 15 |
|
| 16 |
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 |
|
| 30 |
chosen { |
| 31 |
stdout-path = "serial2:115200n8"; |
| 32 |
}; |
| 33 |
|
| 34 |
memory@80000000 { |
| 35 |
device_type = "memory"; |
| 36 |
bootph-all; |
| 37 |
/* 4G RAM */ |
| 38 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>, |
| 39 |
<0x00000008 0x80000000 0x00000000 0x80000000>; |
| 40 |
}; |
| 41 |
|
| 42 |
reserved_memory: reserved-memory { |
| 43 |
#address-cells = <2>; |
| 44 |
#size-cells = <2>; |
| 45 |
ranges; |
| 46 |
|
| 47 |
secure_ddr: secure-ddr@9e800000 { |
| 48 |
reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */ |
| 49 |
alignment = <0x1000>; |
| 50 |
no-map; |
| 51 |
}; |
| 52 |
|
| 53 |
mcu_r5fss0_core0_dma_memory_region: memory@a0000000 { |
| 54 |
compatible = "shared-dma-pool"; |
| 55 |
reg = <0 0xa0000000 0 0x100000>; |
| 56 |
no-map; |
| 57 |
}; |
| 58 |
|
| 59 |
mcu_r5fss0_core0_memory_region: memory@a0100000 { |
| 60 |
compatible = "shared-dma-pool"; |
| 61 |
reg = <0 0xa0100000 0 0xf00000>; |
| 62 |
no-map; |
| 63 |
}; |
| 64 |
}; |
| 65 |
|
| 66 |
gpio-keys { |
| 67 |
compatible = "gpio-keys"; |
| 68 |
autorepeat; |
| 69 |
pinctrl-names = "default"; |
| 70 |
pinctrl-0 = <&push_button_pins_default>; |
| 71 |
|
| 72 |
switch-5 { |
| 73 |
label = "GPIO Key USER1"; |
| 74 |
linux,code = <BTN_0>; |
| 75 |
gpios = <&wkup_gpio0 24 GPIO_ACTIVE_LOW>; |
| 76 |
}; |
| 77 |
|
| 78 |
switch-6 { |
| 79 |
label = "GPIO Key USER2"; |
| 80 |
linux,code = <BTN_1>; |
| 81 |
gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>; |
| 82 |
}; |
| 83 |
}; |
| 84 |
|
| 85 |
evm_12v0: regulator-0 { |
| 86 |
/* main supply */ |
| 87 |
compatible = "regulator-fixed"; |
| 88 |
regulator-name = "evm_12v0"; |
| 89 |
regulator-min-microvolt = <12000000>; |
| 90 |
regulator-max-microvolt = <12000000>; |
| 91 |
regulator-always-on; |
| 92 |
regulator-boot-on; |
| 93 |
}; |
| 94 |
|
| 95 |
vcc3v3_io: regulator-1 { |
| 96 |
/* Output of TPS54334 */ |
| 97 |
compatible = "regulator-fixed"; |
| 98 |
regulator-name = "vcc3v3_io"; |
| 99 |
regulator-min-microvolt = <3300000>; |
| 100 |
regulator-max-microvolt = <3300000>; |
| 101 |
regulator-always-on; |
| 102 |
regulator-boot-on; |
| 103 |
vin-supply = <&evm_12v0>; |
| 104 |
}; |
| 105 |
|
| 106 |
vdd_mmc1_sd: regulator-2 { |
| 107 |
compatible = "regulator-fixed"; |
| 108 |
regulator-name = "vdd_mmc1_sd"; |
| 109 |
regulator-min-microvolt = <3300000>; |
| 110 |
regulator-max-microvolt = <3300000>; |
| 111 |
regulator-boot-on; |
| 112 |
enable-active-high; |
| 113 |
vin-supply = <&vcc3v3_io>; |
| 114 |
gpio = <&pca9554 4 GPIO_ACTIVE_HIGH>; |
| 115 |
}; |
| 116 |
|
| 117 |
vtt_supply: regulator-3 { |
| 118 |
compatible = "regulator-fixed"; |
| 119 |
regulator-name = "vtt"; |
| 120 |
pinctrl-names = "default"; |
| 121 |
pinctrl-0 = <&ddr_vtt_pins_default>; |
| 122 |
regulator-min-microvolt = <3300000>; |
| 123 |
regulator-max-microvolt = <3300000>; |
| 124 |
enable-active-high; |
| 125 |
regulator-always-on; |
| 126 |
regulator-boot-on; |
| 127 |
vin-supply = <&vcc3v3_io>; |
| 128 |
gpio = <&wkup_gpio0 28 GPIO_ACTIVE_HIGH>; |
| 129 |
bootph-all; |
| 130 |
}; |
| 131 |
}; |
| 132 |
|
| 133 |
&wkup_pmx0 { |
| 134 |
wkup_uart0_pins_default: wkup-uart0-default-pins { |
| 135 |
pinctrl-single,pins = < |
| 136 |
AM65X_WKUP_IOPAD(0x00a0, PIN_INPUT, 0) /* (AB1) WKUP_UART0_RXD */ |
| 137 |
AM65X_WKUP_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (AB5) WKUP_UART0_TXD */ |
| 138 |
AM65X_WKUP_IOPAD(0x00c8, PIN_INPUT, 1) /* (AC2) WKUP_GPIO0_6.WKUP_UART0_CTSn */ |
| 139 |
AM65X_WKUP_IOPAD(0x00cc, PIN_OUTPUT, 1) /* (AC1) WKUP_GPIO0_7.WKUP_UART0_RTSn */ |
| 140 |
>; |
| 141 |
bootph-all; |
| 142 |
}; |
| 143 |
|
| 144 |
ddr_vtt_pins_default: ddr-vtt-default-pins { |
| 145 |
pinctrl-single,pins = < |
| 146 |
AM65X_WKUP_IOPAD(0x0040, PIN_OUTPUT_PULLUP, 7) /* WKUP_GPIO0_28 */ |
| 147 |
>; |
| 148 |
bootph-all; |
| 149 |
}; |
| 150 |
|
| 151 |
wkup_i2c0_pins_default: wkup-i2c0-default-pins { |
| 152 |
pinctrl-single,pins = < |
| 153 |
AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */ |
| 154 |
AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */ |
| 155 |
>; |
| 156 |
bootph-all; |
| 157 |
}; |
| 158 |
|
| 159 |
push_button_pins_default: push-button-default-pins { |
| 160 |
pinctrl-single,pins = < |
| 161 |
AM65X_WKUP_IOPAD(0x0030, PIN_INPUT, 7) /* (R5) WKUP_GPIO0_24 */ |
| 162 |
AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) WKUP_GPIO0_27 */ |
| 163 |
>; |
| 164 |
}; |
| 165 |
|
| 166 |
mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { |
| 167 |
pinctrl-single,pins = < |
| 168 |
AM65X_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* (V1) MCU_OSPI0_CLK */ |
| 169 |
AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* (U2) MCU_OSPI0_DQS */ |
| 170 |
AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* (U4) MCU_OSPI0_D0 */ |
| 171 |
AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* (U5) MCU_OSPI0_D1 */ |
| 172 |
AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* (T2) MCU_OSPI0_D2 */ |
| 173 |
AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* (T3) MCU_OSPI0_D3 */ |
| 174 |
AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* (T4) MCU_OSPI0_D4 */ |
| 175 |
AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* (T5) MCU_OSPI0_D5 */ |
| 176 |
AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* (R2) MCU_OSPI0_D6 */ |
| 177 |
AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* (R3) MCU_OSPI0_D7 */ |
| 178 |
AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) MCU_OSPI0_CSn0 */ |
| 179 |
>; |
| 180 |
bootph-all; |
| 181 |
}; |
| 182 |
|
| 183 |
wkup_pca554_default: wkup-pca554-default-pins { |
| 184 |
pinctrl-single,pins = < |
| 185 |
AM65X_WKUP_IOPAD(0x0034, PIN_INPUT, 7) /* (T1) MCU_OSPI1_CLK.WKUP_GPIO0_25 */ |
| 186 |
>; |
| 187 |
}; |
| 188 |
|
| 189 |
mcu_uart0_pins_default: mcu-uart0-default-pins { |
| 190 |
pinctrl-single,pins = < |
| 191 |
AM65X_WKUP_IOPAD(0x0044, PIN_INPUT, 4) /* (P4) MCU_OSPI1_D1.MCU_UART0_RXD */ |
| 192 |
AM65X_WKUP_IOPAD(0x0048, PIN_OUTPUT, 4) /* (P5) MCU_OSPI1_D2.MCU_UART0_TXD */ |
| 193 |
AM65X_WKUP_IOPAD(0x004c, PIN_INPUT, 4) /* (P1) MCU_OSPI1_D3.MCU_UART0_CTSn */ |
| 194 |
AM65X_WKUP_IOPAD(0x0054, PIN_OUTPUT, 4) /* (N3) MCU_OSPI1_CSn1.MCU_UART0_RTSn */ |
| 195 |
>; |
| 196 |
bootph-all; |
| 197 |
}; |
| 198 |
|
| 199 |
mcu_cpsw_pins_default: mcu-cpsw-default-pins { |
| 200 |
pinctrl-single,pins = < |
| 201 |
AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */ |
| 202 |
AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */ |
| 203 |
AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */ |
| 204 |
AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */ |
| 205 |
AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */ |
| 206 |
AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */ |
| 207 |
AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */ |
| 208 |
AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */ |
| 209 |
AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */ |
| 210 |
AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */ |
| 211 |
AM65X_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* (N1) MCU_RGMII1_TXC */ |
| 212 |
AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */ |
| 213 |
>; |
| 214 |
}; |
| 215 |
|
| 216 |
mcu_mdio_pins_default: mcu-mdio1-default-pins { |
| 217 |
pinctrl-single,pins = < |
| 218 |
AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ |
| 219 |
AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ |
| 220 |
>; |
| 221 |
}; |
| 222 |
|
| 223 |
mcu_i2c0_pins_default: mcu-i2c0-default-pins { |
| 224 |
pinctrl-single,pins = < |
| 225 |
AM65X_WKUP_IOPAD(0x00e8, PIN_INPUT, 0) /* (AD8) MCU_I2C0_SCL */ |
| 226 |
AM65X_WKUP_IOPAD(0x00ec, PIN_INPUT, 0) /* (AD7) MCU_I2C0_SDA */ |
| 227 |
>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
|
| 231 |
&main_pmx0 { |
| 232 |
main_uart0_pins_default: main-uart0-default-pins { |
| 233 |
pinctrl-single,pins = < |
| 234 |
AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */ |
| 235 |
AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */ |
| 236 |
AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */ |
| 237 |
AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */ |
| 238 |
>; |
| 239 |
bootph-all; |
| 240 |
}; |
| 241 |
|
| 242 |
main_i2c2_pins_default: main-i2c2-default-pins { |
| 243 |
pinctrl-single,pins = < |
| 244 |
AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */ |
| 245 |
AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */ |
| 246 |
>; |
| 247 |
}; |
| 248 |
|
| 249 |
main_spi0_pins_default: main-spi0-default-pins { |
| 250 |
pinctrl-single,pins = < |
| 251 |
AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */ |
| 252 |
AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */ |
| 253 |
AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */ |
| 254 |
AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */ |
| 255 |
>; |
| 256 |
}; |
| 257 |
|
| 258 |
main_mmc0_pins_default: main-mmc0-default-pins { |
| 259 |
pinctrl-single,pins = < |
| 260 |
AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ |
| 261 |
AM65X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ |
| 262 |
AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ |
| 263 |
AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ |
| 264 |
AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ |
| 265 |
AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ |
| 266 |
AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ |
| 267 |
AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ |
| 268 |
AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ |
| 269 |
AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ |
| 270 |
AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */ |
| 271 |
AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ |
| 272 |
>; |
| 273 |
bootph-all; |
| 274 |
}; |
| 275 |
|
| 276 |
main_mmc1_pins_default: main-mmc1-default-pins { |
| 277 |
pinctrl-single,pins = < |
| 278 |
AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */ |
| 279 |
AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */ |
| 280 |
AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */ |
| 281 |
AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */ |
| 282 |
AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */ |
| 283 |
AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */ |
| 284 |
AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */ |
| 285 |
AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */ |
| 286 |
>; |
| 287 |
bootph-all; |
| 288 |
}; |
| 289 |
|
| 290 |
usb1_pins_default: usb1-default-pins { |
| 291 |
pinctrl-single,pins = < |
| 292 |
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */ |
| 293 |
>; |
| 294 |
}; |
| 295 |
}; |
| 296 |
|
| 297 |
&main_pmx1 { |
| 298 |
main_i2c0_pins_default: main-i2c0-default-pins { |
| 299 |
pinctrl-single,pins = < |
| 300 |
AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */ |
| 301 |
AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */ |
| 302 |
>; |
| 303 |
}; |
| 304 |
|
| 305 |
main_i2c1_pins_default: main-i2c1-default-pins { |
| 306 |
pinctrl-single,pins = < |
| 307 |
AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */ |
| 308 |
AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */ |
| 309 |
>; |
| 310 |
}; |
| 311 |
|
| 312 |
ecap0_pins_default: ecap0-default-pins { |
| 313 |
pinctrl-single,pins = < |
| 314 |
AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */ |
| 315 |
>; |
| 316 |
}; |
| 317 |
}; |
| 318 |
|
| 319 |
&wkup_uart0 { |
| 320 |
/* Wakeup UART is used by System firmware */ |
| 321 |
status = "reserved"; |
| 322 |
pinctrl-names = "default"; |
| 323 |
pinctrl-0 = <&wkup_uart0_pins_default>; |
| 324 |
}; |
| 325 |
|
| 326 |
&mcu_uart0 { |
| 327 |
status = "okay"; |
| 328 |
pinctrl-names = "default"; |
| 329 |
pinctrl-0 = <&mcu_uart0_pins_default>; |
| 330 |
}; |
| 331 |
|
| 332 |
&main_uart0 { |
| 333 |
status = "okay"; |
| 334 |
pinctrl-names = "default"; |
| 335 |
pinctrl-0 = <&main_uart0_pins_default>; |
| 336 |
power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 337 |
bootph-all; |
| 338 |
}; |
| 339 |
|
| 340 |
&wkup_i2c0 { |
| 341 |
status = "okay"; |
| 342 |
pinctrl-names = "default"; |
| 343 |
pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 344 |
clock-frequency = <400000>; |
| 345 |
|
| 346 |
eeprom@50 { |
| 347 |
/* AT24CM01 */ |
| 348 |
compatible = "atmel,24c1024"; |
| 349 |
reg = <0x50>; |
| 350 |
}; |
| 351 |
|
| 352 |
vdd_mpu: regulator@60 { |
| 353 |
compatible = "ti,tps62363"; |
| 354 |
reg = <0x60>; |
| 355 |
regulator-name = "VDD_MPU"; |
| 356 |
regulator-min-microvolt = <500000>; |
| 357 |
regulator-max-microvolt = <1770000>; |
| 358 |
regulator-always-on; |
| 359 |
regulator-boot-on; |
| 360 |
ti,vsel0-state-high; |
| 361 |
ti,vsel1-state-high; |
| 362 |
ti,enable-vout-discharge; |
| 363 |
bootph-all; |
| 364 |
}; |
| 365 |
|
| 366 |
gpio@38 { |
| 367 |
compatible = "nxp,pca9554"; |
| 368 |
reg = <0x38>; |
| 369 |
gpio-controller; |
| 370 |
#gpio-cells = <2>; |
| 371 |
}; |
| 372 |
|
| 373 |
pca9554: gpio@39 { |
| 374 |
compatible = "nxp,pca9554"; |
| 375 |
reg = <0x39>; |
| 376 |
gpio-controller; |
| 377 |
#gpio-cells = <2>; |
| 378 |
pinctrl-names = "default"; |
| 379 |
pinctrl-0 = <&wkup_pca554_default>; |
| 380 |
interrupt-parent = <&wkup_gpio0>; |
| 381 |
interrupts = <25 IRQ_TYPE_EDGE_FALLING>; |
| 382 |
interrupt-controller; |
| 383 |
#interrupt-cells = <2>; |
| 384 |
}; |
| 385 |
}; |
| 386 |
|
| 387 |
&mcu_i2c0 { |
| 388 |
status = "okay"; |
| 389 |
pinctrl-names = "default"; |
| 390 |
pinctrl-0 = <&mcu_i2c0_pins_default>; |
| 391 |
clock-frequency = <400000>; |
| 392 |
}; |
| 393 |
|
| 394 |
&main_i2c0 { |
| 395 |
status = "okay"; |
| 396 |
pinctrl-names = "default"; |
| 397 |
pinctrl-0 = <&main_i2c0_pins_default>; |
| 398 |
clock-frequency = <400000>; |
| 399 |
|
| 400 |
pca9555: gpio@21 { |
| 401 |
compatible = "nxp,pca9555"; |
| 402 |
reg = <0x21>; |
| 403 |
gpio-controller; |
| 404 |
#gpio-cells = <2>; |
| 405 |
}; |
| 406 |
}; |
| 407 |
|
| 408 |
&main_i2c1 { |
| 409 |
status = "okay"; |
| 410 |
pinctrl-names = "default"; |
| 411 |
pinctrl-0 = <&main_i2c1_pins_default>; |
| 412 |
clock-frequency = <400000>; |
| 413 |
}; |
| 414 |
|
| 415 |
&main_i2c2 { |
| 416 |
status = "okay"; |
| 417 |
pinctrl-names = "default"; |
| 418 |
pinctrl-0 = <&main_i2c2_pins_default>; |
| 419 |
clock-frequency = <400000>; |
| 420 |
}; |
| 421 |
|
| 422 |
&ecap0 { |
| 423 |
status = "okay"; |
| 424 |
pinctrl-names = "default"; |
| 425 |
pinctrl-0 = <&ecap0_pins_default>; |
| 426 |
}; |
| 427 |
|
| 428 |
&main_spi0 { |
| 429 |
status = "okay"; |
| 430 |
pinctrl-names = "default"; |
| 431 |
pinctrl-0 = <&main_spi0_pins_default>; |
| 432 |
#address-cells = <1>; |
| 433 |
#size-cells = <0>; |
| 434 |
ti,pindir-d0-out-d1-in; |
| 435 |
|
| 436 |
flash@0 { |
| 437 |
compatible = "jedec,spi-nor"; |
| 438 |
reg = <0x0>; |
| 439 |
spi-tx-bus-width = <1>; |
| 440 |
spi-rx-bus-width = <1>; |
| 441 |
spi-max-frequency = <48000000>; |
| 442 |
}; |
| 443 |
}; |
| 444 |
|
| 445 |
&sdhci0 { |
| 446 |
status = "okay"; |
| 447 |
pinctrl-names = "default"; |
| 448 |
pinctrl-0 = <&main_mmc0_pins_default>; |
| 449 |
bus-width = <8>; |
| 450 |
non-removable; |
| 451 |
ti,driver-strength-ohm = <50>; |
| 452 |
bootph-all; |
| 453 |
}; |
| 454 |
|
| 455 |
/* |
| 456 |
* Because of erratas i2025 and i2026 for silicon revision 1.0, the |
| 457 |
* SD card interface might fail. Boards with sr1.0 are recommended to |
| 458 |
* disable sdhci1 |
| 459 |
*/ |
| 460 |
&sdhci1 { |
| 461 |
status = "okay"; |
| 462 |
vmmc-supply = <&vdd_mmc1_sd>; |
| 463 |
pinctrl-names = "default"; |
| 464 |
pinctrl-0 = <&main_mmc1_pins_default>; |
| 465 |
ti,driver-strength-ohm = <50>; |
| 466 |
disable-wp; |
| 467 |
bootph-all; |
| 468 |
}; |
| 469 |
|
| 470 |
&usb1 { |
| 471 |
pinctrl-names = "default"; |
| 472 |
pinctrl-0 = <&usb1_pins_default>; |
| 473 |
dr_mode = "otg"; |
| 474 |
}; |
| 475 |
|
| 476 |
&dwc3_0 { |
| 477 |
status = "disabled"; |
| 478 |
}; |
| 479 |
|
| 480 |
&usb0_phy { |
| 481 |
status = "disabled"; |
| 482 |
}; |
| 483 |
|
| 484 |
&tscadc0 { |
| 485 |
status = "okay"; |
| 486 |
adc { |
| 487 |
ti,adc-channels = <0 1 2 3 4 5 6 7>; |
| 488 |
}; |
| 489 |
}; |
| 490 |
|
| 491 |
&tscadc1 { |
| 492 |
status = "okay"; |
| 493 |
adc { |
| 494 |
ti,adc-channels = <0 1 2 3 4 5 6 7>; |
| 495 |
}; |
| 496 |
}; |
| 497 |
|
| 498 |
&serdes0 { |
| 499 |
status = "disabled"; |
| 500 |
}; |
| 501 |
|
| 502 |
&serdes1 { |
| 503 |
status = "disabled"; |
| 504 |
}; |
| 505 |
|
| 506 |
&ospi0 { |
| 507 |
status = "okay"; |
| 508 |
pinctrl-names = "default"; |
| 509 |
pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; |
| 510 |
|
| 511 |
flash@0 { |
| 512 |
compatible = "jedec,spi-nor"; |
| 513 |
reg = <0x0>; |
| 514 |
spi-tx-bus-width = <8>; |
| 515 |
spi-rx-bus-width = <8>; |
| 516 |
spi-max-frequency = <25000000>; |
| 517 |
cdns,tshsl-ns = <60>; |
| 518 |
cdns,tsd2d-ns = <60>; |
| 519 |
cdns,tchsh-ns = <60>; |
| 520 |
cdns,tslch-ns = <60>; |
| 521 |
cdns,read-delay = <0>; |
| 522 |
|
| 523 |
partitions { |
| 524 |
compatible = "fixed-partitions"; |
| 525 |
#address-cells = <1>; |
| 526 |
#size-cells = <1>; |
| 527 |
|
| 528 |
partition@0 { |
| 529 |
label = "ospi.tiboot3"; |
| 530 |
reg = <0x0 0x80000>; |
| 531 |
}; |
| 532 |
|
| 533 |
partition@80000 { |
| 534 |
label = "ospi.tispl"; |
| 535 |
reg = <0x80000 0x200000>; |
| 536 |
}; |
| 537 |
|
| 538 |
partition@280000 { |
| 539 |
label = "ospi.u-boot"; |
| 540 |
reg = <0x280000 0x400000>; |
| 541 |
}; |
| 542 |
|
| 543 |
partition@680000 { |
| 544 |
label = "ospi.env"; |
| 545 |
reg = <0x680000 0x20000>; |
| 546 |
}; |
| 547 |
|
| 548 |
partition@6a0000 { |
| 549 |
label = "ospi.env.backup"; |
| 550 |
reg = <0x6a0000 0x20000>; |
| 551 |
}; |
| 552 |
|
| 553 |
partition@6c0000 { |
| 554 |
label = "ospi.sysfw"; |
| 555 |
reg = <0x6c0000 0x100000>; |
| 556 |
}; |
| 557 |
|
| 558 |
partition@800000 { |
| 559 |
label = "ospi.rootfs"; |
| 560 |
reg = <0x800000 0x37c0000>; |
| 561 |
}; |
| 562 |
|
| 563 |
partition@3fe0000 { |
| 564 |
label = "ospi.phypattern"; |
| 565 |
reg = <0x3fe0000 0x20000>; |
| 566 |
}; |
| 567 |
}; |
| 568 |
}; |
| 569 |
}; |
| 570 |
|
| 571 |
&mcu_cpsw { |
| 572 |
pinctrl-names = "default"; |
| 573 |
pinctrl-0 = <&mcu_cpsw_pins_default>; |
| 574 |
status = "okay"; |
| 575 |
}; |
| 576 |
|
| 577 |
&davinci_mdio { |
| 578 |
status = "okay"; |
| 579 |
pinctrl-names = "default"; |
| 580 |
pinctrl-0 = <&mcu_mdio_pins_default>; |
| 581 |
|
| 582 |
phy0: ethernet-phy@0 { |
| 583 |
reg = <0>; |
| 584 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 585 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 586 |
}; |
| 587 |
}; |
| 588 |
|
| 589 |
&cpsw_port1 { |
| 590 |
phy-mode = "rgmii-id"; |
| 591 |
phy-handle = <&phy0>; |
| 592 |
}; |
| 593 |
|
| 594 |
&dss { |
| 595 |
status = "disabled"; |
| 596 |
}; |
| 597 |
|
| 598 |
&wkup_gpio0 { |
| 599 |
bootph-all; |
| 600 |
}; |
| 601 |
|
| 602 |
#include "k3-am65-ti-ipc-firmware.dtsi" |