armada-370.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. msi-parent = <&mpic>;
  40. bus-range = <0x00 0xff>;
  41. ranges =
  42. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
  43. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
  44. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  45. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  46. 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  47. 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  48. pcie@1,0 {
  49. device_type = "pci";
  50. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  51. reg = <0x0800 0 0 0 0>;
  52. #address-cells = <3>;
  53. #size-cells = <2>;
  54. #interrupt-cells = <1>;
  55. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  56. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  57. interrupt-map-mask = <0 0 0 0>;
  58. interrupt-map = <0 0 0 0 &mpic 58>;
  59. marvell,pcie-port = <0>;
  60. marvell,pcie-lane = <0>;
  61. clocks = <&gateclk 5>;
  62. status = "disabled";
  63. };
  64. pcie@2,0 {
  65. device_type = "pci";
  66. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  67. reg = <0x1000 0 0 0 0>;
  68. #address-cells = <3>;
  69. #size-cells = <2>;
  70. #interrupt-cells = <1>;
  71. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  72. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  73. interrupt-map-mask = <0 0 0 0>;
  74. interrupt-map = <0 0 0 0 &mpic 62>;
  75. marvell,pcie-port = <1>;
  76. marvell,pcie-lane = <0>;
  77. clocks = <&gateclk 9>;
  78. status = "disabled";
  79. };
  80. };
  81. internal-regs {
  82. L2: l2-cache {
  83. compatible = "marvell,aurora-outer-cache";
  84. reg = <0x08000 0x1000>;
  85. cache-id-part = <0x100>;
  86. wt-override;
  87. };
  88. i2c0: i2c@11000 {
  89. reg = <0x11000 0x20>;
  90. };
  91. i2c1: i2c@11100 {
  92. reg = <0x11100 0x20>;
  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. i2c0_pins: i2c0-pins {
  113. marvell,pins = "mpp2", "mpp3";
  114. marvell,function = "i2c0";
  115. };
  116. i2s_pins1: i2s-pins1 {
  117. marvell,pins = "mpp5", "mpp6", "mpp7",
  118. "mpp8", "mpp9", "mpp10",
  119. "mpp12", "mpp13";
  120. marvell,function = "audio";
  121. };
  122. i2s_pins2: i2s-pins2 {
  123. marvell,pins = "mpp49", "mpp47", "mpp50",
  124. "mpp59", "mpp57", "mpp61",
  125. "mpp62", "mpp60", "mpp58";
  126. marvell,function = "audio";
  127. };
  128. mdio_pins: mdio-pins {
  129. marvell,pins = "mpp17", "mpp18";
  130. marvell,function = "ge";
  131. };
  132. ge0_rgmii_pins: ge0-rgmii-pins {
  133. marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8",
  134. "mpp9", "mpp10", "mpp11", "mpp12",
  135. "mpp13", "mpp14", "mpp15", "mpp16";
  136. marvell,function = "ge0";
  137. };
  138. ge1_rgmii_pins: ge1-rgmii-pins {
  139. marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22",
  140. "mpp23", "mpp24", "mpp25", "mpp26",
  141. "mpp27", "mpp28", "mpp29", "mpp30";
  142. marvell,function = "ge1";
  143. };
  144. };
  145. gpio0: gpio@18100 {
  146. compatible = "marvell,orion-gpio";
  147. reg = <0x18100 0x40>;
  148. ngpios = <32>;
  149. gpio-controller;
  150. #gpio-cells = <2>;
  151. interrupt-controller;
  152. #interrupt-cells = <2>;
  153. interrupts = <82>, <83>, <84>, <85>;
  154. };
  155. gpio1: gpio@18140 {
  156. compatible = "marvell,orion-gpio";
  157. reg = <0x18140 0x40>;
  158. ngpios = <32>;
  159. gpio-controller;
  160. #gpio-cells = <2>;
  161. interrupt-controller;
  162. #interrupt-cells = <2>;
  163. interrupts = <87>, <88>, <89>, <90>;
  164. };
  165. gpio2: gpio@18180 {
  166. compatible = "marvell,orion-gpio";
  167. reg = <0x18180 0x40>;
  168. ngpios = <2>;
  169. gpio-controller;
  170. #gpio-cells = <2>;
  171. interrupt-controller;
  172. #interrupt-cells = <2>;
  173. interrupts = <91>;
  174. };
  175. system-controller@18200 {
  176. compatible = "marvell,armada-370-xp-system-controller";
  177. reg = <0x18200 0x100>;
  178. };
  179. gateclk: clock-gating-control@18220 {
  180. compatible = "marvell,armada-370-gating-clock";
  181. reg = <0x18220 0x4>;
  182. clocks = <&coreclk 0>;
  183. #clock-cells = <1>;
  184. };
  185. coreclk: mvebu-sar@18230 {
  186. compatible = "marvell,armada-370-core-clock";
  187. reg = <0x18230 0x08>;
  188. #clock-cells = <1>;
  189. };
  190. thermal@18300 {
  191. compatible = "marvell,armada370-thermal";
  192. reg = <0x18300 0x4
  193. 0x18304 0x4>;
  194. status = "okay";
  195. };
  196. sscg@18330 {
  197. reg = <0x18330 0x4>;
  198. };
  199. interrupt-controller@20000 {
  200. reg = <0x20a00 0x1d0>, <0x21870 0x58>;
  201. };
  202. timer@20300 {
  203. compatible = "marvell,armada-370-timer";
  204. clocks = <&coreclk 2>;
  205. };
  206. watchdog@20300 {
  207. compatible = "marvell,armada-370-wdt";
  208. clocks = <&coreclk 2>;
  209. };
  210. cpurst@20800 {
  211. compatible = "marvell,armada-370-cpu-reset";
  212. reg = <0x20800 0x8>;
  213. };
  214. audio_controller: audio-controller@30000 {
  215. compatible = "marvell,armada370-audio";
  216. reg = <0x30000 0x4000>;
  217. interrupts = <93>;
  218. clocks = <&gateclk 0>;
  219. clock-names = "internal";
  220. status = "disabled";
  221. };
  222. usb@50000 {
  223. clocks = <&coreclk 0>;
  224. };
  225. usb@51000 {
  226. clocks = <&coreclk 0>;
  227. };
  228. xor@60800 {
  229. compatible = "marvell,orion-xor";
  230. reg = <0x60800 0x100
  231. 0x60A00 0x100>;
  232. status = "okay";
  233. xor00 {
  234. interrupts = <51>;
  235. dmacap,memcpy;
  236. dmacap,xor;
  237. };
  238. xor01 {
  239. interrupts = <52>;
  240. dmacap,memcpy;
  241. dmacap,xor;
  242. dmacap,memset;
  243. };
  244. };
  245. xor@60900 {
  246. compatible = "marvell,orion-xor";
  247. reg = <0x60900 0x100
  248. 0x60b00 0x100>;
  249. status = "okay";
  250. xor10 {
  251. interrupts = <94>;
  252. dmacap,memcpy;
  253. dmacap,xor;
  254. };
  255. xor11 {
  256. interrupts = <95>;
  257. dmacap,memcpy;
  258. dmacap,xor;
  259. dmacap,memset;
  260. };
  261. };
  262. ethernet@70000 {
  263. compatible = "marvell,armada-370-neta";
  264. };
  265. ethernet@74000 {
  266. compatible = "marvell,armada-370-neta";
  267. };
  268. };
  269. };
  270. };