armada-xp.dtsi 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. /*
  2. * Device Tree Include file for Marvell Armada XP 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. * Ben Dooks <ben.dooks@codethink.co.uk>
  10. *
  11. * This file is dual-licensed: you can use it either under the terms
  12. * of the GPL or the X11 license, at your option. Note that this dual
  13. * licensing only applies to this file, and not this project as a
  14. * whole.
  15. *
  16. * a) This file is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of the
  19. * License, or (at your option) any later version.
  20. *
  21. * This file is distributed in the hope that it will be useful
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * Or, alternatively
  27. *
  28. * b) Permission is hereby granted, free of charge, to any person
  29. * obtaining a copy of this software and associated documentation
  30. * files (the "Software"), to deal in the Software without
  31. * restriction, including without limitation the rights to use
  32. * copy, modify, merge, publish, distribute, sublicense, and/or
  33. * sell copies of the Software, and to permit persons to whom the
  34. * Software is furnished to do so, subject to the following
  35. * conditions:
  36. *
  37. * The above copyright notice and this permission notice shall be
  38. * included in all copies or substantial portions of the Software.
  39. *
  40. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  41. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  42. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  43. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  44. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  45. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  46. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  47. * OTHER DEALINGS IN THE SOFTWARE.
  48. *
  49. * Contains definitions specific to the Armada XP SoC that are not
  50. * common to all Armada SoCs.
  51. */
  52. #include "armada-370-xp.dtsi"
  53. / {
  54. model = "Marvell Armada XP family SoC";
  55. compatible = "marvell,armadaxp", "marvell,armada-370-xp";
  56. aliases {
  57. serial2 = &uart2;
  58. serial3 = &uart3;
  59. };
  60. soc {
  61. compatible = "marvell,armadaxp-mbus", "simple-bus";
  62. u-boot,dm-pre-reloc;
  63. bootrom {
  64. compatible = "marvell,bootrom";
  65. reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
  66. };
  67. internal-regs {
  68. sdramc@1400 {
  69. compatible = "marvell,armada-xp-sdram-controller";
  70. reg = <0x1400 0x500>;
  71. };
  72. L2: l2-cache {
  73. compatible = "marvell,aurora-system-cache";
  74. reg = <0x08000 0x1000>;
  75. cache-id-part = <0x100>;
  76. cache-level = <2>;
  77. cache-unified;
  78. wt-override;
  79. };
  80. spi0: spi@10600 {
  81. compatible = "marvell,armada-xp-spi",
  82. "marvell,orion-spi";
  83. pinctrl-0 = <&spi0_pins>;
  84. pinctrl-names = "default";
  85. };
  86. spi1: spi@10680 {
  87. compatible = "marvell,armada-xp-spi",
  88. "marvell,orion-spi";
  89. };
  90. i2c0: i2c@11000 {
  91. compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
  92. reg = <0x11000 0x100>;
  93. };
  94. i2c1: i2c@11100 {
  95. compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
  96. reg = <0x11100 0x100>;
  97. };
  98. uart2: serial@12200 {
  99. compatible = "snps,dw-apb-uart";
  100. pinctrl-0 = <&uart2_pins>;
  101. pinctrl-names = "default";
  102. reg = <0x12200 0x100>;
  103. reg-shift = <2>;
  104. interrupts = <43>;
  105. reg-io-width = <1>;
  106. clocks = <&coreclk 0>;
  107. status = "disabled";
  108. };
  109. uart3: serial@12300 {
  110. compatible = "snps,dw-apb-uart";
  111. pinctrl-0 = <&uart3_pins>;
  112. pinctrl-names = "default";
  113. reg = <0x12300 0x100>;
  114. reg-shift = <2>;
  115. interrupts = <44>;
  116. reg-io-width = <1>;
  117. clocks = <&coreclk 0>;
  118. status = "disabled";
  119. };
  120. system-controller@18200 {
  121. compatible = "marvell,armada-370-xp-system-controller";
  122. reg = <0x18200 0x500>;
  123. };
  124. gateclk: clock-gating-control@18220 {
  125. compatible = "marvell,armada-xp-gating-clock";
  126. reg = <0x18220 0x4>;
  127. clocks = <&coreclk 0>;
  128. #clock-cells = <1>;
  129. };
  130. coreclk: mvebu-sar@18230 {
  131. compatible = "marvell,armada-xp-core-clock";
  132. reg = <0x18230 0x08>;
  133. #clock-cells = <1>;
  134. };
  135. thermal@182b0 {
  136. compatible = "marvell,armadaxp-thermal";
  137. reg = <0x182b0 0x4
  138. 0x184d0 0x4>;
  139. status = "okay";
  140. };
  141. cpuclk: clock-complex@18700 {
  142. #clock-cells = <1>;
  143. compatible = "marvell,armada-xp-cpu-clock";
  144. reg = <0x18700 0x24>, <0x1c054 0x10>;
  145. clocks = <&coreclk 1>;
  146. };
  147. interrupt-controller@20a00 {
  148. reg = <0x20a00 0x2d0>, <0x21070 0x58>;
  149. };
  150. timer@20300 {
  151. compatible = "marvell,armada-xp-timer";
  152. clocks = <&coreclk 2>, <&refclk>;
  153. clock-names = "nbclk", "fixed";
  154. };
  155. watchdog@20300 {
  156. compatible = "marvell,armada-xp-wdt";
  157. clocks = <&coreclk 2>, <&refclk>;
  158. clock-names = "nbclk", "fixed";
  159. };
  160. cpurst@20800 {
  161. compatible = "marvell,armada-370-cpu-reset";
  162. reg = <0x20800 0x20>;
  163. };
  164. eth2: ethernet@30000 {
  165. compatible = "marvell,armada-xp-neta";
  166. reg = <0x30000 0x4000>;
  167. interrupts = <12>;
  168. clocks = <&gateclk 2>;
  169. status = "disabled";
  170. };
  171. usb@50000 {
  172. clocks = <&gateclk 18>;
  173. };
  174. usb@51000 {
  175. clocks = <&gateclk 19>;
  176. };
  177. usb@52000 {
  178. compatible = "marvell,orion-ehci";
  179. reg = <0x52000 0x500>;
  180. interrupts = <47>;
  181. clocks = <&gateclk 20>;
  182. status = "disabled";
  183. };
  184. xor@60900 {
  185. compatible = "marvell,orion-xor";
  186. reg = <0x60900 0x100
  187. 0x60b00 0x100>;
  188. clocks = <&gateclk 22>;
  189. status = "okay";
  190. xor10 {
  191. interrupts = <51>;
  192. dmacap,memcpy;
  193. dmacap,xor;
  194. };
  195. xor11 {
  196. interrupts = <52>;
  197. dmacap,memcpy;
  198. dmacap,xor;
  199. dmacap,memset;
  200. };
  201. };
  202. ethernet@70000 {
  203. compatible = "marvell,armada-xp-neta";
  204. };
  205. ethernet@74000 {
  206. compatible = "marvell,armada-xp-neta";
  207. };
  208. xor@f0900 {
  209. compatible = "marvell,orion-xor";
  210. reg = <0xF0900 0x100
  211. 0xF0B00 0x100>;
  212. clocks = <&gateclk 28>;
  213. status = "okay";
  214. xor00 {
  215. interrupts = <94>;
  216. dmacap,memcpy;
  217. dmacap,xor;
  218. };
  219. xor01 {
  220. interrupts = <95>;
  221. dmacap,memcpy;
  222. dmacap,xor;
  223. dmacap,memset;
  224. };
  225. };
  226. };
  227. };
  228. clocks {
  229. /* 25 MHz reference crystal */
  230. refclk: oscillator {
  231. compatible = "fixed-clock";
  232. #clock-cells = <0>;
  233. clock-frequency = <25000000>;
  234. };
  235. };
  236. };
  237. &pinctrl {
  238. ge0_gmii_pins: ge0-gmii-pins {
  239. marvell,pins =
  240. "mpp0", "mpp1", "mpp2", "mpp3",
  241. "mpp4", "mpp5", "mpp6", "mpp7",
  242. "mpp8", "mpp9", "mpp10", "mpp11",
  243. "mpp12", "mpp13", "mpp14", "mpp15",
  244. "mpp16", "mpp17", "mpp18", "mpp19",
  245. "mpp20", "mpp21", "mpp22", "mpp23";
  246. marvell,function = "ge0";
  247. };
  248. ge0_rgmii_pins: ge0-rgmii-pins {
  249. marvell,pins =
  250. "mpp0", "mpp1", "mpp2", "mpp3",
  251. "mpp4", "mpp5", "mpp6", "mpp7",
  252. "mpp8", "mpp9", "mpp10", "mpp11";
  253. marvell,function = "ge0";
  254. };
  255. ge1_rgmii_pins: ge1-rgmii-pins {
  256. marvell,pins =
  257. "mpp12", "mpp13", "mpp14", "mpp15",
  258. "mpp16", "mpp17", "mpp18", "mpp19",
  259. "mpp20", "mpp21", "mpp22", "mpp23";
  260. marvell,function = "ge1";
  261. };
  262. sdio_pins: sdio-pins {
  263. marvell,pins = "mpp30", "mpp31", "mpp32",
  264. "mpp33", "mpp34", "mpp35";
  265. marvell,function = "sd0";
  266. };
  267. spi0_pins: spi0-pins {
  268. marvell,pins = "mpp36", "mpp37",
  269. "mpp38", "mpp39";
  270. marvell,function = "spi0";
  271. };
  272. uart2_pins: uart2-pins {
  273. marvell,pins = "mpp42", "mpp43";
  274. marvell,function = "uart2";
  275. };
  276. uart3_pins: uart3-pins {
  277. marvell,pins = "mpp44", "mpp45";
  278. marvell,function = "uart3";
  279. };
  280. };