alpine-v2.dtsi 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /*
  2. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Antoine Tenart <antoine.tenart@free-electrons.com>
  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. interrupt-parent = <&gic>;
  40. #address-cells = <2>;
  41. #size-cells = <2>;
  42. cpus {
  43. #address-cells = <2>;
  44. #size-cells = <0>;
  45. cpu@0 {
  46. compatible = "arm,cortex-a57";
  47. device_type = "cpu";
  48. reg = <0x0 0x0>;
  49. enable-method = "psci";
  50. };
  51. cpu@1 {
  52. compatible = "arm,cortex-a57";
  53. device_type = "cpu";
  54. reg = <0x0 0x1>;
  55. enable-method = "psci";
  56. };
  57. cpu@2 {
  58. compatible = "arm,cortex-a57";
  59. device_type = "cpu";
  60. reg = <0x0 0x2>;
  61. enable-method = "psci";
  62. };
  63. cpu@3 {
  64. compatible = "arm,cortex-a57";
  65. device_type = "cpu";
  66. reg = <0x0 0x3>;
  67. enable-method = "psci";
  68. };
  69. };
  70. psci {
  71. compatible = "arm,psci-0.2", "arm,psci";
  72. method = "smc";
  73. cpu_suspend = <0x84000001>;
  74. cpu_off = <0x84000002>;
  75. cpu_on = <0x84000003>;
  76. };
  77. sbclk: sbclk {
  78. compatible = "fixed-clock";
  79. #clock-cells = <0>;
  80. clock-frequency = <1000000>;
  81. };
  82. timer {
  83. compatible = "arm,armv8-timer";
  84. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  85. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  86. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  87. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  88. };
  89. pmu {
  90. compatible = "arm,cortex-a57-pmu";
  91. interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
  92. <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
  93. <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
  94. <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  95. };
  96. soc {
  97. compatible = "simple-bus";
  98. #address-cells = <2>;
  99. #size-cells = <2>;
  100. interrupt-parent = <&gic>;
  101. ranges;
  102. gic: interrupt-controller@f0200000 {
  103. compatible = "arm,gic-v3";
  104. reg = <0x0 0xf0200000 0x0 0x10000>, /* GIC Dist */
  105. <0x0 0xf0280000 0x0 0x200000>, /* GICR */
  106. <0x0 0xf0100000 0x0 0x2000>, /* GICC */
  107. <0x0 0xf0110000 0x0 0x2000>, /* GICV */
  108. <0x0 0xf0120000 0x0 0x2000>; /* GICH */
  109. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  110. interrupt-controller;
  111. #interrupt-cells = <3>;
  112. };
  113. pci@fbc00000 {
  114. compatible = "pci-host-ecam-generic";
  115. device_type = "pci";
  116. #size-cells = <2>;
  117. #address-cells = <3>;
  118. #interrupt-cells = <1>;
  119. reg = <0x0 0xfbc00000 0x0 0x100000>;
  120. interrupt-map-mask = <0xf800 0 0 7>;
  121. /* add legacy interrupts for SATA only */
  122. interrupt-map = <0x4000 0 0 1 &gic 0 53 4>,
  123. <0x4800 0 0 1 &gic 0 54 4>;
  124. /* 32 bit non prefetchable memory space */
  125. ranges = <0x2000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>;
  126. bus-range = <0x00 0x00>;
  127. msi-parent = <&msix>;
  128. };
  129. msix: msix@fbe00000 {
  130. compatible = "al,alpine-msix";
  131. reg = <0x0 0xfbe00000 0x0 0x100000>;
  132. msi-controller;
  133. al,msi-base-spi = <160>;
  134. al,msi-num-spis = <160>;
  135. };
  136. io-fabric@fc000000 {
  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. reg = <0x1883000 0x1000>;
  144. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  145. clock-frequency = <500000000>;
  146. reg-shift = <2>;
  147. reg-io-width = <4>;
  148. status = "disabled";
  149. };
  150. uart1: serial@1884000 {
  151. compatible = "ns16550a";
  152. reg = <0x1884000 0x1000>;
  153. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  154. clock-frequency = <500000000>;
  155. reg-shift = <2>;
  156. reg-io-width = <4>;
  157. status = "disabled";
  158. };
  159. uart2: serial@1885000 {
  160. compatible = "ns16550a";
  161. reg = <0x1885000 0x1000>;
  162. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  163. clock-frequency = <500000000>;
  164. reg-shift = <2>;
  165. reg-io-width = <4>;
  166. status = "disabled";
  167. };
  168. uart3: serial@1886000 {
  169. compatible = "ns16550a";
  170. reg = <0x1886000 0x1000>;
  171. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  172. clock-frequency = <500000000>;
  173. reg-shift = <2>;
  174. reg-io-width = <4>;
  175. status = "disabled";
  176. };
  177. timer0: timer@1890000 {
  178. compatible = "arm,sp804", "arm,primecell";
  179. reg = <0x1890000 0x1000>;
  180. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  181. clocks = <&sbclk>;
  182. };
  183. timer1: timer@1891000 {
  184. compatible = "arm,sp804", "arm,primecell";
  185. reg = <0x1891000 0x1000>;
  186. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  187. clocks = <&sbclk>;
  188. status = "disabled";
  189. };
  190. timer2: timer@1892000 {
  191. compatible = "arm,sp804", "arm,primecell";
  192. reg = <0x1892000 0x1000>;
  193. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  194. clocks = <&sbclk>;
  195. status = "disabled";
  196. };
  197. timer3: timer@1893000 {
  198. compatible = "arm,sp804", "arm,primecell";
  199. reg = <0x1893000 0x1000>;
  200. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  201. clocks = <&sbclk>;
  202. status = "disabled";
  203. };
  204. };
  205. };
  206. };