1*d361ed88SLokesh Vutla// SPDX-License-Identifier: GPL-2.0 2*d361ed88SLokesh Vutla/* 3*d361ed88SLokesh Vutla * Device Tree Source for J7200 SoC Family 4*d361ed88SLokesh Vutla * 5*d361ed88SLokesh Vutla * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 6*d361ed88SLokesh Vutla */ 7*d361ed88SLokesh Vutla 8*d361ed88SLokesh Vutla#include <dt-bindings/interrupt-controller/irq.h> 9*d361ed88SLokesh Vutla#include <dt-bindings/interrupt-controller/arm-gic.h> 10*d361ed88SLokesh Vutla#include <dt-bindings/pinctrl/k3.h> 11*d361ed88SLokesh Vutla#include <dt-bindings/soc/ti,sci_pm_domain.h> 12*d361ed88SLokesh Vutla 13*d361ed88SLokesh Vutla/ { 14*d361ed88SLokesh Vutla model = "Texas Instruments K3 J7200 SoC"; 15*d361ed88SLokesh Vutla compatible = "ti,j7200"; 16*d361ed88SLokesh Vutla interrupt-parent = <&gic500>; 17*d361ed88SLokesh Vutla #address-cells = <2>; 18*d361ed88SLokesh Vutla #size-cells = <2>; 19*d361ed88SLokesh Vutla 20*d361ed88SLokesh Vutla aliases { 21*d361ed88SLokesh Vutla serial0 = &wkup_uart0; 22*d361ed88SLokesh Vutla serial1 = &mcu_uart0; 23*d361ed88SLokesh Vutla serial2 = &main_uart0; 24*d361ed88SLokesh Vutla serial3 = &main_uart1; 25*d361ed88SLokesh Vutla serial4 = &main_uart2; 26*d361ed88SLokesh Vutla serial5 = &main_uart3; 27*d361ed88SLokesh Vutla serial6 = &main_uart4; 28*d361ed88SLokesh Vutla serial7 = &main_uart5; 29*d361ed88SLokesh Vutla serial8 = &main_uart6; 30*d361ed88SLokesh Vutla serial9 = &main_uart7; 31*d361ed88SLokesh Vutla serial10 = &main_uart8; 32*d361ed88SLokesh Vutla serial11 = &main_uart9; 33*d361ed88SLokesh Vutla }; 34*d361ed88SLokesh Vutla 35*d361ed88SLokesh Vutla chosen { }; 36*d361ed88SLokesh Vutla 37*d361ed88SLokesh Vutla cpus { 38*d361ed88SLokesh Vutla #address-cells = <1>; 39*d361ed88SLokesh Vutla #size-cells = <0>; 40*d361ed88SLokesh Vutla cpu-map { 41*d361ed88SLokesh Vutla cluster0: cluster0 { 42*d361ed88SLokesh Vutla core0 { 43*d361ed88SLokesh Vutla cpu = <&cpu0>; 44*d361ed88SLokesh Vutla }; 45*d361ed88SLokesh Vutla 46*d361ed88SLokesh Vutla core1 { 47*d361ed88SLokesh Vutla cpu = <&cpu1>; 48*d361ed88SLokesh Vutla }; 49*d361ed88SLokesh Vutla }; 50*d361ed88SLokesh Vutla 51*d361ed88SLokesh Vutla }; 52*d361ed88SLokesh Vutla 53*d361ed88SLokesh Vutla cpu0: cpu@0 { 54*d361ed88SLokesh Vutla compatible = "arm,cortex-a72"; 55*d361ed88SLokesh Vutla reg = <0x000>; 56*d361ed88SLokesh Vutla device_type = "cpu"; 57*d361ed88SLokesh Vutla enable-method = "psci"; 58*d361ed88SLokesh Vutla i-cache-size = <0xc000>; 59*d361ed88SLokesh Vutla i-cache-line-size = <64>; 60*d361ed88SLokesh Vutla i-cache-sets = <256>; 61*d361ed88SLokesh Vutla d-cache-size = <0x8000>; 62*d361ed88SLokesh Vutla d-cache-line-size = <64>; 63*d361ed88SLokesh Vutla d-cache-sets = <128>; 64*d361ed88SLokesh Vutla next-level-cache = <&L2_0>; 65*d361ed88SLokesh Vutla }; 66*d361ed88SLokesh Vutla 67*d361ed88SLokesh Vutla cpu1: cpu@1 { 68*d361ed88SLokesh Vutla compatible = "arm,cortex-a72"; 69*d361ed88SLokesh Vutla reg = <0x001>; 70*d361ed88SLokesh Vutla device_type = "cpu"; 71*d361ed88SLokesh Vutla enable-method = "psci"; 72*d361ed88SLokesh Vutla i-cache-size = <0xc000>; 73*d361ed88SLokesh Vutla i-cache-line-size = <64>; 74*d361ed88SLokesh Vutla i-cache-sets = <256>; 75*d361ed88SLokesh Vutla d-cache-size = <0x8000>; 76*d361ed88SLokesh Vutla d-cache-line-size = <64>; 77*d361ed88SLokesh Vutla d-cache-sets = <128>; 78*d361ed88SLokesh Vutla next-level-cache = <&L2_0>; 79*d361ed88SLokesh Vutla }; 80*d361ed88SLokesh Vutla }; 81*d361ed88SLokesh Vutla 82*d361ed88SLokesh Vutla L2_0: l2-cache0 { 83*d361ed88SLokesh Vutla compatible = "cache"; 84*d361ed88SLokesh Vutla cache-level = <2>; 85*d361ed88SLokesh Vutla cache-size = <0x100000>; 86*d361ed88SLokesh Vutla cache-line-size = <64>; 87*d361ed88SLokesh Vutla cache-sets = <2048>; 88*d361ed88SLokesh Vutla next-level-cache = <&msmc_l3>; 89*d361ed88SLokesh Vutla }; 90*d361ed88SLokesh Vutla 91*d361ed88SLokesh Vutla msmc_l3: l3-cache0 { 92*d361ed88SLokesh Vutla compatible = "cache"; 93*d361ed88SLokesh Vutla cache-level = <3>; 94*d361ed88SLokesh Vutla }; 95*d361ed88SLokesh Vutla 96*d361ed88SLokesh Vutla firmware { 97*d361ed88SLokesh Vutla optee { 98*d361ed88SLokesh Vutla compatible = "linaro,optee-tz"; 99*d361ed88SLokesh Vutla method = "smc"; 100*d361ed88SLokesh Vutla }; 101*d361ed88SLokesh Vutla 102*d361ed88SLokesh Vutla psci: psci { 103*d361ed88SLokesh Vutla compatible = "arm,psci-1.0"; 104*d361ed88SLokesh Vutla method = "smc"; 105*d361ed88SLokesh Vutla }; 106*d361ed88SLokesh Vutla }; 107*d361ed88SLokesh Vutla 108*d361ed88SLokesh Vutla a72_timer0: timer-cl0-cpu0 { 109*d361ed88SLokesh Vutla compatible = "arm,armv8-timer"; 110*d361ed88SLokesh Vutla interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ 111*d361ed88SLokesh Vutla <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ 112*d361ed88SLokesh Vutla <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ 113*d361ed88SLokesh Vutla <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ 114*d361ed88SLokesh Vutla }; 115*d361ed88SLokesh Vutla 116*d361ed88SLokesh Vutla pmu: pmu { 117*d361ed88SLokesh Vutla compatible = "arm,armv8-pmuv3"; 118*d361ed88SLokesh Vutla interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; 119*d361ed88SLokesh Vutla }; 120*d361ed88SLokesh Vutla 121*d361ed88SLokesh Vutla cbass_main: bus@100000 { 122*d361ed88SLokesh Vutla compatible = "simple-bus"; 123*d361ed88SLokesh Vutla #address-cells = <2>; 124*d361ed88SLokesh Vutla #size-cells = <2>; 125*d361ed88SLokesh Vutla ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ 126*d361ed88SLokesh Vutla <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ 127*d361ed88SLokesh Vutla <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ 128*d361ed88SLokesh Vutla <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ 129*d361ed88SLokesh Vutla <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ 130*d361ed88SLokesh Vutla <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ 131*d361ed88SLokesh Vutla <0x00 0x18000000 0x00 0x18000000 0x00 0x08000000>, /* PCIe1 DAT0 */ 132*d361ed88SLokesh Vutla <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */ 133*d361ed88SLokesh Vutla 134*d361ed88SLokesh Vutla /* MCUSS_WKUP Range */ 135*d361ed88SLokesh Vutla <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, 136*d361ed88SLokesh Vutla <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, 137*d361ed88SLokesh Vutla <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, 138*d361ed88SLokesh Vutla <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, 139*d361ed88SLokesh Vutla <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, 140*d361ed88SLokesh Vutla <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, 141*d361ed88SLokesh Vutla <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, 142*d361ed88SLokesh Vutla <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, 143*d361ed88SLokesh Vutla <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, 144*d361ed88SLokesh Vutla <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, 145*d361ed88SLokesh Vutla <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, 146*d361ed88SLokesh Vutla <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, 147*d361ed88SLokesh Vutla <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; 148*d361ed88SLokesh Vutla 149*d361ed88SLokesh Vutla cbass_mcu_wakeup: bus@28380000 { 150*d361ed88SLokesh Vutla compatible = "simple-bus"; 151*d361ed88SLokesh Vutla #address-cells = <2>; 152*d361ed88SLokesh Vutla #size-cells = <2>; 153*d361ed88SLokesh Vutla ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ 154*d361ed88SLokesh Vutla <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ 155*d361ed88SLokesh Vutla <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ 156*d361ed88SLokesh Vutla <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ 157*d361ed88SLokesh Vutla <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ 158*d361ed88SLokesh Vutla <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ 159*d361ed88SLokesh Vutla <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ 160*d361ed88SLokesh Vutla <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ 161*d361ed88SLokesh Vutla <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ 162*d361ed88SLokesh Vutla <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ 163*d361ed88SLokesh Vutla <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, /* FSS OSPI0/1 data region 0 */ 164*d361ed88SLokesh Vutla <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS OSPI0 data region 3 */ 165*d361ed88SLokesh Vutla <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; /* FSS OSPI1 data region 3 */ 166*d361ed88SLokesh Vutla }; 167*d361ed88SLokesh Vutla }; 168*d361ed88SLokesh Vutla}; 169*d361ed88SLokesh Vutla 170*d361ed88SLokesh Vutla/* Now include the peripherals for each bus segments */ 171*d361ed88SLokesh Vutla#include "k3-j7200-main.dtsi" 172*d361ed88SLokesh Vutla#include "k3-j7200-mcu-wakeup.dtsi" 173