armada-xp-mv78260.dtsi 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. bus-range = <0x00 0xff>;
  53. ranges =
  54. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  55. 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
  56. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  57. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  58. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  59. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  60. 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
  61. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  62. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  63. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  64. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  65. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  66. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  67. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  68. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  69. 0x82000000 0x9 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  70. 0x81000000 0x9 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
  71. 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
  72. 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
  73. pcie@1,0 {
  74. device_type = "pci";
  75. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  76. reg = <0x0800 0 0 0 0>;
  77. #address-cells = <3>;
  78. #size-cells = <2>;
  79. #interrupt-cells = <1>;
  80. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  81. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  82. interrupt-map-mask = <0 0 0 0>;
  83. interrupt-map = <0 0 0 0 &mpic 58>;
  84. marvell,pcie-port = <0>;
  85. marvell,pcie-lane = <0>;
  86. clocks = <&gateclk 5>;
  87. status = "disabled";
  88. };
  89. pcie@2,0 {
  90. device_type = "pci";
  91. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  92. reg = <0x1000 0 0 0 0>;
  93. #address-cells = <3>;
  94. #size-cells = <2>;
  95. #interrupt-cells = <1>;
  96. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  97. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  98. interrupt-map-mask = <0 0 0 0>;
  99. interrupt-map = <0 0 0 0 &mpic 59>;
  100. marvell,pcie-port = <0>;
  101. marvell,pcie-lane = <1>;
  102. clocks = <&gateclk 6>;
  103. status = "disabled";
  104. };
  105. pcie@3,0 {
  106. device_type = "pci";
  107. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  108. reg = <0x1800 0 0 0 0>;
  109. #address-cells = <3>;
  110. #size-cells = <2>;
  111. #interrupt-cells = <1>;
  112. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  113. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  114. interrupt-map-mask = <0 0 0 0>;
  115. interrupt-map = <0 0 0 0 &mpic 60>;
  116. marvell,pcie-port = <0>;
  117. marvell,pcie-lane = <2>;
  118. clocks = <&gateclk 7>;
  119. status = "disabled";
  120. };
  121. pcie@4,0 {
  122. device_type = "pci";
  123. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  124. reg = <0x2000 0 0 0 0>;
  125. #address-cells = <3>;
  126. #size-cells = <2>;
  127. #interrupt-cells = <1>;
  128. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  129. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  130. interrupt-map-mask = <0 0 0 0>;
  131. interrupt-map = <0 0 0 0 &mpic 61>;
  132. marvell,pcie-port = <0>;
  133. marvell,pcie-lane = <3>;
  134. clocks = <&gateclk 8>;
  135. status = "disabled";
  136. };
  137. pcie@9,0 {
  138. device_type = "pci";
  139. assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
  140. reg = <0x4800 0 0 0 0>;
  141. #address-cells = <3>;
  142. #size-cells = <2>;
  143. #interrupt-cells = <1>;
  144. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  145. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  146. interrupt-map-mask = <0 0 0 0>;
  147. interrupt-map = <0 0 0 0 &mpic 99>;
  148. marvell,pcie-port = <2>;
  149. marvell,pcie-lane = <0>;
  150. clocks = <&gateclk 26>;
  151. status = "disabled";
  152. };
  153. pcie@10,0 {
  154. device_type = "pci";
  155. assigned-addresses = <0x82000800 0 0x82000 0 0x2000>;
  156. reg = <0x5000 0 0 0 0>;
  157. #address-cells = <3>;
  158. #size-cells = <2>;
  159. #interrupt-cells = <1>;
  160. ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
  161. 0x81000000 0 0 0x81000000 0xa 0 1 0>;
  162. interrupt-map-mask = <0 0 0 0>;
  163. interrupt-map = <0 0 0 0 &mpic 103>;
  164. marvell,pcie-port = <3>;
  165. marvell,pcie-lane = <0>;
  166. clocks = <&gateclk 27>;
  167. status = "disabled";
  168. };
  169. };
  170. internal-regs {
  171. pinctrl {
  172. compatible = "marvell,mv78260-pinctrl";
  173. reg = <0x18000 0x38>;
  174. sdio_pins: sdio-pins {
  175. marvell,pins = "mpp30", "mpp31", "mpp32",
  176. "mpp33", "mpp34", "mpp35";
  177. marvell,function = "sd0";
  178. };
  179. };
  180. gpio0: gpio@18100 {
  181. compatible = "marvell,orion-gpio";
  182. reg = <0x18100 0x40>;
  183. ngpios = <32>;
  184. gpio-controller;
  185. #gpio-cells = <2>;
  186. interrupt-controller;
  187. #interrupt-cells = <2>;
  188. interrupts = <82>, <83>, <84>, <85>;
  189. };
  190. gpio1: gpio@18140 {
  191. compatible = "marvell,orion-gpio";
  192. reg = <0x18140 0x40>;
  193. ngpios = <32>;
  194. gpio-controller;
  195. #gpio-cells = <2>;
  196. interrupt-controller;
  197. #interrupt-cells = <2>;
  198. interrupts = <87>, <88>, <89>, <90>;
  199. };
  200. gpio2: gpio@18180 {
  201. compatible = "marvell,orion-gpio";
  202. reg = <0x18180 0x40>;
  203. ngpios = <3>;
  204. gpio-controller;
  205. #gpio-cells = <2>;
  206. interrupt-controller;
  207. #interrupt-cells = <2>;
  208. interrupts = <91>;
  209. };
  210. ethernet@34000 {
  211. compatible = "marvell,armada-370-neta";
  212. reg = <0x34000 0x4000>;
  213. interrupts = <14>;
  214. clocks = <&gateclk 1>;
  215. status = "disabled";
  216. };
  217. };
  218. };
  219. };