blob: 117ba7efdd820c900cafff542fd2b4efed9180ed [file] [log] [blame]
Leo Yanb4d71342024-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 Yan4d4a1972024-04-24 09:53:21 +010013#define MHU_TX_ADDR 46040000 /* hex */
14#define MHU_RX_ADDR 46140000 /* hex */
Boyan Karatotevcd2b4cc2024-04-24 10:09:18 +010015
Yu Shihaia64b82a2024-07-08 09:50:02 +010016#define RSE_MHU_TX_ADDR 49010000 /* hex */
17#define RSE_MHU_RX_ADDR 49110000 /* hex */
18
Jagdish Gediya9247a602024-04-24 15:20:21 +010019#define LIT_CPU_PMU_COMPATIBLE "arm,cortex-a520-pmu"
20#define MID_CPU_PMU_COMPATIBLE "arm,cortex-a725-pmu"
21#define BIG_CPU_PMU_COMPATIBLE "arm,cortex-x925-pmu"
22
Jackson Cooper-Driver61418972024-04-24 10:27:58 +010023#define ETHERNET_ADDR 18000000
24#define ETHERNET_INT 109
25
26#define SYS_REGS_ADDR 1c010000
27
28#define MMC_ADDR 1c050000
29#define MMC_INT_0 107
30#define MMC_INT_1 108
31
32#define RTC_ADDR 1c170000
33#define RTC_INT 100
34
35#define KMI_0_ADDR 1c060000
36#define KMI_0_INT 197
37#define KMI_1_ADDR 1c070000
38#define KMI_1_INT 103
39
40#define VIRTIO_BLOCK_ADDR 1c130000
41#define VIRTIO_BLOCK_INT 204
42
Leo Yanb4d71342024-04-14 08:27:39 +010043#include "tc-common.dtsi"
44#if TARGET_FLAVOUR_FVP
45#include "tc-fvp.dtsi"
Leo Yan815f5502024-04-24 09:57:28 +010046#else
47#include "tc-fpga.dtsi"
Leo Yanb4d71342024-04-14 08:27:39 +010048#endif /* TARGET_FLAVOUR_FVP */
Leo Yan35255f02024-04-30 11:27:17 +010049#include "tc3-4-base.dtsi"
Leo Yan6705ff02024-04-14 22:09:34 +010050
51/ {
Jagdish Gediyaf7476532023-12-18 09:31:57 +000052 cs-pmu@0 {
53 compatible = "arm,coresight-pmu";
54 reg = <0x0 MCN_PMU_ADDR(0) 0x0 0xffc>;
55 };
56
57 cs-pmu@1 {
58 compatible = "arm,coresight-pmu";
59 reg = <0x0 MCN_PMU_ADDR(1) 0x0 0xffc>;
60 };
61
62 cs-pmu@2 {
63 compatible = "arm,coresight-pmu";
64 reg = <0x0 MCN_PMU_ADDR(2) 0x0 0xffc>;
65 };
66
67 cs-pmu@3 {
68 compatible = "arm,coresight-pmu";
69 reg = <0x0 MCN_PMU_ADDR(3) 0x0 0xffc>;
70 };
71
Jagdish Gediyac71080f2024-04-23 13:46:41 +010072 spe-pmu-mid {
73 status = "okay";
74 };
75
76 spe-pmu-big {
77 status = "okay";
78 };
79
Jagdish Gediya5ab67e82024-02-21 07:01:33 +000080 dsu-pmu {
81 compatible = "arm,dsu-pmu";
82 cpus = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
83 };
84
Jagdish Gediya60dbd802024-04-23 14:44:04 +010085 ni-pmu {
86 compatible = "arm,ni-tower";
87 reg = <0x0 0x4f000000 0x0 0x4000000>;
88 };
89
Leo Yan983fd452024-06-04 12:51:12 +010090#if TARGET_FLAVOUR_FVP
91 smmu_700: iommu@3f000000 {
92 status = "okay";
93 };
Jackson Cooper-Driverce5b9032024-06-04 13:15:00 +010094
95 smmu_700_dpu: iommu@4002a00000 {
96 status = "okay";
97 };
Ben Horgan303c3ce2024-06-04 13:22:53 +010098#else
99 smmu_600: smmu@2ce00000 {
100 status = "okay";
101 };
Jackson Cooper-Driverce5b9032024-06-04 13:15:00 +0100102#endif
103
104 dp0: display@DPU_ADDR {
105#if TARGET_FLAVOUR_FVP
106 iommus = <&smmu_700_dpu 0x000>, <&smmu_700_dpu 0x100>,
107 <&smmu_700_dpu 0x200>, <&smmu_700_dpu 0x600>;
Ben Horgan303c3ce2024-06-04 13:22:53 +0100108#else /* TARGET_FLAVOUR_FPGA */
109 iommus = <&smmu_600 0>, <&smmu_600 1>, <&smmu_600 2>, <&smmu_600 3>,
110 <&smmu_600 4>, <&smmu_600 5>, <&smmu_600 6>, <&smmu_600 7>,
111 <&smmu_600 8>, <&smmu_600 9>;
Leo Yan983fd452024-06-04 12:51:12 +0100112#endif
Jackson Cooper-Driverce5b9032024-06-04 13:15:00 +0100113 };
Leo Yan983fd452024-06-04 12:51:12 +0100114
115 gpu: gpu@2d000000 {
Leo Yan41606fc2024-04-22 18:02:52 +0100116 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>,
117 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>,
118 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
119 interrupt-names = "JOB", "MMU", "GPU";
Leo Yan983fd452024-06-04 12:51:12 +0100120#if TARGET_FLAVOUR_FVP
121 iommus = <&smmu_700 0x200>;
122#endif
123 };
Leo Yan6705ff02024-04-14 22:09:34 +0100124};