armada-8040-db.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2016 Marvell Technology Group Ltd.
  4. *
  5. * Device Tree file for Marvell Armada 8040 Development board platform
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include "armada-8040.dtsi"
  9. / {
  10. model = "Marvell Armada 8040 DB board";
  11. compatible = "marvell,armada8040-db", "marvell,armada8040",
  12. "marvell,armada-ap806-quad", "marvell,armada-ap806";
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. memory@0 {
  17. device_type = "memory";
  18. reg = <0x0 0x0 0x0 0x80000000>;
  19. };
  20. aliases {
  21. ethernet0 = &cp0_eth0;
  22. ethernet1 = &cp0_eth2;
  23. ethernet2 = &cp1_eth0;
  24. ethernet3 = &cp1_eth1;
  25. };
  26. cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
  27. compatible = "regulator-fixed";
  28. regulator-name = "cp0-usb3h0-vbus";
  29. regulator-min-microvolt = <5000000>;
  30. regulator-max-microvolt = <5000000>;
  31. enable-active-high;
  32. gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
  33. };
  34. cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
  35. compatible = "regulator-fixed";
  36. regulator-name = "cp0-usb3h1-vbus";
  37. regulator-min-microvolt = <5000000>;
  38. regulator-max-microvolt = <5000000>;
  39. enable-active-high;
  40. gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
  41. };
  42. cp0_usb3_0_phy: cp0-usb3-0-phy {
  43. compatible = "usb-nop-xceiv";
  44. vcc-supply = <&cp0_reg_usb3_0_vbus>;
  45. };
  46. cp0_usb3_1_phy: cp0-usb3-1-phy {
  47. compatible = "usb-nop-xceiv";
  48. vcc-supply = <&cp0_reg_usb3_1_vbus>;
  49. };
  50. cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus {
  51. compatible = "regulator-fixed";
  52. regulator-name = "cp1-usb3h0-vbus";
  53. regulator-min-microvolt = <5000000>;
  54. regulator-max-microvolt = <5000000>;
  55. enable-active-high;
  56. gpio = <&expander1 0 GPIO_ACTIVE_HIGH>;
  57. };
  58. cp1_usb3_0_phy: cp1-usb3-0-phy {
  59. compatible = "usb-nop-xceiv";
  60. vcc-supply = <&cp1_reg_usb3_0_vbus>;
  61. };
  62. };
  63. &i2c0 {
  64. status = "okay";
  65. clock-frequency = <100000>;
  66. };
  67. &spi0 {
  68. status = "okay";
  69. spi-flash@0 {
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. compatible = "jedec,spi-nor";
  73. reg = <0>;
  74. spi-max-frequency = <10000000>;
  75. partitions {
  76. compatible = "fixed-partitions";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. partition@0 {
  80. label = "U-Boot";
  81. reg = <0 0x200000>;
  82. };
  83. partition@400000 {
  84. label = "Filesystem";
  85. reg = <0x200000 0xce0000>;
  86. };
  87. };
  88. };
  89. };
  90. /* Accessible over the mini-USB CON9 connector on the main board */
  91. &uart0 {
  92. status = "okay";
  93. pinctrl-0 = <&uart0_pins>;
  94. pinctrl-names = "default";
  95. };
  96. /* CON6 on CP0 expansion */
  97. &cp0_pcie0 {
  98. status = "okay";
  99. };
  100. /* CON5 on CP0 expansion */
  101. &cp0_pcie2 {
  102. status = "okay";
  103. };
  104. &cp0_i2c0 {
  105. status = "okay";
  106. clock-frequency = <100000>;
  107. /* U31 */
  108. expander0: pca9555@21 {
  109. compatible = "nxp,pca9555";
  110. pinctrl-names = "default";
  111. gpio-controller;
  112. #gpio-cells = <2>;
  113. reg = <0x21>;
  114. };
  115. /* U25 */
  116. expander1: pca9555@25 {
  117. compatible = "nxp,pca9555";
  118. pinctrl-names = "default";
  119. gpio-controller;
  120. #gpio-cells = <2>;
  121. reg = <0x25>;
  122. };
  123. };
  124. /* CON4 on CP0 expansion */
  125. &cp0_sata0 {
  126. status = "okay";
  127. };
  128. /* CON9 on CP0 expansion */
  129. &cp0_usb3_0 {
  130. usb-phy = <&cp0_usb3_0_phy>;
  131. status = "okay";
  132. };
  133. /* CON10 on CP0 expansion */
  134. &cp0_usb3_1 {
  135. usb-phy = <&cp0_usb3_1_phy>;
  136. status = "okay";
  137. };
  138. &cp0_mdio {
  139. status = "okay";
  140. phy1: ethernet-phy@1 {
  141. reg = <1>;
  142. };
  143. };
  144. &cp0_ethernet {
  145. status = "okay";
  146. };
  147. &cp0_eth0 {
  148. status = "okay";
  149. phy-mode = "10gbase-kr";
  150. fixed-link {
  151. speed = <10000>;
  152. full-duplex;
  153. };
  154. };
  155. &cp0_eth2 {
  156. status = "okay";
  157. phy = <&phy1>;
  158. phy-mode = "rgmii-id";
  159. };
  160. /* CON6 on CP1 expansion */
  161. &cp1_pcie0 {
  162. status = "okay";
  163. };
  164. /* CON7 on CP1 expansion */
  165. &cp1_pcie1 {
  166. status = "okay";
  167. };
  168. /* CON5 on CP1 expansion */
  169. &cp1_pcie2 {
  170. status = "okay";
  171. };
  172. &cp1_i2c0 {
  173. status = "okay";
  174. clock-frequency = <100000>;
  175. };
  176. &cp1_spi1 {
  177. status = "okay";
  178. spi-flash@0 {
  179. #address-cells = <0x1>;
  180. #size-cells = <0x1>;
  181. compatible = "jedec,spi-nor";
  182. reg = <0x0>;
  183. spi-max-frequency = <20000000>;
  184. partitions {
  185. compatible = "fixed-partitions";
  186. #address-cells = <1>;
  187. #size-cells = <1>;
  188. partition@0 {
  189. label = "Boot";
  190. reg = <0x0 0x200000>;
  191. };
  192. partition@200000 {
  193. label = "Filesystem";
  194. reg = <0x200000 0xd00000>;
  195. };
  196. partition@f00000 {
  197. label = "Boot_2nd";
  198. reg = <0xf00000 0x100000>;
  199. };
  200. };
  201. };
  202. };
  203. /*
  204. * Proper NAND usage will require DPR-76 to be in position 1-2, which disables
  205. * MDIO signal of CP1.
  206. */
  207. &cp1_nand_controller {
  208. pinctrl-0 = <&nand_pins>, <&nand_rb>;
  209. pinctrl-names = "default";
  210. nand@0 {
  211. reg = <0>;
  212. nand-rb = <0>;
  213. nand-on-flash-bbt;
  214. nand-ecc-strength = <4>;
  215. nand-ecc-step-size = <512>;
  216. partitions {
  217. compatible = "fixed-partitions";
  218. #address-cells = <1>;
  219. #size-cells = <1>;
  220. partition@0 {
  221. label = "U-Boot";
  222. reg = <0 0x200000>;
  223. };
  224. partition@200000 {
  225. label = "Linux";
  226. reg = <0x200000 0xe00000>;
  227. };
  228. partition@1000000 {
  229. label = "Filesystem";
  230. reg = <0x1000000 0x3f000000>;
  231. };
  232. };
  233. };
  234. };
  235. /* CON4 on CP1 expansion */
  236. &cp1_sata0 {
  237. status = "okay";
  238. };
  239. /* CON9 on CP1 expansion */
  240. &cp1_usb3_0 {
  241. usb-phy = <&cp1_usb3_0_phy>;
  242. status = "okay";
  243. };
  244. /* CON10 on CP1 expansion */
  245. &cp1_usb3_1 {
  246. status = "okay";
  247. };
  248. &cp1_mdio {
  249. status = "okay";
  250. phy0: ethernet-phy@0 {
  251. reg = <0>;
  252. };
  253. };
  254. &cp1_ethernet {
  255. status = "okay";
  256. };
  257. &cp1_eth0 {
  258. status = "okay";
  259. phy-mode = "10gbase-kr";
  260. fixed-link {
  261. speed = <10000>;
  262. full-duplex;
  263. };
  264. };
  265. &cp1_eth1 {
  266. status = "okay";
  267. phy = <&phy0>;
  268. phy-mode = "rgmii-id";
  269. };
  270. &ap_sdhci0 {
  271. status = "okay";
  272. bus-width = <4>;
  273. non-removable;
  274. };
  275. &cp0_sdhci0 {
  276. status = "okay";
  277. bus-width = <8>;
  278. non-removable;
  279. };