armada-ap806.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. /*
  2. * Copyright (C) 2016 Marvell Technology Group Ltd.
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPLv2 or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. /*
  43. * Device Tree file for Marvell Armada AP806.
  44. */
  45. #include <dt-bindings/interrupt-controller/arm-gic.h>
  46. /dts-v1/;
  47. / {
  48. model = "Marvell Armada AP806";
  49. compatible = "marvell,armada-ap806";
  50. #address-cells = <2>;
  51. #size-cells = <2>;
  52. aliases {
  53. serial0 = &uart0;
  54. serial1 = &uart1;
  55. };
  56. psci {
  57. compatible = "arm,psci-0.2";
  58. method = "smc";
  59. };
  60. ap806 {
  61. #address-cells = <2>;
  62. #size-cells = <2>;
  63. compatible = "simple-bus";
  64. interrupt-parent = <&gic>;
  65. ranges;
  66. config-space {
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. compatible = "simple-bus";
  70. ranges = <0x0 0x0 0xf0000000 0x1000000>;
  71. gic: interrupt-controller@210000 {
  72. compatible = "arm,gic-400";
  73. #interrupt-cells = <3>;
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. ranges;
  77. interrupt-controller;
  78. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  79. reg = <0x210000 0x10000>,
  80. <0x220000 0x20000>,
  81. <0x240000 0x20000>,
  82. <0x260000 0x20000>;
  83. gic_v2m0: v2m@280000 {
  84. compatible = "arm,gic-v2m-frame";
  85. msi-controller;
  86. reg = <0x280000 0x1000>;
  87. arm,msi-base-spi = <160>;
  88. arm,msi-num-spis = <32>;
  89. };
  90. gic_v2m1: v2m@290000 {
  91. compatible = "arm,gic-v2m-frame";
  92. msi-controller;
  93. reg = <0x290000 0x1000>;
  94. arm,msi-base-spi = <192>;
  95. arm,msi-num-spis = <32>;
  96. };
  97. gic_v2m2: v2m@2a0000 {
  98. compatible = "arm,gic-v2m-frame";
  99. msi-controller;
  100. reg = <0x2a0000 0x1000>;
  101. arm,msi-base-spi = <224>;
  102. arm,msi-num-spis = <32>;
  103. };
  104. gic_v2m3: v2m@2b0000 {
  105. compatible = "arm,gic-v2m-frame";
  106. msi-controller;
  107. reg = <0x2b0000 0x1000>;
  108. arm,msi-base-spi = <256>;
  109. arm,msi-num-spis = <32>;
  110. };
  111. };
  112. timer {
  113. compatible = "arm,armv8-timer";
  114. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>,
  115. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>,
  116. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>,
  117. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
  118. };
  119. odmi: odmi@300000 {
  120. compatible = "marvell,odmi-controller";
  121. interrupt-controller;
  122. msi-controller;
  123. marvell,odmi-frames = <4>;
  124. reg = <0x300000 0x4000>,
  125. <0x304000 0x4000>,
  126. <0x308000 0x4000>,
  127. <0x30C000 0x4000>;
  128. marvell,spi-base = <128>, <136>, <144>, <152>;
  129. };
  130. ap_pinctl: ap-pinctl@6F4000 {
  131. compatible = "marvell,armada-ap806-pinctrl";
  132. bank-name ="apn-806";
  133. reg = <0x6F4000 0x10>;
  134. pin-count = <20>;
  135. max-func = <3>;
  136. ap_i2c0_pins: i2c-pins-0 {
  137. marvell,pins = < 4 5 >;
  138. marvell,function = <3>;
  139. };
  140. ap_emmc_pins: emmc-pins-0 {
  141. marvell,pins = < 0 1 2 3 4 5 6 7
  142. 8 9 10 >;
  143. marvell,function = <1>;
  144. };
  145. };
  146. xor@400000 {
  147. compatible = "marvell,mv-xor-v2";
  148. reg = <0x400000 0x1000>,
  149. <0x410000 0x1000>;
  150. msi-parent = <&gic_v2m0>;
  151. dma-coherent;
  152. };
  153. xor@420000 {
  154. compatible = "marvell,mv-xor-v2";
  155. reg = <0x420000 0x1000>,
  156. <0x430000 0x1000>;
  157. msi-parent = <&gic_v2m0>;
  158. dma-coherent;
  159. };
  160. xor@440000 {
  161. compatible = "marvell,mv-xor-v2";
  162. reg = <0x440000 0x1000>,
  163. <0x450000 0x1000>;
  164. msi-parent = <&gic_v2m0>;
  165. dma-coherent;
  166. };
  167. xor@460000 {
  168. compatible = "marvell,mv-xor-v2";
  169. reg = <0x460000 0x1000>,
  170. <0x470000 0x1000>;
  171. msi-parent = <&gic_v2m0>;
  172. dma-coherent;
  173. };
  174. spi0: spi@510600 {
  175. compatible = "marvell,armada-380-spi";
  176. reg = <0x510600 0x50>;
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. cell-index = <0>;
  180. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  181. clocks = <&ap_syscon 3>;
  182. status = "disabled";
  183. };
  184. i2c0: i2c@511000 {
  185. compatible = "marvell,mv78230-i2c";
  186. reg = <0x511000 0x20>;
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  190. timeout-ms = <1000>;
  191. clocks = <&ap_syscon 3>;
  192. status = "disabled";
  193. };
  194. uart0: serial@512000 {
  195. compatible = "snps,dw-apb-uart";
  196. reg = <0x512000 0x100>;
  197. reg-shift = <2>;
  198. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  199. reg-io-width = <1>;
  200. clocks = <&ap_syscon 3>;
  201. status = "disabled";
  202. clock-frequency = <200000000>;
  203. };
  204. uart1: serial@512100 {
  205. compatible = "snps,dw-apb-uart";
  206. reg = <0x512100 0x100>;
  207. reg-shift = <2>;
  208. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  209. reg-io-width = <1>;
  210. clocks = <&ap_syscon 3>;
  211. status = "disabled";
  212. };
  213. ap_syscon: system-controller@6f4000 {
  214. compatible = "marvell,ap806-system-controller",
  215. "syscon";
  216. #clock-cells = <1>;
  217. clock-output-names = "ap-cpu-cluster-0",
  218. "ap-cpu-cluster-1",
  219. "ap-fixed", "ap-mss";
  220. reg = <0x6f4000 0x1000>;
  221. };
  222. };
  223. };
  224. };