tc3.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Copyright (c) 2020-2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <platform_def.h>
  10. #define LIT_CAPACITY 239
  11. #define MID_CAPACITY 686
  12. #define BIG_CAPACITY 1024
  13. #define MHU_TX_ADDR 46040000 /* hex */
  14. #define MHU_TX_COMPAT "arm,mhuv3"
  15. #define MHU_TX_INT_NAME ""
  16. #define MHU_RX_ADDR 46140000 /* hex */
  17. #define MHU_RX_COMPAT "arm,mhuv3"
  18. #define MHU_OFFSET 0x10000
  19. #define MHU_MBOX_CELLS 3
  20. #define MHU_RX_INT_NUM 300
  21. #define MHU_RX_INT_NAME "combined-mbx"
  22. #define MPAM_ADDR 0x0 0x5f010000 /* 0x5f01_0000 */
  23. #define UARTCLK_FREQ 3750000
  24. #if TARGET_FLAVOUR_FVP
  25. #define DPU_ADDR 4000000000
  26. #define DPU_IRQ 579
  27. #elif TARGET_FLAVOUR_FPGA
  28. #define DPU_ADDR 2cc00000
  29. #define DPU_IRQ 69
  30. #endif
  31. #include "tc-common.dtsi"
  32. #if TARGET_FLAVOUR_FVP
  33. #include "tc-fvp.dtsi"
  34. #else
  35. #include "tc-fpga.dtsi"
  36. #endif /* TARGET_FLAVOUR_FVP */
  37. #include "tc-base.dtsi"
  38. / {
  39. cpus {
  40. CPU2:cpu@200 {
  41. clocks = <&scmi_dvfs 1>;
  42. capacity-dmips-mhz = <MID_CAPACITY>;
  43. };
  44. CPU3:cpu@300 {
  45. clocks = <&scmi_dvfs 1>;
  46. capacity-dmips-mhz = <MID_CAPACITY>;
  47. };
  48. CPU6:cpu@600 {
  49. clocks = <&scmi_dvfs 2>;
  50. capacity-dmips-mhz = <BIG_CAPACITY>;
  51. };
  52. CPU7:cpu@700 {
  53. clocks = <&scmi_dvfs 2>;
  54. capacity-dmips-mhz = <BIG_CAPACITY>;
  55. };
  56. };
  57. cpu-pmu {
  58. interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>,
  59. <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
  60. };
  61. cs-pmu@0 {
  62. compatible = "arm,coresight-pmu";
  63. reg = <0x0 MCN_PMU_ADDR(0) 0x0 0xffc>;
  64. };
  65. cs-pmu@1 {
  66. compatible = "arm,coresight-pmu";
  67. reg = <0x0 MCN_PMU_ADDR(1) 0x0 0xffc>;
  68. };
  69. cs-pmu@2 {
  70. compatible = "arm,coresight-pmu";
  71. reg = <0x0 MCN_PMU_ADDR(2) 0x0 0xffc>;
  72. };
  73. cs-pmu@3 {
  74. compatible = "arm,coresight-pmu";
  75. reg = <0x0 MCN_PMU_ADDR(3) 0x0 0xffc>;
  76. };
  77. sram: sram@6000000 {
  78. cpu_scp_scmi_p2a: scp-shmem@80 {
  79. compatible = "arm,scmi-shmem";
  80. reg = <0x80 0x80>;
  81. };
  82. };
  83. firmware {
  84. scmi {
  85. mboxes = <&mbox_db_tx 0 0 0 &mbox_db_rx 0 0 0 &mbox_db_rx 0 0 1>;
  86. shmem = <&cpu_scp_scmi_a2p &cpu_scp_scmi_p2a>;
  87. };
  88. };
  89. #if TARGET_FLAVOUR_FVP
  90. smmu_700: iommu@3f000000 {
  91. status = "okay";
  92. };
  93. smmu_700_dpu: iommu@4002a00000 {
  94. status = "okay";
  95. };
  96. #else
  97. smmu_600: smmu@2ce00000 {
  98. status = "okay";
  99. };
  100. #endif
  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>;
  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>;
  109. #endif
  110. };
  111. gpu: gpu@2d000000 {
  112. #if TARGET_FLAVOUR_FVP
  113. iommus = <&smmu_700 0x200>;
  114. #endif
  115. };
  116. };