armada-xp-mv78230.dtsi 5.6 KB

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