armada-8040-mcbin.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2016 Marvell Technology Group Ltd.
  4. *
  5. * Device Tree file for MACCHIATOBin Armada 8040 community board platform
  6. */
  7. #include "armada-8040.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. / {
  10. model = "Marvell 8040 MACCHIATOBin";
  11. compatible = "marvell,armada8040-mcbin", "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 = &cp1_eth0;
  23. ethernet2 = &cp1_eth1;
  24. ethernet3 = &cp1_eth2;
  25. };
  26. /* Regulator labels correspond with schematics */
  27. v_3_3: regulator-3-3v {
  28. compatible = "regulator-fixed";
  29. regulator-name = "v_3_3";
  30. regulator-min-microvolt = <3300000>;
  31. regulator-max-microvolt = <3300000>;
  32. regulator-always-on;
  33. status = "okay";
  34. };
  35. v_vddo_h: regulator-1-8v {
  36. compatible = "regulator-fixed";
  37. regulator-name = "v_vddo_h";
  38. regulator-min-microvolt = <1800000>;
  39. regulator-max-microvolt = <1800000>;
  40. regulator-always-on;
  41. status = "okay";
  42. };
  43. v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
  44. compatible = "regulator-fixed";
  45. enable-active-high;
  46. gpio = <&cp0_gpio2 15 GPIO_ACTIVE_HIGH>;
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&cp0_xhci_vbus_pins>;
  49. regulator-name = "v_5v0_usb3_hst_vbus";
  50. regulator-min-microvolt = <5000000>;
  51. regulator-max-microvolt = <5000000>;
  52. status = "okay";
  53. };
  54. usb3h0_phy: usb3_phy0 {
  55. compatible = "usb-nop-xceiv";
  56. vcc-supply = <&v_5v0_usb3_hst_vbus>;
  57. };
  58. sfp_eth0: sfp-eth0 {
  59. /* CON15,16 - CPM lane 4 */
  60. compatible = "sff,sfp";
  61. i2c-bus = <&sfpp0_i2c>;
  62. los-gpio = <&cp1_gpio1 28 GPIO_ACTIVE_HIGH>;
  63. mod-def0-gpio = <&cp1_gpio1 27 GPIO_ACTIVE_LOW>;
  64. tx-disable-gpio = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>;
  65. tx-fault-gpio = <&cp1_gpio1 26 GPIO_ACTIVE_HIGH>;
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&cp1_sfpp0_pins>;
  68. };
  69. sfp_eth1: sfp-eth1 {
  70. /* CON17,18 - CPS lane 4 */
  71. compatible = "sff,sfp";
  72. i2c-bus = <&sfpp1_i2c>;
  73. los-gpio = <&cp1_gpio1 8 GPIO_ACTIVE_HIGH>;
  74. mod-def0-gpio = <&cp1_gpio1 11 GPIO_ACTIVE_LOW>;
  75. tx-disable-gpio = <&cp1_gpio1 10 GPIO_ACTIVE_HIGH>;
  76. tx-fault-gpio = <&cp0_gpio2 30 GPIO_ACTIVE_HIGH>;
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&cp1_sfpp1_pins &cp0_sfpp1_pins>;
  79. };
  80. sfp_eth3: sfp-eth3 {
  81. /* CON13,14 - CPS lane 5 */
  82. compatible = "sff,sfp";
  83. i2c-bus = <&sfp_1g_i2c>;
  84. los-gpio = <&cp0_gpio2 22 GPIO_ACTIVE_HIGH>;
  85. mod-def0-gpio = <&cp0_gpio2 21 GPIO_ACTIVE_LOW>;
  86. tx-disable-gpio = <&cp1_gpio1 24 GPIO_ACTIVE_HIGH>;
  87. tx-fault-gpio = <&cp0_gpio2 19 GPIO_ACTIVE_HIGH>;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&cp0_sfp_1g_pins &cp1_sfp_1g_pins>;
  90. };
  91. };
  92. &uart0 {
  93. status = "okay";
  94. pinctrl-0 = <&uart0_pins>;
  95. pinctrl-names = "default";
  96. };
  97. &ap_sdhci0 {
  98. bus-width = <8>;
  99. /*
  100. * Not stable in HS modes - phy needs "more calibration", so add
  101. * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
  102. */
  103. marvell,xenon-phy-slow-mode;
  104. no-1-8-v;
  105. no-sd;
  106. no-sdio;
  107. non-removable;
  108. status = "okay";
  109. vqmmc-supply = <&v_vddo_h>;
  110. };
  111. &cp0_i2c0 {
  112. clock-frequency = <100000>;
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&cp0_i2c0_pins>;
  115. status = "okay";
  116. };
  117. &cp0_i2c1 {
  118. clock-frequency = <100000>;
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&cp0_i2c1_pins>;
  121. status = "okay";
  122. i2c-switch@70 {
  123. compatible = "nxp,pca9548";
  124. #address-cells = <1>;
  125. #size-cells = <0>;
  126. reg = <0x70>;
  127. sfpp0_i2c: i2c@0 {
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. reg = <0>;
  131. };
  132. sfpp1_i2c: i2c@1 {
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. reg = <1>;
  136. };
  137. sfp_1g_i2c: i2c@2 {
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. reg = <2>;
  141. };
  142. };
  143. };
  144. /* J25 UART header */
  145. &cp0_uart1 {
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&cp0_uart1_pins>;
  148. status = "okay";
  149. };
  150. &cp0_mdio {
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&cp0_ge_mdio_pins>;
  153. status = "okay";
  154. ge_phy: ethernet-phy@0 {
  155. reg = <0>;
  156. };
  157. };
  158. &cp0_pcie0 {
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&cp0_pcie_pins>;
  161. num-lanes = <4>;
  162. num-viewport = <8>;
  163. reset-gpio = <&cp0_gpio1 20 GPIO_ACTIVE_LOW>;
  164. status = "okay";
  165. };
  166. &cp0_pinctrl {
  167. cp0_ge_mdio_pins: ge-mdio-pins {
  168. marvell,pins = "mpp32", "mpp34";
  169. marvell,function = "ge";
  170. };
  171. cp0_i2c1_pins: i2c1-pins {
  172. marvell,pins = "mpp35", "mpp36";
  173. marvell,function = "i2c1";
  174. };
  175. cp0_i2c0_pins: i2c0-pins {
  176. marvell,pins = "mpp37", "mpp38";
  177. marvell,function = "i2c0";
  178. };
  179. cp0_uart1_pins: uart1-pins {
  180. marvell,pins = "mpp40", "mpp41";
  181. marvell,function = "uart1";
  182. };
  183. cp0_xhci_vbus_pins: xhci0-vbus-pins {
  184. marvell,pins = "mpp47";
  185. marvell,function = "gpio";
  186. };
  187. cp0_sfp_1g_pins: sfp-1g-pins {
  188. marvell,pins = "mpp51", "mpp53", "mpp54";
  189. marvell,function = "gpio";
  190. };
  191. cp0_pcie_pins: pcie-pins {
  192. marvell,pins = "mpp52";
  193. marvell,function = "gpio";
  194. };
  195. cp0_sdhci_pins: sdhci-pins {
  196. marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
  197. "mpp60", "mpp61";
  198. marvell,function = "sdio";
  199. };
  200. cp0_sfpp1_pins: sfpp1-pins {
  201. marvell,pins = "mpp62";
  202. marvell,function = "gpio";
  203. };
  204. };
  205. &cp0_xmdio {
  206. status = "okay";
  207. phy0: ethernet-phy@0 {
  208. compatible = "ethernet-phy-ieee802.3-c45";
  209. reg = <0>;
  210. sfp = <&sfp_eth0>;
  211. };
  212. phy8: ethernet-phy@8 {
  213. compatible = "ethernet-phy-ieee802.3-c45";
  214. reg = <8>;
  215. sfp = <&sfp_eth1>;
  216. };
  217. };
  218. &cp0_ethernet {
  219. status = "okay";
  220. };
  221. &cp0_eth0 {
  222. status = "okay";
  223. /* Network PHY */
  224. phy = <&phy0>;
  225. phy-mode = "10gbase-kr";
  226. /* Generic PHY, providing serdes lanes */
  227. phys = <&cp0_comphy4 0>;
  228. };
  229. &cp0_sata0 {
  230. /* CPM Lane 0 - U29 */
  231. status = "okay";
  232. };
  233. &cp0_sdhci0 {
  234. /* U6 */
  235. broken-cd;
  236. bus-width = <4>;
  237. pinctrl-names = "default";
  238. pinctrl-0 = <&cp0_sdhci_pins>;
  239. status = "okay";
  240. vqmmc-supply = <&v_3_3>;
  241. };
  242. &cp0_usb3_0 {
  243. /* J38? - USB2.0 only */
  244. status = "okay";
  245. };
  246. &cp0_usb3_1 {
  247. /* J38? - USB2.0 only */
  248. status = "okay";
  249. };
  250. &cp1_ethernet {
  251. status = "okay";
  252. };
  253. &cp1_eth0 {
  254. status = "okay";
  255. /* Network PHY */
  256. phy = <&phy8>;
  257. phy-mode = "10gbase-kr";
  258. /* Generic PHY, providing serdes lanes */
  259. phys = <&cp1_comphy4 0>;
  260. };
  261. &cp1_eth1 {
  262. /* CPS Lane 0 - J5 (Gigabit RJ45) */
  263. status = "okay";
  264. /* Network PHY */
  265. phy = <&ge_phy>;
  266. phy-mode = "sgmii";
  267. /* Generic PHY, providing serdes lanes */
  268. phys = <&cp1_comphy0 1>;
  269. };
  270. &cp1_eth2 {
  271. /* CPS Lane 5 */
  272. status = "okay";
  273. /* Network PHY */
  274. phy-mode = "2500base-x";
  275. managed = "in-band-status";
  276. /* Generic PHY, providing serdes lanes */
  277. phys = <&cp1_comphy5 2>;
  278. sfp = <&sfp_eth3>;
  279. };
  280. &cp1_pinctrl {
  281. cp1_sfpp1_pins: sfpp1-pins {
  282. marvell,pins = "mpp8", "mpp10", "mpp11";
  283. marvell,function = "gpio";
  284. };
  285. cp1_spi1_pins: spi1-pins {
  286. marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
  287. marvell,function = "spi1";
  288. };
  289. cp1_uart0_pins: uart0-pins {
  290. marvell,pins = "mpp6", "mpp7";
  291. marvell,function = "uart0";
  292. };
  293. cp1_sfp_1g_pins: sfp-1g-pins {
  294. marvell,pins = "mpp24";
  295. marvell,function = "gpio";
  296. };
  297. cp1_sfpp0_pins: sfpp0-pins {
  298. marvell,pins = "mpp26", "mpp27", "mpp28", "mpp29";
  299. marvell,function = "gpio";
  300. };
  301. };
  302. /* J27 UART header */
  303. &cp1_uart0 {
  304. pinctrl-names = "default";
  305. pinctrl-0 = <&cp1_uart0_pins>;
  306. status = "okay";
  307. };
  308. &cp1_sata0 {
  309. /* CPS Lane 1 - U32 */
  310. /* CPS Lane 3 - U31 */
  311. status = "okay";
  312. };
  313. &cp1_spi1 {
  314. pinctrl-names = "default";
  315. pinctrl-0 = <&cp1_spi1_pins>;
  316. status = "okay";
  317. spi-flash@0 {
  318. compatible = "st,w25q32";
  319. spi-max-frequency = <50000000>;
  320. reg = <0>;
  321. };
  322. };
  323. &cp1_usb3_0 {
  324. /* CPS Lane 2 - CON7 */
  325. usb-phy = <&usb3h0_phy>;
  326. status = "okay";
  327. };