armada-ap806.dtsi 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2016 Marvell Technology Group Ltd.
  4. *
  5. * Device Tree file for Marvell Armada AP806.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. /dts-v1/;
  9. / {
  10. model = "Marvell Armada AP806";
  11. compatible = "marvell,armada-ap806";
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. aliases {
  15. serial0 = &uart0;
  16. serial1 = &uart1;
  17. gpio0 = &ap_gpio;
  18. spi0 = &spi0;
  19. };
  20. psci {
  21. compatible = "arm,psci-0.2";
  22. method = "smc";
  23. };
  24. reserved-memory {
  25. #address-cells = <2>;
  26. #size-cells = <2>;
  27. ranges;
  28. /*
  29. * This area matches the mapping done with a
  30. * mainline U-Boot, and should be updated by the
  31. * bootloader.
  32. */
  33. psci-area@4000000 {
  34. reg = <0x0 0x4000000 0x0 0x200000>;
  35. no-map;
  36. };
  37. };
  38. ap806 {
  39. #address-cells = <2>;
  40. #size-cells = <2>;
  41. compatible = "simple-bus";
  42. interrupt-parent = <&gic>;
  43. ranges;
  44. config-space@f0000000 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "simple-bus";
  48. ranges = <0x0 0x0 0xf0000000 0x1000000>;
  49. gic: interrupt-controller@210000 {
  50. compatible = "arm,gic-400";
  51. #interrupt-cells = <3>;
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. ranges;
  55. interrupt-controller;
  56. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  57. reg = <0x210000 0x10000>,
  58. <0x220000 0x20000>,
  59. <0x240000 0x20000>,
  60. <0x260000 0x20000>;
  61. gic_v2m0: v2m@280000 {
  62. compatible = "arm,gic-v2m-frame";
  63. msi-controller;
  64. reg = <0x280000 0x1000>;
  65. arm,msi-base-spi = <160>;
  66. arm,msi-num-spis = <32>;
  67. };
  68. gic_v2m1: v2m@290000 {
  69. compatible = "arm,gic-v2m-frame";
  70. msi-controller;
  71. reg = <0x290000 0x1000>;
  72. arm,msi-base-spi = <192>;
  73. arm,msi-num-spis = <32>;
  74. };
  75. gic_v2m2: v2m@2a0000 {
  76. compatible = "arm,gic-v2m-frame";
  77. msi-controller;
  78. reg = <0x2a0000 0x1000>;
  79. arm,msi-base-spi = <224>;
  80. arm,msi-num-spis = <32>;
  81. };
  82. gic_v2m3: v2m@2b0000 {
  83. compatible = "arm,gic-v2m-frame";
  84. msi-controller;
  85. reg = <0x2b0000 0x1000>;
  86. arm,msi-base-spi = <256>;
  87. arm,msi-num-spis = <32>;
  88. };
  89. };
  90. timer {
  91. compatible = "arm,armv8-timer";
  92. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  93. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  94. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  95. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  96. };
  97. pmu {
  98. compatible = "arm,cortex-a72-pmu";
  99. interrupt-parent = <&pic>;
  100. interrupts = <17>;
  101. };
  102. odmi: odmi@300000 {
  103. compatible = "marvell,odmi-controller";
  104. interrupt-controller;
  105. msi-controller;
  106. marvell,odmi-frames = <4>;
  107. reg = <0x300000 0x4000>,
  108. <0x304000 0x4000>,
  109. <0x308000 0x4000>,
  110. <0x30C000 0x4000>;
  111. marvell,spi-base = <128>, <136>, <144>, <152>;
  112. };
  113. gicp: gicp@3f0040 {
  114. compatible = "marvell,ap806-gicp";
  115. reg = <0x3f0040 0x10>;
  116. marvell,spi-ranges = <64 64>, <288 64>;
  117. msi-controller;
  118. };
  119. pic: interrupt-controller@3f0100 {
  120. compatible = "marvell,armada-8k-pic";
  121. reg = <0x3f0100 0x10>;
  122. #interrupt-cells = <1>;
  123. interrupt-controller;
  124. interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
  125. };
  126. xor@400000 {
  127. compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  128. reg = <0x400000 0x1000>,
  129. <0x410000 0x1000>;
  130. msi-parent = <&gic_v2m0>;
  131. clocks = <&ap_clk 3>;
  132. dma-coherent;
  133. };
  134. xor@420000 {
  135. compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  136. reg = <0x420000 0x1000>,
  137. <0x430000 0x1000>;
  138. msi-parent = <&gic_v2m0>;
  139. clocks = <&ap_clk 3>;
  140. dma-coherent;
  141. };
  142. xor@440000 {
  143. compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  144. reg = <0x440000 0x1000>,
  145. <0x450000 0x1000>;
  146. msi-parent = <&gic_v2m0>;
  147. clocks = <&ap_clk 3>;
  148. dma-coherent;
  149. };
  150. xor@460000 {
  151. compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  152. reg = <0x460000 0x1000>,
  153. <0x470000 0x1000>;
  154. msi-parent = <&gic_v2m0>;
  155. clocks = <&ap_clk 3>;
  156. dma-coherent;
  157. };
  158. spi0: spi@510600 {
  159. compatible = "marvell,armada-380-spi";
  160. reg = <0x510600 0x50>;
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  164. clocks = <&ap_clk 3>;
  165. status = "disabled";
  166. };
  167. i2c0: i2c@511000 {
  168. compatible = "marvell,mv78230-i2c";
  169. reg = <0x511000 0x20>;
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  173. timeout-ms = <1000>;
  174. clocks = <&ap_clk 3>;
  175. status = "disabled";
  176. };
  177. uart0: serial@512000 {
  178. compatible = "snps,dw-apb-uart";
  179. reg = <0x512000 0x100>;
  180. reg-shift = <2>;
  181. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  182. reg-io-width = <1>;
  183. clocks = <&ap_clk 3>;
  184. status = "disabled";
  185. };
  186. uart1: serial@512100 {
  187. compatible = "snps,dw-apb-uart";
  188. reg = <0x512100 0x100>;
  189. reg-shift = <2>;
  190. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  191. reg-io-width = <1>;
  192. clocks = <&ap_clk 3>;
  193. status = "disabled";
  194. };
  195. watchdog: watchdog@610000 {
  196. compatible = "arm,sbsa-gwdt";
  197. reg = <0x610000 0x1000>, <0x600000 0x1000>;
  198. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  199. };
  200. ap_sdhci0: sdhci@6e0000 {
  201. compatible = "marvell,armada-ap806-sdhci";
  202. reg = <0x6e0000 0x300>;
  203. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  204. clock-names = "core";
  205. clocks = <&ap_clk 4>;
  206. dma-coherent;
  207. marvell,xenon-phy-slow-mode;
  208. status = "disabled";
  209. };
  210. ap_syscon: system-controller@6f4000 {
  211. compatible = "syscon", "simple-mfd";
  212. reg = <0x6f4000 0x2000>;
  213. ap_clk: clock {
  214. compatible = "marvell,ap806-clock";
  215. #clock-cells = <1>;
  216. };
  217. ap_pinctrl: pinctrl {
  218. compatible = "marvell,ap806-pinctrl";
  219. uart0_pins: uart0-pins {
  220. marvell,pins = "mpp11", "mpp19";
  221. marvell,function = "uart0";
  222. };
  223. };
  224. ap_gpio: gpio@1040 {
  225. compatible = "marvell,armada-8k-gpio";
  226. offset = <0x1040>;
  227. ngpios = <20>;
  228. gpio-controller;
  229. #gpio-cells = <2>;
  230. gpio-ranges = <&ap_pinctrl 0 0 20>;
  231. };
  232. };
  233. ap_thermal: thermal@6f808c {
  234. compatible = "marvell,armada-ap806-thermal";
  235. reg = <0x6f808c 0x4>,
  236. <0x6f8084 0x8>;
  237. };
  238. };
  239. };
  240. };