Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 1 | /* |
| 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 Yan | 4d4a197 | 2024-04-24 09:53:21 +0100 | [diff] [blame] | 13 | #define MHU_TX_ADDR 46040000 /* hex */ |
| 14 | #define MHU_RX_ADDR 46140000 /* hex */ |
Boyan Karatotev | cd2b4cc | 2024-04-24 10:09:18 +0100 | [diff] [blame] | 15 | |
Jagdish Gediya | 9247a60 | 2024-04-24 15:20:21 +0100 | [diff] [blame] | 16 | #define LIT_CPU_PMU_COMPATIBLE "arm,cortex-a520-pmu" |
| 17 | #define MID_CPU_PMU_COMPATIBLE "arm,cortex-a725-pmu" |
| 18 | #define BIG_CPU_PMU_COMPATIBLE "arm,cortex-x925-pmu" |
| 19 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 20 | #define ETHERNET_ADDR 18000000 |
| 21 | #define ETHERNET_INT 109 |
| 22 | |
| 23 | #define SYS_REGS_ADDR 1c010000 |
| 24 | |
| 25 | #define MMC_ADDR 1c050000 |
| 26 | #define MMC_INT_0 107 |
| 27 | #define MMC_INT_1 108 |
| 28 | |
| 29 | #define RTC_ADDR 1c170000 |
| 30 | #define RTC_INT 100 |
| 31 | |
| 32 | #define KMI_0_ADDR 1c060000 |
| 33 | #define KMI_0_INT 197 |
| 34 | #define KMI_1_ADDR 1c070000 |
| 35 | #define KMI_1_INT 103 |
| 36 | |
| 37 | #define VIRTIO_BLOCK_ADDR 1c130000 |
| 38 | #define VIRTIO_BLOCK_INT 204 |
| 39 | |
Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 40 | #include "tc-common.dtsi" |
| 41 | #if TARGET_FLAVOUR_FVP |
| 42 | #include "tc-fvp.dtsi" |
Leo Yan | 815f550 | 2024-04-24 09:57:28 +0100 | [diff] [blame] | 43 | #else |
| 44 | #include "tc-fpga.dtsi" |
Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 45 | #endif /* TARGET_FLAVOUR_FVP */ |
Leo Yan | 35255f0 | 2024-04-30 11:27:17 +0100 | [diff] [blame] | 46 | #include "tc3-4-base.dtsi" |
Leo Yan | 6705ff0 | 2024-04-14 22:09:34 +0100 | [diff] [blame] | 47 | |
| 48 | / { |
Jagdish Gediya | f747653 | 2023-12-18 09:31:57 +0000 | [diff] [blame] | 49 | cs-pmu@0 { |
| 50 | compatible = "arm,coresight-pmu"; |
| 51 | reg = <0x0 MCN_PMU_ADDR(0) 0x0 0xffc>; |
| 52 | }; |
| 53 | |
| 54 | cs-pmu@1 { |
| 55 | compatible = "arm,coresight-pmu"; |
| 56 | reg = <0x0 MCN_PMU_ADDR(1) 0x0 0xffc>; |
| 57 | }; |
| 58 | |
| 59 | cs-pmu@2 { |
| 60 | compatible = "arm,coresight-pmu"; |
| 61 | reg = <0x0 MCN_PMU_ADDR(2) 0x0 0xffc>; |
| 62 | }; |
| 63 | |
| 64 | cs-pmu@3 { |
| 65 | compatible = "arm,coresight-pmu"; |
| 66 | reg = <0x0 MCN_PMU_ADDR(3) 0x0 0xffc>; |
| 67 | }; |
| 68 | |
Jagdish Gediya | c71080f | 2024-04-23 13:46:41 +0100 | [diff] [blame] | 69 | spe-pmu-mid { |
| 70 | status = "okay"; |
| 71 | }; |
| 72 | |
| 73 | spe-pmu-big { |
| 74 | status = "okay"; |
| 75 | }; |
| 76 | |
Jagdish Gediya | 5ab67e8 | 2024-02-21 07:01:33 +0000 | [diff] [blame] | 77 | dsu-pmu { |
| 78 | compatible = "arm,dsu-pmu"; |
| 79 | cpus = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>; |
| 80 | }; |
| 81 | |
Jagdish Gediya | 60dbd80 | 2024-04-23 14:44:04 +0100 | [diff] [blame] | 82 | ni-pmu { |
| 83 | compatible = "arm,ni-tower"; |
| 84 | reg = <0x0 0x4f000000 0x0 0x4000000>; |
| 85 | }; |
| 86 | |
Leo Yan | 983fd45 | 2024-06-04 12:51:12 +0100 | [diff] [blame] | 87 | #if TARGET_FLAVOUR_FVP |
| 88 | smmu_700: iommu@3f000000 { |
| 89 | status = "okay"; |
| 90 | }; |
Jackson Cooper-Driver | ce5b903 | 2024-06-04 13:15:00 +0100 | [diff] [blame] | 91 | |
| 92 | smmu_700_dpu: iommu@4002a00000 { |
| 93 | status = "okay"; |
| 94 | }; |
Ben Horgan | 303c3ce | 2024-06-04 13:22:53 +0100 | [diff] [blame] | 95 | #else |
| 96 | smmu_600: smmu@2ce00000 { |
| 97 | status = "okay"; |
| 98 | }; |
Jackson Cooper-Driver | ce5b903 | 2024-06-04 13:15:00 +0100 | [diff] [blame] | 99 | #endif |
| 100 | |
| 101 | dp0: display@DPU_ADDR { |
| 102 | #if TARGET_FLAVOUR_FVP |
| 103 | iommus = <&smmu_700_dpu 0x000>, <&smmu_700_dpu 0x100>, |
| 104 | <&smmu_700_dpu 0x200>, <&smmu_700_dpu 0x600>; |
Ben Horgan | 303c3ce | 2024-06-04 13:22:53 +0100 | [diff] [blame] | 105 | #else /* TARGET_FLAVOUR_FPGA */ |
| 106 | iommus = <&smmu_600 0>, <&smmu_600 1>, <&smmu_600 2>, <&smmu_600 3>, |
| 107 | <&smmu_600 4>, <&smmu_600 5>, <&smmu_600 6>, <&smmu_600 7>, |
| 108 | <&smmu_600 8>, <&smmu_600 9>; |
Leo Yan | 983fd45 | 2024-06-04 12:51:12 +0100 | [diff] [blame] | 109 | #endif |
Jackson Cooper-Driver | ce5b903 | 2024-06-04 13:15:00 +0100 | [diff] [blame] | 110 | }; |
Leo Yan | 983fd45 | 2024-06-04 12:51:12 +0100 | [diff] [blame] | 111 | |
| 112 | gpu: gpu@2d000000 { |
Leo Yan | 41606fc | 2024-04-22 18:02:52 +0100 | [diff] [blame] | 113 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>, |
| 114 | <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>, |
| 115 | <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>; |
| 116 | interrupt-names = "JOB", "MMU", "GPU"; |
Leo Yan | 983fd45 | 2024-06-04 12:51:12 +0100 | [diff] [blame] | 117 | #if TARGET_FLAVOUR_FVP |
| 118 | iommus = <&smmu_700 0x200>; |
| 119 | #endif |
| 120 | }; |
Leo Yan | 6705ff0 | 2024-04-14 22:09:34 +0100 | [diff] [blame] | 121 | }; |