alpine-v2.dtsi 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /*
  2. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Antoine Tenart <[email protected]>
  5. *
  6. * This software is available to you under a choice of one of two
  7. * licenses. You may choose to be licensed under the terms of the GNU
  8. * General Public License (GPL) Version 2, available from the file
  9. * COPYING in the main directory of this source tree, or the
  10. * BSD license below:
  11. *
  12. * Redistribution and use in source and binary forms, with or
  13. * without modification, are permitted provided that the following
  14. * conditions are met:
  15. *
  16. * - Redistributions of source code must retain the above
  17. * copyright notice, this list of conditions and the following
  18. * disclaimer.
  19. *
  20. * - Redistributions in binary form must reproduce the above
  21. * copyright notice, this list of conditions and the following
  22. * disclaimer in the documentation and/or other materials
  23. * provided with the distribution.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  28. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  29. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  30. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  31. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  32. * SOFTWARE.
  33. */
  34. /dts-v1/;
  35. #include <dt-bindings/interrupt-controller/arm-gic.h>
  36. / {
  37. model = "Annapurna Labs Alpine v2";
  38. compatible = "al,alpine-v2";
  39. #address-cells = <2>;
  40. #size-cells = <2>;
  41. cpus {
  42. #address-cells = <2>;
  43. #size-cells = <0>;
  44. cpu@0 {
  45. compatible = "arm,cortex-a57";
  46. device_type = "cpu";
  47. reg = <0x0 0x0>;
  48. enable-method = "psci";
  49. };
  50. cpu@1 {
  51. compatible = "arm,cortex-a57";
  52. device_type = "cpu";
  53. reg = <0x0 0x1>;
  54. enable-method = "psci";
  55. };
  56. cpu@2 {
  57. compatible = "arm,cortex-a57";
  58. device_type = "cpu";
  59. reg = <0x0 0x2>;
  60. enable-method = "psci";
  61. };
  62. cpu@3 {
  63. compatible = "arm,cortex-a57";
  64. device_type = "cpu";
  65. reg = <0x0 0x3>;
  66. enable-method = "psci";
  67. };
  68. };
  69. psci {
  70. compatible = "arm,psci-0.2", "arm,psci";
  71. method = "smc";
  72. cpu_suspend = <0x84000001>;
  73. cpu_off = <0x84000002>;
  74. cpu_on = <0x84000003>;
  75. };
  76. sbclk: sbclk {
  77. compatible = "fixed-clock";
  78. #clock-cells = <0>;
  79. clock-frequency = <1000000>;
  80. };
  81. soc {
  82. compatible = "simple-bus";
  83. #address-cells = <2>;
  84. #size-cells = <2>;
  85. interrupt-parent = <&gic>;
  86. ranges;
  87. timer {
  88. compatible = "arm,armv8-timer";
  89. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  90. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  91. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  92. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  93. };
  94. pmu {
  95. compatible = "arm,armv8-pmuv3";
  96. interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
  97. <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
  98. <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
  99. <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  100. };
  101. gic: interrupt-controller@f0200000 {
  102. compatible = "arm,gic-v3";
  103. reg = <0x0 0xf0200000 0x0 0x10000>, /* GIC Dist */
  104. <0x0 0xf0280000 0x0 0x200000>, /* GICR */
  105. <0x0 0xf0100000 0x0 0x2000>, /* GICC */
  106. <0x0 0xf0110000 0x0 0x2000>, /* GICV */
  107. <0x0 0xf0120000 0x0 0x2000>; /* GICH */
  108. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  109. interrupt-controller;
  110. #interrupt-cells = <3>;
  111. };
  112. pci@fbc00000 {
  113. compatible = "pci-host-ecam-generic";
  114. device_type = "pci";
  115. #size-cells = <2>;
  116. #address-cells = <3>;
  117. #interrupt-cells = <1>;
  118. reg = <0x0 0xfbc00000 0x0 0x100000>;
  119. interrupt-map-mask = <0xf800 0 0 7>;
  120. /* add legacy interrupts for SATA only */
  121. interrupt-map = <0x4000 0 0 1 &gic 0 53 4>,
  122. <0x4800 0 0 1 &gic 0 54 4>;
  123. /* 32 bit non prefetchable memory space */
  124. ranges = <0x2000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>;
  125. bus-range = <0x00 0x00>;
  126. msi-parent = <&msix>;
  127. };
  128. msix: msix@fbe00000 {
  129. compatible = "al,alpine-msix";
  130. reg = <0x0 0xfbe00000 0x0 0x100000>;
  131. interrupt-controller;
  132. msi-controller;
  133. al,msi-base-spi = <160>;
  134. al,msi-num-spis = <160>;
  135. };
  136. io-fabric {
  137. compatible = "simple-bus";
  138. #address-cells = <1>;
  139. #size-cells = <1>;
  140. ranges = <0x0 0x0 0xfc000000 0x2000000>;
  141. uart0: serial@1883000 {
  142. compatible = "ns16550a";
  143. device_type = "serial";
  144. reg = <0x1883000 0x1000>;
  145. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  146. clock-frequency = <500000000>;
  147. reg-shift = <2>;
  148. reg-io-width = <4>;
  149. status = "disabled";
  150. };
  151. uart1: serial@1884000 {
  152. compatible = "ns16550a";
  153. device_type = "serial";
  154. reg = <0x1884000 0x1000>;
  155. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  156. clock-frequency = <500000000>;
  157. reg-shift = <2>;
  158. reg-io-width = <4>;
  159. status = "disabled";
  160. };
  161. uart2: serial@1885000 {
  162. compatible = "ns16550a";
  163. device_type = "serial";
  164. reg = <0x1885000 0x1000>;
  165. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  166. clock-frequency = <500000000>;
  167. reg-shift = <2>;
  168. reg-io-width = <4>;
  169. status = "disabled";
  170. };
  171. uart3: serial@1886000 {
  172. compatible = "ns16550a";
  173. device_type = "serial";
  174. reg = <0x1886000 0x1000>;
  175. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  176. clock-frequency = <500000000>;
  177. reg-shift = <2>;
  178. reg-io-width = <4>;
  179. status = "disabled";
  180. };
  181. timer0: timer@1890000 {
  182. compatible = "arm,sp804", "arm,primecell";
  183. reg = <0x1890000 0x1000>;
  184. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  185. clocks = <&sbclk>;
  186. };
  187. timer1: timer@1891000 {
  188. compatible = "arm,sp804", "arm,primecell";
  189. reg = <0x1891000 0x1000>;
  190. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  191. clocks = <&sbclk>;
  192. status = "disabled";
  193. };
  194. timer2: timer@1892000 {
  195. compatible = "arm,sp804", "arm,primecell";
  196. reg = <0x1892000 0x1000>;
  197. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  198. clocks = <&sbclk>;
  199. status = "disabled";
  200. };
  201. timer3: timer@1893000 {
  202. compatible = "arm,sp804", "arm,primecell";
  203. reg = <0x1893000 0x1000>;
  204. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  205. clocks = <&sbclk>;
  206. status = "disabled";
  207. };
  208. };
  209. };
  210. };