| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Device Tree file for the J722S EVM |
| 4 |
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 5 |
* |
| 6 |
* Schematics: https://www.ti.com/lit/zip/sprr495 |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
|
| 11 |
#include <dt-bindings/net/ti-dp83867.h> |
| 12 |
#include <dt-bindings/phy/phy.h> |
| 13 |
#include "k3-j722s.dtsi" |
| 14 |
#include "k3-serdes.h" |
| 15 |
|
| 16 |
/ { |
| 17 |
compatible = "ti,j722s-evm", "ti,j722s"; |
| 18 |
model = "Texas Instruments J722S EVM"; |
| 19 |
|
| 20 |
aliases { |
| 21 |
serial0 = &wkup_uart0; |
| 22 |
serial2 = &main_uart0; |
| 23 |
serial3 = &main_uart5; |
| 24 |
mmc0 = &sdhci0; |
| 25 |
mmc1 = &sdhci1; |
| 26 |
}; |
| 27 |
|
| 28 |
chosen { |
| 29 |
stdout-path = &main_uart0; |
| 30 |
}; |
| 31 |
|
| 32 |
memory@80000000 { |
| 33 |
/* 8G RAM */ |
| 34 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>, |
| 35 |
<0x00000008 0x80000000 0x00000001 0x80000000>; |
| 36 |
device_type = "memory"; |
| 37 |
bootph-pre-ram; |
| 38 |
}; |
| 39 |
|
| 40 |
reserved_memory: reserved-memory { |
| 41 |
#address-cells = <2>; |
| 42 |
#size-cells = <2>; |
| 43 |
ranges; |
| 44 |
|
| 45 |
secure_tfa_ddr: tfa@9e780000 { |
| 46 |
reg = <0x00 0x9e780000 0x00 0x80000>; |
| 47 |
no-map; |
| 48 |
}; |
| 49 |
|
| 50 |
secure_ddr: optee@9e800000 { |
| 51 |
reg = <0x00 0x9e800000 0x00 0x01800000>; |
| 52 |
no-map; |
| 53 |
}; |
| 54 |
|
| 55 |
wkup_r5fss0_core0_dma_memory_region: memory@a0000000 { |
| 56 |
compatible = "shared-dma-pool"; |
| 57 |
reg = <0x00 0xa0000000 0x00 0x100000>; |
| 58 |
no-map; |
| 59 |
}; |
| 60 |
|
| 61 |
wkup_r5fss0_core0_memory_region: memory@a0100000 { |
| 62 |
compatible = "shared-dma-pool"; |
| 63 |
reg = <0x00 0xa0100000 0x00 0xf00000>; |
| 64 |
no-map; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
vmain_pd: regulator-0 { |
| 69 |
/* TPS65988 PD CONTROLLER OUTPUT */ |
| 70 |
compatible = "regulator-fixed"; |
| 71 |
regulator-name = "vmain_pd"; |
| 72 |
regulator-min-microvolt = <5000000>; |
| 73 |
regulator-max-microvolt = <5000000>; |
| 74 |
regulator-always-on; |
| 75 |
regulator-boot-on; |
| 76 |
bootph-all; |
| 77 |
}; |
| 78 |
|
| 79 |
vsys_5v0: regulator-vsys5v0 { |
| 80 |
/* Output of LM5140 */ |
| 81 |
compatible = "regulator-fixed"; |
| 82 |
regulator-name = "vsys_5v0"; |
| 83 |
regulator-min-microvolt = <5000000>; |
| 84 |
regulator-max-microvolt = <5000000>; |
| 85 |
vin-supply = <&vmain_pd>; |
| 86 |
regulator-always-on; |
| 87 |
regulator-boot-on; |
| 88 |
}; |
| 89 |
|
| 90 |
vsys_3v3: regulator-vsys3v3 { |
| 91 |
/* output of LM5141-Q1 */ |
| 92 |
compatible = "regulator-fixed"; |
| 93 |
regulator-name = "vsys_3v3"; |
| 94 |
regulator-min-microvolt = <3300000>; |
| 95 |
regulator-max-microvolt = <3300000>; |
| 96 |
vin-supply = <&vmain_pd>; |
| 97 |
regulator-always-on; |
| 98 |
regulator-boot-on; |
| 99 |
}; |
| 100 |
|
| 101 |
vdd_mmc1: regulator-mmc1 { |
| 102 |
/* TPS22918DBVR */ |
| 103 |
compatible = "regulator-fixed"; |
| 104 |
regulator-name = "vdd_mmc1"; |
| 105 |
regulator-min-microvolt = <3300000>; |
| 106 |
regulator-max-microvolt = <3300000>; |
| 107 |
regulator-boot-on; |
| 108 |
enable-active-high; |
| 109 |
gpio = <&exp1 15 GPIO_ACTIVE_HIGH>; |
| 110 |
bootph-all; |
| 111 |
}; |
| 112 |
|
| 113 |
vsys_3v3_exp: regulator-TPS22990 { |
| 114 |
/* output of TPS22990 */ |
| 115 |
compatible = "regulator-fixed"; |
| 116 |
regulator-name = "vsys_3v3_exp"; |
| 117 |
regulator-min-microvolt = <3300000>; |
| 118 |
regulator-max-microvolt = <3300000>; |
| 119 |
vin-supply = <&vsys_3v3>; |
| 120 |
regulator-always-on; |
| 121 |
regulator-boot-on; |
| 122 |
}; |
| 123 |
|
| 124 |
vdd_sd_dv: regulator-TLV71033 { |
| 125 |
compatible = "regulator-gpio"; |
| 126 |
regulator-name = "tlv71033"; |
| 127 |
pinctrl-names = "default"; |
| 128 |
pinctrl-0 = <&vdd_sd_dv_pins_default>; |
| 129 |
regulator-min-microvolt = <1800000>; |
| 130 |
regulator-max-microvolt = <3300000>; |
| 131 |
regulator-boot-on; |
| 132 |
vin-supply = <&vsys_5v0>; |
| 133 |
gpios = <&main_gpio0 70 GPIO_ACTIVE_HIGH>; |
| 134 |
states = <1800000 0x0>, |
| 135 |
<3300000 0x1>; |
| 136 |
}; |
| 137 |
|
| 138 |
vsys_io_3v3: regulator-vsys-io-3v3 { |
| 139 |
compatible = "regulator-fixed"; |
| 140 |
regulator-name = "vsys_io_3v3"; |
| 141 |
regulator-min-microvolt = <3300000>; |
| 142 |
regulator-max-microvolt = <3300000>; |
| 143 |
regulator-always-on; |
| 144 |
regulator-boot-on; |
| 145 |
}; |
| 146 |
|
| 147 |
vsys_io_1v8: regulator-vsys-io-1v8 { |
| 148 |
compatible = "regulator-fixed"; |
| 149 |
regulator-name = "vsys_io_1v8"; |
| 150 |
regulator-min-microvolt = <1800000>; |
| 151 |
regulator-max-microvolt = <1800000>; |
| 152 |
regulator-always-on; |
| 153 |
regulator-boot-on; |
| 154 |
}; |
| 155 |
|
| 156 |
vsys_io_1v2: regulator-vsys-io-1v2 { |
| 157 |
compatible = "regulator-fixed"; |
| 158 |
regulator-name = "vsys_io_1v2"; |
| 159 |
regulator-min-microvolt = <1200000>; |
| 160 |
regulator-max-microvolt = <1200000>; |
| 161 |
regulator-always-on; |
| 162 |
regulator-boot-on; |
| 163 |
}; |
| 164 |
|
| 165 |
codec_audio: sound { |
| 166 |
compatible = "simple-audio-card"; |
| 167 |
simple-audio-card,name = "J722S-EVM"; |
| 168 |
simple-audio-card,widgets = |
| 169 |
"Headphone", "Headphone Jack", |
| 170 |
"Line", "Line In", |
| 171 |
"Microphone", "Microphone Jack"; |
| 172 |
simple-audio-card,routing = |
| 173 |
"Headphone Jack", "HPLOUT", |
| 174 |
"Headphone Jack", "HPROUT", |
| 175 |
"LINE1L", "Line In", |
| 176 |
"LINE1R", "Line In", |
| 177 |
"MIC3R", "Microphone Jack", |
| 178 |
"Microphone Jack", "Mic Bias"; |
| 179 |
simple-audio-card,format = "dsp_b"; |
| 180 |
simple-audio-card,bitclock-master = <&sound_master>; |
| 181 |
simple-audio-card,frame-master = <&sound_master>; |
| 182 |
simple-audio-card,bitclock-inversion; |
| 183 |
|
| 184 |
simple-audio-card,cpu { |
| 185 |
sound-dai = <&mcasp1>; |
| 186 |
}; |
| 187 |
|
| 188 |
sound_master: simple-audio-card,codec { |
| 189 |
sound-dai = <&tlv320aic3106>; |
| 190 |
clocks = <&audio_refclk1>; |
| 191 |
}; |
| 192 |
}; |
| 193 |
|
| 194 |
transceiver0: can-phy0 { |
| 195 |
compatible = "ti,tcan1042"; |
| 196 |
#phy-cells = <0>; |
| 197 |
max-bitrate = <5000000>; |
| 198 |
pinctrl-names = "default"; |
| 199 |
pinctrl-0 = <&mcu_mcan0_gpio_pins_default>; |
| 200 |
standby-gpios = <&mcu_gpio0 12 GPIO_ACTIVE_HIGH>; |
| 201 |
}; |
| 202 |
|
| 203 |
transceiver1: can-phy1 { |
| 204 |
compatible = "ti,tcan1042"; |
| 205 |
#phy-cells = <0>; |
| 206 |
max-bitrate = <5000000>; |
| 207 |
}; |
| 208 |
|
| 209 |
transceiver2: can-phy2 { |
| 210 |
compatible = "ti,tcan1042"; |
| 211 |
#phy-cells = <0>; |
| 212 |
max-bitrate = <5000000>; |
| 213 |
standby-gpios = <&exp1 17 GPIO_ACTIVE_HIGH>; |
| 214 |
}; |
| 215 |
|
| 216 |
csi01_mux: mux-controller-0 { |
| 217 |
compatible = "gpio-mux"; |
| 218 |
#mux-state-cells = <1>; |
| 219 |
mux-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; |
| 220 |
idle-state = <0>; |
| 221 |
}; |
| 222 |
|
| 223 |
csi23_mux: mux-controller-1 { |
| 224 |
compatible = "gpio-mux"; |
| 225 |
#mux-state-cells = <1>; |
| 226 |
mux-gpios = <&exp1 7 GPIO_ACTIVE_HIGH>; |
| 227 |
idle-state = <0>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
|
| 231 |
&audio_refclk1 { |
| 232 |
assigned-clocks = <&k3_clks 157 0>; |
| 233 |
assigned-clock-parents = <&k3_clks 157 15>; |
| 234 |
}; |
| 235 |
|
| 236 |
&cpsw_mac_syscon { |
| 237 |
bootph-all; |
| 238 |
}; |
| 239 |
|
| 240 |
&phy_gmii_sel { |
| 241 |
bootph-all; |
| 242 |
}; |
| 243 |
|
| 244 |
&main_pmx0 { |
| 245 |
|
| 246 |
main_mcan0_pins_default: main-mcan0-default-pins { |
| 247 |
pinctrl-single,pins = < |
| 248 |
J722S_IOPAD(0x1dc, PIN_INPUT, 0) /* (C22) MCAN0_RX */ |
| 249 |
J722S_IOPAD(0x1d8, PIN_OUTPUT, 0) /*(D22) MCAN0_TX */ |
| 250 |
>; |
| 251 |
}; |
| 252 |
|
| 253 |
main_i2c0_pins_default: main-i2c0-default-pins { |
| 254 |
pinctrl-single,pins = < |
| 255 |
J722S_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D23) I2C0_SCL */ |
| 256 |
J722S_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (B22) I2C0_SDA */ |
| 257 |
>; |
| 258 |
bootph-all; |
| 259 |
}; |
| 260 |
|
| 261 |
main_i2c2_pins_default: main-i2c2-default-pins { |
| 262 |
pinctrl-single,pins = < |
| 263 |
J722S_IOPAD(0x00b0, PIN_INPUT_PULLUP, 1) /* (P22) GPMC0_CSn2.I2C2_SCL */ |
| 264 |
J722S_IOPAD(0x00b4, PIN_INPUT_PULLUP, 1) /* (P23) GPMC0_CSn3.I2C2_SDA */ |
| 265 |
>; |
| 266 |
}; |
| 267 |
|
| 268 |
main_uart0_pins_default: main-uart0-default-pins { |
| 269 |
pinctrl-single,pins = < |
| 270 |
J722S_IOPAD(0x01c8, PIN_INPUT, 0) /* (A22) UART0_RXD */ |
| 271 |
J722S_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */ |
| 272 |
>; |
| 273 |
bootph-all; |
| 274 |
}; |
| 275 |
|
| 276 |
main_uart5_pins_default: main-uart5-default-pins { |
| 277 |
pinctrl-single,pins = < |
| 278 |
J722S_IOPAD(0x0108, PIN_INPUT, 3) /* (J27) UART5_RXD */ |
| 279 |
J722S_IOPAD(0x010c, PIN_OUTPUT, 3) /* (H27) UART5_TXD */ |
| 280 |
>; |
| 281 |
}; |
| 282 |
|
| 283 |
vdd_sd_dv_pins_default: vdd-sd-dv-default-pins { |
| 284 |
pinctrl-single,pins = < |
| 285 |
J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */ |
| 286 |
>; |
| 287 |
bootph-all; |
| 288 |
}; |
| 289 |
|
| 290 |
main_mmc1_pins_default: main-mmc1-default-pins { |
| 291 |
pinctrl-single,pins = < |
| 292 |
J722S_IOPAD(0x023c, PIN_INPUT, 0) /* (H22) MMC1_CMD */ |
| 293 |
J722S_IOPAD(0x0234, PIN_OUTPUT, 0) /* (H24) MMC1_CLK */ |
| 294 |
J722S_IOPAD(0x0230, PIN_INPUT, 0) /* (H23) MMC1_DAT0 */ |
| 295 |
J722S_IOPAD(0x022c, PIN_INPUT_PULLUP, 0) /* (H20) MMC1_DAT1 */ |
| 296 |
J722S_IOPAD(0x0228, PIN_INPUT_PULLUP, 0) /* (J23) MMC1_DAT2 */ |
| 297 |
J722S_IOPAD(0x0224, PIN_INPUT_PULLUP, 0) /* (H25) MMC1_DAT3 */ |
| 298 |
J722S_IOPAD(0x0240, PIN_INPUT, 0) /* (B24) MMC1_SDCD */ |
| 299 |
>; |
| 300 |
bootph-all; |
| 301 |
}; |
| 302 |
|
| 303 |
mdio_pins_default: mdio-default-pins { |
| 304 |
pinctrl-single,pins = < |
| 305 |
J722S_IOPAD(0x0160, PIN_OUTPUT, 0) /* (AC24) MDIO0_MDC */ |
| 306 |
J722S_IOPAD(0x015c, PIN_INPUT, 0) /* (AD25) MDIO0_MDIO */ |
| 307 |
>; |
| 308 |
bootph-all; |
| 309 |
}; |
| 310 |
|
| 311 |
ospi0_pins_default: ospi0-default-pins { |
| 312 |
pinctrl-single,pins = < |
| 313 |
J722S_IOPAD(0x0000, PIN_OUTPUT, 0) /* (L24) OSPI0_CLK */ |
| 314 |
J722S_IOPAD(0x002c, PIN_OUTPUT, 0) /* (K26) OSPI0_CSn0 */ |
| 315 |
J722S_IOPAD(0x000c, PIN_INPUT, 0) /* (K27) OSPI0_D0 */ |
| 316 |
J722S_IOPAD(0x0010, PIN_INPUT, 0) /* (L27) OSPI0_D1 */ |
| 317 |
J722S_IOPAD(0x0014, PIN_INPUT, 0) /* (L26) OSPI0_D2 */ |
| 318 |
J722S_IOPAD(0x0018, PIN_INPUT, 0) /* (L25) OSPI0_D3 */ |
| 319 |
J722S_IOPAD(0x001c, PIN_INPUT, 0) /* (L21) OSPI0_D4 */ |
| 320 |
J722S_IOPAD(0x0020, PIN_INPUT, 0) /* (M26) OSPI0_D5 */ |
| 321 |
J722S_IOPAD(0x0024, PIN_INPUT, 0) /* (N27) OSPI0_D6 */ |
| 322 |
J722S_IOPAD(0x0028, PIN_INPUT, 0) /* (M27) OSPI0_D7 */ |
| 323 |
J722S_IOPAD(0x0008, PIN_INPUT, 0) /* (L22) OSPI0_DQS */ |
| 324 |
>; |
| 325 |
bootph-all; |
| 326 |
}; |
| 327 |
|
| 328 |
rgmii1_pins_default: rgmii1-default-pins { |
| 329 |
pinctrl-single,pins = < |
| 330 |
J722S_IOPAD(0x014c, PIN_INPUT, 0) /* (AC25) RGMII1_RD0 */ |
| 331 |
J722S_IOPAD(0x0150, PIN_INPUT, 0) /* (AD27) RGMII1_RD1 */ |
| 332 |
J722S_IOPAD(0x0154, PIN_INPUT, 0) /* (AE24) RGMII1_RD2 */ |
| 333 |
J722S_IOPAD(0x0158, PIN_INPUT, 0) /* (AE26) RGMII1_RD3 */ |
| 334 |
J722S_IOPAD(0x0148, PIN_INPUT, 0) /* (AE27) RGMII1_RXC */ |
| 335 |
J722S_IOPAD(0x0144, PIN_INPUT, 0) /* (AD23) RGMII1_RX_CTL */ |
| 336 |
J722S_IOPAD(0x0134, PIN_OUTPUT, 0) /* (AF27) RGMII1_TD0 */ |
| 337 |
J722S_IOPAD(0x0138, PIN_OUTPUT, 0) /* (AE23) RGMII1_TD1 */ |
| 338 |
J722S_IOPAD(0x013c, PIN_OUTPUT, 0) /* (AG25) RGMII1_TD2 */ |
| 339 |
J722S_IOPAD(0x0140, PIN_OUTPUT, 0) /* (AF24) RGMII1_TD3 */ |
| 340 |
J722S_IOPAD(0x0130, PIN_OUTPUT, 0) /* (AG26) RGMII1_TXC */ |
| 341 |
J722S_IOPAD(0x012c, PIN_OUTPUT, 0) /* (AF25) RGMII1_TX_CTL */ |
| 342 |
>; |
| 343 |
bootph-all; |
| 344 |
}; |
| 345 |
|
| 346 |
main_usb1_pins_default: main-usb1-default-pins { |
| 347 |
pinctrl-single,pins = < |
| 348 |
J722S_IOPAD(0x0258, PIN_INPUT, 0) /* (B27) USB1_DRVVBUS */ |
| 349 |
>; |
| 350 |
}; |
| 351 |
|
| 352 |
main_mcasp1_pins_default: main-mcasp1-default-pins { |
| 353 |
pinctrl-single,pins = < |
| 354 |
J722S_IOPAD(0x0090, PIN_INPUT, 2) /* (P27) GPMC0_BE0n_CLE.MCASP1_ACLKX */ |
| 355 |
J722S_IOPAD(0x0098, PIN_INPUT, 2) /* (V21) GPMC0_WAIT0.MCASP1_AFSX */ |
| 356 |
J722S_IOPAD(0x008c, PIN_OUTPUT, 2) /* (N23) GPMC0_WEn.MCASP1_AXR0 */ |
| 357 |
J722S_IOPAD(0x0084, PIN_INPUT, 2) /* (N21) GPMC0_ADVn_ALE.MCASP1_AXR2 */ |
| 358 |
>; |
| 359 |
}; |
| 360 |
|
| 361 |
audio_ext_refclk1_pins_default: audio-ext-refclk1-default-pins { |
| 362 |
pinctrl-single,pins = < |
| 363 |
J722S_IOPAD(0x00a0, PIN_OUTPUT, 1) /* (N24) GPMC0_WPn.AUDIO_EXT_REFCLK1 */ |
| 364 |
>; |
| 365 |
}; |
| 366 |
|
| 367 |
pmic_irq_pins_default: pmic-irq-default-pins { |
| 368 |
pinctrl-single,pins = < |
| 369 |
J722S_IOPAD(0x030, PIN_INPUT, 7) /* (K23) GPIO0_12 */ |
| 370 |
>; |
| 371 |
}; |
| 372 |
|
| 373 |
}; |
| 374 |
|
| 375 |
&cpsw3g { |
| 376 |
status = "okay"; |
| 377 |
pinctrl-names = "default"; |
| 378 |
pinctrl-0 = <&rgmii1_pins_default>; |
| 379 |
}; |
| 380 |
|
| 381 |
&cpsw3g_mdio { |
| 382 |
status = "okay"; |
| 383 |
pinctrl-names = "default"; |
| 384 |
pinctrl-0 = <&mdio_pins_default>; |
| 385 |
|
| 386 |
cpsw3g_phy0: ethernet-phy@0 { |
| 387 |
reg = <0>; |
| 388 |
bootph-all; |
| 389 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 390 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 391 |
ti,min-output-impedance; |
| 392 |
}; |
| 393 |
}; |
| 394 |
|
| 395 |
&cpsw_port1 { |
| 396 |
phy-mode = "rgmii-id"; |
| 397 |
phy-handle = <&cpsw3g_phy0>; |
| 398 |
status = "okay"; |
| 399 |
bootph-all; |
| 400 |
}; |
| 401 |
|
| 402 |
&main_gpio1 { |
| 403 |
status = "okay"; |
| 404 |
}; |
| 405 |
|
| 406 |
&main_uart0 { |
| 407 |
pinctrl-names = "default"; |
| 408 |
pinctrl-0 = <&main_uart0_pins_default>; |
| 409 |
status = "okay"; |
| 410 |
bootph-all; |
| 411 |
}; |
| 412 |
|
| 413 |
&main_uart5 { |
| 414 |
/* MAIN UART 5 is used by System firmware */ |
| 415 |
pinctrl-names = "default"; |
| 416 |
pinctrl-0 = <&main_uart5_pins_default>; |
| 417 |
status = "reserved"; |
| 418 |
}; |
| 419 |
|
| 420 |
&mcu_pmx0 { |
| 421 |
|
| 422 |
mcu_i2c0_pins_default: mcu-i2c0-default-pins { |
| 423 |
pinctrl-single,pins = < |
| 424 |
J722S_MCU_IOPAD(0x048, PIN_INPUT, 0) /* (E11) MCU_I2C0_SDA */ |
| 425 |
J722S_MCU_IOPAD(0x044, PIN_INPUT, 0) /* (B13) MCU_I2C0_SCL */ |
| 426 |
>; |
| 427 |
}; |
| 428 |
|
| 429 |
mcu_mcan0_pins_default: mcu-mcan0-default-pins { |
| 430 |
pinctrl-single,pins = < |
| 431 |
J722S_MCU_IOPAD(0x038, PIN_INPUT, 0) /* (D8) MCU_MCAN0_RX */ |
| 432 |
J722S_MCU_IOPAD(0x034, PIN_OUTPUT, 0) /* (B2) MCU_MCAN0_TX */ |
| 433 |
>; |
| 434 |
}; |
| 435 |
|
| 436 |
mcu_mcan1_pins_default: mcu-mcan1-default-pins { |
| 437 |
pinctrl-single,pins = < |
| 438 |
J722S_MCU_IOPAD(0x040, PIN_INPUT, 0) /* (B1) MCU_MCAN1_RX */ |
| 439 |
J722S_MCU_IOPAD(0x03c, PIN_OUTPUT, 0) /*(C1) MCU_MCAN1_TX */ |
| 440 |
>; |
| 441 |
}; |
| 442 |
|
| 443 |
mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-default-pins { |
| 444 |
pinctrl-single,pins = < |
| 445 |
J722S_MCU_IOPAD(0x0030, PIN_OUTPUT, 7) /* (C3) MCU_GPIO0_12 */ |
| 446 |
>; |
| 447 |
}; |
| 448 |
|
| 449 |
wkup_uart0_pins_default: wkup-uart0-default-pins { |
| 450 |
pinctrl-single,pins = < |
| 451 |
J722S_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C7) WKUP_UART0_CTSn */ |
| 452 |
J722S_MCU_IOPAD(0x030, PIN_OUTPUT, 0) /* (C6) WKUP_UART0_RTSn */ |
| 453 |
J722S_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (D8) WKUP_UART0_RXD */ |
| 454 |
J722S_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */ |
| 455 |
>; |
| 456 |
bootph-all; |
| 457 |
}; |
| 458 |
|
| 459 |
wkup_i2c0_pins_default: wkup-i2c0-default-pins { |
| 460 |
pinctrl-single,pins = < |
| 461 |
J722S_MCU_IOPAD(0x04c, PIN_INPUT_PULLUP, 0) /* (C7) WKUP_I2C0_SCL */ |
| 462 |
J722S_MCU_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (C6) WKUP_I2C1_SDA */ |
| 463 |
>; |
| 464 |
bootph-all; |
| 465 |
}; |
| 466 |
}; |
| 467 |
|
| 468 |
&wkup_uart0 { |
| 469 |
/* WKUP UART0 is used by Device Manager firmware */ |
| 470 |
pinctrl-names = "default"; |
| 471 |
pinctrl-0 = <&wkup_uart0_pins_default>; |
| 472 |
status = "reserved"; |
| 473 |
bootph-all; |
| 474 |
}; |
| 475 |
|
| 476 |
&wkup_i2c0 { |
| 477 |
pinctrl-names = "default"; |
| 478 |
pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 479 |
clock-frequency = <400000>; |
| 480 |
status = "okay"; |
| 481 |
bootph-all; |
| 482 |
|
| 483 |
tps65224: pmic@48 { |
| 484 |
compatible = "ti,tps65224-q1"; |
| 485 |
reg = <0x48>; |
| 486 |
pinctrl-names = "default"; |
| 487 |
pinctrl-0 = <&pmic_irq_pins_default>; |
| 488 |
interrupt-parent = <&main_gpio0>; |
| 489 |
interrupts = <0 IRQ_TYPE_EDGE_FALLING>; |
| 490 |
ti,primary-pmic; |
| 491 |
|
| 492 |
gpio-controller; |
| 493 |
#gpio-cells = <2>; |
| 494 |
|
| 495 |
buck12-supply = <&vsys_io_3v3>; |
| 496 |
buck3-supply = <&vsys_io_3v3>; |
| 497 |
buck4-supply = <&vsys_io_3v3>; |
| 498 |
|
| 499 |
ldo1-supply = <&vsys_io_3v3>; |
| 500 |
ldo2-supply = <&vsys_io_3v3>; |
| 501 |
ldo3-supply = <&vsys_io_3v3>; |
| 502 |
|
| 503 |
regulators { |
| 504 |
|
| 505 |
buck1: buck1 { |
| 506 |
regulator-name = "vcc1v8_io_buck1"; |
| 507 |
regulator-min-microvolt = <1800000>; |
| 508 |
regulator-max-microvolt = <1800000>; |
| 509 |
regulator-boot-on; |
| 510 |
regulator-always-on; |
| 511 |
bootph-all; |
| 512 |
}; |
| 513 |
|
| 514 |
buck2: buck2 { |
| 515 |
regulator-name = "vcc1v1_ddr_buck2"; |
| 516 |
regulator-min-microvolt = <1100000>; |
| 517 |
regulator-max-microvolt = <1100000>; |
| 518 |
regulator-boot-on; |
| 519 |
regulator-always-on; |
| 520 |
}; |
| 521 |
|
| 522 |
buck3: buck3 { |
| 523 |
regulator-name = "vcc0v85_ram_buck3"; |
| 524 |
regulator-min-microvolt = <850000>; |
| 525 |
regulator-max-microvolt = <850000>; |
| 526 |
regulator-boot-on; |
| 527 |
regulator-always-on; |
| 528 |
}; |
| 529 |
|
| 530 |
buck4: buck4 { |
| 531 |
regulator-name = "vcc0v75_ioret_buck4"; |
| 532 |
regulator-min-microvolt = <750000>; |
| 533 |
regulator-max-microvolt = <750000>; |
| 534 |
regulator-boot-on; |
| 535 |
regulator-always-on; |
| 536 |
}; |
| 537 |
|
| 538 |
ldo1: ldo1 { |
| 539 |
regulator-name = "vdda1v8_pll_ldo1"; |
| 540 |
regulator-min-microvolt = <1800000>; |
| 541 |
regulator-max-microvolt = <1800000>; |
| 542 |
regulator-boot-on; |
| 543 |
regulator-always-on; |
| 544 |
}; |
| 545 |
|
| 546 |
ldo2: ldo2 { |
| 547 |
regulator-name = "dvdd3v3_ldo2"; |
| 548 |
regulator-min-microvolt = <3300000>; |
| 549 |
regulator-max-microvolt = <3300000>; |
| 550 |
regulator-boot-on; |
| 551 |
regulator-always-on; |
| 552 |
}; |
| 553 |
|
| 554 |
ldo3: ldo3 { |
| 555 |
regulator-name = "vdd1v85_phy_ldo3"; |
| 556 |
regulator-min-microvolt = <1800000>; |
| 557 |
regulator-max-microvolt = <1800000>; |
| 558 |
regulator-boot-on; |
| 559 |
regulator-always-on; |
| 560 |
}; |
| 561 |
}; |
| 562 |
}; |
| 563 |
}; |
| 564 |
|
| 565 |
&k3_clks { |
| 566 |
/* Configure AUDIO_EXT_REFCLK1 pin as output */ |
| 567 |
pinctrl-names = "default"; |
| 568 |
pinctrl-0 = <&audio_ext_refclk1_pins_default>; |
| 569 |
}; |
| 570 |
|
| 571 |
&main_i2c0 { |
| 572 |
pinctrl-names = "default"; |
| 573 |
pinctrl-0 = <&main_i2c0_pins_default>; |
| 574 |
clock-frequency = <400000>; |
| 575 |
status = "okay"; |
| 576 |
bootph-all; |
| 577 |
|
| 578 |
exp1: gpio@23 { |
| 579 |
compatible = "ti,tca6424"; |
| 580 |
reg = <0x23>; |
| 581 |
gpio-controller; |
| 582 |
#gpio-cells = <2>; |
| 583 |
gpio-line-names = "TRC_MUX_SEL", "OSPI/ONAND_MUX_SEL", |
| 584 |
"MCASP1_FET_SEL", "CTRL_PM_I2C_OE#", |
| 585 |
"CSI_VIO_SEL", "USB2.0_MUX_SEL", |
| 586 |
"CSI01_MUX_SEL_2", "CSI23_MUX_SEL_2", |
| 587 |
"LMK1_OE1", "LMK1_OE0", |
| 588 |
"LMK2_OE0", "LMK2_OE1", |
| 589 |
"GPIO_RGMII1_RST#", "GPIO_AUD_RSTn", |
| 590 |
"GPIO_eMMC_RSTn", "GPIO_uSD_PWR_EN", |
| 591 |
"USER_LED2", "MCAN0_STB", |
| 592 |
"PCIe0_1L_RC_RSTz", "PCIe0_1L_PRSNT#", |
| 593 |
"ENET1_EXP_SPARE2", "ENET1_EXP_PWRDN", |
| 594 |
"PD_I2ENET1_I2CMUX_SELC_IRQ", "ENET1_EXP_RESETZ"; |
| 595 |
|
| 596 |
p05-hog { |
| 597 |
/* P05 - USB2.0_MUX_SEL */ |
| 598 |
gpio-hog; |
| 599 |
gpios = <5 GPIO_ACTIVE_LOW>; |
| 600 |
output-low; |
| 601 |
}; |
| 602 |
|
| 603 |
p01_hog: p01-hog { |
| 604 |
/* P01 - TRC_MUX_SEL */ |
| 605 |
gpio-hog; |
| 606 |
gpios = <0 GPIO_ACTIVE_HIGH>; |
| 607 |
output-low; |
| 608 |
line-name = "TRC_MUX_SEL"; |
| 609 |
}; |
| 610 |
|
| 611 |
p02_hog: p02-hog { |
| 612 |
/* P02 - MCASP1_FET_SEL */ |
| 613 |
gpio-hog; |
| 614 |
gpios = <2 GPIO_ACTIVE_HIGH>; |
| 615 |
output-high; |
| 616 |
line-name = "MCASP1_FET_SEL"; |
| 617 |
}; |
| 618 |
|
| 619 |
p13_hog: p13-hog { |
| 620 |
/* P13 - GPIO_AUD_RSTn */ |
| 621 |
gpio-hog; |
| 622 |
gpios = <13 GPIO_ACTIVE_HIGH>; |
| 623 |
output-high; |
| 624 |
line-name = "GPIO_AUD_RSTn"; |
| 625 |
}; |
| 626 |
}; |
| 627 |
|
| 628 |
tlv320aic3106: audio-codec@1b { |
| 629 |
#sound-dai-cells = <0>; |
| 630 |
compatible = "ti,tlv320aic3106"; |
| 631 |
reg = <0x1b>; |
| 632 |
ai3x-micbias-vg = <1>; /* 2.0V */ |
| 633 |
AVDD-supply = <&vsys_io_3v3>; |
| 634 |
IOVDD-supply = <&vsys_io_3v3>; |
| 635 |
DRVDD-supply = <&vsys_io_3v3>; |
| 636 |
DVDD-supply = <&vsys_io_1v8>; |
| 637 |
}; |
| 638 |
}; |
| 639 |
|
| 640 |
&main_i2c2 { |
| 641 |
status = "okay"; |
| 642 |
pinctrl-names = "default"; |
| 643 |
pinctrl-0 = <&main_i2c2_pins_default>; |
| 644 |
clock-frequency = <400000>; |
| 645 |
|
| 646 |
pca9543_0: i2c-mux@70 { |
| 647 |
compatible = "nxp,pca9543"; |
| 648 |
#address-cells = <1>; |
| 649 |
#size-cells = <0>; |
| 650 |
reg = <0x70>; |
| 651 |
}; |
| 652 |
|
| 653 |
pca9543_1: i2c-mux@71 { |
| 654 |
compatible = "nxp,pca9543"; |
| 655 |
#address-cells = <1>; |
| 656 |
#size-cells = <0>; |
| 657 |
reg = <0x71>; |
| 658 |
}; |
| 659 |
}; |
| 660 |
|
| 661 |
&ospi0 { |
| 662 |
pinctrl-names = "default"; |
| 663 |
pinctrl-0 = <&ospi0_pins_default>; |
| 664 |
status = "okay"; |
| 665 |
|
| 666 |
flash@0 { |
| 667 |
compatible = "jedec,spi-nor"; |
| 668 |
reg = <0x0>; |
| 669 |
spi-tx-bus-width = <8>; |
| 670 |
spi-rx-bus-width = <8>; |
| 671 |
spi-max-frequency = <25000000>; |
| 672 |
cdns,tshsl-ns = <60>; |
| 673 |
cdns,tsd2d-ns = <60>; |
| 674 |
cdns,tchsh-ns = <60>; |
| 675 |
cdns,tslch-ns = <60>; |
| 676 |
cdns,read-delay = <4>; |
| 677 |
bootph-all; |
| 678 |
|
| 679 |
partitions { |
| 680 |
compatible = "fixed-partitions"; |
| 681 |
#address-cells = <1>; |
| 682 |
#size-cells = <1>; |
| 683 |
|
| 684 |
partition@0 { |
| 685 |
label = "ospi.tiboot3"; |
| 686 |
reg = <0x00 0x80000>; |
| 687 |
}; |
| 688 |
|
| 689 |
partition@80000 { |
| 690 |
label = "ospi.tispl"; |
| 691 |
reg = <0x80000 0x200000>; |
| 692 |
}; |
| 693 |
|
| 694 |
partition@280000 { |
| 695 |
label = "ospi.u-boot"; |
| 696 |
reg = <0x280000 0x400000>; |
| 697 |
}; |
| 698 |
|
| 699 |
partition@680000 { |
| 700 |
label = "ospi.env"; |
| 701 |
reg = <0x680000 0x40000>; |
| 702 |
}; |
| 703 |
|
| 704 |
partition@6c0000 { |
| 705 |
label = "ospi.env.backup"; |
| 706 |
reg = <0x6c0000 0x40000>; |
| 707 |
}; |
| 708 |
|
| 709 |
partition@800000 { |
| 710 |
label = "ospi.rootfs"; |
| 711 |
reg = <0x800000 0x37c0000>; |
| 712 |
}; |
| 713 |
|
| 714 |
partition@3fc0000 { |
| 715 |
label = "ospi.phypattern"; |
| 716 |
reg = <0x3fc0000 0x40000>; |
| 717 |
}; |
| 718 |
}; |
| 719 |
}; |
| 720 |
|
| 721 |
}; |
| 722 |
|
| 723 |
&sdhci0 { |
| 724 |
disable-wp; |
| 725 |
bootph-all; |
| 726 |
ti,driver-strength-ohm = <50>; |
| 727 |
status = "okay"; |
| 728 |
}; |
| 729 |
|
| 730 |
&sdhci1 { |
| 731 |
/* SD/MMC */ |
| 732 |
vmmc-supply = <&vdd_mmc1>; |
| 733 |
vqmmc-supply = <&vdd_sd_dv>; |
| 734 |
pinctrl-names = "default"; |
| 735 |
pinctrl-0 = <&main_mmc1_pins_default>; |
| 736 |
ti,driver-strength-ohm = <50>; |
| 737 |
disable-wp; |
| 738 |
status = "okay"; |
| 739 |
bootph-all; |
| 740 |
}; |
| 741 |
|
| 742 |
&serdes_ln_ctrl { |
| 743 |
idle-states = <J722S_SERDES0_LANE0_USB>, |
| 744 |
<J722S_SERDES1_LANE0_PCIE0_LANE0>; |
| 745 |
}; |
| 746 |
|
| 747 |
&serdes_wiz0 { |
| 748 |
status = "okay"; |
| 749 |
}; |
| 750 |
|
| 751 |
&serdes0 { |
| 752 |
serdes0_usb_link: phy@0 { |
| 753 |
reg = <0>; |
| 754 |
cdns,num-lanes = <1>; |
| 755 |
#phy-cells = <0>; |
| 756 |
cdns,phy-type = <PHY_TYPE_USB3>; |
| 757 |
resets = <&serdes_wiz0 1>; |
| 758 |
}; |
| 759 |
}; |
| 760 |
|
| 761 |
&serdes_wiz1 { |
| 762 |
status = "okay"; |
| 763 |
}; |
| 764 |
|
| 765 |
&serdes1 { |
| 766 |
serdes1_pcie_link: phy@0 { |
| 767 |
reg = <0>; |
| 768 |
cdns,num-lanes = <1>; |
| 769 |
#phy-cells = <0>; |
| 770 |
cdns,phy-type = <PHY_TYPE_PCIE>; |
| 771 |
resets = <&serdes_wiz1 1>; |
| 772 |
}; |
| 773 |
}; |
| 774 |
|
| 775 |
&pcie0_rc { |
| 776 |
reset-gpios = <&exp1 18 GPIO_ACTIVE_HIGH>; |
| 777 |
phys = <&serdes1_pcie_link>; |
| 778 |
phy-names = "pcie-phy"; |
| 779 |
status = "okay"; |
| 780 |
}; |
| 781 |
|
| 782 |
&usbss0 { |
| 783 |
ti,vbus-divider; |
| 784 |
status = "okay"; |
| 785 |
}; |
| 786 |
|
| 787 |
&usb0 { |
| 788 |
dr_mode = "otg"; |
| 789 |
usb-role-switch; |
| 790 |
}; |
| 791 |
|
| 792 |
&usb0_phy_ctrl { |
| 793 |
bootph-all; |
| 794 |
}; |
| 795 |
|
| 796 |
&usbss1 { |
| 797 |
pinctrl-names = "default"; |
| 798 |
pinctrl-0 = <&main_usb1_pins_default>; |
| 799 |
ti,vbus-divider; |
| 800 |
status = "okay"; |
| 801 |
}; |
| 802 |
|
| 803 |
&usb1 { |
| 804 |
dr_mode = "host"; |
| 805 |
maximum-speed = "super-speed"; |
| 806 |
phys = <&serdes0_usb_link>; |
| 807 |
phy-names = "cdns3,usb3-phy"; |
| 808 |
}; |
| 809 |
|
| 810 |
&mcasp1 { |
| 811 |
status = "okay"; |
| 812 |
#sound-dai-cells = <0>; |
| 813 |
pinctrl-names = "default"; |
| 814 |
pinctrl-0 = <&main_mcasp1_pins_default>; |
| 815 |
op-mode = <0>; /* MCASP_IIS_MODE */ |
| 816 |
tdm-slots = <2>; |
| 817 |
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ |
| 818 |
1 0 2 0 |
| 819 |
0 0 0 0 |
| 820 |
0 0 0 0 |
| 821 |
0 0 0 0 |
| 822 |
>; |
| 823 |
}; |
| 824 |
|
| 825 |
&mcu_mcan0 { |
| 826 |
pinctrl-names = "default"; |
| 827 |
pinctrl-0 = <&mcu_mcan0_pins_default>; |
| 828 |
phys = <&transceiver0>; |
| 829 |
status = "okay"; |
| 830 |
}; |
| 831 |
|
| 832 |
&mcu_mcan1 { |
| 833 |
pinctrl-names = "default"; |
| 834 |
pinctrl-0 = <&mcu_mcan1_pins_default>; |
| 835 |
phys = <&transceiver1>; |
| 836 |
status = "okay"; |
| 837 |
}; |
| 838 |
|
| 839 |
&main_mcan0 { |
| 840 |
pinctrl-names = "default"; |
| 841 |
pinctrl-0 = <&main_mcan0_pins_default>; |
| 842 |
phys = <&transceiver2>; |
| 843 |
status = "okay"; |
| 844 |
}; |
| 845 |
|
| 846 |
&mcu_gpio0 { |
| 847 |
status = "okay"; |
| 848 |
}; |
| 849 |
|
| 850 |
&mcu_i2c0 { |
| 851 |
pinctrl-names = "default"; |
| 852 |
pinctrl-0 = <&mcu_i2c0_pins_default>; |
| 853 |
clock-frequency = <400000>; |
| 854 |
status = "okay"; |
| 855 |
}; |
| 856 |
|
| 857 |
#include "k3-j722s-ti-ipc-firmware.dtsi" |