armada-xp-mv78260.dtsi 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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 licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. *
  12. * Contains definitions specific to the Armada XP MV78260 SoC that are not
  13. * common to all Armada XP SoCs.
  14. */
  15. #include "armada-xp.dtsi"
  16. / {
  17. model = "Marvell Armada XP MV78260 SoC";
  18. compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
  19. aliases {
  20. gpio0 = &gpio0;
  21. gpio1 = &gpio1;
  22. gpio2 = &gpio2;
  23. };
  24. cpus {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. cpu@0 {
  28. device_type = "cpu";
  29. compatible = "marvell,sheeva-v7";
  30. reg = <0>;
  31. clocks = <&cpuclk 0>;
  32. };
  33. cpu@1 {
  34. device_type = "cpu";
  35. compatible = "marvell,sheeva-v7";
  36. reg = <1>;
  37. clocks = <&cpuclk 1>;
  38. };
  39. };
  40. soc {
  41. /*
  42. * MV78260 has 3 PCIe units Gen2.0: Two units can be
  43. * configured as x4 or quad x1 lanes. One unit is
  44. * x4/x1.
  45. */
  46. pcie-controller {
  47. compatible = "marvell,armada-xp-pcie";
  48. status = "disabled";
  49. device_type = "pci";
  50. #address-cells = <3>;
  51. #size-cells = <2>;
  52. msi-parent = <&mpic>;
  53. bus-range = <0x00 0xff>;
  54. ranges =
  55. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  56. 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
  57. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  58. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  59. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  60. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  61. 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
  62. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  63. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  64. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  65. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  66. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  67. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  68. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  69. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  70. 0x82000000 0x9 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  71. 0x81000000 0x9 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
  72. 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
  73. 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
  74. pcie@1,0 {
  75. device_type = "pci";
  76. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  77. reg = <0x0800 0 0 0 0>;
  78. #address-cells = <3>;
  79. #size-cells = <2>;
  80. #interrupt-cells = <1>;
  81. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  82. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  83. interrupt-map-mask = <0 0 0 0>;
  84. interrupt-map = <0 0 0 0 &mpic 58>;
  85. marvell,pcie-port = <0>;
  86. marvell,pcie-lane = <0>;
  87. clocks = <&gateclk 5>;
  88. status = "disabled";
  89. };
  90. pcie@2,0 {
  91. device_type = "pci";
  92. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  93. reg = <0x1000 0 0 0 0>;
  94. #address-cells = <3>;
  95. #size-cells = <2>;
  96. #interrupt-cells = <1>;
  97. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  98. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  99. interrupt-map-mask = <0 0 0 0>;
  100. interrupt-map = <0 0 0 0 &mpic 59>;
  101. marvell,pcie-port = <0>;
  102. marvell,pcie-lane = <1>;
  103. clocks = <&gateclk 6>;
  104. status = "disabled";
  105. };
  106. pcie@3,0 {
  107. device_type = "pci";
  108. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  109. reg = <0x1800 0 0 0 0>;
  110. #address-cells = <3>;
  111. #size-cells = <2>;
  112. #interrupt-cells = <1>;
  113. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  114. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  115. interrupt-map-mask = <0 0 0 0>;
  116. interrupt-map = <0 0 0 0 &mpic 60>;
  117. marvell,pcie-port = <0>;
  118. marvell,pcie-lane = <2>;
  119. clocks = <&gateclk 7>;
  120. status = "disabled";
  121. };
  122. pcie@4,0 {
  123. device_type = "pci";
  124. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  125. reg = <0x2000 0 0 0 0>;
  126. #address-cells = <3>;
  127. #size-cells = <2>;
  128. #interrupt-cells = <1>;
  129. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  130. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  131. interrupt-map-mask = <0 0 0 0>;
  132. interrupt-map = <0 0 0 0 &mpic 61>;
  133. marvell,pcie-port = <0>;
  134. marvell,pcie-lane = <3>;
  135. clocks = <&gateclk 8>;
  136. status = "disabled";
  137. };
  138. pcie@9,0 {
  139. device_type = "pci";
  140. assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
  141. reg = <0x4800 0 0 0 0>;
  142. #address-cells = <3>;
  143. #size-cells = <2>;
  144. #interrupt-cells = <1>;
  145. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  146. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  147. interrupt-map-mask = <0 0 0 0>;
  148. interrupt-map = <0 0 0 0 &mpic 99>;
  149. marvell,pcie-port = <2>;
  150. marvell,pcie-lane = <0>;
  151. clocks = <&gateclk 26>;
  152. status = "disabled";
  153. };
  154. pcie@10,0 {
  155. device_type = "pci";
  156. assigned-addresses = <0x82000800 0 0x82000 0 0x2000>;
  157. reg = <0x5000 0 0 0 0>;
  158. #address-cells = <3>;
  159. #size-cells = <2>;
  160. #interrupt-cells = <1>;
  161. ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
  162. 0x81000000 0 0 0x81000000 0xa 0 1 0>;
  163. interrupt-map-mask = <0 0 0 0>;
  164. interrupt-map = <0 0 0 0 &mpic 103>;
  165. marvell,pcie-port = <3>;
  166. marvell,pcie-lane = <0>;
  167. clocks = <&gateclk 27>;
  168. status = "disabled";
  169. };
  170. };
  171. internal-regs {
  172. pinctrl {
  173. compatible = "marvell,mv78260-pinctrl";
  174. reg = <0x18000 0x38>;
  175. sdio_pins: sdio-pins {
  176. marvell,pins = "mpp30", "mpp31", "mpp32",
  177. "mpp33", "mpp34", "mpp35";
  178. marvell,function = "sd0";
  179. };
  180. };
  181. gpio0: gpio@18100 {
  182. compatible = "marvell,orion-gpio";
  183. reg = <0x18100 0x40>;
  184. ngpios = <32>;
  185. gpio-controller;
  186. #gpio-cells = <2>;
  187. interrupt-controller;
  188. #interrupt-cells = <2>;
  189. interrupts = <82>, <83>, <84>, <85>;
  190. };
  191. gpio1: gpio@18140 {
  192. compatible = "marvell,orion-gpio";
  193. reg = <0x18140 0x40>;
  194. ngpios = <32>;
  195. gpio-controller;
  196. #gpio-cells = <2>;
  197. interrupt-controller;
  198. #interrupt-cells = <2>;
  199. interrupts = <87>, <88>, <89>, <90>;
  200. };
  201. gpio2: gpio@18180 {
  202. compatible = "marvell,orion-gpio";
  203. reg = <0x18180 0x40>;
  204. ngpios = <3>;
  205. gpio-controller;
  206. #gpio-cells = <2>;
  207. interrupt-controller;
  208. #interrupt-cells = <2>;
  209. interrupts = <91>;
  210. };
  211. ethernet@34000 {
  212. compatible = "marvell,armada-370-neta";
  213. reg = <0x34000 0x4000>;
  214. interrupts = <14>;
  215. clocks = <&gateclk 1>;
  216. status = "disabled";
  217. };
  218. };
  219. };
  220. };