armada-xp-mv78230.dtsi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 MV78230 SoC that are not
  13. * common to all Armada XP SoCs.
  14. */
  15. #include "armada-xp.dtsi"
  16. / {
  17. model = "Marvell Armada XP MV78230 SoC";
  18. compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
  19. aliases {
  20. gpio0 = &gpio0;
  21. gpio1 = &gpio1;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. enable-method = "marvell,armada-xp-smp";
  27. cpu@0 {
  28. device_type = "cpu";
  29. compatible = "marvell,sheeva-v7";
  30. reg = <0>;
  31. clocks = <&cpuclk 0>;
  32. clock-latency = <1000000>;
  33. };
  34. cpu@1 {
  35. device_type = "cpu";
  36. compatible = "marvell,sheeva-v7";
  37. reg = <1>;
  38. clocks = <&cpuclk 1>;
  39. clock-latency = <1000000>;
  40. };
  41. };
  42. soc {
  43. /*
  44. * MV78230 has 2 PCIe units Gen2.0: One unit can be
  45. * configured as x4 or quad x1 lanes. One unit is
  46. * x1 only.
  47. */
  48. pcie-controller {
  49. compatible = "marvell,armada-xp-pcie";
  50. status = "disabled";
  51. device_type = "pci";
  52. #address-cells = <3>;
  53. #size-cells = <2>;
  54. msi-parent = <&mpic>;
  55. bus-range = <0x00 0xff>;
  56. ranges =
  57. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  58. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  59. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  60. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  61. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.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 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  71. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  72. pcie@1,0 {
  73. device_type = "pci";
  74. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  75. reg = <0x0800 0 0 0 0>;
  76. #address-cells = <3>;
  77. #size-cells = <2>;
  78. #interrupt-cells = <1>;
  79. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  80. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  81. interrupt-map-mask = <0 0 0 0>;
  82. interrupt-map = <0 0 0 0 &mpic 58>;
  83. marvell,pcie-port = <0>;
  84. marvell,pcie-lane = <0>;
  85. clocks = <&gateclk 5>;
  86. status = "disabled";
  87. };
  88. pcie@2,0 {
  89. device_type = "pci";
  90. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  91. reg = <0x1000 0 0 0 0>;
  92. #address-cells = <3>;
  93. #size-cells = <2>;
  94. #interrupt-cells = <1>;
  95. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  96. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  97. interrupt-map-mask = <0 0 0 0>;
  98. interrupt-map = <0 0 0 0 &mpic 59>;
  99. marvell,pcie-port = <0>;
  100. marvell,pcie-lane = <1>;
  101. clocks = <&gateclk 6>;
  102. status = "disabled";
  103. };
  104. pcie@3,0 {
  105. device_type = "pci";
  106. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  107. reg = <0x1800 0 0 0 0>;
  108. #address-cells = <3>;
  109. #size-cells = <2>;
  110. #interrupt-cells = <1>;
  111. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  112. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  113. interrupt-map-mask = <0 0 0 0>;
  114. interrupt-map = <0 0 0 0 &mpic 60>;
  115. marvell,pcie-port = <0>;
  116. marvell,pcie-lane = <2>;
  117. clocks = <&gateclk 7>;
  118. status = "disabled";
  119. };
  120. pcie@4,0 {
  121. device_type = "pci";
  122. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  123. reg = <0x2000 0 0 0 0>;
  124. #address-cells = <3>;
  125. #size-cells = <2>;
  126. #interrupt-cells = <1>;
  127. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  128. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  129. interrupt-map-mask = <0 0 0 0>;
  130. interrupt-map = <0 0 0 0 &mpic 61>;
  131. marvell,pcie-port = <0>;
  132. marvell,pcie-lane = <3>;
  133. clocks = <&gateclk 8>;
  134. status = "disabled";
  135. };
  136. pcie@5,0 {
  137. device_type = "pci";
  138. assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
  139. reg = <0x2800 0 0 0 0>;
  140. #address-cells = <3>;
  141. #size-cells = <2>;
  142. #interrupt-cells = <1>;
  143. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  144. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  145. interrupt-map-mask = <0 0 0 0>;
  146. interrupt-map = <0 0 0 0 &mpic 62>;
  147. marvell,pcie-port = <1>;
  148. marvell,pcie-lane = <0>;
  149. clocks = <&gateclk 9>;
  150. status = "disabled";
  151. };
  152. };
  153. internal-regs {
  154. pinctrl {
  155. compatible = "marvell,mv78230-pinctrl";
  156. reg = <0x18000 0x38>;
  157. sdio_pins: sdio-pins {
  158. marvell,pins = "mpp30", "mpp31", "mpp32",
  159. "mpp33", "mpp34", "mpp35";
  160. marvell,function = "sd0";
  161. };
  162. };
  163. gpio0: gpio@18100 {
  164. compatible = "marvell,orion-gpio";
  165. reg = <0x18100 0x40>;
  166. ngpios = <32>;
  167. gpio-controller;
  168. #gpio-cells = <2>;
  169. interrupt-controller;
  170. #interrupt-cells = <2>;
  171. interrupts = <82>, <83>, <84>, <85>;
  172. };
  173. gpio1: gpio@18140 {
  174. compatible = "marvell,orion-gpio";
  175. reg = <0x18140 0x40>;
  176. ngpios = <17>;
  177. gpio-controller;
  178. #gpio-cells = <2>;
  179. interrupt-controller;
  180. #interrupt-cells = <2>;
  181. interrupts = <87>, <88>, <89>;
  182. };
  183. };
  184. };
  185. };