thunder2-99xx.dtsi 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /*
  2. * dtsi file for Cavium ThunderX2 CN99XX processor
  3. *
  4. * Copyright (c) 2017 Cavium Inc.
  5. * Copyright (c) 2013-2016 Broadcom
  6. * Author: Zi Shen Lim <zlim@broadcom.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. */
  13. #include <dt-bindings/interrupt-controller/arm-gic.h>
  14. / {
  15. model = "Cavium ThunderX2 CN99XX";
  16. compatible = "cavium,thunderx2-cn9900", "brcm,vulcan-soc";
  17. interrupt-parent = <&gic>;
  18. #address-cells = <2>;
  19. #size-cells = <2>;
  20. /* just 4 cpus now, 128 needed in full config */
  21. cpus {
  22. #address-cells = <0x2>;
  23. #size-cells = <0x0>;
  24. cpu@0 {
  25. device_type = "cpu";
  26. compatible = "cavium,thunder2", "brcm,vulcan", "arm,armv8";
  27. reg = <0x0 0x0>;
  28. enable-method = "psci";
  29. };
  30. cpu@1 {
  31. device_type = "cpu";
  32. compatible = "cavium,thunder2", "brcm,vulcan", "arm,armv8";
  33. reg = <0x0 0x1>;
  34. enable-method = "psci";
  35. };
  36. cpu@2 {
  37. device_type = "cpu";
  38. compatible = "cavium,thunder2", "brcm,vulcan", "arm,armv8";
  39. reg = <0x0 0x2>;
  40. enable-method = "psci";
  41. };
  42. cpu@3 {
  43. device_type = "cpu";
  44. compatible = "cavium,thunder2", "brcm,vulcan", "arm,armv8";
  45. reg = <0x0 0x3>;
  46. enable-method = "psci";
  47. };
  48. };
  49. psci {
  50. compatible = "arm,psci-0.2";
  51. method = "smc";
  52. };
  53. gic: interrupt-controller@400080000 {
  54. compatible = "arm,gic-v3";
  55. #interrupt-cells = <3>;
  56. #address-cells = <2>;
  57. #size-cells = <2>;
  58. ranges;
  59. interrupt-controller;
  60. #redistributor-regions = <1>;
  61. reg = <0x04 0x00080000 0x0 0x20000>, /* GICD */
  62. <0x04 0x01000000 0x0 0x1000000>; /* GICR */
  63. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  64. gicits: gic-its@40010000 {
  65. compatible = "arm,gic-v3-its";
  66. msi-controller;
  67. reg = <0x04 0x00100000 0x0 0x20000>; /* GIC ITS */
  68. };
  69. };
  70. timer {
  71. compatible = "arm,armv8-timer";
  72. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
  73. <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
  74. <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
  75. <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
  76. };
  77. pmu {
  78. compatible = "brcm,vulcan-pmu", "arm,armv8-pmuv3";
  79. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; /* PMU overflow */
  80. };
  81. clk125mhz: uart_clk125mhz {
  82. compatible = "fixed-clock";
  83. #clock-cells = <0>;
  84. clock-frequency = <125000000>;
  85. clock-output-names = "clk125mhz";
  86. };
  87. pcie@30000000 {
  88. compatible = "pci-host-ecam-generic";
  89. device_type = "pci";
  90. #interrupt-cells = <1>;
  91. #address-cells = <3>;
  92. #size-cells = <2>;
  93. /* ECAM at 0x3000_0000 - 0x4000_0000 */
  94. reg = <0x0 0x30000000 0x0 0x10000000>;
  95. reg-names = "PCI ECAM";
  96. /*
  97. * PCI ranges:
  98. * IO no supported
  99. * MEM 0x4000_0000 - 0x6000_0000
  100. * MEM64 pref 0x40_0000_0000 - 0x60_0000_0000
  101. */
  102. ranges =
  103. <0x02000000 0 0x40000000 0 0x40000000 0 0x20000000
  104. 0x43000000 0x40 0x00000000 0x40 0x00000000 0x20 0x00000000>;
  105. bus-range = <0 0xff>;
  106. interrupt-map-mask = <0 0 0 7>;
  107. interrupt-map =
  108. /* addr pin ic icaddr icintr */
  109. <0 0 0 1 &gic 0 0 GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH
  110. 0 0 0 2 &gic 0 0 GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH
  111. 0 0 0 3 &gic 0 0 GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH
  112. 0 0 0 4 &gic 0 0 GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  113. msi-parent = <&gicits>;
  114. dma-coherent;
  115. };
  116. soc {
  117. compatible = "simple-bus";
  118. #address-cells = <2>;
  119. #size-cells = <2>;
  120. ranges;
  121. uart0: serial@402020000 {
  122. compatible = "arm,pl011", "arm,primecell";
  123. reg = <0x04 0x02020000 0x0 0x1000>;
  124. interrupt-parent = <&gic>;
  125. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  126. clocks = <&clk125mhz>;
  127. clock-names = "apb_pclk";
  128. };
  129. };
  130. };