armada-xp-gp.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /*
  2. * Device Tree file for Marvell Armada XP development board
  3. * (DB-MV784MP-GP)
  4. *
  5. * Copyright (C) 2013-2014 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 dual-licensed: you can use it either under the terms
  12. * of the GPL or the X11 license, at your option. Note that this dual
  13. * licensing only applies to this file, and not this project as a
  14. * whole.
  15. *
  16. * a) This file is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of the
  19. * License, or (at your option) any later version.
  20. *
  21. * This file is distributed in the hope that it will be useful
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * Or, alternatively
  27. *
  28. * b) Permission is hereby granted, free of charge, to any person
  29. * obtaining a copy of this software and associated documentation
  30. * files (the "Software"), to deal in the Software without
  31. * restriction, including without limitation the rights to use
  32. * copy, modify, merge, publish, distribute, sublicense, and/or
  33. * sell copies of the Software, and to permit persons to whom the
  34. * Software is furnished to do so, subject to the following
  35. * conditions:
  36. *
  37. * The above copyright notice and this permission notice shall be
  38. * included in all copies or substantial portions of the Software.
  39. *
  40. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  41. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  42. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  43. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  44. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  45. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  46. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  47. * OTHER DEALINGS IN THE SOFTWARE.
  48. *
  49. * Note: this Device Tree assumes that the bootloader has remapped the
  50. * internal registers to 0xf1000000 (instead of the default
  51. * 0xd0000000). The 0xf1000000 is the default used by the recent,
  52. * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
  53. * boards were delivered with an older version of the bootloader that
  54. * left internal registers mapped at 0xd0000000. If you are in this
  55. * situation, you should either update your bootloader (preferred
  56. * solution) or the below Device Tree should be adjusted.
  57. */
  58. /dts-v1/;
  59. #include <dt-bindings/gpio/gpio.h>
  60. #include "armada-xp-mv78460.dtsi"
  61. / {
  62. model = "Marvell Armada XP Development Board DB-MV784MP-GP";
  63. compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
  64. chosen {
  65. stdout-path = "serial0:115200n8";
  66. };
  67. aliases {
  68. spi0 = &spi0;
  69. };
  70. memory {
  71. device_type = "memory";
  72. /*
  73. * 8 GB of plug-in RAM modules by default.The amount
  74. * of memory available can be changed by the
  75. * bootloader according the size of the module
  76. * actually plugged. However, memory between
  77. * 0xF0000000 to 0xFFFFFFFF cannot be used, as it is
  78. * the address range used for I/O (internal registers,
  79. * MBus windows).
  80. */
  81. reg = <0x00000000 0x00000000 0x00000000 0xf0000000>,
  82. <0x00000001 0x00000000 0x00000001 0x00000000>;
  83. };
  84. cpus {
  85. pm_pic {
  86. ctrl-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>,
  87. <&gpio0 17 GPIO_ACTIVE_LOW>,
  88. <&gpio0 18 GPIO_ACTIVE_LOW>;
  89. };
  90. };
  91. soc {
  92. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
  93. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  94. MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>;
  95. devbus-bootcs {
  96. status = "okay";
  97. /* Device Bus parameters are required */
  98. /* Read parameters */
  99. devbus,bus-width = <16>;
  100. devbus,turn-off-ps = <60000>;
  101. devbus,badr-skew-ps = <0>;
  102. devbus,acc-first-ps = <124000>;
  103. devbus,acc-next-ps = <248000>;
  104. devbus,rd-setup-ps = <0>;
  105. devbus,rd-hold-ps = <0>;
  106. /* Write parameters */
  107. devbus,sync-enable = <0>;
  108. devbus,wr-high-ps = <60000>;
  109. devbus,wr-low-ps = <60000>;
  110. devbus,ale-wr-ps = <60000>;
  111. /* NOR 16 MiB */
  112. nor@0 {
  113. compatible = "cfi-flash";
  114. reg = <0 0x1000000>;
  115. bank-width = <2>;
  116. };
  117. };
  118. pcie-controller {
  119. status = "okay";
  120. /*
  121. * The 3 slots are physically present as
  122. * standard PCIe slots on the board.
  123. */
  124. pcie@1,0 {
  125. /* Port 0, Lane 0 */
  126. status = "okay";
  127. };
  128. pcie@9,0 {
  129. /* Port 2, Lane 0 */
  130. status = "okay";
  131. };
  132. pcie@10,0 {
  133. /* Port 3, Lane 0 */
  134. status = "okay";
  135. };
  136. };
  137. internal-regs {
  138. serial@12000 {
  139. status = "okay";
  140. u-boot,dm-pre-reloc;
  141. };
  142. serial@12100 {
  143. status = "okay";
  144. };
  145. serial@12200 {
  146. status = "okay";
  147. };
  148. serial@12300 {
  149. status = "okay";
  150. };
  151. pinctrl {
  152. pinctrl-0 = <&pic_pins>;
  153. pinctrl-names = "default";
  154. pic_pins: pic-pins-0 {
  155. marvell,pins = "mpp16", "mpp17",
  156. "mpp18";
  157. marvell,function = "gpio";
  158. };
  159. };
  160. sata@a0000 {
  161. nr-ports = <2>;
  162. status = "okay";
  163. };
  164. mdio {
  165. phy0: ethernet-phy@0 {
  166. reg = <16>;
  167. };
  168. phy1: ethernet-phy@1 {
  169. reg = <17>;
  170. };
  171. phy2: ethernet-phy@2 {
  172. reg = <18>;
  173. };
  174. phy3: ethernet-phy@3 {
  175. reg = <19>;
  176. };
  177. };
  178. ethernet@70000 {
  179. status = "okay";
  180. phy = <&phy0>;
  181. phy-mode = "qsgmii";
  182. };
  183. ethernet@74000 {
  184. status = "okay";
  185. phy = <&phy1>;
  186. phy-mode = "qsgmii";
  187. };
  188. ethernet@30000 {
  189. status = "okay";
  190. phy = <&phy2>;
  191. phy-mode = "qsgmii";
  192. };
  193. ethernet@34000 {
  194. status = "okay";
  195. phy = <&phy3>;
  196. phy-mode = "qsgmii";
  197. };
  198. /* Front-side USB slot */
  199. usb@50000 {
  200. status = "okay";
  201. };
  202. /* Back-side USB slot */
  203. usb@51000 {
  204. status = "okay";
  205. };
  206. spi0: spi@10600 {
  207. status = "okay";
  208. u-boot,dm-pre-reloc;
  209. spi-flash@0 {
  210. u-boot,dm-pre-reloc;
  211. #address-cells = <1>;
  212. #size-cells = <1>;
  213. compatible = "n25q128a13", "jedec,spi-nor";
  214. reg = <0>; /* Chip select 0 */
  215. spi-max-frequency = <108000000>;
  216. };
  217. };
  218. nand@d0000 {
  219. status = "okay";
  220. num-cs = <1>;
  221. marvell,nand-keep-config;
  222. marvell,nand-enable-arbiter;
  223. nand-on-flash-bbt;
  224. };
  225. };
  226. };
  227. };