am57xx-idk-common.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. /*
  2. * Copyright (C) 2015-2016 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. #include "am57xx-industrial-grade.dtsi"
  9. / {
  10. aliases {
  11. rtc0 = &tps659038_rtc;
  12. rtc1 = &rtc;
  13. };
  14. vmain: fixedregulator-vmain {
  15. compatible = "regulator-fixed";
  16. regulator-name = "VMAIN";
  17. regulator-min-microvolt = <5000000>;
  18. regulator-max-microvolt = <5000000>;
  19. regulator-always-on;
  20. regulator-boot-on;
  21. };
  22. v3_3d: fixedregulator-v3_3d {
  23. compatible = "regulator-fixed";
  24. regulator-name = "V3_3D";
  25. vin-supply = <&smps9_reg>;
  26. regulator-min-microvolt = <3300000>;
  27. regulator-max-microvolt = <3300000>;
  28. regulator-always-on;
  29. regulator-boot-on;
  30. };
  31. vtt_fixed: fixedregulator-vtt {
  32. /* TPS51200 */
  33. compatible = "regulator-fixed";
  34. regulator-name = "vtt_fixed";
  35. vin-supply = <&v3_3d>;
  36. regulator-min-microvolt = <3300000>;
  37. regulator-max-microvolt = <3300000>;
  38. regulator-always-on;
  39. regulator-boot-on;
  40. };
  41. };
  42. &i2c1 {
  43. status = "okay";
  44. clock-frequency = <400000>;
  45. tps659038: tps659038@58 {
  46. compatible = "ti,tps659038";
  47. reg = <0x58>;
  48. interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH
  49. &dra7_pmx_core 0x418>;
  50. #interrupt-cells = <2>;
  51. interrupt-controller;
  52. ti,system-power-controller;
  53. tps659038_pmic {
  54. compatible = "ti,tps659038-pmic";
  55. smps12-in-supply = <&vmain>;
  56. smps3-in-supply = <&vmain>;
  57. smps45-in-supply = <&vmain>;
  58. smps6-in-supply = <&vmain>;
  59. smps7-in-supply = <&vmain>;
  60. smps8-in-supply = <&vmain>;
  61. smps9-in-supply = <&vmain>;
  62. ldo1-in-supply = <&vmain>;
  63. ldo2-in-supply = <&vmain>;
  64. ldo3-in-supply = <&vmain>;
  65. ldo4-in-supply = <&vmain>;
  66. ldo9-in-supply = <&vmain>;
  67. ldoln-in-supply = <&vmain>;
  68. ldousb-in-supply = <&vmain>;
  69. ldortc-in-supply = <&vmain>;
  70. regulators {
  71. smps12_reg: smps12 {
  72. /* VDD_MPU */
  73. regulator-name = "smps12";
  74. regulator-min-microvolt = <850000>;
  75. regulator-max-microvolt = <1250000>;
  76. regulator-always-on;
  77. regulator-boot-on;
  78. };
  79. smps3_reg: smps3 {
  80. /* VDD_DDR EMIF1 EMIF2 */
  81. regulator-name = "smps3";
  82. regulator-min-microvolt = <1350000>;
  83. regulator-max-microvolt = <1350000>;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. };
  87. smps45_reg: smps45 {
  88. /* VDD_DSPEVE on AM572 */
  89. /* VDD_IVA + VDD_DSP on AM571 */
  90. regulator-name = "smps45";
  91. regulator-min-microvolt = <850000>;
  92. regulator-max-microvolt = <1250000>;
  93. regulator-always-on;
  94. regulator-boot-on;
  95. };
  96. smps6_reg: smps6 {
  97. /* VDD_GPU */
  98. regulator-name = "smps6";
  99. regulator-min-microvolt = <850000>;
  100. regulator-max-microvolt = <1250000>;
  101. regulator-always-on;
  102. regulator-boot-on;
  103. };
  104. smps7_reg: smps7 {
  105. /* VDD_CORE */
  106. regulator-name = "smps7";
  107. regulator-min-microvolt = <850000>;
  108. regulator-max-microvolt = <1150000>;
  109. regulator-always-on;
  110. regulator-boot-on;
  111. };
  112. smps8_reg: smps8 {
  113. /* 5728 - VDD_IVAHD */
  114. /* 5718 - N.C. test point */
  115. regulator-name = "smps8";
  116. };
  117. smps9_reg: smps9 {
  118. /* VDD_3_3D */
  119. regulator-name = "smps9";
  120. regulator-min-microvolt = <3300000>;
  121. regulator-max-microvolt = <3300000>;
  122. regulator-always-on;
  123. regulator-boot-on;
  124. };
  125. ldo1_reg: ldo1 {
  126. /* VDDSHV8 - VSDMMC */
  127. /* NOTE: on rev 1.3a, data supply */
  128. regulator-name = "ldo1";
  129. regulator-min-microvolt = <1800000>;
  130. regulator-max-microvolt = <3300000>;
  131. regulator-boot-on;
  132. regulator-always-on;
  133. };
  134. ldo2_reg: ldo2 {
  135. /* VDDSH18V */
  136. regulator-name = "ldo2";
  137. regulator-min-microvolt = <1800000>;
  138. regulator-max-microvolt = <1800000>;
  139. regulator-always-on;
  140. regulator-boot-on;
  141. };
  142. ldo3_reg: ldo3 {
  143. /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
  144. regulator-name = "ldo3";
  145. regulator-min-microvolt = <1800000>;
  146. regulator-max-microvolt = <1800000>;
  147. regulator-always-on;
  148. regulator-boot-on;
  149. };
  150. ldo4_reg: ldo4 {
  151. /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
  152. regulator-name = "ldo4";
  153. regulator-min-microvolt = <1800000>;
  154. regulator-max-microvolt = <1800000>;
  155. regulator-always-on;
  156. regulator-boot-on;
  157. };
  158. /* LDO5-8 unused */
  159. ldo9_reg: ldo9 {
  160. /* VDD_RTC */
  161. regulator-name = "ldo9";
  162. regulator-min-microvolt = <840000>;
  163. regulator-max-microvolt = <1160000>;
  164. regulator-always-on;
  165. regulator-boot-on;
  166. };
  167. ldoln_reg: ldoln {
  168. /* VDDA_1V8_PLL */
  169. regulator-name = "ldoln";
  170. regulator-min-microvolt = <1800000>;
  171. regulator-max-microvolt = <1800000>;
  172. regulator-always-on;
  173. regulator-boot-on;
  174. };
  175. ldousb_reg: ldousb {
  176. /* VDDA_3V_USB: VDDA_USBHS33 */
  177. regulator-name = "ldousb";
  178. regulator-min-microvolt = <3300000>;
  179. regulator-max-microvolt = <3300000>;
  180. regulator-always-on;
  181. regulator-boot-on;
  182. };
  183. ldortc_reg: ldortc {
  184. /* VDDA_RTC */
  185. regulator-name = "ldortc";
  186. regulator-min-microvolt = <1800000>;
  187. regulator-max-microvolt = <1800000>;
  188. regulator-always-on;
  189. regulator-boot-on;
  190. };
  191. regen1: regen1 {
  192. /* VDD_3V3_ON */
  193. regulator-name = "regen1";
  194. regulator-boot-on;
  195. regulator-always-on;
  196. };
  197. regen2: regen2 {
  198. /* Needed for PMIC internal resource */
  199. regulator-name = "regen2";
  200. regulator-boot-on;
  201. regulator-always-on;
  202. };
  203. };
  204. };
  205. tps659038_rtc: tps659038_rtc {
  206. compatible = "ti,palmas-rtc";
  207. interrupt-parent = <&tps659038>;
  208. interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
  209. wakeup-source;
  210. };
  211. tps659038_pwr_button: tps659038_pwr_button {
  212. compatible = "ti,palmas-pwrbutton";
  213. interrupt-parent = <&tps659038>;
  214. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  215. wakeup-source;
  216. ti,palmas-long-press-seconds = <12>;
  217. };
  218. tps659038_gpio: tps659038_gpio {
  219. compatible = "ti,palmas-gpio";
  220. gpio-controller;
  221. #gpio-cells = <2>;
  222. };
  223. };
  224. };
  225. &uart3 {
  226. status = "okay";
  227. interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
  228. &dra7_pmx_core 0x248>;
  229. };
  230. &rtc {
  231. status = "okay";
  232. ext-clk-src;
  233. };
  234. &mac {
  235. status = "okay";
  236. dual_emac;
  237. };
  238. &cpsw_emac0 {
  239. phy_id = <&davinci_mdio>, <0>;
  240. phy-mode = "rgmii";
  241. dual_emac_res_vlan = <1>;
  242. };
  243. &cpsw_emac1 {
  244. phy_id = <&davinci_mdio>, <1>;
  245. phy-mode = "rgmii";
  246. dual_emac_res_vlan = <2>;
  247. };
  248. &usb2_phy1 {
  249. phy-supply = <&ldousb_reg>;
  250. };
  251. &usb2_phy2 {
  252. phy-supply = <&ldousb_reg>;
  253. };
  254. &usb1 {
  255. dr_mode = "host";
  256. };
  257. &usb2 {
  258. dr_mode = "otg";
  259. };
  260. &mmc2 {
  261. status = "okay";
  262. vmmc-supply = <&v3_3d>;
  263. bus-width = <8>;
  264. ti,non-removable;
  265. max-frequency = <96000000>;
  266. };