| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Device Tree file for the AM62P5-SK |
| 4 |
* Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 5 |
* |
| 6 |
* Schematics: https://www.ti.com/lit/zip/sprr487 |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
|
| 11 |
#include <dt-bindings/leds/common.h> |
| 12 |
#include <dt-bindings/gpio/gpio.h> |
| 13 |
#include <dt-bindings/net/ti-dp83867.h> |
| 14 |
#include "k3-am62p5.dtsi" |
| 15 |
|
| 16 |
/ { |
| 17 |
compatible = "ti,am62p5-sk", "ti,am62p5"; |
| 18 |
model = "Texas Instruments AM62P5 SK"; |
| 19 |
|
| 20 |
aliases { |
| 21 |
serial0 = &wkup_uart0; |
| 22 |
serial1 = &mcu_uart0; |
| 23 |
serial2 = &main_uart0; |
| 24 |
serial3 = &main_uart1; |
| 25 |
mmc0 = &sdhci0; |
| 26 |
mmc1 = &sdhci1; |
| 27 |
mmc2 = &sdhci2; |
| 28 |
spi0 = &ospi0; |
| 29 |
ethernet0 = &cpsw_port1; |
| 30 |
ethernet1 = &cpsw_port2; |
| 31 |
usb0 = &usb0; |
| 32 |
usb1 = &usb1; |
| 33 |
}; |
| 34 |
|
| 35 |
chosen { |
| 36 |
stdout-path = &main_uart0; |
| 37 |
}; |
| 38 |
|
| 39 |
memory@80000000 { |
| 40 |
/* 8G RAM */ |
| 41 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>, |
| 42 |
<0x00000008 0x80000000 0x00000001 0x80000000>; |
| 43 |
device_type = "memory"; |
| 44 |
bootph-pre-ram; |
| 45 |
}; |
| 46 |
|
| 47 |
reserved_memory: reserved-memory { |
| 48 |
#address-cells = <2>; |
| 49 |
#size-cells = <2>; |
| 50 |
ranges; |
| 51 |
|
| 52 |
wkup_r5fss0_core0_dma_memory_region: memory@9c800000 { |
| 53 |
compatible = "shared-dma-pool"; |
| 54 |
reg = <0x00 0x9c800000 0x00 0x100000>; |
| 55 |
no-map; |
| 56 |
}; |
| 57 |
|
| 58 |
wkup_r5fss0_core0_memory_region: memory@9c900000 { |
| 59 |
compatible = "shared-dma-pool"; |
| 60 |
reg = <0x00 0x9c900000 0x00 0xf00000>; |
| 61 |
no-map; |
| 62 |
}; |
| 63 |
|
| 64 |
secure_tfa_ddr: tfa@9e780000 { |
| 65 |
reg = <0x00 0x9e780000 0x00 0x80000>; |
| 66 |
no-map; |
| 67 |
}; |
| 68 |
|
| 69 |
secure_ddr: optee@9e800000 { |
| 70 |
reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ |
| 71 |
no-map; |
| 72 |
}; |
| 73 |
}; |
| 74 |
|
| 75 |
vmain_pd: regulator-0 { |
| 76 |
/* TPS65988 PD CONTROLLER OUTPUT */ |
| 77 |
compatible = "regulator-fixed"; |
| 78 |
regulator-name = "vmain_pd"; |
| 79 |
regulator-min-microvolt = <5000000>; |
| 80 |
regulator-max-microvolt = <5000000>; |
| 81 |
regulator-always-on; |
| 82 |
regulator-boot-on; |
| 83 |
bootph-all; |
| 84 |
}; |
| 85 |
|
| 86 |
vcc_5v0: regulator-1 { |
| 87 |
/* Output of TPS630702RNMR */ |
| 88 |
compatible = "regulator-fixed"; |
| 89 |
regulator-name = "vcc_5v0"; |
| 90 |
regulator-min-microvolt = <5000000>; |
| 91 |
regulator-max-microvolt = <5000000>; |
| 92 |
vin-supply = <&vmain_pd>; |
| 93 |
regulator-always-on; |
| 94 |
regulator-boot-on; |
| 95 |
bootph-all; |
| 96 |
}; |
| 97 |
|
| 98 |
vdd_mmc1: regulator-2 { |
| 99 |
/* TPS22918DBVR */ |
| 100 |
compatible = "regulator-fixed"; |
| 101 |
regulator-name = "vdd_mmc1"; |
| 102 |
regulator-min-microvolt = <3300000>; |
| 103 |
regulator-max-microvolt = <3300000>; |
| 104 |
regulator-boot-on; |
| 105 |
enable-active-high; |
| 106 |
gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; |
| 107 |
bootph-all; |
| 108 |
}; |
| 109 |
|
| 110 |
vddshv_sdio: regulator-3 { |
| 111 |
compatible = "regulator-gpio"; |
| 112 |
regulator-name = "vddshv_sdio"; |
| 113 |
pinctrl-names = "default"; |
| 114 |
pinctrl-0 = <&vddshv_sdio_pins_default>; |
| 115 |
regulator-min-microvolt = <1800000>; |
| 116 |
regulator-max-microvolt = <3300000>; |
| 117 |
regulator-boot-on; |
| 118 |
gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; |
| 119 |
states = <1800000 0x0>, |
| 120 |
<3300000 0x1>; |
| 121 |
bootph-all; |
| 122 |
}; |
| 123 |
|
| 124 |
vcc_3v3_main: regulator-4 { |
| 125 |
/* output of LM5141-Q1 */ |
| 126 |
compatible = "regulator-fixed"; |
| 127 |
regulator-name = "vcc_3v3_main"; |
| 128 |
regulator-min-microvolt = <3300000>; |
| 129 |
regulator-max-microvolt = <3300000>; |
| 130 |
vin-supply = <&vmain_pd>; |
| 131 |
regulator-always-on; |
| 132 |
regulator-boot-on; |
| 133 |
}; |
| 134 |
|
| 135 |
vcc_3v3_sys: regulator-5 { |
| 136 |
/* output of TPS222965DSGT */ |
| 137 |
compatible = "regulator-fixed"; |
| 138 |
regulator-name = "vcc_3v3_sys"; |
| 139 |
regulator-min-microvolt = <3300000>; |
| 140 |
regulator-max-microvolt = <3300000>; |
| 141 |
vin-supply = <&vcc_3v3_main>; |
| 142 |
regulator-always-on; |
| 143 |
regulator-boot-on; |
| 144 |
}; |
| 145 |
|
| 146 |
leds { |
| 147 |
compatible = "gpio-leds"; |
| 148 |
pinctrl-names = "default"; |
| 149 |
pinctrl-0 = <&usr_led_pins_default>; |
| 150 |
|
| 151 |
led-0 { |
| 152 |
label = "am62-sk:green:heartbeat"; |
| 153 |
gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>; |
| 154 |
linux,default-trigger = "heartbeat"; |
| 155 |
function = LED_FUNCTION_HEARTBEAT; |
| 156 |
default-state = "off"; |
| 157 |
}; |
| 158 |
}; |
| 159 |
|
| 160 |
opp-table { |
| 161 |
/* Requires VDD_CORE at 0v85 */ |
| 162 |
opp-1400000000 { |
| 163 |
opp-hz = /bits/ 64 <1400000000>; |
| 164 |
opp-supported-hw = <0x01 0x0004>; |
| 165 |
clock-latency-ns = <6000000>; |
| 166 |
}; |
| 167 |
}; |
| 168 |
|
| 169 |
tlv320_mclk: clk-0 { |
| 170 |
#clock-cells = <0>; |
| 171 |
compatible = "fixed-clock"; |
| 172 |
clock-frequency = <12288000>; |
| 173 |
}; |
| 174 |
|
| 175 |
codec_audio: sound { |
| 176 |
compatible = "simple-audio-card"; |
| 177 |
simple-audio-card,name = "AM62x-SKEVM"; |
| 178 |
simple-audio-card,widgets = |
| 179 |
"Headphone", "Headphone Jack", |
| 180 |
"Line", "Line In", |
| 181 |
"Microphone", "Microphone Jack"; |
| 182 |
simple-audio-card,routing = |
| 183 |
"Headphone Jack", "HPLOUT", |
| 184 |
"Headphone Jack", "HPROUT", |
| 185 |
"LINE1L", "Line In", |
| 186 |
"LINE1R", "Line In", |
| 187 |
"MIC3R", "Microphone Jack", |
| 188 |
"Microphone Jack", "Mic Bias"; |
| 189 |
simple-audio-card,format = "dsp_b"; |
| 190 |
simple-audio-card,bitclock-master = <&sound_master>; |
| 191 |
simple-audio-card,frame-master = <&sound_master>; |
| 192 |
simple-audio-card,bitclock-inversion; |
| 193 |
|
| 194 |
simple-audio-card,cpu { |
| 195 |
sound-dai = <&mcasp1>; |
| 196 |
}; |
| 197 |
|
| 198 |
sound_master: simple-audio-card,codec { |
| 199 |
sound-dai = <&tlv320aic3106>; |
| 200 |
clocks = <&tlv320_mclk>; |
| 201 |
}; |
| 202 |
}; |
| 203 |
}; |
| 204 |
|
| 205 |
&cpsw_mac_syscon { |
| 206 |
bootph-all; |
| 207 |
}; |
| 208 |
|
| 209 |
&phy_gmii_sel { |
| 210 |
bootph-all; |
| 211 |
}; |
| 212 |
|
| 213 |
&main_gpio0 { |
| 214 |
bootph-all; |
| 215 |
}; |
| 216 |
|
| 217 |
&main_gpio1 { |
| 218 |
bootph-all; |
| 219 |
}; |
| 220 |
|
| 221 |
&main_pmx0 { |
| 222 |
bootph-all; |
| 223 |
|
| 224 |
main_i2c0_pins_default: main-i2c0-default-pins { |
| 225 |
pinctrl-single,pins = < |
| 226 |
AM62PX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (B25) I2C0_SCL */ |
| 227 |
AM62PX_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (A24) I2C0_SDA */ |
| 228 |
>; |
| 229 |
}; |
| 230 |
|
| 231 |
main_i2c1_pins_default: main-i2c1-default-pins { |
| 232 |
pinctrl-single,pins = < |
| 233 |
AM62PX_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (C24) I2C1_SCL */ |
| 234 |
AM62PX_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (B24) I2C1_SDA */ |
| 235 |
>; |
| 236 |
bootph-all; |
| 237 |
}; |
| 238 |
|
| 239 |
main_i2c2_pins_default: main-i2c2-default-pins { |
| 240 |
pinctrl-single,pins = < |
| 241 |
AM62PX_IOPAD(0x00b0, PIN_INPUT_PULLUP, 1) /* (T22) GPMC0_CSn2.I2C2_SCL */ |
| 242 |
AM62PX_IOPAD(0x00b4, PIN_INPUT_PULLUP, 1) /* (U25) GPMC0_CSn3.I2C2_SDA */ |
| 243 |
>; |
| 244 |
}; |
| 245 |
|
| 246 |
main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins { |
| 247 |
pinctrl-single,pins = < |
| 248 |
AM62PX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C22) UART0_RTSn.GPIO1_23 */ |
| 249 |
>; |
| 250 |
}; |
| 251 |
|
| 252 |
main_mcasp1_pins_default: main-mcasp1-default-pins { |
| 253 |
pinctrl-single,pins = < |
| 254 |
AM62PX_IOPAD(0x0090, PIN_INPUT, 2) /* (U24) GPMC0_BE0n_CLE.MCASP1_ACLKX */ |
| 255 |
AM62PX_IOPAD(0x0098, PIN_INPUT, 2) /* (AA24) GPMC0_WAIT0.MCASP1_AFSX */ |
| 256 |
AM62PX_IOPAD(0x008c, PIN_OUTPUT, 2) /* (T25) GPMC0_WEn.MCASP1_AXR0 */ |
| 257 |
AM62PX_IOPAD(0x0084, PIN_INPUT, 2) /* (R25) GPMC0_ADVn_ALE.MCASP1_AXR2 */ |
| 258 |
>; |
| 259 |
}; |
| 260 |
|
| 261 |
main_mdio1_pins_default: main-mdio1-default-pins { |
| 262 |
pinctrl-single,pins = < |
| 263 |
AM62PX_IOPAD(0x0160, PIN_OUTPUT, 0) /* (F17) MDIO0_MDC */ |
| 264 |
AM62PX_IOPAD(0x015c, PIN_INPUT, 0) /* (F16) MDIO0_MDIO */ |
| 265 |
>; |
| 266 |
bootph-all; |
| 267 |
}; |
| 268 |
|
| 269 |
main_mmc1_pins_default: main-mmc1-default-pins { |
| 270 |
pinctrl-single,pins = < |
| 271 |
AM62PX_IOPAD(0x023c, PIN_INPUT, 0) /* (H20) MMC1_CMD */ |
| 272 |
AM62PX_IOPAD(0x0234, PIN_OUTPUT, 0) /* (J24) MMC1_CLK */ |
| 273 |
AM62PX_IOPAD(0x0230, PIN_INPUT, 0) /* (H21) MMC1_DAT0 */ |
| 274 |
AM62PX_IOPAD(0x022c, PIN_INPUT_PULLUP, 0) /* (H23) MMC1_DAT1 */ |
| 275 |
AM62PX_IOPAD(0x0228, PIN_INPUT_PULLUP, 0) /* (H22) MMC1_DAT2 */ |
| 276 |
AM62PX_IOPAD(0x0224, PIN_INPUT_PULLUP, 0) /* (H25) MMC1_DAT3 */ |
| 277 |
AM62PX_IOPAD(0x0240, PIN_INPUT, 0) /* (D23) MMC1_SDCD */ |
| 278 |
>; |
| 279 |
bootph-all; |
| 280 |
}; |
| 281 |
|
| 282 |
main_mmc2_pins_default: main-mmc2-default-pins { |
| 283 |
pinctrl-single,pins = < |
| 284 |
AM62PX_IOPAD(0x0120, PIN_INPUT, 0) /* (K24) MMC2_CMD */ |
| 285 |
AM62PX_IOPAD(0x0118, PIN_OUTPUT, 0) /* (K21) MMC2_CLK */ |
| 286 |
AM62PX_IOPAD(0x011c, PIN_INPUT, 0) /* () MMC2_CLKLB */ |
| 287 |
AM62PX_IOPAD(0x0114, PIN_INPUT, 0) /* (K23) MMC2_DAT0 */ |
| 288 |
AM62PX_IOPAD(0x0110, PIN_INPUT_PULLUP, 0) /* (K22) MMC2_DAT1 */ |
| 289 |
AM62PX_IOPAD(0x010c, PIN_INPUT_PULLUP, 0) /* (L20) MMC2_DAT2 */ |
| 290 |
AM62PX_IOPAD(0x0108, PIN_INPUT_PULLUP, 0) /* (L21) MMC2_DAT3 */ |
| 291 |
>; |
| 292 |
bootph-all; |
| 293 |
}; |
| 294 |
|
| 295 |
main_rgmii1_pins_default: main-rgmii1-default-pins { |
| 296 |
pinctrl-single,pins = < |
| 297 |
AM62PX_IOPAD(0x014c, PIN_INPUT, 0) /* (B15) RGMII1_RD0 */ |
| 298 |
AM62PX_IOPAD(0x0150, PIN_INPUT, 0) /* (B16) RGMII1_RD1 */ |
| 299 |
AM62PX_IOPAD(0x0154, PIN_INPUT, 0) /* (A14) RGMII1_RD2 */ |
| 300 |
AM62PX_IOPAD(0x0158, PIN_INPUT, 0) /* (B14) RGMII1_RD3 */ |
| 301 |
AM62PX_IOPAD(0x0148, PIN_INPUT, 0) /* (A16) RGMII1_RXC */ |
| 302 |
AM62PX_IOPAD(0x0144, PIN_INPUT, 0) /* (A15) RGMII1_RX_CTL */ |
| 303 |
AM62PX_IOPAD(0x0134, PIN_INPUT, 0) /* (A18) RGMII1_TD0 */ |
| 304 |
AM62PX_IOPAD(0x0138, PIN_INPUT, 0) /* (C17) RGMII1_TD1 */ |
| 305 |
AM62PX_IOPAD(0x013c, PIN_INPUT, 0) /* (A17) RGMII1_TD2 */ |
| 306 |
AM62PX_IOPAD(0x0140, PIN_INPUT, 0) /* (C16) RGMII1_TD3 */ |
| 307 |
AM62PX_IOPAD(0x0130, PIN_INPUT, 0) /* (B17) RGMII1_TXC */ |
| 308 |
AM62PX_IOPAD(0x012c, PIN_INPUT, 0) /* (B18) RGMII1_TX_CTL */ |
| 309 |
>; |
| 310 |
bootph-all; |
| 311 |
}; |
| 312 |
|
| 313 |
main_rgmii2_pins_default: main-rgmii2-default-pins { |
| 314 |
pinctrl-single,pins = < |
| 315 |
AM62PX_IOPAD(0x0184, PIN_INPUT, 0) /* (E19) RGMII2_RD0 */ |
| 316 |
AM62PX_IOPAD(0x0188, PIN_INPUT, 0) /* (E16) RGMII2_RD1 */ |
| 317 |
AM62PX_IOPAD(0x018c, PIN_INPUT, 0) /* (E17) RGMII2_RD2 */ |
| 318 |
AM62PX_IOPAD(0x0190, PIN_INPUT, 0) /* (C19) RGMII2_RD3 */ |
| 319 |
AM62PX_IOPAD(0x0180, PIN_INPUT, 0) /* (D19) RGMII2_RXC */ |
| 320 |
AM62PX_IOPAD(0x017c, PIN_INPUT, 0) /* (F19) RGMII2_RX_CTL */ |
| 321 |
AM62PX_IOPAD(0x016c, PIN_INPUT, 0) /* (B19) RGMII2_TD0 */ |
| 322 |
AM62PX_IOPAD(0x0170, PIN_INPUT, 0) /* (A21) RGMII2_TD1 */ |
| 323 |
AM62PX_IOPAD(0x0174, PIN_INPUT, 0) /* (D17) RGMII2_TD2 */ |
| 324 |
AM62PX_IOPAD(0x0178, PIN_INPUT, 0) /* (A19) RGMII2_TD3 */ |
| 325 |
AM62PX_IOPAD(0x0168, PIN_INPUT, 0) /* (D16) RGMII2_TXC */ |
| 326 |
AM62PX_IOPAD(0x0164, PIN_INPUT, 0) /* (A20) RGMII2_TX_CTL */ |
| 327 |
>; |
| 328 |
bootph-all; |
| 329 |
}; |
| 330 |
|
| 331 |
main_uart0_pins_default: main-uart0-default-pins { |
| 332 |
pinctrl-single,pins = < |
| 333 |
AM62PX_IOPAD(0x1c8, PIN_INPUT, 0) /* (A22) UART0_RXD */ |
| 334 |
AM62PX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */ |
| 335 |
>; |
| 336 |
bootph-all; |
| 337 |
}; |
| 338 |
|
| 339 |
main_uart1_pins_default: main-uart1-default-pins { |
| 340 |
pinctrl-single,pins = < |
| 341 |
AM62PX_IOPAD(0x0194, PIN_INPUT, 2) /* (D25) MCASP0_AXR3.UART1_CTSn */ |
| 342 |
AM62PX_IOPAD(0x0198, PIN_OUTPUT, 2) /* (E25) MCASP0_AXR2.UART1_RTSn */ |
| 343 |
AM62PX_IOPAD(0x01ac, PIN_INPUT, 2) /* (G23) MCASP0_AFSR.UART1_RXD */ |
| 344 |
AM62PX_IOPAD(0x01b0, PIN_OUTPUT, 2) /* (G20) MCASP0_ACLKR.UART1_TXD */ |
| 345 |
>; |
| 346 |
bootph-all; |
| 347 |
}; |
| 348 |
|
| 349 |
main_usb1_pins_default: main-usb1-default-pins { |
| 350 |
pinctrl-single,pins = < |
| 351 |
AM62PX_IOPAD(0x0258, PIN_INPUT, 0) /* (G21) USB1_DRVVBUS */ |
| 352 |
>; |
| 353 |
}; |
| 354 |
|
| 355 |
main_wlirq_pins_default: main-wlirq-default-pins { |
| 356 |
pinctrl-single,pins = < |
| 357 |
AM62PX_IOPAD(0x0128, PIN_INPUT, 7) /* (K25) MMC2_SDWP.GPIO0_72 */ |
| 358 |
>; |
| 359 |
}; |
| 360 |
|
| 361 |
ospi0_pins_default: ospi0-default-pins { |
| 362 |
pinctrl-single,pins = < |
| 363 |
AM62PX_IOPAD(0x0000, PIN_OUTPUT, 0) /* (P23) OSPI0_CLK */ |
| 364 |
AM62PX_IOPAD(0x002c, PIN_OUTPUT, 0) /* (M25) OSPI0_CSn0 */ |
| 365 |
AM62PX_IOPAD(0x000c, PIN_INPUT, 0) /* (L25) OSPI0_D0 */ |
| 366 |
AM62PX_IOPAD(0x0010, PIN_INPUT, 0) /* (N24) OSPI0_D1 */ |
| 367 |
AM62PX_IOPAD(0x0014, PIN_INPUT, 0) /* (N25) OSPI0_D2 */ |
| 368 |
AM62PX_IOPAD(0x0018, PIN_INPUT, 0) /* (M24) OSPI0_D3 */ |
| 369 |
AM62PX_IOPAD(0x001c, PIN_INPUT, 0) /* (N21) OSPI0_D4 */ |
| 370 |
AM62PX_IOPAD(0x0020, PIN_INPUT, 0) /* (N22) OSPI0_D5 */ |
| 371 |
AM62PX_IOPAD(0x0024, PIN_INPUT, 0) /* (P21) OSPI0_D6 */ |
| 372 |
AM62PX_IOPAD(0x0028, PIN_INPUT, 0) /* (N20) OSPI0_D7 */ |
| 373 |
AM62PX_IOPAD(0x0008, PIN_INPUT, 0) /* (P22) OSPI0_DQS */ |
| 374 |
>; |
| 375 |
bootph-all; |
| 376 |
}; |
| 377 |
|
| 378 |
usr_led_pins_default: usr-led-default-pins { |
| 379 |
pinctrl-single,pins = < |
| 380 |
AM62PX_IOPAD(0x0244, PIN_INPUT, 7) /* (D24) MMC1_SDWP.GPIO1_49 */ |
| 381 |
>; |
| 382 |
}; |
| 383 |
|
| 384 |
vddshv_sdio_pins_default: vddshvr-sdio-default-pins { |
| 385 |
pinctrl-single,pins = < |
| 386 |
AM62PX_IOPAD(0x007c, PIN_INPUT, 7) /* (Y25) GPMC0_CLK.GPIO0_31 */ |
| 387 |
>; |
| 388 |
bootph-all; |
| 389 |
}; |
| 390 |
|
| 391 |
wlan_en_pins_default: wlan-en-default-pins { |
| 392 |
pinctrl-single,pins = < |
| 393 |
AM62PX_IOPAD(0x0124, PIN_INPUT, 7) /* (J25) MMC2_SDCD.GPIO0_71 */ |
| 394 |
>; |
| 395 |
}; |
| 396 |
|
| 397 |
main_ecap1_pins_default: main-ecap1-default-pins { |
| 398 |
pinctrl-single,pins = < |
| 399 |
AM62PX_IOPAD(0x019c, PIN_OUTPUT, 2) /* (E24) MCASP0_AXR1.ECAP1_IN_APWM_OUT */ |
| 400 |
>; |
| 401 |
}; |
| 402 |
|
| 403 |
main_ecap2_pins_default: main-ecap2-default-pins { |
| 404 |
pinctrl-single,pins = < |
| 405 |
AM62PX_IOPAD(0x01a4, PIN_OUTPUT, 2) /* (F24) MCASP0_ACLKX.ECAP2_IN_APWM_OUT */ |
| 406 |
>; |
| 407 |
}; |
| 408 |
|
| 409 |
main_epwm0_pins_default: main-epwm0-default-pins { |
| 410 |
pinctrl-single,pins = < |
| 411 |
AM62PX_IOPAD(0x01b4, PIN_OUTPUT, 2) /* (D20) SPI0_CS0.EHRPWM0_A */ |
| 412 |
AM62PX_IOPAD(0x01b8, PIN_OUTPUT, 2) /* (E20) SPI0_CS1.EHRPWM0_B */ |
| 413 |
>; |
| 414 |
}; |
| 415 |
|
| 416 |
main_epwm1_pins_default: main-epwm1-default-pins { |
| 417 |
pinctrl-single,pins = < |
| 418 |
AM62PX_IOPAD(0x01bc, PIN_OUTPUT, 2) /* (B21) SPI0_CLK.EHRPWM1_A */ |
| 419 |
AM62PX_IOPAD(0x01c0, PIN_OUTPUT, 2) /* (B20) SPI0_D0.EHRPWM1_B */ |
| 420 |
>; |
| 421 |
}; |
| 422 |
}; |
| 423 |
|
| 424 |
&main_i2c0 { |
| 425 |
status = "okay"; |
| 426 |
pinctrl-names = "default"; |
| 427 |
pinctrl-0 = <&main_i2c0_pins_default>; |
| 428 |
clock-frequency = <400000>; |
| 429 |
|
| 430 |
typec_pd0: usb-power-controller@3f { |
| 431 |
compatible = "ti,tps6598x"; |
| 432 |
reg = <0x3f>; |
| 433 |
|
| 434 |
connector { |
| 435 |
compatible = "usb-c-connector"; |
| 436 |
label = "USB-C"; |
| 437 |
self-powered; |
| 438 |
data-role = "dual"; |
| 439 |
power-role = "sink"; |
| 440 |
port { |
| 441 |
usb_con_hs: endpoint { |
| 442 |
remote-endpoint = <&usb0_hs_ep>; |
| 443 |
}; |
| 444 |
}; |
| 445 |
}; |
| 446 |
}; |
| 447 |
}; |
| 448 |
|
| 449 |
&main_i2c1 { |
| 450 |
status = "okay"; |
| 451 |
pinctrl-names = "default"; |
| 452 |
pinctrl-0 = <&main_i2c1_pins_default>; |
| 453 |
clock-frequency = <100000>; |
| 454 |
bootph-all; |
| 455 |
|
| 456 |
tlv320aic3106: audio-codec@1b { |
| 457 |
#sound-dai-cells = <0>; |
| 458 |
compatible = "ti,tlv320aic3106"; |
| 459 |
reg = <0x1b>; |
| 460 |
ai3x-micbias-vg = <1>; /* 2.0V */ |
| 461 |
}; |
| 462 |
|
| 463 |
exp1: gpio@22 { |
| 464 |
compatible = "ti,tca6424"; |
| 465 |
reg = <0x22>; |
| 466 |
gpio-controller; |
| 467 |
#gpio-cells = <2>; |
| 468 |
gpio-line-names = "OLDI_INT#", "x8_NAND_DETECT", |
| 469 |
"UART1_FET_SEL", "MMC1_SD_EN", |
| 470 |
"VPP_EN", "EXP_PS_3V3_EN", |
| 471 |
"UART1_FET_BUF_EN", "EXP_HAT_DETECT", |
| 472 |
"DSI_GPIO0", "DSI_GPIO1", |
| 473 |
"OLDI_EDID", "BT_UART_WAKE_SOC_3V3", |
| 474 |
"USB_TYPEA_OC_INDICATION", "CSI_GPIO0", |
| 475 |
"CSI_GPIO1", "WLAN_ALERTn", |
| 476 |
"HDMI_INTn", "TEST_GPIO2", |
| 477 |
"MCASP1_FET_EN", "MCASP1_BUF_BT_EN", |
| 478 |
"MCASP1_FET_SEL", "DSI_EDID", |
| 479 |
"PD_I2C_IRQ", "IO_EXP_TEST_LED"; |
| 480 |
|
| 481 |
interrupt-parent = <&main_gpio1>; |
| 482 |
interrupts = <23 IRQ_TYPE_EDGE_FALLING>; |
| 483 |
interrupt-controller; |
| 484 |
#interrupt-cells = <2>; |
| 485 |
|
| 486 |
pinctrl-names = "default"; |
| 487 |
pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; |
| 488 |
bootph-all; |
| 489 |
}; |
| 490 |
|
| 491 |
exp2: gpio@23 { |
| 492 |
compatible = "ti,tca6424"; |
| 493 |
reg = <0x23>; |
| 494 |
gpio-controller; |
| 495 |
#gpio-cells = <2>; |
| 496 |
gpio-line-names = "BT_EN_SOC", "EXP_PS_5V0_EN", |
| 497 |
"", "", |
| 498 |
"", "", |
| 499 |
"", "", |
| 500 |
"WL_LT_EN", "", |
| 501 |
"TP3", "TP6", |
| 502 |
"TP4", "TP7", |
| 503 |
"TP5", "TP8", |
| 504 |
"SoC_I2C2_MCAN_SEL", "GPIO_HDMI_RSTn", |
| 505 |
"GPIO_CPSW2_RST", "GPIO_CPSW1_RST", |
| 506 |
"GPIO_OLDI_RSTn", "GPIO_AUD_RSTn", |
| 507 |
"GPIO_eMMC_RSTn", "SoC_WLAN_SDIO_RST"; |
| 508 |
}; |
| 509 |
}; |
| 510 |
|
| 511 |
&main_i2c2 { |
| 512 |
status = "okay"; |
| 513 |
pinctrl-names = "default"; |
| 514 |
pinctrl-0 = <&main_i2c2_pins_default>; |
| 515 |
clock-frequency = <400000>; |
| 516 |
}; |
| 517 |
|
| 518 |
&sdhci0 { |
| 519 |
status = "okay"; |
| 520 |
non-removable; |
| 521 |
ti,driver-strength-ohm = <50>; |
| 522 |
bootph-all; |
| 523 |
}; |
| 524 |
|
| 525 |
&sdhci1 { |
| 526 |
/* SD/MMC */ |
| 527 |
status = "okay"; |
| 528 |
vmmc-supply = <&vdd_mmc1>; |
| 529 |
vqmmc-supply = <&vddshv_sdio>; |
| 530 |
pinctrl-names = "default"; |
| 531 |
pinctrl-0 = <&main_mmc1_pins_default>; |
| 532 |
disable-wp; |
| 533 |
bootph-all; |
| 534 |
}; |
| 535 |
|
| 536 |
&cpsw3g { |
| 537 |
pinctrl-names = "default"; |
| 538 |
pinctrl-0 = <&main_rgmii1_pins_default>, |
| 539 |
<&main_rgmii2_pins_default>; |
| 540 |
status = "okay"; |
| 541 |
}; |
| 542 |
|
| 543 |
&cpsw_port1 { |
| 544 |
phy-mode = "rgmii-id"; |
| 545 |
phy-handle = <&cpsw3g_phy0>; |
| 546 |
status = "okay"; |
| 547 |
bootph-all; |
| 548 |
}; |
| 549 |
|
| 550 |
&cpsw_port2 { |
| 551 |
phy-mode = "rgmii-id"; |
| 552 |
phy-handle = <&cpsw3g_phy1>; |
| 553 |
status = "okay"; |
| 554 |
}; |
| 555 |
|
| 556 |
&cpsw3g_mdio { |
| 557 |
pinctrl-names = "default"; |
| 558 |
pinctrl-0 = <&main_mdio1_pins_default>; |
| 559 |
status = "okay"; |
| 560 |
|
| 561 |
cpsw3g_phy0: ethernet-phy@0 { |
| 562 |
reg = <0>; |
| 563 |
bootph-all; |
| 564 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 565 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 566 |
ti,min-output-impedance; |
| 567 |
}; |
| 568 |
|
| 569 |
cpsw3g_phy1: ethernet-phy@1 { |
| 570 |
reg = <1>; |
| 571 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 572 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 573 |
ti,min-output-impedance; |
| 574 |
}; |
| 575 |
}; |
| 576 |
|
| 577 |
&usbss0 { |
| 578 |
status = "okay"; |
| 579 |
ti,vbus-divider; |
| 580 |
}; |
| 581 |
|
| 582 |
&usbss1 { |
| 583 |
status = "okay"; |
| 584 |
ti,vbus-divider; |
| 585 |
}; |
| 586 |
|
| 587 |
&usb0 { |
| 588 |
bootph-all; |
| 589 |
usb-role-switch; |
| 590 |
|
| 591 |
port { |
| 592 |
usb0_hs_ep: endpoint { |
| 593 |
remote-endpoint = <&usb_con_hs>; |
| 594 |
}; |
| 595 |
}; |
| 596 |
}; |
| 597 |
|
| 598 |
&usb0_phy_ctrl { |
| 599 |
bootph-all; |
| 600 |
}; |
| 601 |
|
| 602 |
&usb1 { |
| 603 |
dr_mode = "host"; |
| 604 |
pinctrl-names = "default"; |
| 605 |
pinctrl-0 = <&main_usb1_pins_default>; |
| 606 |
}; |
| 607 |
|
| 608 |
&mcasp1 { |
| 609 |
status = "okay"; |
| 610 |
#sound-dai-cells = <0>; |
| 611 |
|
| 612 |
pinctrl-names = "default"; |
| 613 |
pinctrl-0 = <&main_mcasp1_pins_default>; |
| 614 |
|
| 615 |
op-mode = <0>; /* MCASP_IIS_MODE */ |
| 616 |
tdm-slots = <2>; |
| 617 |
|
| 618 |
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ |
| 619 |
1 0 2 0 |
| 620 |
0 0 0 0 |
| 621 |
0 0 0 0 |
| 622 |
0 0 0 0 |
| 623 |
>; |
| 624 |
}; |
| 625 |
|
| 626 |
&fss { |
| 627 |
bootph-all; |
| 628 |
}; |
| 629 |
|
| 630 |
&ospi0 { |
| 631 |
status = "okay"; |
| 632 |
pinctrl-names = "default"; |
| 633 |
pinctrl-0 = <&ospi0_pins_default>; |
| 634 |
bootph-all; |
| 635 |
|
| 636 |
flash@0 { |
| 637 |
compatible = "jedec,spi-nor"; |
| 638 |
reg = <0x0>; |
| 639 |
spi-tx-bus-width = <8>; |
| 640 |
spi-rx-bus-width = <8>; |
| 641 |
spi-max-frequency = <25000000>; |
| 642 |
cdns,tshsl-ns = <60>; |
| 643 |
cdns,tsd2d-ns = <60>; |
| 644 |
cdns,tchsh-ns = <60>; |
| 645 |
cdns,tslch-ns = <60>; |
| 646 |
cdns,read-delay = <4>; |
| 647 |
bootph-all; |
| 648 |
|
| 649 |
partitions { |
| 650 |
compatible = "fixed-partitions"; |
| 651 |
#address-cells = <1>; |
| 652 |
#size-cells = <1>; |
| 653 |
bootph-all; |
| 654 |
|
| 655 |
partition@0 { |
| 656 |
label = "ospi.tiboot3"; |
| 657 |
reg = <0x00 0x80000>; |
| 658 |
}; |
| 659 |
|
| 660 |
partition@80000 { |
| 661 |
label = "ospi.tispl"; |
| 662 |
reg = <0x80000 0x200000>; |
| 663 |
}; |
| 664 |
|
| 665 |
partition@280000 { |
| 666 |
label = "ospi.u-boot"; |
| 667 |
reg = <0x280000 0x400000>; |
| 668 |
}; |
| 669 |
|
| 670 |
partition@680000 { |
| 671 |
label = "ospi.env"; |
| 672 |
reg = <0x680000 0x40000>; |
| 673 |
}; |
| 674 |
|
| 675 |
partition@6c0000 { |
| 676 |
label = "ospi.env.backup"; |
| 677 |
reg = <0x6c0000 0x40000>; |
| 678 |
}; |
| 679 |
|
| 680 |
partition@800000 { |
| 681 |
label = "ospi.rootfs"; |
| 682 |
reg = <0x800000 0x37c0000>; |
| 683 |
}; |
| 684 |
|
| 685 |
partition@3fc0000 { |
| 686 |
label = "ospi.phypattern"; |
| 687 |
reg = <0x3fc0000 0x40000>; |
| 688 |
bootph-all; |
| 689 |
}; |
| 690 |
}; |
| 691 |
}; |
| 692 |
}; |
| 693 |
|
| 694 |
&main_uart0 { |
| 695 |
pinctrl-names = "default"; |
| 696 |
pinctrl-0 = <&main_uart0_pins_default>; |
| 697 |
status = "okay"; |
| 698 |
bootph-all; |
| 699 |
}; |
| 700 |
|
| 701 |
&main_uart1 { |
| 702 |
pinctrl-names = "default"; |
| 703 |
pinctrl-0 = <&main_uart1_pins_default>; |
| 704 |
/* Main UART1 is used by TIFS firmware */ |
| 705 |
status = "reserved"; |
| 706 |
bootph-all; |
| 707 |
}; |
| 708 |
|
| 709 |
&mcu_pmx0 { |
| 710 |
bootph-all; |
| 711 |
|
| 712 |
wkup_uart0_pins_default: wkup-uart0-default-pins { |
| 713 |
pinctrl-single,pins = < |
| 714 |
AM62PX_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (D8) WKUP_UART0_RXD */ |
| 715 |
AM62PX_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */ |
| 716 |
>; |
| 717 |
bootph-all; |
| 718 |
}; |
| 719 |
|
| 720 |
mcu_mcan0_tx_pins_default: mcu-mcan0-tx-default-pins { |
| 721 |
pinctrl-single,pins = < |
| 722 |
AM62PX_MCU_IOPAD(0x034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */ |
| 723 |
>; |
| 724 |
}; |
| 725 |
|
| 726 |
mcu_mcan0_rx_pins_default: mcu-mcan0-rx-default-pins { |
| 727 |
pinctrl-single,pins = < |
| 728 |
AM62PX_MCU_IOPAD(0x038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */ |
| 729 |
>; |
| 730 |
}; |
| 731 |
|
| 732 |
mcu_mcan0_rx_pins_wakeup: mcu-mcan0-rx-wakeup-pins { |
| 733 |
pinctrl-single,pins = < |
| 734 |
AM62PX_MCU_IOPAD(0x038, PIN_INPUT | PIN_WKUP_EN, 0) /* (B3) MCU_MCAN0_RX */ |
| 735 |
>; |
| 736 |
}; |
| 737 |
|
| 738 |
mcu_mcan1_tx_pins_default: mcu-mcan1-tx-default-pins { |
| 739 |
pinctrl-single,pins = < |
| 740 |
AM62PX_MCU_IOPAD(0x03c, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */ |
| 741 |
>; |
| 742 |
}; |
| 743 |
|
| 744 |
mcu_mcan1_rx_pins_default: mcu-mcan1-rx-default-pins { |
| 745 |
pinctrl-single,pins = < |
| 746 |
AM62PX_MCU_IOPAD(0x040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */ |
| 747 |
>; |
| 748 |
}; |
| 749 |
|
| 750 |
mcu_mcan1_rx_pins_wakeup: mcu-mcan1-rx-wakeup-pins { |
| 751 |
pinctrl-single,pins = < |
| 752 |
AM62PX_MCU_IOPAD(0x040, PIN_INPUT | PIN_WKUP_EN, 0) /* (D4) MCU_MCAN1_RX */ |
| 753 |
>; |
| 754 |
}; |
| 755 |
}; |
| 756 |
|
| 757 |
&wkup_uart0 { |
| 758 |
/* WKUP UART0 is used by DM firmware */ |
| 759 |
pinctrl-names = "default"; |
| 760 |
pinctrl-0 = <&wkup_uart0_pins_default>; |
| 761 |
wakeup-source = <&system_io_ddr>, |
| 762 |
<&system_deep_sleep>, |
| 763 |
<&system_mcu_only>, |
| 764 |
<&system_standby>; |
| 765 |
status = "reserved"; |
| 766 |
bootph-all; |
| 767 |
}; |
| 768 |
|
| 769 |
/* mcu_gpio0 and mcu_gpio_intr are reserved for mcu firmware usage */ |
| 770 |
&mcu_gpio0 { |
| 771 |
status = "reserved"; |
| 772 |
}; |
| 773 |
|
| 774 |
&mcu_gpio_intr { |
| 775 |
status = "reserved"; |
| 776 |
}; |
| 777 |
|
| 778 |
&ecap1 { |
| 779 |
/* P36 of J4 */ |
| 780 |
pinctrl-names = "default"; |
| 781 |
pinctrl-0 = <&main_ecap1_pins_default>; |
| 782 |
status = "okay"; |
| 783 |
}; |
| 784 |
|
| 785 |
&ecap2 { |
| 786 |
/* P11 of J4 */ |
| 787 |
pinctrl-names = "default"; |
| 788 |
pinctrl-0 = <&main_ecap2_pins_default>; |
| 789 |
status = "okay"; |
| 790 |
}; |
| 791 |
|
| 792 |
&epwm0 { |
| 793 |
/* P24/P26 of J4 */ |
| 794 |
pinctrl-names = "default"; |
| 795 |
pinctrl-0 = <&main_epwm0_pins_default>; |
| 796 |
status = "okay"; |
| 797 |
}; |
| 798 |
|
| 799 |
&epwm1 { |
| 800 |
/* P23/P19 of J4 */ |
| 801 |
pinctrl-names = "default"; |
| 802 |
pinctrl-0 = <&main_epwm1_pins_default>; |
| 803 |
status = "okay"; |
| 804 |
}; |
| 805 |
|
| 806 |
&mcu_mcan0 { |
| 807 |
pinctrl-names = "default", "wakeup"; |
| 808 |
pinctrl-0 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_default>; |
| 809 |
pinctrl-1 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_wakeup>; |
| 810 |
wakeup-source = <&system_partial_io>, |
| 811 |
<&system_io_ddr>, |
| 812 |
<&system_deep_sleep>, |
| 813 |
<&system_mcu_only>, |
| 814 |
<&system_standby>; |
| 815 |
}; |
| 816 |
|
| 817 |
&mcu_mcan1 { |
| 818 |
pinctrl-names = "default", "wakeup"; |
| 819 |
pinctrl-0 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_default>; |
| 820 |
pinctrl-1 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_wakeup>; |
| 821 |
wakeup-source = <&system_partial_io>, |
| 822 |
<&system_io_ddr>, |
| 823 |
<&system_deep_sleep>, |
| 824 |
<&system_mcu_only>, |
| 825 |
<&system_standby>; |
| 826 |
}; |
| 827 |
|
| 828 |
&mcu_uart0 { |
| 829 |
wakeup-source = <&system_io_ddr>, |
| 830 |
<&system_deep_sleep>, |
| 831 |
<&system_mcu_only>, |
| 832 |
<&system_standby>; |
| 833 |
}; |
| 834 |
|
| 835 |
#include "k3-am62p-ti-ipc-firmware.dtsi" |