armada-7040-db.dts 4.6 KB

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