1 // SPDX-License-Identifier: GPL-2.0-only OR MI 2 /* 3 * Copyright (C) 2020-2024 Texas Instruments I 4 */ 5 6 /dts-v1/; 7 8 #include <dt-bindings/gpio/gpio.h> 9 10 #include "k3-j7200.dtsi" 11 12 / { 13 memory@80000000 { 14 device_type = "memory"; 15 bootph-all; 16 /* 4G RAM */ 17 reg = <0x00000000 0x80000000 0 18 <0x00000008 0x80000000 0 19 }; 20 21 reserved_memory: reserved-memory { 22 #address-cells = <2>; 23 #size-cells = <2>; 24 ranges; 25 26 secure_ddr: optee@9e800000 { 27 reg = <0x00 0x9e800000 28 alignment = <0x1000>; 29 no-map; 30 }; 31 32 mcu_r5fss0_core0_dma_memory_re 33 compatible = "shared-d 34 reg = <0x00 0xa0000000 35 no-map; 36 }; 37 38 mcu_r5fss0_core0_memory_region 39 compatible = "shared-d 40 reg = <0x00 0xa0100000 41 no-map; 42 }; 43 44 mcu_r5fss0_core1_dma_memory_re 45 compatible = "shared-d 46 reg = <0x00 0xa1000000 47 no-map; 48 }; 49 50 mcu_r5fss0_core1_memory_region 51 compatible = "shared-d 52 reg = <0x00 0xa1100000 53 no-map; 54 }; 55 56 main_r5fss0_core0_dma_memory_r 57 compatible = "shared-d 58 reg = <0x00 0xa2000000 59 no-map; 60 }; 61 62 main_r5fss0_core0_memory_regio 63 compatible = "shared-d 64 reg = <0x00 0xa2100000 65 no-map; 66 }; 67 68 main_r5fss0_core1_dma_memory_r 69 compatible = "shared-d 70 reg = <0x00 0xa3000000 71 no-map; 72 }; 73 74 main_r5fss0_core1_memory_regio 75 compatible = "shared-d 76 reg = <0x00 0xa3100000 77 no-map; 78 }; 79 80 rtos_ipc_memory_region: ipc-me 81 reg = <0x00 0xa4000000 82 alignment = <0x1000>; 83 no-map; 84 }; 85 }; 86 87 mux0: mux-controller-0 { 88 compatible = "gpio-mux"; 89 #mux-state-cells = <1>; 90 mux-gpios = <&exp_som 1 GPIO_A 91 }; 92 93 mux1: mux-controller-1 { 94 compatible = "gpio-mux"; 95 #mux-state-cells = <1>; 96 mux-gpios = <&exp_som 2 GPIO_A 97 }; 98 99 transceiver0: can-phy0 { 100 /* standby pin has been ground 101 compatible = "ti,tcan1042"; 102 #phy-cells = <0>; 103 max-bitrate = <5000000>; 104 }; 105 }; 106 107 &wkup_pmx0 { 108 mcu_fss0_hpb0_pins_default: mcu-fss0-h 109 pinctrl-single,pins = < 110 J721E_WKUP_IOPAD(0x0, 111 J721E_WKUP_IOPAD(0x4, 112 J721E_WKUP_IOPAD(0x2c, 113 J721E_WKUP_IOPAD(0x30, 114 J721E_WKUP_IOPAD(0x8, 115 J721E_WKUP_IOPAD(0xc, 116 J721E_WKUP_IOPAD(0x10, 117 J721E_WKUP_IOPAD(0x14, 118 J721E_WKUP_IOPAD(0x18, 119 J721E_WKUP_IOPAD(0x1c, 120 J721E_WKUP_IOPAD(0x20, 121 J721E_WKUP_IOPAD(0x24, 122 J721E_WKUP_IOPAD(0x28, 123 >; 124 }; 125 126 mcu_fss0_ospi0_pins_default: mcu-fss0- 127 pinctrl-single,pins = < 128 J721E_WKUP_IOPAD(0x000 129 J721E_WKUP_IOPAD(0x002 130 J721E_WKUP_IOPAD(0x000 131 J721E_WKUP_IOPAD(0x001 132 J721E_WKUP_IOPAD(0x001 133 J721E_WKUP_IOPAD(0x001 134 J721E_WKUP_IOPAD(0x001 135 J721E_WKUP_IOPAD(0x002 136 J721E_WKUP_IOPAD(0x002 137 J721E_WKUP_IOPAD(0x002 138 J721E_WKUP_IOPAD(0x000 139 >; 140 }; 141 }; 142 143 &wkup_pmx2 { 144 wkup_i2c0_pins_default: wkup-i2c0-defa 145 pinctrl-single,pins = 146 J721E_WKUP_IOPAD(0x98, 147 J721E_WKUP_IOPAD(0x9c, 148 >; 149 }; 150 }; 151 152 &wkup_pmx3 { 153 pmic_irq_pins_default: pmic-irq-defaul 154 pinctrl-single,pins = < 155 J721E_WKUP_IOPAD(0x01c 156 >; 157 }; 158 }; 159 160 &main_pmx0 { 161 main_i2c0_pins_default: main-i2c0-defa 162 pinctrl-single,pins = < 163 J721E_IOPAD(0xd4, PIN_ 164 J721E_IOPAD(0xd8, PIN_ 165 >; 166 }; 167 168 main_mcan0_pins_default: main-mcan0-de 169 pinctrl-single,pins = < 170 J721E_IOPAD(0x24, PIN_ 171 J721E_IOPAD(0x20, PIN_ 172 >; 173 }; 174 }; 175 176 &hbmc { 177 /* OSPI and HBMC are muxed inside FSS, 178 * appropriate node based on board det 179 */ 180 status = "disabled"; 181 pinctrl-names = "default"; 182 pinctrl-0 = <&mcu_fss0_hpb0_pins_defau 183 ranges = <0x00 0x00 0x05 0x00000000 0x 184 <0x01 0x00 0x05 0x04000000 0x 185 186 flash@0,0 { 187 compatible = "cypress,hyperfla 188 reg = <0x00 0x00 0x4000000>; 189 190 partitions { 191 compatible = "fixed-pa 192 #address-cells = <1>; 193 #size-cells = <1>; 194 195 partition@0 { 196 label = "hbmc. 197 reg = <0x0 0x1 198 }; 199 200 partition@100000 { 201 label = "hbmc. 202 reg = <0x10000 203 }; 204 205 partition@300000 { 206 label = "hbmc. 207 reg = <0x30000 208 }; 209 210 partition@700000 { 211 label = "hbmc. 212 reg = <0x70000 213 }; 214 215 partition@800000 { 216 label = "hbmc. 217 reg = <0x80000 218 }; 219 }; 220 }; 221 }; 222 223 &mailbox0_cluster0 { 224 status = "okay"; 225 interrupts = <436>; 226 227 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0 228 ti,mbox-rx = <0 0 0>; 229 ti,mbox-tx = <1 0 0>; 230 }; 231 232 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0 233 ti,mbox-rx = <2 0 0>; 234 ti,mbox-tx = <3 0 0>; 235 }; 236 }; 237 238 &mailbox0_cluster1 { 239 status = "okay"; 240 interrupts = <432>; 241 242 mbox_main_r5fss0_core0: mbox-main-r5fs 243 ti,mbox-rx = <0 0 0>; 244 ti,mbox-tx = <1 0 0>; 245 }; 246 247 mbox_main_r5fss0_core1: mbox-main-r5fs 248 ti,mbox-rx = <2 0 0>; 249 ti,mbox-tx = <3 0 0>; 250 }; 251 }; 252 253 &mcu_r5fss0_core0 { 254 mboxes = <&mailbox0_cluster0 &mbox_mcu 255 memory-region = <&mcu_r5fss0_core0_dma 256 <&mcu_r5fss0_core0_mem 257 }; 258 259 &mcu_r5fss0_core1 { 260 mboxes = <&mailbox0_cluster0 &mbox_mcu 261 memory-region = <&mcu_r5fss0_core1_dma 262 <&mcu_r5fss0_core1_mem 263 }; 264 265 &main_r5fss0 { 266 ti,cluster-mode = <0>; 267 }; 268 269 /* Timers are used by Remoteproc firmware */ 270 &main_timer0 { 271 status = "reserved"; 272 }; 273 274 &main_timer1 { 275 status = "reserved"; 276 }; 277 278 &main_timer2 { 279 status = "reserved"; 280 }; 281 282 &main_r5fss0_core0 { 283 mboxes = <&mailbox0_cluster1 &mbox_mai 284 memory-region = <&main_r5fss0_core0_dm 285 <&main_r5fss0_core0_me 286 }; 287 288 &main_r5fss0_core1 { 289 mboxes = <&mailbox0_cluster1 &mbox_mai 290 memory-region = <&main_r5fss0_core1_dm 291 <&main_r5fss0_core1_me 292 }; 293 294 &main_i2c0 { 295 pinctrl-names = "default"; 296 pinctrl-0 = <&main_i2c0_pins_default>; 297 clock-frequency = <400000>; 298 299 exp_som: gpio@21 { 300 compatible = "ti,tca6408"; 301 reg = <0x21>; 302 gpio-controller; 303 #gpio-cells = <2>; 304 gpio-line-names = "USB2.0_MUX_ 305 "CANUART_MUX 306 "UART/LIN_MU 307 "GPIO_LIN_EN 308 }; 309 }; 310 311 &wkup_i2c0 { 312 status = "okay"; 313 pinctrl-names = "default"; 314 pinctrl-0 = <&wkup_i2c0_pins_default>; 315 clock-frequency = <400000>; 316 317 eeprom@50 { 318 compatible = "atmel,24c256"; 319 reg = <0x50>; 320 }; 321 322 tps659414: pmic@48 { 323 compatible = "ti,tps6594-q1"; 324 reg = <0x48>; 325 system-power-controller; 326 pinctrl-names = "default"; 327 pinctrl-0 = <&pmic_irq_pins_de 328 interrupt-parent = <&wkup_gpio 329 interrupts = <84 IRQ_TYPE_EDGE 330 gpio-controller; 331 #gpio-cells = <2>; 332 ti,primary-pmic; 333 buck1-supply = <&vsys_3v3>; 334 buck2-supply = <&vsys_3v3>; 335 buck3-supply = <&vsys_3v3>; 336 buck4-supply = <&vsys_3v3>; 337 buck5-supply = <&vsys_3v3>; 338 ldo1-supply = <&vsys_3v3>; 339 ldo2-supply = <&vsys_3v3>; 340 ldo3-supply = <&vsys_3v3>; 341 ldo4-supply = <&vsys_3v3>; 342 343 regulators { 344 bucka1: buck1 { 345 regulator-name 346 regulator-min- 347 regulator-max- 348 regulator-boot 349 regulator-alwa 350 }; 351 352 bucka2: buck2 { 353 regulator-name 354 regulator-min- 355 regulator-max- 356 regulator-boot 357 regulator-alwa 358 }; 359 360 bucka3: buck3 { 361 regulator-name 362 regulator-min- 363 regulator-max- 364 regulator-boot 365 regulator-alwa 366 }; 367 368 bucka4: buck4 { 369 regulator-name 370 regulator-min- 371 regulator-max- 372 regulator-boot 373 regulator-alwa 374 }; 375 376 bucka5: buck5 { 377 regulator-name 378 regulator-min- 379 regulator-max- 380 regulator-boot 381 regulator-alwa 382 }; 383 384 ldoa1: ldo1 { 385 regulator-name 386 regulator-min- 387 regulator-max- 388 regulator-boot 389 regulator-alwa 390 }; 391 392 ldoa2: ldo2 { 393 regulator-name 394 regulator-min- 395 regulator-max- 396 regulator-boot 397 regulator-alwa 398 }; 399 400 ldoa3: ldo3 { 401 regulator-name 402 regulator-min- 403 regulator-max- 404 regulator-boot 405 regulator-alwa 406 }; 407 408 ldoa4: ldo4 { 409 regulator-name 410 regulator-min- 411 regulator-max- 412 regulator-boot 413 regulator-alwa 414 }; 415 }; 416 }; 417 418 lp876441: pmic@4c { 419 compatible = "ti,lp8764-q1"; 420 reg = <0x4c>; 421 system-power-controller; 422 interrupt-parent = <&wkup_gpio 423 interrupts = <84 IRQ_TYPE_EDGE 424 gpio-controller; 425 #gpio-cells = <2>; 426 buck1-supply = <&vsys_3v3>; 427 buck2-supply = <&vsys_3v3>; 428 buck3-supply = <&vsys_3v3>; 429 buck4-supply = <&vsys_3v3>; 430 431 regulators: regulators { 432 buckb1: buck1 { 433 regulator-name 434 regulator-min- 435 regulator-max- 436 regulator-alwa 437 regulator-boot 438 bootph-pre-ram 439 }; 440 441 buckb2: buck2 { 442 regulator-name 443 regulator-min- 444 regulator-max- 445 regulator-boot 446 regulator-alwa 447 }; 448 449 buckb3: buck3 { 450 regulator-name 451 regulator-min- 452 regulator-max- 453 regulator-boot 454 regulator-alwa 455 }; 456 457 buckb4: buck4 { 458 regulator-name 459 regulator-min- 460 regulator-max- 461 regulator-boot 462 regulator-alwa 463 }; 464 }; 465 }; 466 }; 467 468 &ospi0 { 469 status = "okay"; 470 pinctrl-names = "default"; 471 pinctrl-0 = <&mcu_fss0_ospi0_pins_defa 472 473 flash@0 { 474 compatible = "jedec,spi-nor"; 475 reg = <0x0>; 476 spi-tx-bus-width = <8>; 477 spi-rx-bus-width = <8>; 478 spi-max-frequency = <25000000> 479 cdns,tshsl-ns = <60>; 480 cdns,tsd2d-ns = <60>; 481 cdns,tchsh-ns = <60>; 482 cdns,tslch-ns = <60>; 483 cdns,read-delay = <4>; 484 485 partitions { 486 compatible = "fixed-pa 487 #address-cells = <1>; 488 #size-cells = <1>; 489 490 partition@0 { 491 label = "ospi. 492 reg = <0x0 0x1 493 }; 494 495 partition@100000 { 496 label = "ospi. 497 reg = <0x10000 498 }; 499 500 partition@300000 { 501 label = "ospi. 502 reg = <0x30000 503 }; 504 505 partition@700000 { 506 label = "ospi. 507 reg = <0x70000 508 }; 509 510 partition@740000 { 511 label = "ospi. 512 reg = <0x74000 513 }; 514 515 partition@800000 { 516 label = "ospi. 517 reg = <0x80000 518 }; 519 520 partition@3fc0000 { 521 label = "ospi. 522 reg = <0x3fc00 523 }; 524 }; 525 }; 526 }; 527 528 &main_mcan0 { 529 status = "okay"; 530 pinctrl-0 = <&main_mcan0_pins_default> 531 pinctrl-names = "default"; 532 phys = <&transceiver0>; 533 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.