armada-8040-db.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. i2c1 = &cp0_i2c0;
  26. i2c2 = &cp1_i2c0;
  27. };
  28. cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
  29. compatible = "regulator-fixed";
  30. regulator-name = "cp0-usb3h0-vbus";
  31. regulator-min-microvolt = <5000000>;
  32. regulator-max-microvolt = <5000000>;
  33. enable-active-high;
  34. gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
  35. };
  36. cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
  37. compatible = "regulator-fixed";
  38. regulator-name = "cp0-usb3h1-vbus";
  39. regulator-min-microvolt = <5000000>;
  40. regulator-max-microvolt = <5000000>;
  41. enable-active-high;
  42. gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
  43. };
  44. cp0_usb3_0_phy: cp0-usb3-0-phy {
  45. compatible = "usb-nop-xceiv";
  46. vcc-supply = <&cp0_reg_usb3_0_vbus>;
  47. };
  48. cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus {
  49. compatible = "regulator-fixed";
  50. regulator-name = "cp1-usb3h0-vbus";
  51. regulator-min-microvolt = <5000000>;
  52. regulator-max-microvolt = <5000000>;
  53. enable-active-high;
  54. gpio = <&expander1 0 GPIO_ACTIVE_HIGH>;
  55. };
  56. cp1_usb3_0_phy: cp1-usb3-0-phy {
  57. compatible = "usb-nop-xceiv";
  58. vcc-supply = <&cp1_reg_usb3_0_vbus>;
  59. };
  60. };
  61. &spi0 {
  62. status = "okay";
  63. flash@0 {
  64. compatible = "jedec,spi-nor";
  65. reg = <0>;
  66. spi-max-frequency = <10000000>;
  67. partitions {
  68. compatible = "fixed-partitions";
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. partition@0 {
  72. label = "U-Boot";
  73. reg = <0 0x200000>;
  74. };
  75. partition@400000 {
  76. label = "Filesystem";
  77. reg = <0x200000 0xce0000>;
  78. };
  79. };
  80. };
  81. };
  82. /* Accessible over the mini-USB CON9 connector on the main board */
  83. &uart0 {
  84. status = "okay";
  85. pinctrl-0 = <&uart0_pins>;
  86. pinctrl-names = "default";
  87. };
  88. /* CON6 on CP0 expansion */
  89. &cp0_pcie0 {
  90. phys = <&cp0_comphy0 0>;
  91. phy-names = "cp0-pcie0-x1-phy";
  92. status = "okay";
  93. };
  94. /* CON5 on CP0 expansion */
  95. &cp0_pcie2 {
  96. phys = <&cp0_comphy5 2>;
  97. phy-names = "cp0-pcie2-x1-phy";
  98. status = "okay";
  99. };
  100. &cp0_i2c0 {
  101. status = "okay";
  102. clock-frequency = <100000>;
  103. /* U31 */
  104. expander0: pca9555@21 {
  105. compatible = "nxp,pca9555";
  106. pinctrl-names = "default";
  107. gpio-controller;
  108. #gpio-cells = <2>;
  109. reg = <0x21>;
  110. };
  111. /* U25 */
  112. expander1: pca9555@25 {
  113. compatible = "nxp,pca9555";
  114. pinctrl-names = "default";
  115. gpio-controller;
  116. #gpio-cells = <2>;
  117. reg = <0x25>;
  118. };
  119. };
  120. /* CON4 on CP0 expansion */
  121. &cp0_sata0 {
  122. status = "okay";
  123. sata-port@0 {
  124. phys = <&cp0_comphy1 0>;
  125. phy-names = "cp0-sata0-0-phy";
  126. };
  127. sata-port@1 {
  128. phys = <&cp0_comphy3 1>;
  129. phy-names = "cp0-sata0-1-phy";
  130. };
  131. };
  132. /* CON9 on CP0 expansion */
  133. &cp0_utmi {
  134. status = "okay";
  135. };
  136. &cp0_usb3_0 {
  137. usb-phy = <&cp0_usb3_0_phy>;
  138. phys = <&cp0_utmi0>;
  139. phy-names = "utmi";
  140. dr_mode = "host";
  141. status = "okay";
  142. };
  143. &cp0_comphy4 {
  144. cp0_usbh1_con: connector {
  145. compatible = "usb-a-connector";
  146. phy-supply = <&cp0_reg_usb3_1_vbus>;
  147. };
  148. };
  149. /* CON10 on CP0 expansion */
  150. &cp0_usb3_1 {
  151. phys = <&cp0_comphy4 1>, <&cp0_utmi1>;
  152. phy-names = "usb", "utmi";
  153. dr_mode = "host";
  154. status = "okay";
  155. };
  156. &cp0_mdio {
  157. status = "okay";
  158. phy1: ethernet-phy@1 {
  159. reg = <1>;
  160. };
  161. };
  162. &cp0_ethernet {
  163. status = "okay";
  164. };
  165. &cp0_eth0 {
  166. status = "okay";
  167. phy-mode = "10gbase-r";
  168. fixed-link {
  169. speed = <10000>;
  170. full-duplex;
  171. };
  172. };
  173. &cp0_eth2 {
  174. status = "okay";
  175. phy = <&phy1>;
  176. phy-mode = "rgmii-id";
  177. };
  178. /* CON6 on CP1 expansion */
  179. &cp1_pcie0 {
  180. phys = <&cp1_comphy0 0>;
  181. phy-names = "cp1-pcie0-x1-phy";
  182. status = "okay";
  183. };
  184. /* CON7 on CP1 expansion */
  185. &cp1_pcie1 {
  186. phys = <&cp1_comphy4 1>;
  187. phy-names = "cp1-pcie1-x1-phy";
  188. status = "okay";
  189. };
  190. /* CON5 on CP1 expansion */
  191. &cp1_pcie2 {
  192. phys = <&cp1_comphy5 2>;
  193. phy-names = "cp1-pcie2-x1-phy";
  194. status = "okay";
  195. };
  196. &cp1_i2c0 {
  197. status = "okay";
  198. clock-frequency = <100000>;
  199. };
  200. &cp1_spi1 {
  201. status = "okay";
  202. flash@0 {
  203. compatible = "jedec,spi-nor";
  204. reg = <0x0>;
  205. spi-max-frequency = <20000000>;
  206. partitions {
  207. compatible = "fixed-partitions";
  208. #address-cells = <1>;
  209. #size-cells = <1>;
  210. partition@0 {
  211. label = "Boot";
  212. reg = <0x0 0x200000>;
  213. };
  214. partition@200000 {
  215. label = "Filesystem";
  216. reg = <0x200000 0xd00000>;
  217. };
  218. partition@f00000 {
  219. label = "Boot_2nd";
  220. reg = <0xf00000 0x100000>;
  221. };
  222. };
  223. };
  224. };
  225. /*
  226. * Proper NAND usage will require DPR-76 to be in position 1-2, which disables
  227. * MDIO signal of CP1.
  228. */
  229. &cp1_nand_controller {
  230. pinctrl-0 = <&nand_pins>, <&nand_rb>;
  231. pinctrl-names = "default";
  232. nand@0 {
  233. reg = <0>;
  234. nand-rb = <0>;
  235. nand-on-flash-bbt;
  236. nand-ecc-strength = <4>;
  237. nand-ecc-step-size = <512>;
  238. partitions {
  239. compatible = "fixed-partitions";
  240. #address-cells = <1>;
  241. #size-cells = <1>;
  242. partition@0 {
  243. label = "U-Boot";
  244. reg = <0 0x200000>;
  245. };
  246. partition@200000 {
  247. label = "Linux";
  248. reg = <0x200000 0xe00000>;
  249. };
  250. partition@1000000 {
  251. label = "Filesystem";
  252. reg = <0x1000000 0x3f000000>;
  253. };
  254. };
  255. };
  256. };
  257. /* CON4 on CP1 expansion */
  258. &cp1_sata0 {
  259. status = "okay";
  260. sata-port@0 {
  261. phys = <&cp1_comphy1 0>;
  262. phy-names = "cp1-sata0-0-phy";
  263. };
  264. sata-port@1 {
  265. phys = <&cp1_comphy3 1>;
  266. phy-names = "cp1-sata0-1-phy";
  267. };
  268. };
  269. &cp1_utmi {
  270. status = "okay";
  271. };
  272. /* CON9 on CP1 expansion */
  273. &cp1_usb3_0 {
  274. usb-phy = <&cp1_usb3_0_phy>;
  275. phys = <&cp1_utmi0>;
  276. phy-names = "utmi";
  277. dr_mode = "host";
  278. status = "okay";
  279. };
  280. /* CON10 on CP1 expansion */
  281. &cp1_usb3_1 {
  282. phys = <&cp1_utmi1>;
  283. phy-names = "utmi";
  284. status = "okay";
  285. };
  286. &cp1_mdio {
  287. status = "okay";
  288. phy0: ethernet-phy@0 {
  289. reg = <0>;
  290. };
  291. };
  292. &cp1_ethernet {
  293. status = "okay";
  294. };
  295. &cp1_eth0 {
  296. status = "okay";
  297. phy-mode = "10gbase-r";
  298. fixed-link {
  299. speed = <10000>;
  300. full-duplex;
  301. };
  302. };
  303. &cp1_eth1 {
  304. status = "okay";
  305. phy = <&phy0>;
  306. phy-mode = "rgmii-id";
  307. };
  308. &ap_sdhci0 {
  309. status = "okay";
  310. bus-width = <4>;
  311. non-removable;
  312. };
  313. &cp0_sdhci0 {
  314. status = "okay";
  315. bus-width = <8>;
  316. non-removable;
  317. };