armada-370-db.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for Marvell Armada 370 evaluation board
  4. * (DB-88F6710-BP-DDR3)
  5. *
  6. * Copyright (C) 2012 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 "armada-370.dtsi"
  23. / {
  24. model = "Marvell Armada 370 Evaluation Board";
  25. compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
  26. chosen {
  27. stdout-path = "serial0:115200n8";
  28. };
  29. memory@0 {
  30. device_type = "memory";
  31. reg = <0x00000000 0x40000000>; /* 1 GB */
  32. };
  33. soc {
  34. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  35. MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
  36. MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
  37. internal-regs {
  38. serial@12000 {
  39. status = "okay";
  40. };
  41. sata@a0000 {
  42. nr-ports = <2>;
  43. status = "okay";
  44. };
  45. ethernet@70000 {
  46. pinctrl-0 = <&ge0_rgmii_pins>;
  47. pinctrl-names = "default";
  48. status = "okay";
  49. phy = <&phy0>;
  50. phy-mode = "rgmii-id";
  51. };
  52. ethernet@74000 {
  53. pinctrl-0 = <&ge1_rgmii_pins>;
  54. pinctrl-names = "default";
  55. status = "okay";
  56. phy = <&phy1>;
  57. phy-mode = "rgmii-id";
  58. };
  59. i2c@11000 {
  60. pinctrl-0 = <&i2c0_pins>;
  61. pinctrl-names = "default";
  62. clock-frequency = <100000>;
  63. status = "okay";
  64. audio_codec: audio-codec@4a {
  65. #sound-dai-cells = <0>;
  66. compatible = "cirrus,cs42l51";
  67. reg = <0x4a>;
  68. };
  69. };
  70. audio-controller@30000 {
  71. pinctrl-0 = <&i2s_pins2>;
  72. pinctrl-names = "default";
  73. status = "okay";
  74. };
  75. mvsdio@d4000 {
  76. pinctrl-0 = <&sdio_pins1>;
  77. pinctrl-names = "default";
  78. /*
  79. * This device is disabled by default, because
  80. * using the SD card connector requires
  81. * changing the default CON40 connector
  82. * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
  83. * different connector
  84. * "DB-88F6710_MPP_RGMII_SD_Jumper".
  85. */
  86. status = "disabled";
  87. /* No CD or WP GPIOs */
  88. broken-cd;
  89. };
  90. usb@50000 {
  91. status = "okay";
  92. };
  93. usb@51000 {
  94. status = "okay";
  95. };
  96. };
  97. };
  98. sound {
  99. compatible = "simple-audio-card";
  100. simple-audio-card,name = "Armada 370 DB Audio";
  101. simple-audio-card,mclk-fs = <256>;
  102. simple-audio-card,widgets =
  103. "Headphone", "Out Jack",
  104. "Line", "In Jack";
  105. simple-audio-card,routing =
  106. "Out Jack", "HPL",
  107. "Out Jack", "HPR",
  108. "AIN1L", "In Jack",
  109. "AIN1L", "In Jack";
  110. status = "okay";
  111. simple-audio-card,dai-link@0 {
  112. format = "i2s";
  113. cpu {
  114. sound-dai = <&audio_controller 0>;
  115. };
  116. codec {
  117. sound-dai = <&audio_codec>;
  118. };
  119. };
  120. simple-audio-card,dai-link@1 {
  121. format = "i2s";
  122. cpu {
  123. sound-dai = <&audio_controller 1>;
  124. };
  125. codec {
  126. sound-dai = <&spdif_out>;
  127. };
  128. };
  129. simple-audio-card,dai-link@2 {
  130. format = "i2s";
  131. cpu {
  132. sound-dai = <&audio_controller 1>;
  133. };
  134. codec {
  135. sound-dai = <&spdif_in>;
  136. };
  137. };
  138. };
  139. spdif_out: spdif-out {
  140. #sound-dai-cells = <0>;
  141. compatible = "linux,spdif-dit";
  142. };
  143. spdif_in: spdif-in {
  144. #sound-dai-cells = <0>;
  145. compatible = "linux,spdif-dir";
  146. };
  147. };
  148. &pciec {
  149. status = "okay";
  150. /*
  151. * The two PCIe units are accessible through
  152. * both standard PCIe slots and mini-PCIe
  153. * slots on the board.
  154. */
  155. pcie@1,0 {
  156. /* Port 0, Lane 0 */
  157. status = "okay";
  158. };
  159. pcie@2,0 {
  160. /* Port 1, Lane 0 */
  161. status = "okay";
  162. };
  163. };
  164. &mdio {
  165. pinctrl-0 = <&mdio_pins>;
  166. pinctrl-names = "default";
  167. phy0: ethernet-phy@0 {
  168. reg = <0>;
  169. };
  170. phy1: ethernet-phy@1 {
  171. reg = <1>;
  172. };
  173. };
  174. &spi0 {
  175. pinctrl-0 = <&spi0_pins2>;
  176. pinctrl-names = "default";
  177. status = "okay";
  178. flash@0 {
  179. #address-cells = <1>;
  180. #size-cells = <1>;
  181. compatible = "mx25l25635e", "jedec,spi-nor";
  182. reg = <0>; /* Chip select 0 */
  183. spi-max-frequency = <50000000>;
  184. };
  185. };
  186. &nand_controller {
  187. status = "okay";
  188. nand@0 {
  189. reg = <0>;
  190. label = "pxa3xx_nand-0";
  191. nand-rb = <0>;
  192. marvell,nand-keep-config;
  193. nand-on-flash-bbt;
  194. partitions {
  195. compatible = "fixed-partitions";
  196. #address-cells = <1>;
  197. #size-cells = <1>;
  198. partition@0 {
  199. label = "U-Boot";
  200. reg = <0 0x800000>;
  201. };
  202. partition@800000 {
  203. label = "Linux";
  204. reg = <0x800000 0x800000>;
  205. };
  206. partition@1000000 {
  207. label = "Filesystem";
  208. reg = <0x1000000 0x3f000000>;
  209. };
  210. };
  211. };
  212. };