armada-xp-maxbcm.dts 6.3 KB

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