dra76-evm.dts 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. /*
  2. * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. #include "dra76x.dtsi"
  10. #include "dra7-evm-common.dtsi"
  11. #include "dra76x-mmc-iodelay.dtsi"
  12. #include <dt-bindings/net/ti-dp83867.h>
  13. / {
  14. model = "TI DRA762 EVM";
  15. compatible = "ti,dra76-evm", "ti,dra76", "ti,dra7";
  16. memory@0 {
  17. device_type = "memory";
  18. reg = <0x0 0x80000000 0x0 0x80000000>;
  19. };
  20. vsys_12v0: fixedregulator-vsys12v0 {
  21. /* main supply */
  22. compatible = "regulator-fixed";
  23. regulator-name = "vsys_12v0";
  24. regulator-min-microvolt = <12000000>;
  25. regulator-max-microvolt = <12000000>;
  26. regulator-always-on;
  27. regulator-boot-on;
  28. };
  29. vsys_5v0: fixedregulator-vsys5v0 {
  30. /* Output of Cntlr B of TPS43351-Q1 on dra76-evm */
  31. compatible = "regulator-fixed";
  32. regulator-name = "vsys_5v0";
  33. regulator-min-microvolt = <5000000>;
  34. regulator-max-microvolt = <5000000>;
  35. vin-supply = <&vsys_12v0>;
  36. regulator-always-on;
  37. regulator-boot-on;
  38. };
  39. vsys_3v3: fixedregulator-vsys3v3 {
  40. /* Output of Cntlr A of TPS43351-Q1 on dra76-evm */
  41. compatible = "regulator-fixed";
  42. regulator-name = "vsys_3v3";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. vin-supply = <&vsys_12v0>;
  46. regulator-always-on;
  47. regulator-boot-on;
  48. };
  49. vio_3v3: fixedregulator-vio_3v3 {
  50. compatible = "regulator-fixed";
  51. regulator-name = "vio_3v3";
  52. regulator-min-microvolt = <3300000>;
  53. regulator-max-microvolt = <3300000>;
  54. vin-supply = <&vsys_3v3>;
  55. regulator-always-on;
  56. regulator-boot-on;
  57. };
  58. vio_3v3_sd: fixedregulator-sd {
  59. compatible = "regulator-fixed";
  60. regulator-name = "vio_3v3_sd";
  61. regulator-min-microvolt = <3300000>;
  62. regulator-max-microvolt = <3300000>;
  63. vin-supply = <&vio_3v3>;
  64. enable-active-high;
  65. gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
  66. };
  67. vio_1v8: fixedregulator-vio_1v8 {
  68. compatible = "regulator-fixed";
  69. regulator-name = "vio_1v8";
  70. regulator-min-microvolt = <1800000>;
  71. regulator-max-microvolt = <1800000>;
  72. vin-supply = <&smps5_reg>;
  73. };
  74. vtt_fixed: fixedregulator-vtt {
  75. compatible = "regulator-fixed";
  76. regulator-name = "vtt_fixed";
  77. regulator-min-microvolt = <1350000>;
  78. regulator-max-microvolt = <1350000>;
  79. vin-supply = <&vsys_3v3>;
  80. regulator-always-on;
  81. regulator-boot-on;
  82. };
  83. aic_dvdd: fixedregulator-aic_dvdd {
  84. /* TPS77018DBVT */
  85. compatible = "regulator-fixed";
  86. regulator-name = "aic_dvdd";
  87. vin-supply = <&vio_3v3>;
  88. regulator-min-microvolt = <1800000>;
  89. regulator-max-microvolt = <1800000>;
  90. };
  91. };
  92. &i2c1 {
  93. status = "okay";
  94. clock-frequency = <400000>;
  95. tps65917: tps65917@58 {
  96. compatible = "ti,tps65917";
  97. reg = <0x58>;
  98. ti,system-power-controller;
  99. interrupt-controller;
  100. #interrupt-cells = <2>;
  101. tps65917_pmic {
  102. compatible = "ti,tps65917-pmic";
  103. smps12-in-supply = <&vsys_3v3>;
  104. smps3-in-supply = <&vsys_3v3>;
  105. smps4-in-supply = <&vsys_3v3>;
  106. smps5-in-supply = <&vsys_3v3>;
  107. ldo1-in-supply = <&vsys_3v3>;
  108. ldo2-in-supply = <&vsys_3v3>;
  109. ldo3-in-supply = <&vsys_5v0>;
  110. ldo4-in-supply = <&vsys_5v0>;
  111. ldo5-in-supply = <&vsys_3v3>;
  112. tps65917_regulators: regulators {
  113. smps12_reg: smps12 {
  114. /* VDD_DSPEVE */
  115. regulator-name = "smps12";
  116. regulator-min-microvolt = <850000>;
  117. regulator-max-microvolt = <1250000>;
  118. regulator-always-on;
  119. regulator-boot-on;
  120. };
  121. smps3_reg: smps3 {
  122. /* VDD_CORE */
  123. regulator-name = "smps3";
  124. regulator-min-microvolt = <850000>;
  125. regulator-max-microvolt = <1250000>;
  126. regulator-boot-on;
  127. regulator-always-on;
  128. };
  129. smps4_reg: smps4 {
  130. /* VDD_IVA */
  131. regulator-name = "smps4";
  132. regulator-min-microvolt = <850000>;
  133. regulator-max-microvolt = <1250000>;
  134. regulator-always-on;
  135. regulator-boot-on;
  136. };
  137. smps5_reg: smps5 {
  138. /* VDDS1V8 */
  139. regulator-name = "smps5";
  140. regulator-min-microvolt = <1800000>;
  141. regulator-max-microvolt = <1800000>;
  142. regulator-boot-on;
  143. regulator-always-on;
  144. };
  145. ldo1_reg: ldo1 {
  146. /* LDO1_OUT --> VDA_PHY1_1V8 */
  147. regulator-name = "ldo1";
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. regulator-always-on;
  151. regulator-boot-on;
  152. regulator-allow-bypass;
  153. };
  154. ldo2_reg: ldo2 {
  155. /* LDO2_OUT --> VDA_PHY2_1V8 */
  156. regulator-name = "ldo2";
  157. regulator-min-microvolt = <1800000>;
  158. regulator-max-microvolt = <1800000>;
  159. regulator-allow-bypass;
  160. regulator-always-on;
  161. };
  162. ldo3_reg: ldo3 {
  163. /* VDA_USB_3V3 */
  164. regulator-name = "ldo3";
  165. regulator-min-microvolt = <3300000>;
  166. regulator-max-microvolt = <3300000>;
  167. regulator-boot-on;
  168. regulator-always-on;
  169. };
  170. ldo5_reg: ldo5 {
  171. /* VDDA_1V8_PLL */
  172. regulator-name = "ldo5";
  173. regulator-min-microvolt = <1800000>;
  174. regulator-max-microvolt = <1800000>;
  175. regulator-always-on;
  176. regulator-boot-on;
  177. };
  178. ldo4_reg: ldo4 {
  179. /* VDD_SDIO_DV */
  180. regulator-name = "ldo4";
  181. regulator-min-microvolt = <1800000>;
  182. regulator-max-microvolt = <3300000>;
  183. regulator-boot-on;
  184. regulator-always-on;
  185. };
  186. };
  187. };
  188. tps65917_power_button {
  189. compatible = "ti,palmas-pwrbutton";
  190. interrupt-parent = <&tps65917>;
  191. interrupts = <1 IRQ_TYPE_NONE>;
  192. wakeup-source;
  193. ti,palmas-long-press-seconds = <6>;
  194. };
  195. };
  196. lp87565: lp87565@60 {
  197. compatible = "ti,lp87565-q1";
  198. reg = <0x60>;
  199. buck10-in-supply =<&vsys_3v3>;
  200. buck23-in-supply =<&vsys_3v3>;
  201. regulators: regulators {
  202. buck10_reg: buck10 {
  203. /*VDD_MPU*/
  204. regulator-name = "buck10";
  205. regulator-min-microvolt = <850000>;
  206. regulator-max-microvolt = <1250000>;
  207. regulator-always-on;
  208. regulator-boot-on;
  209. };
  210. buck23_reg: buck23 {
  211. /* VDD_GPU*/
  212. regulator-name = "buck23";
  213. regulator-min-microvolt = <850000>;
  214. regulator-max-microvolt = <1250000>;
  215. regulator-boot-on;
  216. regulator-always-on;
  217. };
  218. };
  219. };
  220. pcf_lcd: pcf8757@20 {
  221. compatible = "ti,pcf8575", "nxp,pcf8575";
  222. reg = <0x20>;
  223. gpio-controller;
  224. #gpio-cells = <2>;
  225. interrupt-controller;
  226. #interrupt-cells = <2>;
  227. interrupt-parent = <&gpio6>;
  228. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  229. };
  230. pcf_gpio_21: pcf8757@21 {
  231. compatible = "ti,pcf8575", "nxp,pcf8575";
  232. reg = <0x21>;
  233. gpio-controller;
  234. #gpio-cells = <2>;
  235. interrupt-parent = <&gpio6>;
  236. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  237. interrupt-controller;
  238. #interrupt-cells = <2>;
  239. };
  240. pcf_hdmi: pcf8575@26 {
  241. compatible = "ti,pcf8575", "nxp,pcf8575";
  242. reg = <0x26>;
  243. gpio-controller;
  244. #gpio-cells = <2>;
  245. p1 {
  246. /* vin6_sel_s0: high: VIN6, low: audio */
  247. gpio-hog;
  248. gpios = <1 GPIO_ACTIVE_HIGH>;
  249. output-low;
  250. line-name = "vin6_sel_s0";
  251. };
  252. };
  253. tlv320aic3106: tlv320aic3106@19 {
  254. #sound-dai-cells = <0>;
  255. compatible = "ti,tlv320aic3106";
  256. reg = <0x19>;
  257. adc-settle-ms = <40>;
  258. ai3x-micbias-vg = <1>; /* 2.0V */
  259. status = "okay";
  260. /* Regulators */
  261. AVDD-supply = <&vio_3v3>;
  262. IOVDD-supply = <&vio_3v3>;
  263. DRVDD-supply = <&vio_3v3>;
  264. DVDD-supply = <&aic_dvdd>;
  265. };
  266. };
  267. &cpu0 {
  268. vdd-supply = <&buck10_reg>;
  269. };
  270. &mmc1 {
  271. status = "okay";
  272. vmmc-supply = <&vio_3v3_sd>;
  273. vmmc_aux-supply = <&ldo4_reg>;
  274. bus-width = <4>;
  275. /*
  276. * SDCD signal is not being used here - using the fact that GPIO mode
  277. * is always hardwired.
  278. */
  279. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
  280. pinctrl-names = "default", "hs";
  281. pinctrl-0 = <&mmc1_pins_default>;
  282. pinctrl-1 = <&mmc1_pins_hs>;
  283. };
  284. &mmc2 {
  285. status = "okay";
  286. vmmc-supply = <&vio_1v8>;
  287. bus-width = <8>;
  288. pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
  289. pinctrl-0 = <&mmc2_pins_default>;
  290. pinctrl-1 = <&mmc2_pins_hs>;
  291. pinctrl-2 = <&mmc2_pins_ddr>;
  292. pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_conf>;
  293. };
  294. /* No RTC on this device */
  295. &rtc {
  296. status = "disabled";
  297. };
  298. &mac {
  299. status = "okay";
  300. dual_emac;
  301. };
  302. &cpsw_emac0 {
  303. phy-handle = <&dp83867_0>;
  304. phy-mode = "rgmii-id";
  305. dual_emac_res_vlan = <1>;
  306. };
  307. &cpsw_emac1 {
  308. phy-handle = <&dp83867_1>;
  309. phy-mode = "rgmii-id";
  310. dual_emac_res_vlan = <2>;
  311. };
  312. &davinci_mdio {
  313. dp83867_0: ethernet-phy@2 {
  314. reg = <2>;
  315. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
  316. ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
  317. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
  318. ti,min-output-impedance;
  319. };
  320. dp83867_1: ethernet-phy@3 {
  321. reg = <3>;
  322. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
  323. ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
  324. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
  325. ti,min-output-impedance;
  326. };
  327. };
  328. &usb2_phy1 {
  329. phy-supply = <&ldo3_reg>;
  330. };
  331. &usb2_phy2 {
  332. phy-supply = <&ldo3_reg>;
  333. };
  334. &qspi {
  335. spi-max-frequency = <96000000>;
  336. m25p80@0 {
  337. spi-max-frequency = <96000000>;
  338. };
  339. };