armada-388-gp.dts 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Device Tree file for Marvell Armada 385 development board
  4. * (RD-88F6820-GP)
  5. *
  6. * Copyright (C) 2014 Marvell
  7. *
  8. * Gregory CLEMENT <[email protected]>
  9. */
  10. /dts-v1/;
  11. #include "armada-388.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. / {
  14. model = "Marvell Armada 388 DB-88F6820-GP";
  15. compatible = "marvell,a388-gp", "marvell,armada388", "marvell,armada380";
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x00000000 0x80000000>; /* 2 GB */
  22. };
  23. soc {
  24. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  25. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  26. MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
  27. MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
  28. MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
  29. internal-regs {
  30. i2c@11000 {
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&i2c0_pins>;
  33. status = "okay";
  34. clock-frequency = <100000>;
  35. expander0: pca9555@20 {
  36. compatible = "nxp,pca9555";
  37. pinctrl-names = "default";
  38. pinctrl-0 = <&pca0_pins>;
  39. interrupt-parent = <&gpio0>;
  40. interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
  41. gpio-controller;
  42. #gpio-cells = <2>;
  43. interrupt-controller;
  44. #interrupt-cells = <2>;
  45. reg = <0x20>;
  46. };
  47. expander1: pca9555@21 {
  48. compatible = "nxp,pca9555";
  49. pinctrl-names = "default";
  50. interrupt-parent = <&gpio0>;
  51. interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
  52. gpio-controller;
  53. #gpio-cells = <2>;
  54. interrupt-controller;
  55. #interrupt-cells = <2>;
  56. reg = <0x21>;
  57. };
  58. eeprom@57 {
  59. compatible = "atmel,24c64";
  60. reg = <0x57>;
  61. };
  62. };
  63. serial@12000 {
  64. /*
  65. * Exported on the micro USB connector CON16
  66. * through an FTDI
  67. */
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&uart0_pins>;
  70. status = "okay";
  71. };
  72. /* GE1 CON15 */
  73. ethernet@30000 {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&ge1_rgmii_pins>;
  76. status = "okay";
  77. phy = <&phy1>;
  78. phy-mode = "rgmii-id";
  79. buffer-manager = <&bm>;
  80. bm,pool-long = <2>;
  81. bm,pool-short = <3>;
  82. };
  83. /* CON4 */
  84. usb@58000 {
  85. vcc-supply = <&reg_usb2_0_vbus>;
  86. status = "okay";
  87. };
  88. /* GE0 CON1 */
  89. ethernet@70000 {
  90. pinctrl-names = "default";
  91. /*
  92. * The Reference Clock 0 is used to provide a
  93. * clock to the PHY
  94. */
  95. pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>;
  96. status = "okay";
  97. phy = <&phy0>;
  98. phy-mode = "rgmii-id";
  99. buffer-manager = <&bm>;
  100. bm,pool-long = <0>;
  101. bm,pool-short = <1>;
  102. };
  103. mdio@72004 {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&mdio_pins>;
  106. phy0: ethernet-phy@1 {
  107. reg = <1>;
  108. };
  109. phy1: ethernet-phy@0 {
  110. reg = <0>;
  111. };
  112. };
  113. sata@a8000 {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&sata0_pins>, <&sata1_pins>;
  116. status = "okay";
  117. #address-cells = <1>;
  118. #size-cells = <0>;
  119. sata0: sata-port@0 {
  120. reg = <0>;
  121. target-supply = <&reg_5v_sata0>;
  122. };
  123. sata1: sata-port@1 {
  124. reg = <1>;
  125. target-supply = <&reg_5v_sata1>;
  126. };
  127. };
  128. bm@c8000 {
  129. status = "okay";
  130. };
  131. sata@e0000 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&sata2_pins>, <&sata3_pins>;
  134. status = "okay";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. sata2: sata-port@0 {
  138. reg = <0>;
  139. target-supply = <&reg_5v_sata2>;
  140. };
  141. sata3: sata-port@1 {
  142. reg = <1>;
  143. target-supply = <&reg_5v_sata3>;
  144. };
  145. };
  146. sdhci@d8000 {
  147. pinctrl-names = "default";
  148. pinctrl-0 = <&sdhci_pins>;
  149. no-1-8-v;
  150. /*
  151. * A388-GP board v1.5 and higher replace
  152. * hitherto card detection method based on GPIO
  153. * with the one using DAT3 pin. As they are
  154. * incompatible, software-based polling is
  155. * enabled with 'broken-cd' property. For boards
  156. * older than v1.5 it can be replaced with:
  157. * 'cd-gpios = <&expander0 5 GPIO_ACTIVE_LOW>;',
  158. * whereas for the newer ones following can be
  159. * used instead:
  160. * 'dat3-cd;'
  161. * 'cd-inverted;'
  162. */
  163. broken-cd;
  164. wp-inverted;
  165. bus-width = <8>;
  166. status = "okay";
  167. };
  168. /* CON5 */
  169. usb3@f0000 {
  170. usb-phy = <&usb2_1_phy>;
  171. status = "okay";
  172. };
  173. /* CON7 */
  174. usb3@f8000 {
  175. usb-phy = <&usb3_phy>;
  176. status = "okay";
  177. };
  178. };
  179. bm-bppi {
  180. status = "okay";
  181. };
  182. pcie {
  183. status = "okay";
  184. /*
  185. * One PCIe units is accessible through
  186. * standard PCIe slot on the board.
  187. */
  188. pcie@1,0 {
  189. /* Port 0, Lane 0 */
  190. status = "okay";
  191. };
  192. /*
  193. * The two other PCIe units are accessible
  194. * through mini PCIe slot on the board.
  195. */
  196. pcie@2,0 {
  197. /* Port 1, Lane 0 */
  198. status = "okay";
  199. };
  200. pcie@3,0 {
  201. /* Port 2, Lane 0 */
  202. status = "okay";
  203. };
  204. };
  205. gpio-fan {
  206. compatible = "gpio-fan";
  207. gpios = <&expander1 3 GPIO_ACTIVE_HIGH>;
  208. gpio-fan,speed-map = < 0 0
  209. 3000 1>;
  210. };
  211. };
  212. usb2_1_phy: usb2_1_phy {
  213. compatible = "usb-nop-xceiv";
  214. vcc-supply = <&reg_usb2_1_vbus>;
  215. #phy-cells = <0>;
  216. };
  217. usb3_phy: usb3_phy {
  218. compatible = "usb-nop-xceiv";
  219. vcc-supply = <&reg_usb3_vbus>;
  220. #phy-cells = <0>;
  221. };
  222. reg_usb3_vbus: usb3-vbus {
  223. compatible = "regulator-fixed";
  224. regulator-name = "usb3-vbus";
  225. regulator-min-microvolt = <5000000>;
  226. regulator-max-microvolt = <5000000>;
  227. enable-active-high;
  228. gpio = <&expander1 15 GPIO_ACTIVE_HIGH>;
  229. };
  230. reg_usb2_0_vbus: v5-vbus0 {
  231. compatible = "regulator-fixed";
  232. regulator-name = "v5.0-vbus0";
  233. regulator-min-microvolt = <5000000>;
  234. regulator-max-microvolt = <5000000>;
  235. enable-active-high;
  236. regulator-always-on;
  237. gpio = <&expander1 14 GPIO_ACTIVE_HIGH>;
  238. };
  239. reg_usb2_1_vbus: v5-vbus1 {
  240. compatible = "regulator-fixed";
  241. regulator-name = "v5.0-vbus1";
  242. regulator-min-microvolt = <5000000>;
  243. regulator-max-microvolt = <5000000>;
  244. enable-active-high;
  245. gpio = <&expander0 4 GPIO_ACTIVE_HIGH>;
  246. };
  247. reg_sata0: pwr-sata0 {
  248. compatible = "regulator-fixed";
  249. regulator-name = "pwr_en_sata0";
  250. regulator-min-microvolt = <12000000>;
  251. regulator-max-microvolt = <12000000>;
  252. enable-active-high;
  253. regulator-boot-on;
  254. gpio = <&expander0 2 GPIO_ACTIVE_HIGH>;
  255. };
  256. reg_5v_sata0: v5-sata0 {
  257. compatible = "regulator-fixed";
  258. regulator-name = "v5.0-sata0";
  259. regulator-min-microvolt = <5000000>;
  260. regulator-max-microvolt = <5000000>;
  261. vin-supply = <&reg_sata0>;
  262. };
  263. reg_12v_sata0: v12-sata0 {
  264. compatible = "regulator-fixed";
  265. regulator-name = "v12.0-sata0";
  266. regulator-min-microvolt = <12000000>;
  267. regulator-max-microvolt = <12000000>;
  268. vin-supply = <&reg_sata0>;
  269. };
  270. reg_sata1: pwr-sata1 {
  271. regulator-name = "pwr_en_sata1";
  272. compatible = "regulator-fixed";
  273. regulator-min-microvolt = <12000000>;
  274. regulator-max-microvolt = <12000000>;
  275. enable-active-high;
  276. regulator-boot-on;
  277. gpio = <&expander0 3 GPIO_ACTIVE_HIGH>;
  278. };
  279. reg_5v_sata1: v5-sata1 {
  280. compatible = "regulator-fixed";
  281. regulator-name = "v5.0-sata1";
  282. regulator-min-microvolt = <5000000>;
  283. regulator-max-microvolt = <5000000>;
  284. vin-supply = <&reg_sata1>;
  285. };
  286. reg_12v_sata1: v12-sata1 {
  287. compatible = "regulator-fixed";
  288. regulator-name = "v12.0-sata1";
  289. regulator-min-microvolt = <12000000>;
  290. regulator-max-microvolt = <12000000>;
  291. vin-supply = <&reg_sata1>;
  292. };
  293. reg_sata2: pwr-sata2 {
  294. compatible = "regulator-fixed";
  295. regulator-name = "pwr_en_sata2";
  296. enable-active-high;
  297. regulator-boot-on;
  298. gpio = <&expander0 11 GPIO_ACTIVE_HIGH>;
  299. };
  300. reg_5v_sata2: v5-sata2 {
  301. compatible = "regulator-fixed";
  302. regulator-name = "v5.0-sata2";
  303. regulator-min-microvolt = <5000000>;
  304. regulator-max-microvolt = <5000000>;
  305. vin-supply = <&reg_sata2>;
  306. };
  307. reg_12v_sata2: v12-sata2 {
  308. compatible = "regulator-fixed";
  309. regulator-name = "v12.0-sata2";
  310. regulator-min-microvolt = <12000000>;
  311. regulator-max-microvolt = <12000000>;
  312. vin-supply = <&reg_sata2>;
  313. };
  314. reg_sata3: pwr-sata3 {
  315. compatible = "regulator-fixed";
  316. regulator-name = "pwr_en_sata3";
  317. enable-active-high;
  318. regulator-boot-on;
  319. gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
  320. };
  321. reg_5v_sata3: v5-sata3 {
  322. compatible = "regulator-fixed";
  323. regulator-name = "v5.0-sata3";
  324. regulator-min-microvolt = <5000000>;
  325. regulator-max-microvolt = <5000000>;
  326. vin-supply = <&reg_sata3>;
  327. };
  328. reg_12v_sata3: v12-sata3 {
  329. compatible = "regulator-fixed";
  330. regulator-name = "v12.0-sata3";
  331. regulator-min-microvolt = <12000000>;
  332. regulator-max-microvolt = <12000000>;
  333. vin-supply = <&reg_sata3>;
  334. };
  335. };
  336. &pinctrl {
  337. pca0_pins: pca0_pins {
  338. marvell,pins = "mpp18";
  339. marvell,function = "gpio";
  340. };
  341. };
  342. &spi0 {
  343. pinctrl-names = "default";
  344. pinctrl-0 = <&spi0_pins>;
  345. status = "okay";
  346. flash@0 {
  347. #address-cells = <1>;
  348. #size-cells = <1>;
  349. compatible = "st,m25p128", "jedec,spi-nor";
  350. reg = <0>; /* Chip select 0 */
  351. spi-max-frequency = <50000000>;
  352. m25p,fast-read;
  353. };
  354. };