armada-xp-db.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /*
  2. * Device Tree file for Marvell Armada XP evaluation board
  3. * (DB-78460-BP)
  4. *
  5. * Copyright (C) 2012 Marvell
  6. *
  7. * Lior Amsalem <alior@marvell.com>
  8. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  9. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. *
  11. * This file is licensed under the terms of the GNU General Public
  12. * License version 2. This program is licensed "as is" without any
  13. * warranty of any kind, whether express or implied.
  14. */
  15. /dts-v1/;
  16. #include "armada-xp-mv78460.dtsi"
  17. / {
  18. model = "Marvell Armada XP Evaluation Board";
  19. compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
  20. chosen {
  21. bootargs = "console=ttyS0,115200 earlyprintk";
  22. };
  23. memory {
  24. device_type = "memory";
  25. reg = <0 0x00000000 0 0x80000000>; /* 2 GB */
  26. };
  27. soc {
  28. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
  29. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  30. MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>;
  31. devbus-bootcs {
  32. status = "okay";
  33. /* Device Bus parameters are required */
  34. /* Read parameters */
  35. devbus,bus-width = <8>;
  36. devbus,turn-off-ps = <60000>;
  37. devbus,badr-skew-ps = <0>;
  38. devbus,acc-first-ps = <124000>;
  39. devbus,acc-next-ps = <248000>;
  40. devbus,rd-setup-ps = <0>;
  41. devbus,rd-hold-ps = <0>;
  42. /* Write parameters */
  43. devbus,sync-enable = <0>;
  44. devbus,wr-high-ps = <60000>;
  45. devbus,wr-low-ps = <60000>;
  46. devbus,ale-wr-ps = <60000>;
  47. /* NOR 16 MiB */
  48. nor@0 {
  49. compatible = "cfi-flash";
  50. reg = <0 0x1000000>;
  51. bank-width = <2>;
  52. };
  53. };
  54. pcie-controller {
  55. status = "okay";
  56. /*
  57. * All 6 slots are physically present as
  58. * standard PCIe slots on the board.
  59. */
  60. pcie@1,0 {
  61. /* Port 0, Lane 0 */
  62. status = "okay";
  63. };
  64. pcie@2,0 {
  65. /* Port 0, Lane 1 */
  66. status = "okay";
  67. };
  68. pcie@3,0 {
  69. /* Port 0, Lane 2 */
  70. status = "okay";
  71. };
  72. pcie@4,0 {
  73. /* Port 0, Lane 3 */
  74. status = "okay";
  75. };
  76. pcie@9,0 {
  77. /* Port 2, Lane 0 */
  78. status = "okay";
  79. };
  80. pcie@10,0 {
  81. /* Port 3, Lane 0 */
  82. status = "okay";
  83. };
  84. };
  85. internal-regs {
  86. serial@12000 {
  87. clock-frequency = <250000000>;
  88. status = "okay";
  89. };
  90. serial@12100 {
  91. clock-frequency = <250000000>;
  92. status = "okay";
  93. };
  94. serial@12200 {
  95. clock-frequency = <250000000>;
  96. status = "okay";
  97. };
  98. serial@12300 {
  99. clock-frequency = <250000000>;
  100. status = "okay";
  101. };
  102. sata@a0000 {
  103. nr-ports = <2>;
  104. status = "okay";
  105. };
  106. mdio {
  107. phy0: ethernet-phy@0 {
  108. reg = <0>;
  109. };
  110. phy1: ethernet-phy@1 {
  111. reg = <1>;
  112. };
  113. phy2: ethernet-phy@2 {
  114. reg = <25>;
  115. };
  116. phy3: ethernet-phy@3 {
  117. reg = <27>;
  118. };
  119. };
  120. ethernet@70000 {
  121. status = "okay";
  122. phy = <&phy0>;
  123. phy-mode = "rgmii-id";
  124. };
  125. ethernet@74000 {
  126. status = "okay";
  127. phy = <&phy1>;
  128. phy-mode = "rgmii-id";
  129. };
  130. ethernet@30000 {
  131. status = "okay";
  132. phy = <&phy2>;
  133. phy-mode = "sgmii";
  134. };
  135. ethernet@34000 {
  136. status = "okay";
  137. phy = <&phy3>;
  138. phy-mode = "sgmii";
  139. };
  140. mvsdio@d4000 {
  141. pinctrl-0 = <&sdio_pins>;
  142. pinctrl-names = "default";
  143. status = "okay";
  144. /* No CD or WP GPIOs */
  145. broken-cd;
  146. };
  147. usb@50000 {
  148. status = "okay";
  149. };
  150. usb@51000 {
  151. status = "okay";
  152. };
  153. usb@52000 {
  154. status = "okay";
  155. };
  156. spi0: spi@10600 {
  157. status = "okay";
  158. spi-flash@0 {
  159. #address-cells = <1>;
  160. #size-cells = <1>;
  161. compatible = "m25p64";
  162. reg = <0>; /* Chip select 0 */
  163. spi-max-frequency = <20000000>;
  164. };
  165. };
  166. };
  167. };
  168. };