armada-xp-mv78230.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*
  2. * Device Tree Include file for Marvell Armada XP family SoC
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. *
  8. * This file is dual-licensed: you can use it either under the terms
  9. * of the GPL or the X11 license, at your option. Note that this dual
  10. * licensing only applies to this file, and not this project as a
  11. * whole.
  12. *
  13. * a) This file is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This file is distributed in the hope that it will be useful
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * Or, alternatively
  24. *
  25. * b) Permission is hereby granted, free of charge, to any person
  26. * obtaining a copy of this software and associated documentation
  27. * files (the "Software"), to deal in the Software without
  28. * restriction, including without limitation the rights to use
  29. * copy, modify, merge, publish, distribute, sublicense, and/or
  30. * sell copies of the Software, and to permit persons to whom the
  31. * Software is furnished to do so, subject to the following
  32. * conditions:
  33. *
  34. * The above copyright notice and this permission notice shall be
  35. * included in all copies or substantial portions of the Software.
  36. *
  37. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  38. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  39. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  40. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  41. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  42. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  43. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  44. * OTHER DEALINGS IN THE SOFTWARE.
  45. *
  46. * Contains definitions specific to the Armada XP MV78230 SoC that are not
  47. * common to all Armada XP SoCs.
  48. */
  49. #include "armada-xp.dtsi"
  50. / {
  51. model = "Marvell Armada XP MV78230 SoC";
  52. compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
  53. aliases {
  54. gpio0 = &gpio0;
  55. gpio1 = &gpio1;
  56. };
  57. cpus {
  58. #address-cells = <1>;
  59. #size-cells = <0>;
  60. enable-method = "marvell,armada-xp-smp";
  61. cpu@0 {
  62. device_type = "cpu";
  63. compatible = "marvell,sheeva-v7";
  64. reg = <0>;
  65. clocks = <&cpuclk 0>;
  66. clock-latency = <1000000>;
  67. };
  68. cpu@1 {
  69. device_type = "cpu";
  70. compatible = "marvell,sheeva-v7";
  71. reg = <1>;
  72. clocks = <&cpuclk 1>;
  73. clock-latency = <1000000>;
  74. };
  75. };
  76. soc {
  77. /*
  78. * MV78230 has 2 PCIe units Gen2.0: One unit can be
  79. * configured as x4 or quad x1 lanes. One unit is
  80. * x1 only.
  81. */
  82. pcie-controller {
  83. compatible = "marvell,armada-xp-pcie";
  84. status = "disabled";
  85. device_type = "pci";
  86. #address-cells = <3>;
  87. #size-cells = <2>;
  88. msi-parent = <&mpic>;
  89. bus-range = <0x00 0xff>;
  90. ranges =
  91. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  92. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  93. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  94. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  95. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  96. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  97. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  98. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  99. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  100. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  101. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  102. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  103. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  104. 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  105. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  106. pcie@1,0 {
  107. device_type = "pci";
  108. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  109. reg = <0x0800 0 0 0 0>;
  110. #address-cells = <3>;
  111. #size-cells = <2>;
  112. #interrupt-cells = <1>;
  113. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  114. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  115. interrupt-map-mask = <0 0 0 0>;
  116. interrupt-map = <0 0 0 0 &mpic 58>;
  117. marvell,pcie-port = <0>;
  118. marvell,pcie-lane = <0>;
  119. clocks = <&gateclk 5>;
  120. status = "disabled";
  121. };
  122. pcie@2,0 {
  123. device_type = "pci";
  124. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  125. reg = <0x1000 0 0 0 0>;
  126. #address-cells = <3>;
  127. #size-cells = <2>;
  128. #interrupt-cells = <1>;
  129. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  130. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  131. interrupt-map-mask = <0 0 0 0>;
  132. interrupt-map = <0 0 0 0 &mpic 59>;
  133. marvell,pcie-port = <0>;
  134. marvell,pcie-lane = <1>;
  135. clocks = <&gateclk 6>;
  136. status = "disabled";
  137. };
  138. pcie@3,0 {
  139. device_type = "pci";
  140. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  141. reg = <0x1800 0 0 0 0>;
  142. #address-cells = <3>;
  143. #size-cells = <2>;
  144. #interrupt-cells = <1>;
  145. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  146. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  147. interrupt-map-mask = <0 0 0 0>;
  148. interrupt-map = <0 0 0 0 &mpic 60>;
  149. marvell,pcie-port = <0>;
  150. marvell,pcie-lane = <2>;
  151. clocks = <&gateclk 7>;
  152. status = "disabled";
  153. };
  154. pcie@4,0 {
  155. device_type = "pci";
  156. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  157. reg = <0x2000 0 0 0 0>;
  158. #address-cells = <3>;
  159. #size-cells = <2>;
  160. #interrupt-cells = <1>;
  161. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  162. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  163. interrupt-map-mask = <0 0 0 0>;
  164. interrupt-map = <0 0 0 0 &mpic 61>;
  165. marvell,pcie-port = <0>;
  166. marvell,pcie-lane = <3>;
  167. clocks = <&gateclk 8>;
  168. status = "disabled";
  169. };
  170. pcie@5,0 {
  171. device_type = "pci";
  172. assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
  173. reg = <0x2800 0 0 0 0>;
  174. #address-cells = <3>;
  175. #size-cells = <2>;
  176. #interrupt-cells = <1>;
  177. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  178. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  179. interrupt-map-mask = <0 0 0 0>;
  180. interrupt-map = <0 0 0 0 &mpic 62>;
  181. marvell,pcie-port = <1>;
  182. marvell,pcie-lane = <0>;
  183. clocks = <&gateclk 9>;
  184. status = "disabled";
  185. };
  186. };
  187. internal-regs {
  188. gpio0: gpio@18100 {
  189. compatible = "marvell,orion-gpio";
  190. reg = <0x18100 0x40>;
  191. ngpios = <32>;
  192. gpio-controller;
  193. #gpio-cells = <2>;
  194. interrupt-controller;
  195. #interrupt-cells = <2>;
  196. interrupts = <82>, <83>, <84>, <85>;
  197. };
  198. gpio1: gpio@18140 {
  199. compatible = "marvell,orion-gpio";
  200. reg = <0x18140 0x40>;
  201. ngpios = <17>;
  202. gpio-controller;
  203. #gpio-cells = <2>;
  204. interrupt-controller;
  205. #interrupt-cells = <2>;
  206. interrupts = <87>, <88>, <89>;
  207. };
  208. };
  209. };
  210. };
  211. &pinctrl {
  212. compatible = "marvell,mv78230-pinctrl";
  213. };