armada-370.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /*
  2. * Device Tree Include file for Marvell Armada 370 family SoC
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Lior Amsalem <alior@marvell.com>
  7. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  8. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. *
  10. * This file is licensed under the terms of the GNU General Public
  11. * License version 2. This program is licensed "as is" without any
  12. * warranty of any kind, whether express or implied.
  13. *
  14. * Contains definitions specific to the Armada 370 SoC that are not
  15. * common to all Armada SoCs.
  16. */
  17. #include "armada-370-xp.dtsi"
  18. /include/ "skeleton.dtsi"
  19. / {
  20. model = "Marvell Armada 370 family SoC";
  21. compatible = "marvell,armada370", "marvell,armada-370-xp";
  22. aliases {
  23. gpio0 = &gpio0;
  24. gpio1 = &gpio1;
  25. gpio2 = &gpio2;
  26. };
  27. soc {
  28. compatible = "marvell,armada370-mbus", "simple-bus";
  29. bootrom {
  30. compatible = "marvell,bootrom";
  31. reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
  32. };
  33. pcie-controller {
  34. compatible = "marvell,armada-370-pcie";
  35. status = "disabled";
  36. device_type = "pci";
  37. #address-cells = <3>;
  38. #size-cells = <2>;
  39. bus-range = <0x00 0xff>;
  40. ranges =
  41. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
  42. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
  43. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  44. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  45. 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  46. 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  47. pcie@1,0 {
  48. device_type = "pci";
  49. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  50. reg = <0x0800 0 0 0 0>;
  51. #address-cells = <3>;
  52. #size-cells = <2>;
  53. #interrupt-cells = <1>;
  54. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  55. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  56. interrupt-map-mask = <0 0 0 0>;
  57. interrupt-map = <0 0 0 0 &mpic 58>;
  58. marvell,pcie-port = <0>;
  59. marvell,pcie-lane = <0>;
  60. clocks = <&gateclk 5>;
  61. status = "disabled";
  62. };
  63. pcie@2,0 {
  64. device_type = "pci";
  65. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  66. reg = <0x1000 0 0 0 0>;
  67. #address-cells = <3>;
  68. #size-cells = <2>;
  69. #interrupt-cells = <1>;
  70. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  71. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  72. interrupt-map-mask = <0 0 0 0>;
  73. interrupt-map = <0 0 0 0 &mpic 62>;
  74. marvell,pcie-port = <1>;
  75. marvell,pcie-lane = <0>;
  76. clocks = <&gateclk 9>;
  77. status = "disabled";
  78. };
  79. };
  80. internal-regs {
  81. system-controller@18200 {
  82. compatible = "marvell,armada-370-xp-system-controller";
  83. reg = <0x18200 0x100>;
  84. };
  85. L2: l2-cache {
  86. compatible = "marvell,aurora-outer-cache";
  87. reg = <0x08000 0x1000>;
  88. cache-id-part = <0x100>;
  89. wt-override;
  90. };
  91. interrupt-controller@20000 {
  92. reg = <0x20a00 0x1d0>, <0x21870 0x58>;
  93. };
  94. pinctrl {
  95. compatible = "marvell,mv88f6710-pinctrl";
  96. reg = <0x18000 0x38>;
  97. sdio_pins1: sdio-pins1 {
  98. marvell,pins = "mpp9", "mpp11", "mpp12",
  99. "mpp13", "mpp14", "mpp15";
  100. marvell,function = "sd0";
  101. };
  102. sdio_pins2: sdio-pins2 {
  103. marvell,pins = "mpp47", "mpp48", "mpp49",
  104. "mpp50", "mpp51", "mpp52";
  105. marvell,function = "sd0";
  106. };
  107. sdio_pins3: sdio-pins3 {
  108. marvell,pins = "mpp48", "mpp49", "mpp50",
  109. "mpp51", "mpp52", "mpp53";
  110. marvell,function = "sd0";
  111. };
  112. };
  113. gpio0: gpio@18100 {
  114. compatible = "marvell,orion-gpio";
  115. reg = <0x18100 0x40>;
  116. ngpios = <32>;
  117. gpio-controller;
  118. #gpio-cells = <2>;
  119. interrupt-controller;
  120. #interrupt-cells = <2>;
  121. interrupts = <82>, <83>, <84>, <85>;
  122. };
  123. gpio1: gpio@18140 {
  124. compatible = "marvell,orion-gpio";
  125. reg = <0x18140 0x40>;
  126. ngpios = <32>;
  127. gpio-controller;
  128. #gpio-cells = <2>;
  129. interrupt-controller;
  130. #interrupt-cells = <2>;
  131. interrupts = <87>, <88>, <89>, <90>;
  132. };
  133. gpio2: gpio@18180 {
  134. compatible = "marvell,orion-gpio";
  135. reg = <0x18180 0x40>;
  136. ngpios = <2>;
  137. gpio-controller;
  138. #gpio-cells = <2>;
  139. interrupt-controller;
  140. #interrupt-cells = <2>;
  141. interrupts = <91>;
  142. };
  143. timer@20300 {
  144. compatible = "marvell,armada-370-timer";
  145. clocks = <&coreclk 2>;
  146. };
  147. coreclk: mvebu-sar@18230 {
  148. compatible = "marvell,armada-370-core-clock";
  149. reg = <0x18230 0x08>;
  150. #clock-cells = <1>;
  151. };
  152. gateclk: clock-gating-control@18220 {
  153. compatible = "marvell,armada-370-gating-clock";
  154. reg = <0x18220 0x4>;
  155. clocks = <&coreclk 0>;
  156. #clock-cells = <1>;
  157. };
  158. xor@60800 {
  159. compatible = "marvell,orion-xor";
  160. reg = <0x60800 0x100
  161. 0x60A00 0x100>;
  162. status = "okay";
  163. xor00 {
  164. interrupts = <51>;
  165. dmacap,memcpy;
  166. dmacap,xor;
  167. };
  168. xor01 {
  169. interrupts = <52>;
  170. dmacap,memcpy;
  171. dmacap,xor;
  172. dmacap,memset;
  173. };
  174. };
  175. xor@60900 {
  176. compatible = "marvell,orion-xor";
  177. reg = <0x60900 0x100
  178. 0x60b00 0x100>;
  179. status = "okay";
  180. xor10 {
  181. interrupts = <94>;
  182. dmacap,memcpy;
  183. dmacap,xor;
  184. };
  185. xor11 {
  186. interrupts = <95>;
  187. dmacap,memcpy;
  188. dmacap,xor;
  189. dmacap,memset;
  190. };
  191. };
  192. usb@50000 {
  193. clocks = <&coreclk 0>;
  194. };
  195. usb@51000 {
  196. clocks = <&coreclk 0>;
  197. };
  198. thermal@18300 {
  199. compatible = "marvell,armada370-thermal";
  200. reg = <0x18300 0x4
  201. 0x18304 0x4>;
  202. status = "okay";
  203. };
  204. };
  205. };
  206. };