armada-xp-db.dts 3.7 KB

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