armada-375-db.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. /*
  2. * Device Tree file for Marvell Armada 375 evaluation board
  3. * (DB-88F6720)
  4. *
  5. * Copyright (C) 2014 Marvell
  6. *
  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. /dts-v1/;
  49. #include <dt-bindings/gpio/gpio.h>
  50. #include "armada-375.dtsi"
  51. / {
  52. model = "Marvell Armada 375 Development Board";
  53. compatible = "marvell,a375-db", "marvell,armada375";
  54. chosen {
  55. stdout-path = "serial0:115200n8";
  56. };
  57. aliases {
  58. /* So that mvebu u-boot can update the MAC addresses */
  59. ethernet0 = &eth0;
  60. ethernet1 = &eth1;
  61. spi0 = &spi0;
  62. };
  63. memory {
  64. device_type = "memory";
  65. reg = <0x00000000 0x40000000>; /* 1 GB */
  66. };
  67. soc {
  68. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  69. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  70. MBUS_ID(0x09, 0x09) 0 0xf1100000 0x10000
  71. MBUS_ID(0x09, 0x05) 0 0xf1110000 0x10000>;
  72. internal-regs {
  73. spi@10600 {
  74. pinctrl-0 = <&spi0_pins>;
  75. pinctrl-names = "default";
  76. /*
  77. * SPI conflicts with NAND, so we disable it
  78. * here, and select NAND as the enabled device
  79. * by default.
  80. */
  81. status = "okay";
  82. u-boot,dm-pre-reloc;
  83. spi-flash@0 {
  84. u-boot,dm-pre-reloc;
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. compatible = "n25q128a13", "jedec,spi-nor";
  88. reg = <0>; /* Chip select 0 */
  89. spi-max-frequency = <108000000>;
  90. };
  91. };
  92. i2c@11000 {
  93. status = "okay";
  94. clock-frequency = <100000>;
  95. pinctrl-0 = <&i2c0_pins>;
  96. pinctrl-names = "default";
  97. };
  98. i2c@11100 {
  99. status = "okay";
  100. clock-frequency = <100000>;
  101. pinctrl-0 = <&i2c1_pins>;
  102. pinctrl-names = "default";
  103. };
  104. serial@12000 {
  105. u-boot,dm-pre-reloc;
  106. status = "okay";
  107. };
  108. pinctrl {
  109. sdio_st_pins: sdio-st-pins {
  110. marvell,pins = "mpp44", "mpp45";
  111. marvell,function = "gpio";
  112. };
  113. };
  114. sata@a0000 {
  115. status = "okay";
  116. nr-ports = <2>;
  117. };
  118. nand: nand@d0000 {
  119. pinctrl-0 = <&nand_pins>;
  120. pinctrl-names = "default";
  121. status = "okay";
  122. num-cs = <1>;
  123. marvell,nand-keep-config;
  124. marvell,nand-enable-arbiter;
  125. nand-on-flash-bbt;
  126. nand-ecc-strength = <4>;
  127. nand-ecc-step-size = <512>;
  128. partition@0 {
  129. label = "U-Boot";
  130. reg = <0 0x800000>;
  131. };
  132. partition@800000 {
  133. label = "Linux";
  134. reg = <0x800000 0x800000>;
  135. };
  136. partition@1000000 {
  137. label = "Filesystem";
  138. reg = <0x1000000 0x3f000000>;
  139. };
  140. };
  141. usb@54000 {
  142. status = "okay";
  143. };
  144. usb3@58000 {
  145. status = "okay";
  146. };
  147. mvsdio@d4000 {
  148. pinctrl-0 = <&sdio_pins &sdio_st_pins>;
  149. pinctrl-names = "default";
  150. status = "okay";
  151. cd-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  152. wp-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  153. };
  154. mdio {
  155. phy0: ethernet-phy@0 {
  156. reg = <0>;
  157. };
  158. phy3: ethernet-phy@3 {
  159. reg = <3>;
  160. };
  161. };
  162. ethernet@f0000 {
  163. status = "okay";
  164. eth0@c4000 {
  165. status = "okay";
  166. phy = <&phy0>;
  167. phy-mode = "rgmii-id";
  168. };
  169. eth1@c5000 {
  170. status = "okay";
  171. phy = <&phy3>;
  172. phy-mode = "gmii";
  173. };
  174. };
  175. };
  176. pcie-controller {
  177. status = "okay";
  178. /*
  179. * The two PCIe units are accessible through
  180. * standard PCIe slots on the board.
  181. */
  182. pcie@1,0 {
  183. /* Port 0, Lane 0 */
  184. status = "okay";
  185. };
  186. pcie@2,0 {
  187. /* Port 1, Lane 0 */
  188. status = "okay";
  189. };
  190. };
  191. };
  192. };