blob: 144d99bbcbefa458e3e20fa48cb0b28ef6772e9a [file] [log] [blame]
Leo Yanb3a97372024-04-14 08:27:39 +01001/*
2 * Copyright (c) 2020-2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/interrupt-controller/arm-gic.h>
10#include <dt-bindings/interrupt-controller/irq.h>
11#include <platform_def.h>
12
Leo Yandefcfb22024-04-24 09:53:21 +010013#define LIT_CAPACITY 239
14#define MID_CAPACITY 686
15#define BIG_CAPACITY 1024
16
Leo Yandefcfb22024-04-24 09:53:21 +010017#define MHU_TX_ADDR 46040000 /* hex */
Boyan Karatotev6c069e72024-04-24 10:09:18 +010018#define MHU_TX_COMPAT "arm,mhuv3"
19#define MHU_TX_INT_NAME ""
20
Leo Yandefcfb22024-04-24 09:53:21 +010021#define MHU_RX_ADDR 46140000 /* hex */
Boyan Karatotev6c069e72024-04-24 10:09:18 +010022#define MHU_RX_COMPAT "arm,mhuv3"
23#define MHU_OFFSET 0x10000
24#define MHU_MBOX_CELLS 3
25#define MHU_RX_INT_NUM 300
26#define MHU_RX_INT_NAME "combined-mbx"
27
Leo Yandefcfb22024-04-24 09:53:21 +010028#define MPAM_ADDR 0x0 0x5f010000 /* 0x5f01_0000 */
29#define UARTCLK_FREQ 3750000
30
31#if TARGET_FLAVOUR_FVP
32#define DPU_ADDR 4000000000
33#define DPU_IRQ 579
34#elif TARGET_FLAVOUR_FPGA
35#define DPU_ADDR 2cc00000
36#define DPU_IRQ 69
37#endif
38
Leo Yanb3a97372024-04-14 08:27:39 +010039#include "tc-common.dtsi"
40#if TARGET_FLAVOUR_FVP
41#include "tc-fvp.dtsi"
Leo Yan4e772e62024-04-24 09:57:28 +010042#else
43#include "tc-fpga.dtsi"
Leo Yanb3a97372024-04-14 08:27:39 +010044#endif /* TARGET_FLAVOUR_FVP */
45#include "tc-base.dtsi"
Leo Yanf9565b22024-04-14 22:09:34 +010046
47/ {
48 cpus {
49 CPU2:cpu@200 {
50 clocks = <&scmi_dvfs 1>;
51 capacity-dmips-mhz = <MID_CAPACITY>;
52 };
53
54 CPU3:cpu@300 {
55 clocks = <&scmi_dvfs 1>;
56 capacity-dmips-mhz = <MID_CAPACITY>;
57 };
58
59 CPU6:cpu@600 {
60 clocks = <&scmi_dvfs 2>;
61 capacity-dmips-mhz = <BIG_CAPACITY>;
62 };
63
64 CPU7:cpu@700 {
65 clocks = <&scmi_dvfs 2>;
66 capacity-dmips-mhz = <BIG_CAPACITY>;
67 };
68 };
69
70 cpu-pmu {
71 interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>,
72 <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
73 };
Boyan Karatotevf2596ff2024-04-19 12:27:46 +010074
Jagdish Gediya1401a422023-12-18 09:31:57 +000075 cs-pmu@0 {
76 compatible = "arm,coresight-pmu";
77 reg = <0x0 MCN_PMU_ADDR(0) 0x0 0xffc>;
78 };
79
80 cs-pmu@1 {
81 compatible = "arm,coresight-pmu";
82 reg = <0x0 MCN_PMU_ADDR(1) 0x0 0xffc>;
83 };
84
85 cs-pmu@2 {
86 compatible = "arm,coresight-pmu";
87 reg = <0x0 MCN_PMU_ADDR(2) 0x0 0xffc>;
88 };
89
90 cs-pmu@3 {
91 compatible = "arm,coresight-pmu";
92 reg = <0x0 MCN_PMU_ADDR(3) 0x0 0xffc>;
93 };
94
Jagdish Gediya77080f62024-04-23 13:46:41 +010095 spe-pmu-mid {
96 status = "okay";
97 };
98
99 spe-pmu-big {
100 status = "okay";
101 };
102
Jagdish Gediyad3ae6772024-02-21 07:01:33 +0000103 dsu-pmu {
104 compatible = "arm,dsu-pmu";
105 cpus = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
106 };
107
Jagdish Gediya169eb7d2024-04-23 14:44:04 +0100108 ni-pmu {
109 compatible = "arm,ni-tower";
110 reg = <0x0 0x4f000000 0x0 0x4000000>;
111 };
112
Boyan Karatotevf2596ff2024-04-19 12:27:46 +0100113 sram: sram@6000000 {
114 cpu_scp_scmi_p2a: scp-shmem@80 {
115 compatible = "arm,scmi-shmem";
116 reg = <0x80 0x80>;
117 };
118 };
119
120 firmware {
121 scmi {
122 mboxes = <&mbox_db_tx 0 0 0 &mbox_db_rx 0 0 0 &mbox_db_rx 0 0 1>;
123 shmem = <&cpu_scp_scmi_a2p &cpu_scp_scmi_p2a>;
124 };
125 };
Leo Yan2458b382024-06-04 12:51:12 +0100126
Jagdish Gediyaebc991b2024-04-23 12:36:32 +0100127 gic: interrupt-controller@GIC_CTRL_ADDR {
128 ppi-partitions {
129 ppi_partition_little: interrupt-partition-0 {
130 affinity = <&CPU0>, <&CPU1>;
131 };
132
133 ppi_partition_mid: interrupt-partition-1 {
134 affinity = <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>;
135 };
136
137 ppi_partition_big: interrupt-partition-2 {
138 affinity = <&CPU6>, <&CPU7>;
139 };
140 };
141 };
142
Leo Yan2458b382024-06-04 12:51:12 +0100143#if TARGET_FLAVOUR_FVP
144 smmu_700: iommu@3f000000 {
145 status = "okay";
146 };
Jackson Cooper-Driver0458d3a2024-06-04 13:15:00 +0100147
148 smmu_700_dpu: iommu@4002a00000 {
149 status = "okay";
150 };
Ben Horgan4c6960c2024-06-04 13:22:53 +0100151#else
152 smmu_600: smmu@2ce00000 {
153 status = "okay";
154 };
Leo Yan2458b382024-06-04 12:51:12 +0100155#endif
156
Jackson Cooper-Driver0458d3a2024-06-04 13:15:00 +0100157 dp0: display@DPU_ADDR {
158#if TARGET_FLAVOUR_FVP
159 iommus = <&smmu_700_dpu 0x000>, <&smmu_700_dpu 0x100>,
160 <&smmu_700_dpu 0x200>, <&smmu_700_dpu 0x600>;
Ben Horgan4c6960c2024-06-04 13:22:53 +0100161#else /* TARGET_FLAVOUR_FPGA */
162 iommus = <&smmu_600 0>, <&smmu_600 1>, <&smmu_600 2>, <&smmu_600 3>,
163 <&smmu_600 4>, <&smmu_600 5>, <&smmu_600 6>, <&smmu_600 7>,
164 <&smmu_600 8>, <&smmu_600 9>;
Jackson Cooper-Driver0458d3a2024-06-04 13:15:00 +0100165#endif
166 };
167
Leo Yan2458b382024-06-04 12:51:12 +0100168 gpu: gpu@2d000000 {
169#if TARGET_FLAVOUR_FVP
170 iommus = <&smmu_700 0x200>;
171#endif
172 };
Leo Yanf9565b22024-04-14 22:09:34 +0100173};