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