12d87061eSNishanth Menon// SPDX-License-Identifier: GPL-2.0 22d87061eSNishanth Menon/* 32d87061eSNishanth Menon * Device Tree Source for J721E SoC Family 42d87061eSNishanth Menon * 52d87061eSNishanth Menon * Copyright (C) 2016-2019 Texas Instruments Incorporated - http://www.ti.com/ 62d87061eSNishanth Menon */ 72d87061eSNishanth Menon 82d87061eSNishanth Menon#include <dt-bindings/interrupt-controller/irq.h> 92d87061eSNishanth Menon#include <dt-bindings/interrupt-controller/arm-gic.h> 102d87061eSNishanth Menon#include <dt-bindings/pinctrl/k3.h> 11bf146a1aSLokesh Vutla#include <dt-bindings/soc/ti,sci_pm_domain.h> 122d87061eSNishanth Menon 132d87061eSNishanth Menon/ { 142d87061eSNishanth Menon model = "Texas Instruments K3 J721E SoC"; 152d87061eSNishanth Menon compatible = "ti,j721e"; 162d87061eSNishanth Menon interrupt-parent = <&gic500>; 172d87061eSNishanth Menon #address-cells = <2>; 182d87061eSNishanth Menon #size-cells = <2>; 192d87061eSNishanth Menon 202d87061eSNishanth Menon aliases { 212d87061eSNishanth Menon serial0 = &wkup_uart0; 222d87061eSNishanth Menon serial1 = &mcu_uart0; 232d87061eSNishanth Menon serial2 = &main_uart0; 242d87061eSNishanth Menon serial3 = &main_uart1; 252d87061eSNishanth Menon serial4 = &main_uart2; 262d87061eSNishanth Menon serial5 = &main_uart3; 272d87061eSNishanth Menon serial6 = &main_uart4; 282d87061eSNishanth Menon serial7 = &main_uart5; 292d87061eSNishanth Menon serial8 = &main_uart6; 302d87061eSNishanth Menon serial9 = &main_uart7; 312d87061eSNishanth Menon serial10 = &main_uart8; 322d87061eSNishanth Menon serial11 = &main_uart9; 332d87061eSNishanth Menon }; 342d87061eSNishanth Menon 352d87061eSNishanth Menon chosen { }; 362d87061eSNishanth Menon 372d87061eSNishanth Menon cpus { 382d87061eSNishanth Menon #address-cells = <1>; 392d87061eSNishanth Menon #size-cells = <0>; 402d87061eSNishanth Menon cpu-map { 412d87061eSNishanth Menon cluster0: cluster0 { 422d87061eSNishanth Menon core0 { 432d87061eSNishanth Menon cpu = <&cpu0>; 442d87061eSNishanth Menon }; 452d87061eSNishanth Menon 462d87061eSNishanth Menon core1 { 472d87061eSNishanth Menon cpu = <&cpu1>; 482d87061eSNishanth Menon }; 492d87061eSNishanth Menon }; 502d87061eSNishanth Menon 512d87061eSNishanth Menon }; 522d87061eSNishanth Menon 532d87061eSNishanth Menon cpu0: cpu@0 { 542d87061eSNishanth Menon compatible = "arm,cortex-a72"; 552d87061eSNishanth Menon reg = <0x000>; 562d87061eSNishanth Menon device_type = "cpu"; 572d87061eSNishanth Menon enable-method = "psci"; 582d87061eSNishanth Menon i-cache-size = <0xC000>; 592d87061eSNishanth Menon i-cache-line-size = <64>; 602d87061eSNishanth Menon i-cache-sets = <256>; 612d87061eSNishanth Menon d-cache-size = <0x8000>; 622d87061eSNishanth Menon d-cache-line-size = <64>; 632d87061eSNishanth Menon d-cache-sets = <128>; 642d87061eSNishanth Menon next-level-cache = <&L2_0>; 652d87061eSNishanth Menon }; 662d87061eSNishanth Menon 672d87061eSNishanth Menon cpu1: cpu@1 { 682d87061eSNishanth Menon compatible = "arm,cortex-a72"; 692d87061eSNishanth Menon reg = <0x001>; 702d87061eSNishanth Menon device_type = "cpu"; 712d87061eSNishanth Menon enable-method = "psci"; 722d87061eSNishanth Menon i-cache-size = <0xC000>; 732d87061eSNishanth Menon i-cache-line-size = <64>; 742d87061eSNishanth Menon i-cache-sets = <256>; 752d87061eSNishanth Menon d-cache-size = <0x8000>; 762d87061eSNishanth Menon d-cache-line-size = <64>; 772d87061eSNishanth Menon d-cache-sets = <128>; 782d87061eSNishanth Menon next-level-cache = <&L2_0>; 792d87061eSNishanth Menon }; 802d87061eSNishanth Menon }; 812d87061eSNishanth Menon 822d87061eSNishanth Menon L2_0: l2-cache0 { 832d87061eSNishanth Menon compatible = "cache"; 842d87061eSNishanth Menon cache-level = <2>; 852d87061eSNishanth Menon cache-size = <0x100000>; 862d87061eSNishanth Menon cache-line-size = <64>; 872d87061eSNishanth Menon cache-sets = <2048>; 882d87061eSNishanth Menon next-level-cache = <&msmc_l3>; 892d87061eSNishanth Menon }; 902d87061eSNishanth Menon 912d87061eSNishanth Menon msmc_l3: l3-cache0 { 922d87061eSNishanth Menon compatible = "cache"; 932d87061eSNishanth Menon cache-level = <3>; 942d87061eSNishanth Menon }; 952d87061eSNishanth Menon 962d87061eSNishanth Menon firmware { 972d87061eSNishanth Menon optee { 982d87061eSNishanth Menon compatible = "linaro,optee-tz"; 992d87061eSNishanth Menon method = "smc"; 1002d87061eSNishanth Menon }; 1012d87061eSNishanth Menon 1022d87061eSNishanth Menon psci: psci { 1032d87061eSNishanth Menon compatible = "arm,psci-1.0"; 1042d87061eSNishanth Menon method = "smc"; 1052d87061eSNishanth Menon }; 1062d87061eSNishanth Menon }; 1072d87061eSNishanth Menon 1082d87061eSNishanth Menon a72_timer0: timer-cl0-cpu0 { 1092d87061eSNishanth Menon compatible = "arm,armv8-timer"; 1102d87061eSNishanth Menon interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ 1112d87061eSNishanth Menon <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ 1122d87061eSNishanth Menon <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ 1132d87061eSNishanth Menon <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ 1142d87061eSNishanth Menon }; 1152d87061eSNishanth Menon 1162d87061eSNishanth Menon pmu: pmu { 1172d87061eSNishanth Menon compatible = "arm,armv8-pmuv3"; 1182d87061eSNishanth Menon /* Recommendation from GIC500 TRM Table A.3 */ 1192d87061eSNishanth Menon interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; 1202d87061eSNishanth Menon }; 1212d87061eSNishanth Menon 1222d87061eSNishanth Menon cbass_main: interconnect@100000 { 1232d87061eSNishanth Menon compatible = "simple-bus"; 1242d87061eSNishanth Menon #address-cells = <2>; 1252d87061eSNishanth Menon #size-cells = <2>; 1262d87061eSNishanth Menon ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ 1272d87061eSNishanth Menon <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ 1282d87061eSNishanth Menon <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ 1292d87061eSNishanth Menon <0x00 0x00A40000 0x00 0x00A40000 0x00 0x00000800>, /* timesync router */ 130451555c8SRoger Quadros <0x00 0x06000000 0x00 0x06000000 0x00 0x00400000>, /* USBSS0 */ 131451555c8SRoger Quadros <0x00 0x06400000 0x00 0x06400000 0x00 0x00400000>, /* USBSS1 */ 1322d87061eSNishanth Menon <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */ 1338c0deacaSPeter Ujfalusi <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ 1342d87061eSNishanth Menon <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01000000>, /* PCIe Core*/ 1352d87061eSNishanth Menon <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ 1362d87061eSNishanth Menon <0x00 0x64800000 0x00 0x64800000 0x00 0x00800000>, /* C71 */ 1372d87061eSNishanth Menon <0x4d 0x80800000 0x4d 0x80800000 0x00 0x00800000>, /* C66_0 */ 1382d87061eSNishanth Menon <0x4d 0x81800000 0x4d 0x81800000 0x00 0x00800000>, /* C66_1 */ 1392d87061eSNishanth Menon <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ 1402d87061eSNishanth Menon <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ 1412d87061eSNishanth Menon 1422d87061eSNishanth Menon /* MCUSS_WKUP Range */ 1432d87061eSNishanth Menon <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, 1442d87061eSNishanth Menon <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, 1452d87061eSNishanth Menon <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, 1462d87061eSNishanth Menon <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, 1472d87061eSNishanth Menon <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, 1482d87061eSNishanth Menon <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, 1492d87061eSNishanth Menon <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, 1502d87061eSNishanth Menon <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, 1512d87061eSNishanth Menon <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, 1522d87061eSNishanth Menon <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, 1532d87061eSNishanth Menon <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, 1542d87061eSNishanth Menon <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, 1552d87061eSNishanth Menon <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; 1562d87061eSNishanth Menon 1572d87061eSNishanth Menon cbass_mcu_wakeup: interconnect@28380000 { 1582d87061eSNishanth Menon compatible = "simple-bus"; 1592d87061eSNishanth Menon #address-cells = <2>; 1602d87061eSNishanth Menon #size-cells = <2>; 1612d87061eSNishanth Menon ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ 1622d87061eSNishanth Menon <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ 1632d87061eSNishanth Menon <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ 1642d87061eSNishanth Menon <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ 1652d87061eSNishanth Menon <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ 1662d87061eSNishanth Menon <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ 1672d87061eSNishanth Menon <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ 1682d87061eSNishanth Menon <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ 1692d87061eSNishanth Menon <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ 1702d87061eSNishanth Menon <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ 1712d87061eSNishanth Menon <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, /* FSS OSPI0/1 data region 0 */ 1722d87061eSNishanth Menon <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS OSPI0 data region 3 */ 1732d87061eSNishanth Menon <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; /* FSS OSPI1 data region 3*/ 1742d87061eSNishanth Menon }; 1752d87061eSNishanth Menon }; 1762d87061eSNishanth Menon}; 1772d87061eSNishanth Menon 1782d87061eSNishanth Menon/* Now include the peripherals for each bus segments */ 1792d87061eSNishanth Menon#include "k3-j721e-main.dtsi" 1802d87061eSNishanth Menon#include "k3-j721e-mcu-wakeup.dtsi" 181