armada-8040-mcbin.dtsi 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. sfp_eth0: sfp-eth0 {
  55. /* CON15,16 - CPM lane 4 */
  56. compatible = "sff,sfp";
  57. i2c-bus = <&sfpp0_i2c>;
  58. los-gpios = <&cp1_gpio1 28 GPIO_ACTIVE_HIGH>;
  59. mod-def0-gpios = <&cp1_gpio1 27 GPIO_ACTIVE_LOW>;
  60. tx-disable-gpios = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>;
  61. tx-fault-gpios = <&cp1_gpio1 26 GPIO_ACTIVE_HIGH>;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&cp1_sfpp0_pins>;
  64. maximum-power-milliwatt = <2000>;
  65. };
  66. sfp_eth1: sfp-eth1 {
  67. /* CON17,18 - CPS lane 4 */
  68. compatible = "sff,sfp";
  69. i2c-bus = <&sfpp1_i2c>;
  70. los-gpios = <&cp1_gpio1 8 GPIO_ACTIVE_HIGH>;
  71. mod-def0-gpios = <&cp1_gpio1 11 GPIO_ACTIVE_LOW>;
  72. tx-disable-gpios = <&cp1_gpio1 10 GPIO_ACTIVE_HIGH>;
  73. tx-fault-gpios = <&cp0_gpio2 30 GPIO_ACTIVE_HIGH>;
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&cp1_sfpp1_pins &cp0_sfpp1_pins>;
  76. maximum-power-milliwatt = <2000>;
  77. };
  78. sfp_eth3: sfp-eth3 {
  79. /* CON13,14 - CPS lane 5 */
  80. compatible = "sff,sfp";
  81. i2c-bus = <&sfp_1g_i2c>;
  82. los-gpios = <&cp0_gpio2 22 GPIO_ACTIVE_HIGH>;
  83. mod-def0-gpios = <&cp0_gpio2 21 GPIO_ACTIVE_LOW>;
  84. tx-disable-gpios = <&cp1_gpio1 24 GPIO_ACTIVE_HIGH>;
  85. tx-fault-gpios = <&cp0_gpio2 19 GPIO_ACTIVE_HIGH>;
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&cp0_sfp_1g_pins &cp1_sfp_1g_pins>;
  88. maximum-power-milliwatt = <2000>;
  89. };
  90. };
  91. &uart0 {
  92. status = "okay";
  93. pinctrl-0 = <&uart0_pins>;
  94. pinctrl-names = "default";
  95. };
  96. &ap_sdhci0 {
  97. bus-width = <8>;
  98. /*
  99. * Not stable in HS modes - phy needs "more calibration", so add
  100. * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
  101. */
  102. marvell,xenon-phy-slow-mode;
  103. no-1-8-v;
  104. no-sd;
  105. no-sdio;
  106. non-removable;
  107. status = "okay";
  108. vqmmc-supply = <&v_vddo_h>;
  109. };
  110. &cp0_i2c0 {
  111. clock-frequency = <100000>;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&cp0_i2c0_pins>;
  114. status = "okay";
  115. };
  116. &cp0_i2c1 {
  117. clock-frequency = <100000>;
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&cp0_i2c1_pins>;
  120. status = "okay";
  121. i2c-switch@70 {
  122. compatible = "nxp,pca9548";
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. reg = <0x70>;
  126. sfpp0_i2c: i2c@0 {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. reg = <0>;
  130. };
  131. sfpp1_i2c: i2c@1 {
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. reg = <1>;
  135. };
  136. sfp_1g_i2c: i2c@2 {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. reg = <2>;
  140. };
  141. };
  142. };
  143. /* J25 UART header */
  144. &cp0_uart1 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&cp0_uart1_pins>;
  147. status = "okay";
  148. };
  149. &cp0_mdio {
  150. pinctrl-names = "default";
  151. pinctrl-0 = <&cp0_ge_mdio_pins>;
  152. status = "okay";
  153. ge_phy: ethernet-phy@0 {
  154. reg = <0>;
  155. };
  156. };
  157. &cp0_pcie0 {
  158. pinctrl-names = "default";
  159. pinctrl-0 = <&cp0_pcie_pins>;
  160. num-lanes = <4>;
  161. num-viewport = <8>;
  162. reset-gpios = <&cp0_gpio2 20 GPIO_ACTIVE_LOW>;
  163. ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000>;
  164. phys = <&cp0_comphy0 0>, <&cp0_comphy1 0>,
  165. <&cp0_comphy2 0>, <&cp0_comphy3 0>;
  166. phy-names = "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy",
  167. "cp0-pcie0-x4-lane2-phy", "cp0-pcie0-x4-lane3-phy";
  168. status = "okay";
  169. };
  170. &cp0_pinctrl {
  171. cp0_ge_mdio_pins: ge-mdio-pins {
  172. marvell,pins = "mpp32", "mpp34";
  173. marvell,function = "ge";
  174. };
  175. cp0_i2c1_pins: i2c1-pins {
  176. marvell,pins = "mpp35", "mpp36";
  177. marvell,function = "i2c1";
  178. };
  179. cp0_i2c0_pins: i2c0-pins {
  180. marvell,pins = "mpp37", "mpp38";
  181. marvell,function = "i2c0";
  182. };
  183. cp0_uart1_pins: uart1-pins {
  184. marvell,pins = "mpp40", "mpp41";
  185. marvell,function = "uart1";
  186. };
  187. cp0_xhci_vbus_pins: xhci0-vbus-pins {
  188. marvell,pins = "mpp47";
  189. marvell,function = "gpio";
  190. };
  191. cp0_sfp_1g_pins: sfp-1g-pins {
  192. marvell,pins = "mpp51", "mpp53", "mpp54";
  193. marvell,function = "gpio";
  194. };
  195. cp0_pcie_pins: pcie-pins {
  196. marvell,pins = "mpp52";
  197. marvell,function = "gpio";
  198. };
  199. cp0_sdhci_pins: sdhci-pins {
  200. marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
  201. "mpp60", "mpp61";
  202. marvell,function = "sdio";
  203. };
  204. cp0_sfpp1_pins: sfpp1-pins {
  205. marvell,pins = "mpp62";
  206. marvell,function = "gpio";
  207. };
  208. };
  209. &cp0_ethernet {
  210. status = "okay";
  211. };
  212. &cp0_eth0 {
  213. /* Generic PHY, providing serdes lanes */
  214. phys = <&cp0_comphy4 0>;
  215. };
  216. &cp0_sata0 {
  217. status = "okay";
  218. /* CPM Lane 5 - U29 */
  219. sata-port@1 {
  220. phys = <&cp0_comphy5 1>;
  221. phy-names = "cp0-sata0-1-phy";
  222. };
  223. };
  224. &cp0_sdhci0 {
  225. /* U6 */
  226. broken-cd;
  227. bus-width = <4>;
  228. pinctrl-names = "default";
  229. pinctrl-0 = <&cp0_sdhci_pins>;
  230. status = "okay";
  231. vqmmc-supply = <&v_3_3>;
  232. };
  233. &cp0_utmi {
  234. status = "okay";
  235. };
  236. &cp0_usb3_0 {
  237. /* J38? - USB2.0 only */
  238. phys = <&cp0_utmi0>;
  239. phy-names = "utmi";
  240. dr_mode = "host";
  241. status = "okay";
  242. };
  243. &cp0_usb3_1 {
  244. /* J38? - USB2.0 only */
  245. phys = <&cp0_utmi1>;
  246. phy-names = "utmi";
  247. dr_mode = "host";
  248. status = "okay";
  249. };
  250. &cp1_ethernet {
  251. status = "okay";
  252. };
  253. &cp1_eth0 {
  254. /* Generic PHY, providing serdes lanes */
  255. phys = <&cp1_comphy4 0>;
  256. };
  257. &cp1_eth1 {
  258. /* CPS Lane 0 - J5 (Gigabit RJ45) */
  259. status = "okay";
  260. /* Network PHY */
  261. phy = <&ge_phy>;
  262. phy-mode = "sgmii";
  263. /* Generic PHY, providing serdes lanes */
  264. phys = <&cp1_comphy0 1>;
  265. };
  266. &cp1_eth2 {
  267. /* CPS Lane 5 */
  268. status = "okay";
  269. /* Network PHY */
  270. phy-mode = "2500base-x";
  271. managed = "in-band-status";
  272. /* Generic PHY, providing serdes lanes */
  273. phys = <&cp1_comphy5 2>;
  274. sfp = <&sfp_eth3>;
  275. };
  276. &cp1_pinctrl {
  277. cp1_sfpp1_pins: sfpp1-pins {
  278. marvell,pins = "mpp8", "mpp10", "mpp11";
  279. marvell,function = "gpio";
  280. };
  281. cp1_spi1_pins: spi1-pins {
  282. marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
  283. marvell,function = "spi1";
  284. };
  285. cp1_uart0_pins: uart0-pins {
  286. marvell,pins = "mpp6", "mpp7";
  287. marvell,function = "uart0";
  288. };
  289. cp1_sfp_1g_pins: sfp-1g-pins {
  290. marvell,pins = "mpp24";
  291. marvell,function = "gpio";
  292. };
  293. cp1_sfpp0_pins: sfpp0-pins {
  294. marvell,pins = "mpp26", "mpp27", "mpp28", "mpp29";
  295. marvell,function = "gpio";
  296. };
  297. };
  298. /* J27 UART header */
  299. &cp1_uart0 {
  300. pinctrl-names = "default";
  301. pinctrl-0 = <&cp1_uart0_pins>;
  302. status = "okay";
  303. };
  304. &cp1_sata0 {
  305. status = "okay";
  306. /* CPS Lane 1 - U32 */
  307. sata-port@0 {
  308. phys = <&cp1_comphy1 0>;
  309. phy-names = "cp1-sata0-0-phy";
  310. };
  311. /* CPS Lane 3 - U31 */
  312. sata-port@1 {
  313. phys = <&cp1_comphy3 1>;
  314. phy-names = "cp1-sata0-1-phy";
  315. };
  316. };
  317. &cp1_spi1 {
  318. pinctrl-names = "default";
  319. pinctrl-0 = <&cp1_spi1_pins>;
  320. status = "okay";
  321. flash@0 {
  322. compatible = "st,w25q32";
  323. spi-max-frequency = <50000000>;
  324. reg = <0>;
  325. };
  326. };
  327. &cp1_comphy2 {
  328. cp1_usbh0_con: connector {
  329. compatible = "usb-a-connector";
  330. phy-supply = <&v_5v0_usb3_hst_vbus>;
  331. };
  332. };
  333. &cp1_utmi {
  334. status = "okay";
  335. };
  336. &cp1_usb3_0 {
  337. /* CPS Lane 2 - CON7 */
  338. phys = <&cp1_comphy2 0>, <&cp1_utmi0>;
  339. phy-names = "cp1-usb3h0-comphy", "utmi";
  340. dr_mode = "host";
  341. status = "okay";
  342. };