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. internal-regs {
  31. serial@12000 {
  32. clock-frequency = <250000000>;
  33. status = "okay";
  34. };
  35. serial@12100 {
  36. clock-frequency = <250000000>;
  37. status = "okay";
  38. };
  39. serial@12200 {
  40. clock-frequency = <250000000>;
  41. status = "okay";
  42. };
  43. serial@12300 {
  44. clock-frequency = <250000000>;
  45. status = "okay";
  46. };
  47. sata@a0000 {
  48. nr-ports = <2>;
  49. status = "okay";
  50. };
  51. mdio {
  52. phy0: ethernet-phy@0 {
  53. reg = <0>;
  54. };
  55. phy1: ethernet-phy@1 {
  56. reg = <1>;
  57. };
  58. phy2: ethernet-phy@2 {
  59. reg = <25>;
  60. };
  61. phy3: ethernet-phy@3 {
  62. reg = <27>;
  63. };
  64. };
  65. ethernet@70000 {
  66. status = "okay";
  67. phy = <&phy0>;
  68. phy-mode = "rgmii-id";
  69. };
  70. ethernet@74000 {
  71. status = "okay";
  72. phy = <&phy1>;
  73. phy-mode = "rgmii-id";
  74. };
  75. ethernet@30000 {
  76. status = "okay";
  77. phy = <&phy2>;
  78. phy-mode = "sgmii";
  79. };
  80. ethernet@34000 {
  81. status = "okay";
  82. phy = <&phy3>;
  83. phy-mode = "sgmii";
  84. };
  85. mvsdio@d4000 {
  86. pinctrl-0 = <&sdio_pins>;
  87. pinctrl-names = "default";
  88. status = "okay";
  89. /* No CD or WP GPIOs */
  90. broken-cd;
  91. };
  92. usb@50000 {
  93. status = "okay";
  94. };
  95. usb@51000 {
  96. status = "okay";
  97. };
  98. usb@52000 {
  99. status = "okay";
  100. };
  101. spi0: spi@10600 {
  102. status = "okay";
  103. spi-flash@0 {
  104. #address-cells = <1>;
  105. #size-cells = <1>;
  106. compatible = "m25p64";
  107. reg = <0>; /* Chip select 0 */
  108. spi-max-frequency = <20000000>;
  109. };
  110. };
  111. pcie-controller {
  112. status = "okay";
  113. /*
  114. * All 6 slots are physically present as
  115. * standard PCIe slots on the board.
  116. */
  117. pcie@1,0 {
  118. /* Port 0, Lane 0 */
  119. status = "okay";
  120. };
  121. pcie@2,0 {
  122. /* Port 0, Lane 1 */
  123. status = "okay";
  124. };
  125. pcie@3,0 {
  126. /* Port 0, Lane 2 */
  127. status = "okay";
  128. };
  129. pcie@4,0 {
  130. /* Port 0, Lane 3 */
  131. status = "okay";
  132. };
  133. pcie@9,0 {
  134. /* Port 2, Lane 0 */
  135. status = "okay";
  136. };
  137. pcie@10,0 {
  138. /* Port 3, Lane 0 */
  139. status = "okay";
  140. };
  141. };
  142. devbus-bootcs@10400 {
  143. status = "okay";
  144. ranges = <0 0xf0000000 0x1000000>;
  145. /* Device Bus parameters are required */
  146. /* Read parameters */
  147. devbus,bus-width = <8>;
  148. devbus,turn-off-ps = <60000>;
  149. devbus,badr-skew-ps = <0>;
  150. devbus,acc-first-ps = <124000>;
  151. devbus,acc-next-ps = <248000>;
  152. devbus,rd-setup-ps = <0>;
  153. devbus,rd-hold-ps = <0>;
  154. /* Write parameters */
  155. devbus,sync-enable = <0>;
  156. devbus,wr-high-ps = <60000>;
  157. devbus,wr-low-ps = <60000>;
  158. devbus,ale-wr-ps = <60000>;
  159. /* NOR 16 MiB */
  160. nor@0 {
  161. compatible = "cfi-flash";
  162. reg = <0 0x1000000>;
  163. bank-width = <2>;
  164. };
  165. };
  166. };
  167. };
  168. };