armada-xp-gp.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for Marvell Armada XP development board
  4. * (DB-MV784MP-GP)
  5. *
  6. * Copyright (C) 2013-2014 Marvell
  7. *
  8. * Lior Amsalem <[email protected]>
  9. * Gregory CLEMENT <[email protected]>
  10. * Thomas Petazzoni <[email protected]>
  11. *
  12. * Note: this Device Tree assumes that the bootloader has remapped the
  13. * internal registers to 0xf1000000 (instead of the default
  14. * 0xd0000000). The 0xf1000000 is the default used by the recent,
  15. * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
  16. * boards were delivered with an older version of the bootloader that
  17. * left internal registers mapped at 0xd0000000. If you are in this
  18. * situation, you should either update your bootloader (preferred
  19. * solution) or the below Device Tree should be adjusted.
  20. */
  21. /dts-v1/;
  22. #include <dt-bindings/gpio/gpio.h>
  23. #include "armada-xp-mv78460.dtsi"
  24. / {
  25. model = "Marvell Armada XP Development Board DB-MV784MP-GP";
  26. compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
  27. chosen {
  28. stdout-path = "serial0:115200n8";
  29. };
  30. memory@0 {
  31. device_type = "memory";
  32. /*
  33. * 8 GB of plug-in RAM modules by default.The amount
  34. * of memory available can be changed by the
  35. * bootloader according the size of the module
  36. * actually plugged. However, memory between
  37. * 0xF0000000 to 0xFFFFFFFF cannot be used, as it is
  38. * the address range used for I/O (internal registers,
  39. * MBus windows).
  40. */
  41. reg = <0x00000000 0x00000000 0x00000000 0xf0000000>,
  42. <0x00000001 0x00000000 0x00000001 0x00000000>;
  43. };
  44. cpus {
  45. pm_pic {
  46. ctrl-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>,
  47. <&gpio0 17 GPIO_ACTIVE_LOW>,
  48. <&gpio0 18 GPIO_ACTIVE_LOW>;
  49. };
  50. };
  51. soc {
  52. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
  53. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  54. MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000
  55. MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
  56. MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
  57. MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
  58. devbus-bootcs {
  59. status = "okay";
  60. /* Device Bus parameters are required */
  61. /* Read parameters */
  62. devbus,bus-width = <16>;
  63. devbus,turn-off-ps = <60000>;
  64. devbus,badr-skew-ps = <0>;
  65. devbus,acc-first-ps = <124000>;
  66. devbus,acc-next-ps = <248000>;
  67. devbus,rd-setup-ps = <0>;
  68. devbus,rd-hold-ps = <0>;
  69. /* Write parameters */
  70. devbus,sync-enable = <0>;
  71. devbus,wr-high-ps = <60000>;
  72. devbus,wr-low-ps = <60000>;
  73. devbus,ale-wr-ps = <60000>;
  74. /* NOR 16 MiB */
  75. nor@0 {
  76. compatible = "cfi-flash";
  77. reg = <0 0x1000000>;
  78. bank-width = <2>;
  79. };
  80. };
  81. internal-regs {
  82. serial@12000 {
  83. status = "okay";
  84. };
  85. serial@12100 {
  86. status = "okay";
  87. };
  88. serial@12200 {
  89. status = "okay";
  90. };
  91. serial@12300 {
  92. status = "okay";
  93. };
  94. pinctrl {
  95. pinctrl-0 = <&pic_pins>;
  96. pinctrl-names = "default";
  97. pic_pins: pic-pins-0 {
  98. marvell,pins = "mpp16", "mpp17",
  99. "mpp18";
  100. marvell,function = "gpio";
  101. };
  102. };
  103. sata@a0000 {
  104. nr-ports = <2>;
  105. status = "okay";
  106. };
  107. ethernet@70000 {
  108. status = "okay";
  109. phy = <&phy0>;
  110. phy-mode = "qsgmii";
  111. buffer-manager = <&bm>;
  112. bm,pool-long = <0>;
  113. };
  114. ethernet@74000 {
  115. status = "okay";
  116. phy = <&phy1>;
  117. phy-mode = "qsgmii";
  118. buffer-manager = <&bm>;
  119. bm,pool-long = <1>;
  120. };
  121. ethernet@30000 {
  122. status = "okay";
  123. phy = <&phy2>;
  124. phy-mode = "qsgmii";
  125. buffer-manager = <&bm>;
  126. bm,pool-long = <2>;
  127. };
  128. ethernet@34000 {
  129. status = "okay";
  130. phy = <&phy3>;
  131. phy-mode = "qsgmii";
  132. buffer-manager = <&bm>;
  133. bm,pool-long = <3>;
  134. };
  135. /* Front-side USB slot */
  136. usb@50000 {
  137. status = "okay";
  138. };
  139. /* Back-side USB slot */
  140. usb@51000 {
  141. status = "okay";
  142. };
  143. bm@c0000 {
  144. status = "okay";
  145. };
  146. nand-controller@d0000 {
  147. status = "okay";
  148. nand@0 {
  149. reg = <0>;
  150. label = "pxa3xx_nand-0";
  151. nand-rb = <0>;
  152. nand-on-flash-bbt;
  153. };
  154. };
  155. };
  156. bm-bppi {
  157. status = "okay";
  158. };
  159. };
  160. };
  161. &pciec {
  162. status = "okay";
  163. /*
  164. * The 3 slots are physically present as
  165. * standard PCIe slots on the board.
  166. */
  167. pcie@1,0 {
  168. /* Port 0, Lane 0 */
  169. status = "okay";
  170. };
  171. pcie@9,0 {
  172. /* Port 2, Lane 0 */
  173. status = "okay";
  174. };
  175. pcie@a,0 {
  176. /* Port 3, Lane 0 */
  177. status = "okay";
  178. };
  179. };
  180. &mdio {
  181. phy0: ethernet-phy@0 {
  182. reg = <16>;
  183. };
  184. phy1: ethernet-phy@1 {
  185. reg = <17>;
  186. };
  187. phy2: ethernet-phy@2 {
  188. reg = <18>;
  189. };
  190. phy3: ethernet-phy@3 {
  191. reg = <19>;
  192. };
  193. };
  194. &spi0 {
  195. status = "okay";
  196. flash@0 {
  197. #address-cells = <1>;
  198. #size-cells = <1>;
  199. compatible = "n25q128a13", "jedec,spi-nor";
  200. reg = <0>; /* Chip select 0 */
  201. spi-max-frequency = <108000000>;
  202. };
  203. };