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