armada-370.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. ranges = <0 0xd0000000 0x0100000 /* internal registers */
  29. 0xe0000000 0xe0000000 0x8100000 /* PCIe */>;
  30. internal-regs {
  31. system-controller@18200 {
  32. compatible = "marvell,armada-370-xp-system-controller";
  33. reg = <0x18200 0x100>;
  34. };
  35. L2: l2-cache {
  36. compatible = "marvell,aurora-outer-cache";
  37. reg = <0x08000 0x1000>;
  38. cache-id-part = <0x100>;
  39. wt-override;
  40. };
  41. interrupt-controller@20000 {
  42. reg = <0x20a00 0x1d0>, <0x21870 0x58>;
  43. };
  44. pinctrl {
  45. compatible = "marvell,mv88f6710-pinctrl";
  46. reg = <0x18000 0x38>;
  47. sdio_pins1: sdio-pins1 {
  48. marvell,pins = "mpp9", "mpp11", "mpp12",
  49. "mpp13", "mpp14", "mpp15";
  50. marvell,function = "sd0";
  51. };
  52. sdio_pins2: sdio-pins2 {
  53. marvell,pins = "mpp47", "mpp48", "mpp49",
  54. "mpp50", "mpp51", "mpp52";
  55. marvell,function = "sd0";
  56. };
  57. sdio_pins3: sdio-pins3 {
  58. marvell,pins = "mpp48", "mpp49", "mpp50",
  59. "mpp51", "mpp52", "mpp53";
  60. marvell,function = "sd0";
  61. };
  62. };
  63. gpio0: gpio@18100 {
  64. compatible = "marvell,orion-gpio";
  65. reg = <0x18100 0x40>;
  66. ngpios = <32>;
  67. gpio-controller;
  68. #gpio-cells = <2>;
  69. interrupt-controller;
  70. #interrupts-cells = <2>;
  71. interrupts = <82>, <83>, <84>, <85>;
  72. };
  73. gpio1: gpio@18140 {
  74. compatible = "marvell,orion-gpio";
  75. reg = <0x18140 0x40>;
  76. ngpios = <32>;
  77. gpio-controller;
  78. #gpio-cells = <2>;
  79. interrupt-controller;
  80. #interrupts-cells = <2>;
  81. interrupts = <87>, <88>, <89>, <90>;
  82. };
  83. gpio2: gpio@18180 {
  84. compatible = "marvell,orion-gpio";
  85. reg = <0x18180 0x40>;
  86. ngpios = <2>;
  87. gpio-controller;
  88. #gpio-cells = <2>;
  89. interrupt-controller;
  90. #interrupts-cells = <2>;
  91. interrupts = <91>;
  92. };
  93. coreclk: mvebu-sar@18230 {
  94. compatible = "marvell,armada-370-core-clock";
  95. reg = <0x18230 0x08>;
  96. #clock-cells = <1>;
  97. };
  98. gateclk: clock-gating-control@18220 {
  99. compatible = "marvell,armada-370-gating-clock";
  100. reg = <0x18220 0x4>;
  101. clocks = <&coreclk 0>;
  102. #clock-cells = <1>;
  103. };
  104. xor@60800 {
  105. compatible = "marvell,orion-xor";
  106. reg = <0x60800 0x100
  107. 0x60A00 0x100>;
  108. status = "okay";
  109. xor00 {
  110. interrupts = <51>;
  111. dmacap,memcpy;
  112. dmacap,xor;
  113. };
  114. xor01 {
  115. interrupts = <52>;
  116. dmacap,memcpy;
  117. dmacap,xor;
  118. dmacap,memset;
  119. };
  120. };
  121. xor@60900 {
  122. compatible = "marvell,orion-xor";
  123. reg = <0x60900 0x100
  124. 0x60b00 0x100>;
  125. status = "okay";
  126. xor10 {
  127. interrupts = <94>;
  128. dmacap,memcpy;
  129. dmacap,xor;
  130. };
  131. xor11 {
  132. interrupts = <95>;
  133. dmacap,memcpy;
  134. dmacap,xor;
  135. dmacap,memset;
  136. };
  137. };
  138. usb@50000 {
  139. clocks = <&coreclk 0>;
  140. };
  141. usb@51000 {
  142. clocks = <&coreclk 0>;
  143. };
  144. thermal@18300 {
  145. compatible = "marvell,armada370-thermal";
  146. reg = <0x18300 0x4
  147. 0x18304 0x4>;
  148. status = "okay";
  149. };
  150. pcie-controller {
  151. compatible = "marvell,armada-370-pcie";
  152. status = "disabled";
  153. device_type = "pci";
  154. #address-cells = <3>;
  155. #size-cells = <2>;
  156. bus-range = <0x00 0xff>;
  157. ranges = <0x82000000 0 0x40000 0x40000 0 0x00002000 /* Port 0.0 registers */
  158. 0x82000000 0 0x80000 0x80000 0 0x00002000 /* Port 1.0 registers */
  159. 0x82000000 0 0xe0000000 0xe0000000 0 0x08000000 /* non-prefetchable memory */
  160. 0x81000000 0 0 0xe8000000 0 0x00100000>; /* downstream I/O */
  161. pcie@1,0 {
  162. device_type = "pci";
  163. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  164. reg = <0x0800 0 0 0 0>;
  165. #address-cells = <3>;
  166. #size-cells = <2>;
  167. #interrupt-cells = <1>;
  168. ranges;
  169. interrupt-map-mask = <0 0 0 0>;
  170. interrupt-map = <0 0 0 0 &mpic 58>;
  171. marvell,pcie-port = <0>;
  172. marvell,pcie-lane = <0>;
  173. clocks = <&gateclk 5>;
  174. status = "disabled";
  175. };
  176. pcie@2,0 {
  177. device_type = "pci";
  178. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  179. reg = <0x1000 0 0 0 0>;
  180. #address-cells = <3>;
  181. #size-cells = <2>;
  182. #interrupt-cells = <1>;
  183. ranges;
  184. interrupt-map-mask = <0 0 0 0>;
  185. interrupt-map = <0 0 0 0 &mpic 62>;
  186. marvell,pcie-port = <1>;
  187. marvell,pcie-lane = <0>;
  188. clocks = <&gateclk 9>;
  189. status = "disabled";
  190. };
  191. };
  192. };
  193. };
  194. };