armada-385.dtsi 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * Device Tree Include file for Marvell Armada 385 SoC.
  3. *
  4. * Copyright (C) 2014 Marvell
  5. *
  6. * Lior Amsalem <alior@marvell.com>
  7. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  8. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. *
  10. * This file is licensed under the terms of the GNU General Public
  11. * License version 2. This program is licensed "as is" without any
  12. * warranty of any kind, whether express or implied.
  13. */
  14. #include "armada-38x.dtsi"
  15. / {
  16. model = "Marvell Armada 385 family SoC";
  17. compatible = "marvell,armada385", "marvell,armada380";
  18. cpus {
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. enable-method = "marvell,armada-380-smp";
  22. cpu@0 {
  23. device_type = "cpu";
  24. compatible = "arm,cortex-a9";
  25. reg = <0>;
  26. };
  27. cpu@1 {
  28. device_type = "cpu";
  29. compatible = "arm,cortex-a9";
  30. reg = <1>;
  31. };
  32. };
  33. soc {
  34. internal-regs {
  35. pinctrl {
  36. compatible = "marvell,mv88f6820-pinctrl";
  37. reg = <0x18000 0x20>;
  38. };
  39. };
  40. pcie-controller {
  41. compatible = "marvell,armada-370-pcie";
  42. status = "disabled";
  43. device_type = "pci";
  44. #address-cells = <3>;
  45. #size-cells = <2>;
  46. msi-parent = <&mpic>;
  47. bus-range = <0x00 0xff>;
  48. ranges =
  49. <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
  50. 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
  51. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
  52. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
  53. 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
  54. 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */
  55. 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
  56. 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */
  57. 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
  58. 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */
  59. 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
  60. 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>;
  61. /*
  62. * This port can be either x4 or x1. When
  63. * configured in x4 by the bootloader, then
  64. * pcie@4,0 is not available.
  65. */
  66. pcie@1,0 {
  67. device_type = "pci";
  68. assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
  69. reg = <0x0800 0 0 0 0>;
  70. #address-cells = <3>;
  71. #size-cells = <2>;
  72. #interrupt-cells = <1>;
  73. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  74. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  75. interrupt-map-mask = <0 0 0 0>;
  76. interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  77. marvell,pcie-port = <0>;
  78. marvell,pcie-lane = <0>;
  79. clocks = <&gateclk 8>;
  80. status = "disabled";
  81. };
  82. /* x1 port */
  83. pcie@2,0 {
  84. device_type = "pci";
  85. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  86. reg = <0x1000 0 0 0 0>;
  87. #address-cells = <3>;
  88. #size-cells = <2>;
  89. #interrupt-cells = <1>;
  90. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  91. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  92. interrupt-map-mask = <0 0 0 0>;
  93. interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  94. marvell,pcie-port = <1>;
  95. marvell,pcie-lane = <0>;
  96. clocks = <&gateclk 5>;
  97. status = "disabled";
  98. };
  99. /* x1 port */
  100. pcie@3,0 {
  101. device_type = "pci";
  102. assigned-addresses = <0x82000800 0 0x44000 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 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
  111. marvell,pcie-port = <2>;
  112. marvell,pcie-lane = <0>;
  113. clocks = <&gateclk 6>;
  114. status = "disabled";
  115. };
  116. /*
  117. * x1 port only available when pcie@1,0 is
  118. * configured as a x1 port
  119. */
  120. pcie@4,0 {
  121. device_type = "pci";
  122. assigned-addresses = <0x82000800 0 0x48000 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 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  131. marvell,pcie-port = <3>;
  132. marvell,pcie-lane = <0>;
  133. clocks = <&gateclk 7>;
  134. status = "disabled";
  135. };
  136. };
  137. };
  138. };