| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* AM62D2 EVM: https://www.ti.com/lit/zip/sprcal5 |
| 4 |
* |
| 5 |
* Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include <dt-bindings/leds/common.h> |
| 11 |
#include <dt-bindings/gpio/gpio.h> |
| 12 |
#include <dt-bindings/net/ti-dp83867.h> |
| 13 |
#include "k3-am62d2.dtsi" |
| 14 |
|
| 15 |
/ { |
| 16 |
compatible = "ti,am62d2-evm", "ti,am62d2"; |
| 17 |
model = "Texas Instruments AM62D2 EVM"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
serial0 = &wkup_uart0; |
| 21 |
serial1 = &mcu_uart0; |
| 22 |
serial2 = &main_uart0; |
| 23 |
mmc0 = &sdhci0; |
| 24 |
mmc1 = &sdhci1; |
| 25 |
rtc0 = &wkup_rtc0; |
| 26 |
ethernet0 = &cpsw_port1; |
| 27 |
ethernet1 = &cpsw_port2; |
| 28 |
spi0 = &ospi0; |
| 29 |
}; |
| 30 |
|
| 31 |
chosen { |
| 32 |
stdout-path = &main_uart0; |
| 33 |
}; |
| 34 |
|
| 35 |
memory@80000000 { |
| 36 |
device_type = "memory"; |
| 37 |
/* 4G RAM */ |
| 38 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>, |
| 39 |
<0x00000008 0x80000000 0x00000000 0x80000000>; |
| 40 |
bootph-all; |
| 41 |
}; |
| 42 |
|
| 43 |
reserved_memory: reserved-memory { |
| 44 |
#address-cells = <2>; |
| 45 |
#size-cells = <2>; |
| 46 |
ranges; |
| 47 |
|
| 48 |
/* global cma region */ |
| 49 |
linux,cma { |
| 50 |
compatible = "shared-dma-pool"; |
| 51 |
reusable; |
| 52 |
size = <0x00 0x2000000>; |
| 53 |
alloc-ranges = <0x00 0xc0000000 0x00 0x2000000>; |
| 54 |
linux,cma-default; |
| 55 |
}; |
| 56 |
|
| 57 |
secure_tfa_ddr: tfa@80000000 { |
| 58 |
reg = <0x00 0x80000000 0x00 0x80000>; |
| 59 |
no-map; |
| 60 |
}; |
| 61 |
|
| 62 |
wkup_r5fss0_core0_dma_memory_region: memory@9c800000 { |
| 63 |
compatible = "shared-dma-pool"; |
| 64 |
reg = <0x00 0x9c800000 0x00 0x100000>; |
| 65 |
no-map; |
| 66 |
}; |
| 67 |
|
| 68 |
wkup_r5fss0_core0_memory_region: memory@9c900000 { |
| 69 |
compatible = "shared-dma-pool"; |
| 70 |
reg = <0x00 0x9c900000 0x00 0xf00000>; |
| 71 |
no-map; |
| 72 |
bootph-pre-ram; |
| 73 |
}; |
| 74 |
|
| 75 |
secure_ddr: optee@9e800000 { |
| 76 |
reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ |
| 77 |
no-map; |
| 78 |
}; |
| 79 |
|
| 80 |
rtos_ipc_memory_region: memory@a0000000 { |
| 81 |
compatible = "shared-dma-pool"; |
| 82 |
reg = <0x00 0xa0000000 0x00 0x01000000>; |
| 83 |
no-map; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
opp-table { |
| 88 |
/* Requires VDD_CORE at 0v85 */ |
| 89 |
opp-1400000000 { |
| 90 |
opp-hz = /bits/ 64 <1400000000>; |
| 91 |
opp-supported-hw = <0x01 0x0004>; |
| 92 |
clock-latency-ns = <6000000>; |
| 93 |
}; |
| 94 |
}; |
| 95 |
|
| 96 |
vout_pd: regulator-0 { |
| 97 |
/* TPS65988 PD CONTROLLER OUTPUT */ |
| 98 |
compatible = "regulator-fixed"; |
| 99 |
regulator-name = "vout_pd"; |
| 100 |
regulator-min-microvolt = <5000000>; |
| 101 |
regulator-max-microvolt = <5000000>; |
| 102 |
regulator-always-on; |
| 103 |
regulator-boot-on; |
| 104 |
bootph-all; |
| 105 |
}; |
| 106 |
|
| 107 |
vmain_pd: regulator-1 { |
| 108 |
/* Output of TPS22811 */ |
| 109 |
compatible = "regulator-fixed"; |
| 110 |
regulator-name = "vmain_pd"; |
| 111 |
regulator-min-microvolt = <5000000>; |
| 112 |
regulator-max-microvolt = <5000000>; |
| 113 |
vin-supply = <&vout_pd>; |
| 114 |
regulator-always-on; |
| 115 |
regulator-boot-on; |
| 116 |
bootph-all; |
| 117 |
}; |
| 118 |
|
| 119 |
vcc_5v0: regulator-2 { |
| 120 |
/* Output of TPS630702RNMR */ |
| 121 |
compatible = "regulator-fixed"; |
| 122 |
regulator-name = "vcc_5v0"; |
| 123 |
regulator-min-microvolt = <5000000>; |
| 124 |
regulator-max-microvolt = <5000000>; |
| 125 |
vin-supply = <&vmain_pd>; |
| 126 |
regulator-always-on; |
| 127 |
regulator-boot-on; |
| 128 |
bootph-all; |
| 129 |
}; |
| 130 |
|
| 131 |
vcc_3v3_main: regulator-3 { |
| 132 |
/* output of LM5141-Q1 */ |
| 133 |
compatible = "regulator-fixed"; |
| 134 |
regulator-name = "vcc_3v3_main"; |
| 135 |
regulator-min-microvolt = <3300000>; |
| 136 |
regulator-max-microvolt = <3300000>; |
| 137 |
vin-supply = <&vmain_pd>; |
| 138 |
regulator-always-on; |
| 139 |
regulator-boot-on; |
| 140 |
bootph-all; |
| 141 |
}; |
| 142 |
|
| 143 |
vdd_mmc1: regulator-4 { |
| 144 |
/* TPS22918DBVR */ |
| 145 |
compatible = "regulator-fixed"; |
| 146 |
regulator-name = "vdd_mmc1"; |
| 147 |
regulator-min-microvolt = <3300000>; |
| 148 |
regulator-max-microvolt = <3300000>; |
| 149 |
vin-supply = <&vcc_3v3_sys>; |
| 150 |
regulator-boot-on; |
| 151 |
enable-active-high; |
| 152 |
gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; |
| 153 |
bootph-all; |
| 154 |
}; |
| 155 |
|
| 156 |
vcc_3v3_sys: regulator-5 { |
| 157 |
/* output of TPS222965DSGT */ |
| 158 |
compatible = "regulator-fixed"; |
| 159 |
regulator-name = "vcc_3v3_sys"; |
| 160 |
regulator-min-microvolt = <3300000>; |
| 161 |
regulator-max-microvolt = <3300000>; |
| 162 |
vin-supply = <&vcc_3v3_main>; |
| 163 |
regulator-always-on; |
| 164 |
regulator-boot-on; |
| 165 |
bootph-all; |
| 166 |
}; |
| 167 |
|
| 168 |
vddshv_sdio: regulator-6 { |
| 169 |
/* output of TLV7103318QDSERQ1 */ |
| 170 |
compatible = "regulator-gpio"; |
| 171 |
regulator-name = "vddshv_sdio"; |
| 172 |
pinctrl-names = "default"; |
| 173 |
pinctrl-0 = <&vddshv_sdio_pins_default>; |
| 174 |
regulator-min-microvolt = <1800000>; |
| 175 |
regulator-max-microvolt = <3300000>; |
| 176 |
vin-supply = <&vcc_5v0>; |
| 177 |
regulator-boot-on; |
| 178 |
gpios = <&main_gpio0 59 GPIO_ACTIVE_HIGH>; |
| 179 |
states = <1800000 0x0>, |
| 180 |
<3300000 0x1>; |
| 181 |
bootph-all; |
| 182 |
}; |
| 183 |
|
| 184 |
leds { |
| 185 |
compatible = "gpio-leds"; |
| 186 |
pinctrl-names = "default"; |
| 187 |
pinctrl-0 = <&usr_led_pins_default>; |
| 188 |
|
| 189 |
led-0 { |
| 190 |
label = "am62d-evm:green:heartbeat"; |
| 191 |
gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>; |
| 192 |
linux,default-trigger = "heartbeat"; |
| 193 |
function = LED_FUNCTION_HEARTBEAT; |
| 194 |
default-state = "off"; |
| 195 |
}; |
| 196 |
}; |
| 197 |
}; |
| 198 |
|
| 199 |
&mcu_pmx0 { |
| 200 |
status = "okay"; |
| 201 |
|
| 202 |
pmic_irq_pins_default: pmic-irq-default-pins { |
| 203 |
pinctrl-single,pins = < |
| 204 |
AM62DX_IOPAD(0x01f4, PIN_INPUT, 7) /* (F17) EXTINTn.GPIO1_31 */ |
| 205 |
>; |
| 206 |
}; |
| 207 |
|
| 208 |
wkup_uart0_pins_default: wkup-uart0-default-pins { |
| 209 |
pinctrl-single,pins = < |
| 210 |
AM62DX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */ |
| 211 |
AM62DX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */ |
| 212 |
AM62DX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */ |
| 213 |
AM62DX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */ |
| 214 |
>; |
| 215 |
bootph-all; |
| 216 |
}; |
| 217 |
|
| 218 |
wkup_i2c0_pins_default: wkup-i2c0-default-pins { |
| 219 |
pinctrl-single,pins = < |
| 220 |
AM62DX_MCU_IOPAD(0x004c, PIN_INPUT, 0) /* (D13) WKUP_I2C0_SCL */ |
| 221 |
AM62DX_MCU_IOPAD(0x0050, PIN_INPUT, 0) /* (E13) WKUP_I2C0_SDA */ |
| 222 |
>; |
| 223 |
bootph-all; |
| 224 |
}; |
| 225 |
}; |
| 226 |
|
| 227 |
/* WKUP UART0 is used for DM firmware logs */ |
| 228 |
&wkup_uart0 { |
| 229 |
pinctrl-names = "default"; |
| 230 |
pinctrl-0 = <&wkup_uart0_pins_default>; |
| 231 |
bootph-all; |
| 232 |
status = "reserved"; |
| 233 |
}; |
| 234 |
|
| 235 |
&main_pmx0 { |
| 236 |
main_uart0_pins_default: main-uart0-default-pins { |
| 237 |
pinctrl-single,pins = < |
| 238 |
AM62DX_IOPAD(0x01c8, PIN_INPUT, 0) /* (E14) UART0_RXD */ |
| 239 |
AM62DX_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */ |
| 240 |
>; |
| 241 |
bootph-all; |
| 242 |
}; |
| 243 |
|
| 244 |
main_i2c0_pins_default: main-i2c0-default-pins { |
| 245 |
pinctrl-single,pins = < |
| 246 |
AM62DX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D17) I2C0_SCL */ |
| 247 |
AM62DX_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (E16) I2C0_SDA */ |
| 248 |
>; |
| 249 |
bootph-all; |
| 250 |
}; |
| 251 |
|
| 252 |
main_i2c1_pins_default: main-i2c1-default-pins { |
| 253 |
pinctrl-single,pins = < |
| 254 |
AM62DX_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (C17) I2C1_SCL */ |
| 255 |
AM62DX_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (E17) I2C1_SDA */ |
| 256 |
>; |
| 257 |
bootph-all; |
| 258 |
}; |
| 259 |
|
| 260 |
main_i2c2_pins_default: main-i2c2-default-pins { |
| 261 |
pinctrl-single,pins = < |
| 262 |
AM62DX_IOPAD(0x00b0, PIN_INPUT_PULLUP, 1) /* (M22) GPMC0_CSn2.I2C2_SCL */ |
| 263 |
AM62DX_IOPAD(0x00b4, PIN_INPUT_PULLUP, 1) /* (M20) GPMC0_CSn3.I2C2_SDA */ |
| 264 |
>; |
| 265 |
}; |
| 266 |
|
| 267 |
main_mmc0_pins_default: main-mmc0-default-pins { |
| 268 |
pinctrl-single,pins = < |
| 269 |
AM62DX_IOPAD(0x0220, PIN_INPUT_PULLUP, 0) /* (Y6) MMC0_CMD */ |
| 270 |
AM62DX_IOPAD(0x0218, PIN_OUTPUT, 0) /* (AB7) MMC0_CLK */ |
| 271 |
AM62DX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (AA6) MMC0_DAT0 */ |
| 272 |
AM62DX_IOPAD(0x0210, PIN_INPUT_PULLUP, 0) /* (AB6) MMC0_DAT1 */ |
| 273 |
AM62DX_IOPAD(0x020c, PIN_INPUT_PULLUP, 0) /* (Y7) MMC0_DAT2 */ |
| 274 |
AM62DX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0) /* (AA7) MMC0_DAT3 */ |
| 275 |
AM62DX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0) /* (Y8) MMC0_DAT4 */ |
| 276 |
AM62DX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0) /* (W7) MMC0_DAT5 */ |
| 277 |
AM62DX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0) /* (W9) MMC0_DAT6 */ |
| 278 |
AM62DX_IOPAD(0x01f8, PIN_INPUT_PULLUP, 0) /* (AB8) MMC0_DAT7 */ |
| 279 |
>; |
| 280 |
bootph-all; |
| 281 |
}; |
| 282 |
|
| 283 |
main_mmc1_pins_default: main-mmc1-default-pins { |
| 284 |
pinctrl-single,pins = < |
| 285 |
AM62DX_IOPAD(0x023c, PIN_INPUT, 0) /* (C21) MMC1_CMD */ |
| 286 |
AM62DX_IOPAD(0x0234, PIN_OUTPUT, 0) /* (E22) MMC1_CLK */ |
| 287 |
AM62DX_IOPAD(0x0230, PIN_INPUT, 0) /* (B22) MMC1_DAT0 */ |
| 288 |
AM62DX_IOPAD(0x022c, PIN_INPUT, 0) /* (D21) MMC1_DAT1 */ |
| 289 |
AM62DX_IOPAD(0x0228, PIN_INPUT, 0) /* (C22) MMC1_DAT2 */ |
| 290 |
AM62DX_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */ |
| 291 |
AM62DX_IOPAD(0x0240, PIN_INPUT, 0) /* (E18) MMC1_SDCD */ |
| 292 |
>; |
| 293 |
bootph-all; |
| 294 |
}; |
| 295 |
|
| 296 |
main_mdio0_pins_default: main-mdio0-default-pins { |
| 297 |
pinctrl-single,pins = < |
| 298 |
AM62DX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */ |
| 299 |
AM62DX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */ |
| 300 |
>; |
| 301 |
bootph-all; |
| 302 |
}; |
| 303 |
|
| 304 |
main_rgmii1_pins_default: main-rgmii1-default-pins { |
| 305 |
pinctrl-single,pins = < |
| 306 |
AM62DX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */ |
| 307 |
AM62DX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */ |
| 308 |
AM62DX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */ |
| 309 |
AM62DX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */ |
| 310 |
AM62DX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */ |
| 311 |
AM62DX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */ |
| 312 |
AM62DX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */ |
| 313 |
AM62DX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */ |
| 314 |
AM62DX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */ |
| 315 |
AM62DX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */ |
| 316 |
AM62DX_IOPAD(0x0130, PIN_OUTPUT, 0) /* (AB17) RGMII1_TXC */ |
| 317 |
AM62DX_IOPAD(0x012c, PIN_OUTPUT, 0) /* (W16) RGMII1_TX_CTL */ |
| 318 |
>; |
| 319 |
bootph-all; |
| 320 |
}; |
| 321 |
|
| 322 |
main_rgmii2_pins_default: main-rgmii2-default-pins { |
| 323 |
pinctrl-single,pins = < |
| 324 |
AM62DX_IOPAD(0x0184, PIN_INPUT, 0) /* (AA21) RGMII2_RD0 */ |
| 325 |
AM62DX_IOPAD(0x0188, PIN_INPUT, 0) /* (Y20) RGMII2_RD1 */ |
| 326 |
AM62DX_IOPAD(0x018c, PIN_INPUT, 0) /* (AB21) RGMII2_RD2 */ |
| 327 |
AM62DX_IOPAD(0x0190, PIN_INPUT, 0) /* (AB20) RGMII2_RD3 */ |
| 328 |
AM62DX_IOPAD(0x0180, PIN_INPUT, 0) /* (AA20) RGMII2_RXC */ |
| 329 |
AM62DX_IOPAD(0x017c, PIN_INPUT, 0) /* (W18) RGMII2_RX_CTL */ |
| 330 |
AM62DX_IOPAD(0x016c, PIN_INPUT, 0) /* (AA19) RGMII2_TD0 */ |
| 331 |
AM62DX_IOPAD(0x0170, PIN_INPUT, 0) /* (Y18) RGMII2_TD1 */ |
| 332 |
AM62DX_IOPAD(0x0174, PIN_INPUT, 0) /* (AA18) RGMII2_TD2 */ |
| 333 |
AM62DX_IOPAD(0x0178, PIN_INPUT, 0) /* (W17) RGMII2_TD3 */ |
| 334 |
AM62DX_IOPAD(0x0168, PIN_OUTPUT, 0) /* (AB19) RGMII2_TXC */ |
| 335 |
AM62DX_IOPAD(0x0164, PIN_OUTPUT, 0) /* (Y19) RGMII2_TX_CTL */ |
| 336 |
>; |
| 337 |
bootph-all; |
| 338 |
}; |
| 339 |
|
| 340 |
main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins { |
| 341 |
pinctrl-single,pins = < |
| 342 |
AM62DX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */ |
| 343 |
>; |
| 344 |
}; |
| 345 |
|
| 346 |
vddshv_sdio_pins_default: vddshv-sdio-default-pins { |
| 347 |
pinctrl-single,pins = < |
| 348 |
AM62DX_IOPAD(0x00f0, PIN_INPUT, 7) /* (Y21) GPIO0_59 */ |
| 349 |
>; |
| 350 |
bootph-all; |
| 351 |
}; |
| 352 |
|
| 353 |
usr_led_pins_default: usr-led-default-pins { |
| 354 |
pinctrl-single,pins = < |
| 355 |
AM62DX_IOPAD(0x0244, PIN_INPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */ |
| 356 |
>; |
| 357 |
}; |
| 358 |
|
| 359 |
main_usb1_pins_default: main-usb1-default-pins { |
| 360 |
pinctrl-single,pins = < |
| 361 |
AM62DX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (D19) USB1_DRVVBUS */ |
| 362 |
>; |
| 363 |
}; |
| 364 |
|
| 365 |
ospi0_pins_default: ospi0-default-pins { |
| 366 |
pinctrl-single,pins = < |
| 367 |
AM62DX_IOPAD(0x0000, PIN_OUTPUT, 0) /* (L22) OSPI0_CLK */ |
| 368 |
AM62DX_IOPAD(0x002c, PIN_OUTPUT, 0) /* (H21) OSPI0_CSn0 */ |
| 369 |
AM62DX_IOPAD(0x000c, PIN_INPUT, 0) /* (J21) OSPI0_D0 */ |
| 370 |
AM62DX_IOPAD(0x0010, PIN_INPUT, 0) /* (J18) OSPI0_D1 */ |
| 371 |
AM62DX_IOPAD(0x0014, PIN_INPUT, 0) /* (J19) OSPI0_D2 */ |
| 372 |
AM62DX_IOPAD(0x0018, PIN_INPUT, 0) /* (H18) OSPI0_D3 */ |
| 373 |
AM62DX_IOPAD(0x001c, PIN_INPUT, 0) /* (K21) OSPI0_D4 */ |
| 374 |
AM62DX_IOPAD(0x0020, PIN_INPUT, 0) /* (H19) OSPI0_D5 */ |
| 375 |
AM62DX_IOPAD(0x0024, PIN_INPUT, 0) /* (J20) OSPI0_D6 */ |
| 376 |
AM62DX_IOPAD(0x0028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */ |
| 377 |
AM62DX_IOPAD(0x0008, PIN_INPUT, 0) /* (L21) OSPI0_DQS */ |
| 378 |
>; |
| 379 |
bootph-all; |
| 380 |
}; |
| 381 |
}; |
| 382 |
|
| 383 |
&mcu_gpio0 { |
| 384 |
status = "okay"; |
| 385 |
}; |
| 386 |
|
| 387 |
&main_i2c0 { |
| 388 |
pinctrl-names = "default"; |
| 389 |
pinctrl-0 = <&main_i2c0_pins_default>; |
| 390 |
clock-frequency = <400000>; |
| 391 |
bootph-all; |
| 392 |
status = "okay"; |
| 393 |
|
| 394 |
typec_pd0: usb-power-controller@3f { |
| 395 |
compatible = "ti,tps6598x"; |
| 396 |
reg = <0x3f>; |
| 397 |
|
| 398 |
connector { |
| 399 |
compatible = "usb-c-connector"; |
| 400 |
label = "USB-C"; |
| 401 |
self-powered; |
| 402 |
data-role = "dual"; |
| 403 |
power-role = "sink"; |
| 404 |
port { |
| 405 |
usb_con_hs: endpoint { |
| 406 |
remote-endpoint = <&usb0_hs_ep>; |
| 407 |
}; |
| 408 |
}; |
| 409 |
}; |
| 410 |
}; |
| 411 |
|
| 412 |
exp1: gpio@22 { |
| 413 |
compatible = "ti,tca6424"; |
| 414 |
reg = <0x22>; |
| 415 |
gpio-controller; |
| 416 |
#gpio-cells = <2>; |
| 417 |
interrupt-parent = <&main_gpio1>; |
| 418 |
interrupts = <23 IRQ_TYPE_EDGE_FALLING>; |
| 419 |
interrupt-controller; |
| 420 |
#interrupt-cells = <2>; |
| 421 |
pinctrl-names = "default"; |
| 422 |
pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; |
| 423 |
bootph-all; |
| 424 |
|
| 425 |
gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST", |
| 426 |
"","MMC1_SD_EN", |
| 427 |
"VPP_EN", "GPIO_DIX_RST", |
| 428 |
"IO_EXP_OPT_EN", "DIX_INT", |
| 429 |
"GPIO_eMMC_RSTn", "CPLD2_DONE", |
| 430 |
"CPLD2_INTN", "CPLD1_DONE", |
| 431 |
"CPLD1_INTN", "USB_TYPEA_OC_INDICATION", |
| 432 |
"PCM1_INT", "PCM2_INT", |
| 433 |
"GPIO_PCM1_RST", "TEST_GPIO2", |
| 434 |
"GPIO_PCM2_RST", "", |
| 435 |
"IO_MCAN0_STB", "IO_MCAN1_STB", |
| 436 |
"PD_I2C_IRQ", "IO_EXP_TEST_LED"; |
| 437 |
}; |
| 438 |
|
| 439 |
exp2: gpio@20 { |
| 440 |
compatible = "ti,tca6416"; |
| 441 |
reg = <0x20>; |
| 442 |
gpio-controller; |
| 443 |
#gpio-cells = <2>; |
| 444 |
|
| 445 |
gpio-line-names = "PCM6240_BUF_IO_EN", "", |
| 446 |
"CPLD1_JTAGENB", "CPLD1_PROGRAMN", |
| 447 |
"CPLD2_JTAGENB", "CPLD2_PROGRAMN", |
| 448 |
"", "", |
| 449 |
"", "CPLD1_TCK", |
| 450 |
"CPLD1_TMS", "CPLD1_TDI", |
| 451 |
"CPLD1_TDO", "CPLD2_TCK", |
| 452 |
"CPLD2_TMS", "CPLD2_TDI", |
| 453 |
"CPLD2_TDO", "ADDR1_IO_EXP", |
| 454 |
"SoC_I2C0_SCL", "SoC_I2C0_SDA"; |
| 455 |
}; |
| 456 |
}; |
| 457 |
|
| 458 |
&main_i2c1 { |
| 459 |
pinctrl-names = "default"; |
| 460 |
pinctrl-0 = <&main_i2c1_pins_default>; |
| 461 |
clock-frequency = <100000>; |
| 462 |
status = "okay"; |
| 463 |
}; |
| 464 |
|
| 465 |
&main_i2c2 { |
| 466 |
pinctrl-names = "default"; |
| 467 |
pinctrl-0 = <&main_i2c2_pins_default>; |
| 468 |
clock-frequency = <400000>; |
| 469 |
status = "okay"; |
| 470 |
}; |
| 471 |
|
| 472 |
&wkup_i2c0 { |
| 473 |
pinctrl-names = "default"; |
| 474 |
pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 475 |
clock-frequency = <400000>; |
| 476 |
status = "okay"; |
| 477 |
|
| 478 |
tps65224: pmic@48 { |
| 479 |
compatible = "ti,tps65224-q1"; |
| 480 |
reg = <0x48>; |
| 481 |
pinctrl-names = "default"; |
| 482 |
pinctrl-0 = <&pmic_irq_pins_default>; |
| 483 |
interrupt-parent = <&main_gpio1>; |
| 484 |
interrupts = <31 IRQ_TYPE_EDGE_FALLING>; |
| 485 |
ti,primary-pmic; |
| 486 |
|
| 487 |
gpio-controller; |
| 488 |
#gpio-cells = <2>; |
| 489 |
|
| 490 |
buck12-supply = <&vcc_3v3_sys>; |
| 491 |
buck3-supply = <&vcc_3v3_sys>; |
| 492 |
buck4-supply = <&vcc_3v3_sys>; |
| 493 |
ldo1-supply = <&vcc_3v3_sys>; |
| 494 |
ldo2-supply = <&vcc_3v3_sys>; |
| 495 |
ldo3-supply = <&vcc_3v3_sys>; |
| 496 |
|
| 497 |
regulators { |
| 498 |
buck12: buck12 { |
| 499 |
regulator-name = "vdd_core"; |
| 500 |
regulator-min-microvolt = <850000>; |
| 501 |
regulator-max-microvolt = <850000>; |
| 502 |
regulator-boot-on; |
| 503 |
regulator-always-on; |
| 504 |
bootph-all; |
| 505 |
}; |
| 506 |
|
| 507 |
buck3: buck3 { |
| 508 |
regulator-name = "dvdd1v8"; |
| 509 |
regulator-min-microvolt = <1800000>; |
| 510 |
regulator-max-microvolt = <1800000>; |
| 511 |
regulator-boot-on; |
| 512 |
regulator-always-on; |
| 513 |
bootph-all; |
| 514 |
}; |
| 515 |
|
| 516 |
buck4: buck4 { |
| 517 |
regulator-name = "vdds_ddr"; |
| 518 |
regulator-min-microvolt = <1100000>; |
| 519 |
regulator-max-microvolt = <1100000>; |
| 520 |
regulator-boot-on; |
| 521 |
regulator-always-on; |
| 522 |
bootph-all; |
| 523 |
}; |
| 524 |
|
| 525 |
ldo1: ldo1 { |
| 526 |
regulator-name = "vdda_1v8"; |
| 527 |
regulator-min-microvolt = <1800000>; |
| 528 |
regulator-max-microvolt = <1800000>; |
| 529 |
regulator-boot-on; |
| 530 |
regulator-always-on; |
| 531 |
bootph-all; |
| 532 |
}; |
| 533 |
|
| 534 |
ldo2: ldo2 { |
| 535 |
regulator-name = "dvdd3v3"; |
| 536 |
regulator-min-microvolt = <3300000>; |
| 537 |
regulator-max-microvolt = <3300000>; |
| 538 |
regulator-boot-on; |
| 539 |
regulator-always-on; |
| 540 |
bootph-all; |
| 541 |
}; |
| 542 |
|
| 543 |
ldo3: ldo3 { |
| 544 |
regulator-name = "vddr_core"; |
| 545 |
regulator-min-microvolt = <850000>; |
| 546 |
regulator-max-microvolt = <850000>; |
| 547 |
regulator-boot-on; |
| 548 |
regulator-always-on; |
| 549 |
bootph-all; |
| 550 |
}; |
| 551 |
}; |
| 552 |
}; |
| 553 |
}; |
| 554 |
|
| 555 |
&sdhci0 { |
| 556 |
/* eMMC */ |
| 557 |
non-removable; |
| 558 |
pinctrl-names = "default"; |
| 559 |
pinctrl-0 = <&main_mmc0_pins_default>; |
| 560 |
bootph-all; |
| 561 |
status = "okay"; |
| 562 |
}; |
| 563 |
|
| 564 |
&sdhci1 { |
| 565 |
/* SD/MMC */ |
| 566 |
vmmc-supply = <&vdd_mmc1>; |
| 567 |
vqmmc-supply = <&vddshv_sdio>; |
| 568 |
pinctrl-names = "default"; |
| 569 |
pinctrl-0 = <&main_mmc1_pins_default>; |
| 570 |
disable-wp; |
| 571 |
bootph-all; |
| 572 |
status = "okay"; |
| 573 |
}; |
| 574 |
|
| 575 |
&main_gpio0 { |
| 576 |
bootph-all; |
| 577 |
status = "okay"; |
| 578 |
}; |
| 579 |
|
| 580 |
&main_gpio1 { |
| 581 |
bootph-all; |
| 582 |
status = "okay"; |
| 583 |
}; |
| 584 |
|
| 585 |
&main_gpio_intr { |
| 586 |
status = "okay"; |
| 587 |
}; |
| 588 |
|
| 589 |
&main_uart0 { |
| 590 |
pinctrl-names = "default"; |
| 591 |
pinctrl-0 = <&main_uart0_pins_default>; |
| 592 |
bootph-all; |
| 593 |
status = "okay"; |
| 594 |
}; |
| 595 |
|
| 596 |
&usbss0 { |
| 597 |
status = "okay"; |
| 598 |
ti,vbus-divider; |
| 599 |
}; |
| 600 |
|
| 601 |
&usb0 { |
| 602 |
usb-role-switch; |
| 603 |
|
| 604 |
port { |
| 605 |
usb0_hs_ep: endpoint { |
| 606 |
remote-endpoint = <&usb_con_hs>; |
| 607 |
}; |
| 608 |
}; |
| 609 |
}; |
| 610 |
|
| 611 |
&usbss1 { |
| 612 |
status = "okay"; |
| 613 |
}; |
| 614 |
|
| 615 |
&usb1 { |
| 616 |
dr_mode = "host"; |
| 617 |
pinctrl-names = "default"; |
| 618 |
pinctrl-0 = <&main_usb1_pins_default>; |
| 619 |
}; |
| 620 |
|
| 621 |
&cpsw3g { |
| 622 |
pinctrl-names = "default"; |
| 623 |
pinctrl-0 = <&main_rgmii1_pins_default>, |
| 624 |
<&main_rgmii2_pins_default>; |
| 625 |
status = "okay"; |
| 626 |
|
| 627 |
cpts@3d000 { |
| 628 |
/* MAP HW3_TS_PUSH to GENF1 */ |
| 629 |
ti,pps = <2 1>; |
| 630 |
}; |
| 631 |
}; |
| 632 |
|
| 633 |
&cpsw_port1 { |
| 634 |
phy-mode = "rgmii-id"; |
| 635 |
phy-handle = <&cpsw3g_phy0>; |
| 636 |
status = "okay"; |
| 637 |
}; |
| 638 |
|
| 639 |
&cpsw_port2 { |
| 640 |
phy-mode = "rgmii-id"; |
| 641 |
phy-handle = <&cpsw3g_phy1>; |
| 642 |
status = "okay"; |
| 643 |
}; |
| 644 |
|
| 645 |
&cpsw3g_mdio { |
| 646 |
pinctrl-names = "default"; |
| 647 |
pinctrl-0 = <&main_mdio0_pins_default>; |
| 648 |
status = "okay"; |
| 649 |
|
| 650 |
cpsw3g_phy0: ethernet-phy@0 { |
| 651 |
reg = <0>; |
| 652 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 653 |
ti,min-output-impedance; |
| 654 |
}; |
| 655 |
|
| 656 |
cpsw3g_phy1: ethernet-phy@3 { |
| 657 |
reg = <3>; |
| 658 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 659 |
ti,min-output-impedance; |
| 660 |
}; |
| 661 |
}; |
| 662 |
|
| 663 |
&fss { |
| 664 |
status = "okay"; |
| 665 |
}; |
| 666 |
|
| 667 |
&ospi0 { |
| 668 |
pinctrl-names = "default"; |
| 669 |
pinctrl-0 = <&ospi0_pins_default>; |
| 670 |
status = "okay"; |
| 671 |
|
| 672 |
flash@0 { |
| 673 |
compatible = "jedec,spi-nor"; |
| 674 |
reg = <0x0>; |
| 675 |
spi-tx-bus-width = <8>; |
| 676 |
spi-rx-bus-width = <8>; |
| 677 |
spi-max-frequency = <25000000>; |
| 678 |
cdns,tshsl-ns = <60>; |
| 679 |
cdns,tsd2d-ns = <60>; |
| 680 |
cdns,tchsh-ns = <60>; |
| 681 |
cdns,tslch-ns = <60>; |
| 682 |
cdns,read-delay = <4>; |
| 683 |
|
| 684 |
partitions { |
| 685 |
compatible = "fixed-partitions"; |
| 686 |
#address-cells = <1>; |
| 687 |
#size-cells = <1>; |
| 688 |
|
| 689 |
partition@0 { |
| 690 |
label = "ospi.tiboot3"; |
| 691 |
reg = <0x0 0x80000>; |
| 692 |
}; |
| 693 |
|
| 694 |
partition@80000 { |
| 695 |
label = "ospi.tispl"; |
| 696 |
reg = <0x80000 0x200000>; |
| 697 |
}; |
| 698 |
|
| 699 |
partition@280000 { |
| 700 |
label = "ospi.u-boot"; |
| 701 |
reg = <0x280000 0x400000>; |
| 702 |
}; |
| 703 |
|
| 704 |
partition@680000 { |
| 705 |
label = "ospi.env"; |
| 706 |
reg = <0x680000 0x40000>; |
| 707 |
}; |
| 708 |
|
| 709 |
partition@6c0000 { |
| 710 |
label = "ospi.env.backup"; |
| 711 |
reg = <0x6c0000 0x40000>; |
| 712 |
}; |
| 713 |
|
| 714 |
partition@800000 { |
| 715 |
label = "ospi.rootfs"; |
| 716 |
reg = <0x800000 0x37c0000>; |
| 717 |
}; |
| 718 |
|
| 719 |
partition@3fc0000 { |
| 720 |
label = "ospi.phypattern"; |
| 721 |
reg = <0x3fc0000 0x40000>; |
| 722 |
bootph-all; |
| 723 |
}; |
| 724 |
}; |
| 725 |
}; |
| 726 |
}; |
| 727 |
|
| 728 |
&wkup_r5fss0_core0 { |
| 729 |
bootph-pre-ram; |
| 730 |
}; |
| 731 |
|
| 732 |
&mcu_r5fss0_core0 { |
| 733 |
firmware-name = "am62d-mcu-r5f0_0-fw"; |
| 734 |
}; |
| 735 |
|
| 736 |
&c7x_0 { |
| 737 |
firmware-name = "am62d-c71_0-fw"; |
| 738 |
}; |
| 739 |
|
| 740 |
#include "k3-am62a-ti-ipc-firmware.dtsi" |