armada-xp-mv78230.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. cpu@0 {
  27. device_type = "cpu";
  28. compatible = "marvell,sheeva-v7";
  29. reg = <0>;
  30. clocks = <&cpuclk 0>;
  31. };
  32. cpu@1 {
  33. device_type = "cpu";
  34. compatible = "marvell,sheeva-v7";
  35. reg = <1>;
  36. clocks = <&cpuclk 1>;
  37. };
  38. };
  39. soc {
  40. /*
  41. * MV78230 has 2 PCIe units Gen2.0: One unit can be
  42. * configured as x4 or quad x1 lanes. One unit is
  43. * x4/x1.
  44. */
  45. pcie-controller {
  46. compatible = "marvell,armada-xp-pcie";
  47. status = "disabled";
  48. device_type = "pci";
  49. #address-cells = <3>;
  50. #size-cells = <2>;
  51. msi-parent = <&mpic>;
  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 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  60. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  61. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  62. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  63. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  64. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  65. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  66. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  67. 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
  68. 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
  69. pcie@1,0 {
  70. device_type = "pci";
  71. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  72. reg = <0x0800 0 0 0 0>;
  73. #address-cells = <3>;
  74. #size-cells = <2>;
  75. #interrupt-cells = <1>;
  76. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  77. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  78. interrupt-map-mask = <0 0 0 0>;
  79. interrupt-map = <0 0 0 0 &mpic 58>;
  80. marvell,pcie-port = <0>;
  81. marvell,pcie-lane = <0>;
  82. clocks = <&gateclk 5>;
  83. status = "disabled";
  84. };
  85. pcie@2,0 {
  86. device_type = "pci";
  87. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  88. reg = <0x1000 0 0 0 0>;
  89. #address-cells = <3>;
  90. #size-cells = <2>;
  91. #interrupt-cells = <1>;
  92. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  93. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  94. interrupt-map-mask = <0 0 0 0>;
  95. interrupt-map = <0 0 0 0 &mpic 59>;
  96. marvell,pcie-port = <0>;
  97. marvell,pcie-lane = <1>;
  98. clocks = <&gateclk 6>;
  99. status = "disabled";
  100. };
  101. pcie@3,0 {
  102. device_type = "pci";
  103. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  104. reg = <0x1800 0 0 0 0>;
  105. #address-cells = <3>;
  106. #size-cells = <2>;
  107. #interrupt-cells = <1>;
  108. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  109. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  110. interrupt-map-mask = <0 0 0 0>;
  111. interrupt-map = <0 0 0 0 &mpic 60>;
  112. marvell,pcie-port = <0>;
  113. marvell,pcie-lane = <2>;
  114. clocks = <&gateclk 7>;
  115. status = "disabled";
  116. };
  117. pcie@4,0 {
  118. device_type = "pci";
  119. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  120. reg = <0x2000 0 0 0 0>;
  121. #address-cells = <3>;
  122. #size-cells = <2>;
  123. #interrupt-cells = <1>;
  124. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  125. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  126. interrupt-map-mask = <0 0 0 0>;
  127. interrupt-map = <0 0 0 0 &mpic 61>;
  128. marvell,pcie-port = <0>;
  129. marvell,pcie-lane = <3>;
  130. clocks = <&gateclk 8>;
  131. status = "disabled";
  132. };
  133. pcie@9,0 {
  134. device_type = "pci";
  135. assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
  136. reg = <0x4800 0 0 0 0>;
  137. #address-cells = <3>;
  138. #size-cells = <2>;
  139. #interrupt-cells = <1>;
  140. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  141. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  142. interrupt-map-mask = <0 0 0 0>;
  143. interrupt-map = <0 0 0 0 &mpic 99>;
  144. marvell,pcie-port = <2>;
  145. marvell,pcie-lane = <0>;
  146. clocks = <&gateclk 26>;
  147. status = "disabled";
  148. };
  149. };
  150. internal-regs {
  151. pinctrl {
  152. compatible = "marvell,mv78230-pinctrl";
  153. reg = <0x18000 0x38>;
  154. sdio_pins: sdio-pins {
  155. marvell,pins = "mpp30", "mpp31", "mpp32",
  156. "mpp33", "mpp34", "mpp35";
  157. marvell,function = "sd0";
  158. };
  159. };
  160. gpio0: gpio@18100 {
  161. compatible = "marvell,orion-gpio";
  162. reg = <0x18100 0x40>;
  163. ngpios = <32>;
  164. gpio-controller;
  165. #gpio-cells = <2>;
  166. interrupt-controller;
  167. #interrupt-cells = <2>;
  168. interrupts = <82>, <83>, <84>, <85>;
  169. };
  170. gpio1: gpio@18140 {
  171. compatible = "marvell,orion-gpio";
  172. reg = <0x18140 0x40>;
  173. ngpios = <17>;
  174. gpio-controller;
  175. #gpio-cells = <2>;
  176. interrupt-controller;
  177. #interrupt-cells = <2>;
  178. interrupts = <87>, <88>, <89>;
  179. };
  180. };
  181. };
  182. };