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