armada-7040-db.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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 7040 Development board platform
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include "armada-7040.dtsi"
  9. / {
  10. model = "Marvell Armada 7040 DB board";
  11. compatible = "marvell,armada7040-db", "marvell,armada7040",
  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_eth1;
  23. ethernet2 = &cp0_eth2;
  24. };
  25. cp0_exp_usb3_0_current_regulator: gpio-regulator {
  26. compatible = "regulator-gpio";
  27. regulator-name = "cp0-usb3-0-current-regulator";
  28. regulator-type = "current";
  29. regulator-min-microamp = <500000>;
  30. regulator-max-microamp = <900000>;
  31. gpios = <&expander0 4 GPIO_ACTIVE_HIGH>;
  32. states = <500000 0x0
  33. 900000 0x1>;
  34. enable-active-high;
  35. gpios-states = <0>;
  36. };
  37. cp0_exp_usb3_1_current_regulator: gpio-regulator {
  38. compatible = "regulator-gpio";
  39. regulator-name = "cp0-usb3-1-current-regulator";
  40. regulator-type = "current";
  41. regulator-min-microamp = <500000>;
  42. regulator-max-microamp = <900000>;
  43. gpios = <&expander0 5 GPIO_ACTIVE_HIGH>;
  44. states = <500000 0x0
  45. 900000 0x1>;
  46. enable-active-high;
  47. gpios-states = <0>;
  48. };
  49. cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
  50. compatible = "regulator-fixed";
  51. regulator-name = "usb3h0-vbus";
  52. regulator-min-microvolt = <5000000>;
  53. regulator-max-microvolt = <5000000>;
  54. enable-active-high;
  55. gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
  56. vin-supply = <&cp0_exp_usb3_0_current_regulator>;
  57. };
  58. cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
  59. compatible = "regulator-fixed";
  60. regulator-name = "usb3h1-vbus";
  61. regulator-min-microvolt = <5000000>;
  62. regulator-max-microvolt = <5000000>;
  63. enable-active-high;
  64. gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
  65. vin-supply = <&cp0_exp_usb3_1_current_regulator>;
  66. };
  67. };
  68. &i2c0 {
  69. status = "okay";
  70. clock-frequency = <100000>;
  71. };
  72. &spi0 {
  73. status = "okay";
  74. flash@0 {
  75. compatible = "jedec,spi-nor";
  76. reg = <0>;
  77. spi-max-frequency = <10000000>;
  78. partitions {
  79. compatible = "fixed-partitions";
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. partition@0 {
  83. label = "U-Boot";
  84. reg = <0 0x200000>;
  85. };
  86. partition@400000 {
  87. label = "Filesystem";
  88. reg = <0x200000 0xce0000>;
  89. };
  90. };
  91. };
  92. };
  93. &uart0 {
  94. status = "okay";
  95. pinctrl-0 = <&uart0_pins>;
  96. pinctrl-names = "default";
  97. };
  98. &cp0_pcie2 {
  99. status = "okay";
  100. phys = <&cp0_comphy5 2>;
  101. phy-names = "cp0-pcie2-x1-phy";
  102. };
  103. &cp0_i2c0 {
  104. status = "okay";
  105. clock-frequency = <100000>;
  106. expander0: pca9555@21 {
  107. compatible = "nxp,pca9555";
  108. pinctrl-names = "default";
  109. gpio-controller;
  110. #gpio-cells = <2>;
  111. reg = <0x21>;
  112. /*
  113. * IO0_0: USB3_PWR_EN0 IO1_0: USB_3_1_Dev_Detect
  114. * IO0_1: USB3_PWR_EN1 IO1_1: USB2_1_current_limit
  115. * IO0_2: DDR3_4_Detect IO1_2: Hcon_IO_RstN
  116. * IO0_3: USB2_DEVICE_DETECT
  117. * IO0_4: GPIO_0 IO1_4: SD_Status
  118. * IO0_5: GPIO_1 IO1_5: LDO_5V_Enable
  119. * IO0_6: IHB_5V_Enable IO1_6: PWR_EN_eMMC
  120. * IO0_7: IO1_7: SDIO_Vcntrl
  121. */
  122. };
  123. };
  124. &cp0_nand_controller {
  125. /*
  126. * SPI on CPM and NAND have common pins on this board. We can
  127. * use only one at a time. To enable the NAND (which will
  128. * disable the SPI), the "status = "okay";" line have to be
  129. * added here.
  130. */
  131. pinctrl-0 = <&nand_pins>, <&nand_rb>;
  132. pinctrl-names = "default";
  133. nand@0 {
  134. reg = <0>;
  135. label = "pxa3xx_nand-0";
  136. nand-rb = <0>;
  137. nand-on-flash-bbt;
  138. nand-ecc-strength = <4>;
  139. nand-ecc-step-size = <512>;
  140. partitions {
  141. compatible = "fixed-partitions";
  142. #address-cells = <1>;
  143. #size-cells = <1>;
  144. partition@0 {
  145. label = "U-Boot";
  146. reg = <0 0x200000>;
  147. };
  148. partition@200000 {
  149. label = "Linux";
  150. reg = <0x200000 0xe00000>;
  151. };
  152. partition@1000000 {
  153. label = "Filesystem";
  154. reg = <0x1000000 0x3f000000>;
  155. };
  156. };
  157. };
  158. };
  159. &cp0_spi1 {
  160. status = "okay";
  161. flash@0 {
  162. compatible = "jedec,spi-nor";
  163. reg = <0x0>;
  164. spi-max-frequency = <20000000>;
  165. partitions {
  166. compatible = "fixed-partitions";
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. partition@0 {
  170. label = "U-Boot";
  171. reg = <0x0 0x200000>;
  172. };
  173. partition@400000 {
  174. label = "Filesystem";
  175. reg = <0x200000 0xe00000>;
  176. };
  177. };
  178. };
  179. };
  180. &cp0_sata0 {
  181. status = "okay";
  182. sata-port@1 {
  183. phys = <&cp0_comphy3 1>;
  184. phy-names = "cp0-sata0-1-phy";
  185. };
  186. };
  187. &cp0_utmi {
  188. status = "okay";
  189. };
  190. &cp0_comphy1 {
  191. cp0_usbh0_con: connector {
  192. compatible = "usb-a-connector";
  193. phy-supply = <&cp0_reg_usb3_0_vbus>;
  194. };
  195. };
  196. &cp0_usb3_0 {
  197. phys = <&cp0_comphy1 0>, <&cp0_utmi0>;
  198. phy-names = "cp0-usb3h0-comphy", "utmi";
  199. dr_mode = "host";
  200. status = "okay";
  201. };
  202. &cp0_comphy4 {
  203. cp0_usbh1_con: connector {
  204. compatible = "usb-a-connector";
  205. phy-supply = <&cp0_reg_usb3_1_vbus>;
  206. };
  207. };
  208. &cp0_usb3_1 {
  209. phys = <&cp0_comphy4 1>, <&cp0_utmi1>;
  210. phy-names = "cp0-usb3h1-comphy", "utmi";
  211. dr_mode = "host";
  212. status = "okay";
  213. };
  214. &ap_sdhci0 {
  215. status = "okay";
  216. bus-width = <4>;
  217. no-1-8-v;
  218. non-removable;
  219. };
  220. &cp0_sdhci0 {
  221. status = "okay";
  222. bus-width = <4>;
  223. no-1-8-v;
  224. cd-gpios = <&expander0 12 GPIO_ACTIVE_LOW>;
  225. };
  226. &cp0_mdio {
  227. status = "okay";
  228. phy0: ethernet-phy@0 {
  229. reg = <0>;
  230. };
  231. phy1: ethernet-phy@1 {
  232. reg = <1>;
  233. };
  234. };
  235. &cp0_ethernet {
  236. status = "okay";
  237. };
  238. &cp0_eth0 {
  239. status = "okay";
  240. /* Network PHY */
  241. phy-mode = "10gbase-r";
  242. /* Generic PHY, providing serdes lanes */
  243. phys = <&cp0_comphy2 0>;
  244. fixed-link {
  245. speed = <10000>;
  246. full-duplex;
  247. };
  248. };
  249. &cp0_eth1 {
  250. status = "okay";
  251. /* Network PHY */
  252. phy = <&phy0>;
  253. phy-mode = "sgmii";
  254. /* Generic PHY, providing serdes lanes */
  255. phys = <&cp0_comphy0 1>;
  256. };
  257. &cp0_eth2 {
  258. status = "okay";
  259. phy = <&phy1>;
  260. phy-mode = "rgmii-id";
  261. };