armada-370.dtsi 5.0 KB

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