| 1 |
// SPDX-License-Identifier: GPL-2.0-only or MIT |
| 2 |
/* |
| 3 |
* Device Tree file for the AM62L3 Evaluation Module |
| 4 |
* Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/ |
| 5 |
* |
| 6 |
* Technical Reference Manual: https://www.ti.com/lit/pdf/sprujb4 |
| 7 |
* Data Sheet: https://www.ti.com/lit/pdf/sprspa1 |
| 8 |
*/ |
| 9 |
|
| 10 |
/dts-v1/; |
| 11 |
|
| 12 |
#include <dt-bindings/gpio/gpio.h> |
| 13 |
#include <dt-bindings/input/input.h> |
| 14 |
#include <dt-bindings/leds/common.h> |
| 15 |
#include <dt-bindings/net/ti-dp83867.h> |
| 16 |
#include <dt-bindings/thermal/thermal.h> |
| 17 |
#include "k3-am62l3.dtsi" |
| 18 |
#include "k3-pinctrl.h" |
| 19 |
|
| 20 |
/ { |
| 21 |
compatible = "ti,am62l3-evm", "ti,am62l3"; |
| 22 |
model = "Texas Instruments AM62L3 Evaluation Module"; |
| 23 |
|
| 24 |
chosen { |
| 25 |
stdout-path = &uart0; |
| 26 |
}; |
| 27 |
|
| 28 |
memory@80000000 { |
| 29 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>; |
| 30 |
device_type = "memory"; |
| 31 |
bootph-all; |
| 32 |
}; |
| 33 |
|
| 34 |
gpio_keys: gpio-keys { |
| 35 |
compatible = "gpio-keys"; |
| 36 |
autorepeat; |
| 37 |
pinctrl-names = "default"; |
| 38 |
pinctrl-0 = <&usr_button_pins_default>; |
| 39 |
|
| 40 |
usr: button-usr { |
| 41 |
label = "User Key"; |
| 42 |
linux,code = <BTN_0>; |
| 43 |
gpios = <&gpio0 90 GPIO_ACTIVE_LOW>; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
leds { |
| 48 |
compatible = "gpio-leds"; |
| 49 |
pinctrl-names = "default"; |
| 50 |
pinctrl-0 = <&usr_led_pins_default>; |
| 51 |
|
| 52 |
led-0 { |
| 53 |
label = "am62-sk:green:heartbeat"; |
| 54 |
gpios = <&gpio0 123 GPIO_ACTIVE_HIGH>; |
| 55 |
linux,default-trigger = "heartbeat"; |
| 56 |
function = LED_FUNCTION_HEARTBEAT; |
| 57 |
default-state = "on"; |
| 58 |
}; |
| 59 |
}; |
| 60 |
|
| 61 |
thermal-zones { |
| 62 |
wkup0-thermal { |
| 63 |
polling-delay-passive = <250>; /* milliSeconds */ |
| 64 |
polling-delay = <500>; /* milliSeconds */ |
| 65 |
thermal-sensors = <&vtm0 0>; |
| 66 |
|
| 67 |
trips { |
| 68 |
crit0 { |
| 69 |
temperature = <125000>; |
| 70 |
hysteresis = <2000>; |
| 71 |
type = "critical"; |
| 72 |
}; |
| 73 |
}; |
| 74 |
}; |
| 75 |
}; |
| 76 |
|
| 77 |
vmain_pd: regulator-0 { |
| 78 |
/* TPS65988 PD CONTROLLER OUTPUT */ |
| 79 |
compatible = "regulator-fixed"; |
| 80 |
regulator-name = "vmain_pd"; |
| 81 |
regulator-min-microvolt = <5000000>; |
| 82 |
regulator-max-microvolt = <5000000>; |
| 83 |
regulator-always-on; |
| 84 |
regulator-boot-on; |
| 85 |
bootph-all; |
| 86 |
}; |
| 87 |
|
| 88 |
vcc_3v3_sys: regulator-1 { |
| 89 |
/* output of LM61460-Q1 */ |
| 90 |
compatible = "regulator-fixed"; |
| 91 |
regulator-name = "vcc_3v3_sys"; |
| 92 |
regulator-min-microvolt = <3300000>; |
| 93 |
regulator-max-microvolt = <3300000>; |
| 94 |
vin-supply = <&vmain_pd>; |
| 95 |
regulator-always-on; |
| 96 |
regulator-boot-on; |
| 97 |
}; |
| 98 |
|
| 99 |
vdd_mmc1: regulator-2 { |
| 100 |
/* TPS22918DBVR */ |
| 101 |
compatible = "regulator-fixed"; |
| 102 |
regulator-name = "vdd_mmc1"; |
| 103 |
regulator-min-microvolt = <3300000>; |
| 104 |
regulator-max-microvolt = <3300000>; |
| 105 |
regulator-boot-on; |
| 106 |
enable-active-high; |
| 107 |
vin-supply = <&vcc_3v3_sys>; |
| 108 |
gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; |
| 109 |
bootph-all; |
| 110 |
}; |
| 111 |
|
| 112 |
vcc_1v8: regulator-3 { |
| 113 |
/* output of TPS6282518DMQ */ |
| 114 |
compatible = "regulator-fixed"; |
| 115 |
regulator-name = "vcc_1v8"; |
| 116 |
regulator-min-microvolt = <1800000>; |
| 117 |
regulator-max-microvolt = <1800000>; |
| 118 |
vin-supply = <&vcc_3v3_sys>; |
| 119 |
regulator-always-on; |
| 120 |
regulator-boot-on; |
| 121 |
}; |
| 122 |
}; |
| 123 |
|
| 124 |
&gpio0 { |
| 125 |
bootph-all; |
| 126 |
}; |
| 127 |
|
| 128 |
&i2c0 { |
| 129 |
pinctrl-names = "default"; |
| 130 |
pinctrl-0 = <&i2c0_pins_default>; |
| 131 |
clock-frequency = <400000>; |
| 132 |
status = "okay"; |
| 133 |
|
| 134 |
eeprom@51 { |
| 135 |
/* AT24C512C-MAHM-T or M24512-DFMC6TG */ |
| 136 |
compatible = "atmel,24c512"; |
| 137 |
reg = <0x51>; |
| 138 |
}; |
| 139 |
}; |
| 140 |
|
| 141 |
&i2c1 { |
| 142 |
pinctrl-names = "default"; |
| 143 |
pinctrl-0 = <&i2c1_pins_default>; |
| 144 |
clock-frequency = <100000>; |
| 145 |
status = "okay"; |
| 146 |
|
| 147 |
exp1: gpio@22 { |
| 148 |
compatible = "ti,tca6424"; |
| 149 |
reg = <0x22>; |
| 150 |
gpio-controller; |
| 151 |
#gpio-cells = <2>; |
| 152 |
gpio-line-names = "", "", |
| 153 |
"UART1_FET_SEL", "MMC1_SD_EN", |
| 154 |
"VPP_LDO_EN", "EXP_PS_3V3_EN", |
| 155 |
"UART1_FET_BUF_EN", "", "", |
| 156 |
"", "DSI_GPIO0", "DSI_GPIO1", |
| 157 |
"", "BT_UART_WAKE_SOC_3V3", |
| 158 |
"USB_TYPEA_OC_INDICATION", "", |
| 159 |
"", "WLAN_ALERTn", "", "", |
| 160 |
"HDMI_INTn", "TEST_GPIO2", |
| 161 |
"MCASP0_FET_EN", "MCASP0_BUF_BT_EN", |
| 162 |
"MCASP0_FET_SEL", "DSI_EDID", |
| 163 |
"PD_I2C_IRQ", "IO_EXP_TEST_LED"; |
| 164 |
|
| 165 |
interrupt-parent = <&gpio0>; |
| 166 |
interrupts = <91 IRQ_TYPE_EDGE_FALLING>; |
| 167 |
interrupt-controller; |
| 168 |
#interrupt-cells = <2>; |
| 169 |
|
| 170 |
pinctrl-names = "default"; |
| 171 |
pinctrl-0 = <&gpio0_ioexp_intr_pins_default>; |
| 172 |
bootph-all; |
| 173 |
}; |
| 174 |
|
| 175 |
exp2: gpio@23 { |
| 176 |
compatible = "ti,tca6424"; |
| 177 |
reg = <0x23>; |
| 178 |
gpio-controller; |
| 179 |
#gpio-cells = <2>; |
| 180 |
gpio-line-names = "BT_EN_SOC", "VOUT0_FET_SEL0", |
| 181 |
"", "", |
| 182 |
"", "", |
| 183 |
"", "", |
| 184 |
"WL_LT_EN", "EXP_PS_5V0_EN", |
| 185 |
"TP45", "TP48", |
| 186 |
"TP46", "TP49", |
| 187 |
"TP47", "TP50", |
| 188 |
"GPIO_QSPI_NAND_RSTn", "GPIO_HDMI_RSTn", |
| 189 |
"GPIO_CPSW1_RST", "GPIO_CPSW2_RST", |
| 190 |
"", "GPIO_AUD_RSTn", |
| 191 |
"GPIO_eMMC_RSTn", "SoC_WLAN_SDIO_RST"; |
| 192 |
bootph-all; |
| 193 |
}; |
| 194 |
|
| 195 |
}; |
| 196 |
|
| 197 |
&i2c2 { |
| 198 |
pinctrl-names = "default"; |
| 199 |
pinctrl-0 = <&i2c2_pins_default>; |
| 200 |
clock-frequency = <400000>; |
| 201 |
status = "okay"; |
| 202 |
|
| 203 |
typec_pd0: tps658x@3f { |
| 204 |
compatible = "ti,tps6598x"; |
| 205 |
reg = <0x3f>; |
| 206 |
|
| 207 |
connector { |
| 208 |
compatible = "usb-c-connector"; |
| 209 |
label = "USB-C"; |
| 210 |
self-powered; |
| 211 |
data-role = "dual"; |
| 212 |
power-role = "sink"; |
| 213 |
|
| 214 |
port { |
| 215 |
usb_con_hs: endpoint { |
| 216 |
remote-endpoint = <&usb0_hs_ep>; |
| 217 |
}; |
| 218 |
}; |
| 219 |
}; |
| 220 |
}; |
| 221 |
}; |
| 222 |
|
| 223 |
&pmx0 { |
| 224 |
gpio0_ioexp_intr_pins_default: gpio0-ioexp-intr-default-pins { |
| 225 |
pinctrl-single,pins = < |
| 226 |
AM62LX_IOPAD(0x01b0, PIN_INPUT, 7) /* (B12) SPI0_D1.GPIO0_91 */ |
| 227 |
>; |
| 228 |
bootph-all; |
| 229 |
}; |
| 230 |
|
| 231 |
i2c0_pins_default: i2c0-default-pins { |
| 232 |
pinctrl-single,pins = < |
| 233 |
AM62LX_IOPAD(0x01cc, PIN_INPUT_PULLUP, 0) /* (B7) I2C0_SCL */ |
| 234 |
AM62LX_IOPAD(0x01d0, PIN_INPUT_PULLUP, 0) /* (A7) I2C0_SDA */ |
| 235 |
>; |
| 236 |
bootph-all; |
| 237 |
}; |
| 238 |
|
| 239 |
i2c1_pins_default: i2c1-default-pins { |
| 240 |
pinctrl-single,pins = < |
| 241 |
AM62LX_IOPAD(0x01d4, PIN_INPUT_PULLUP, 0) /* (D7) I2C1_SCL */ |
| 242 |
AM62LX_IOPAD(0x01d8, PIN_INPUT_PULLUP, 0) /* (A6) I2C1_SDA */ |
| 243 |
>; |
| 244 |
bootph-all; |
| 245 |
}; |
| 246 |
|
| 247 |
i2c2_pins_default: i2c2-default-pins { |
| 248 |
pinctrl-single,pins = < |
| 249 |
AM62LX_IOPAD(0x01dc, PIN_INPUT_PULLUP, 0) /* (B8) I2C2_SCL */ |
| 250 |
AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */ |
| 251 |
>; |
| 252 |
}; |
| 253 |
|
| 254 |
mmc0_pins_default: mmc0-default-pins { |
| 255 |
pinctrl-single,pins = < |
| 256 |
AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (D2) MMC0_CMD */ |
| 257 |
AM62LX_IOPAD(0x020c, PIN_OUTPUT, 0) /* (B2) MMC0_CLK */ |
| 258 |
AM62LX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0) /* (D3) MMC0_DAT0 */ |
| 259 |
AM62LX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0) /* (D4) MMC0_DAT1 */ |
| 260 |
AM62LX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0) /* (C1) MMC0_DAT2 */ |
| 261 |
AM62LX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0) /* (C2) MMC0_DAT3 */ |
| 262 |
AM62LX_IOPAD(0x01f8, PIN_INPUT_PULLUP, 0) /* (C4) MMC0_DAT4 */ |
| 263 |
AM62LX_IOPAD(0x01f4, PIN_INPUT_PULLUP, 0) /* (B3) MMC0_DAT5 */ |
| 264 |
AM62LX_IOPAD(0x01f0, PIN_INPUT_PULLUP, 0) /* (A3) MMC0_DAT6 */ |
| 265 |
AM62LX_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (B4) MMC0_DAT7 */ |
| 266 |
>; |
| 267 |
bootph-all; |
| 268 |
}; |
| 269 |
|
| 270 |
mmc1_pins_default: mmc1-default-pins { |
| 271 |
pinctrl-single,pins = < |
| 272 |
AM62LX_IOPAD(0x0230, PIN_INPUT, 0) /* (Y3) MMC1_CMD */ |
| 273 |
AM62LX_IOPAD(0x0228, PIN_OUTPUT, 0) /* (Y2) MMC1_CLK */ |
| 274 |
AM62LX_IOPAD(0x0224, PIN_INPUT, 0) /* (AA1) MMC1_DAT0 */ |
| 275 |
AM62LX_IOPAD(0x0220, PIN_INPUT_PULLUP, 0) /* (Y4) MMC1_DAT1 */ |
| 276 |
AM62LX_IOPAD(0x021c, PIN_INPUT_PULLUP, 0) /* (AA2) MMC1_DAT2 */ |
| 277 |
AM62LX_IOPAD(0x0218, PIN_INPUT_PULLUP, 0) /* (AB2) MMC1_DAT3 */ |
| 278 |
AM62LX_IOPAD(0x0234, PIN_INPUT, 0) /* (B6) MMC1_SDCD */ |
| 279 |
>; |
| 280 |
bootph-all; |
| 281 |
}; |
| 282 |
|
| 283 |
uart0_pins_default: uart0-default-pins { |
| 284 |
pinctrl-single,pins = < |
| 285 |
AM62LX_IOPAD(0x01b4, PIN_INPUT, 0) /* (D13) UART0_RXD */ |
| 286 |
AM62LX_IOPAD(0x01b8, PIN_OUTPUT, 0) /* (C13) UART0_TXD */ |
| 287 |
>; |
| 288 |
bootph-all; |
| 289 |
}; |
| 290 |
|
| 291 |
usb1_default_pins: usb1-default-pins { |
| 292 |
pinctrl-single,pins = < |
| 293 |
AM62LX_IOPAD(0x0248, PIN_INPUT | PIN_DS_PULLUD_ENABLE | PIN_DS_PULL_UP, 0) /* (A5) USB1_DRVVBUS */ |
| 294 |
>; |
| 295 |
}; |
| 296 |
|
| 297 |
usr_button_pins_default: usr-button-default-pins { |
| 298 |
pinctrl-single,pins = < |
| 299 |
AM62LX_IOPAD(0x01ac, PIN_INPUT, 7) /* (E12) SPI0_D0.GPIO0_90 */ |
| 300 |
>; |
| 301 |
}; |
| 302 |
|
| 303 |
usr_led_pins_default: usr-led-default-pins { |
| 304 |
pinctrl-single,pins = < |
| 305 |
AM62LX_IOPAD(0x0238, PIN_OUTPUT, 7) /* (D24) MMC1_SDWP.GPIO0_123 */ |
| 306 |
>; |
| 307 |
}; |
| 308 |
|
| 309 |
}; |
| 310 |
|
| 311 |
&sdhci0 { |
| 312 |
/* eMMC */ |
| 313 |
pinctrl-names = "default"; |
| 314 |
pinctrl-0 = <&mmc0_pins_default>; |
| 315 |
non-removable; |
| 316 |
status = "okay"; |
| 317 |
bootph-all; |
| 318 |
}; |
| 319 |
|
| 320 |
&sdhci1 { |
| 321 |
/* SD/MMC */ |
| 322 |
pinctrl-names = "default"; |
| 323 |
pinctrl-0 = <&mmc1_pins_default>; |
| 324 |
vmmc-supply = <&vdd_mmc1>; |
| 325 |
disable-wp; |
| 326 |
status = "okay"; |
| 327 |
bootph-all; |
| 328 |
}; |
| 329 |
|
| 330 |
&uart0 { |
| 331 |
pinctrl-0 = <&uart0_pins_default>; |
| 332 |
pinctrl-names = "default"; |
| 333 |
status = "okay"; |
| 334 |
bootph-all; |
| 335 |
}; |
| 336 |
|
| 337 |
&usbss0 { |
| 338 |
status = "okay"; |
| 339 |
ti,vbus-divider; |
| 340 |
}; |
| 341 |
|
| 342 |
&usb0 { |
| 343 |
usb-role-switch; |
| 344 |
|
| 345 |
port { |
| 346 |
usb0_hs_ep: endpoint { |
| 347 |
remote-endpoint = <&usb_con_hs>; |
| 348 |
}; |
| 349 |
}; |
| 350 |
}; |
| 351 |
|
| 352 |
&usbss1 { |
| 353 |
status = "okay"; |
| 354 |
ti,vbus-divider; |
| 355 |
}; |
| 356 |
|
| 357 |
&usb1 { |
| 358 |
dr_mode = "host"; |
| 359 |
pinctrl-names = "default"; |
| 360 |
pinctrl-0 = <&usb1_default_pins>; |
| 361 |
}; |