am57xx-idk-common.dtsi 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. chosen {
  15. stdout-path = &uart3;
  16. };
  17. vmain: fixedregulator-vmain {
  18. compatible = "regulator-fixed";
  19. regulator-name = "VMAIN";
  20. regulator-min-microvolt = <5000000>;
  21. regulator-max-microvolt = <5000000>;
  22. regulator-always-on;
  23. regulator-boot-on;
  24. };
  25. v3_3d: fixedregulator-v3_3d {
  26. compatible = "regulator-fixed";
  27. regulator-name = "V3_3D";
  28. vin-supply = <&smps9_reg>;
  29. regulator-min-microvolt = <3300000>;
  30. regulator-max-microvolt = <3300000>;
  31. regulator-always-on;
  32. regulator-boot-on;
  33. };
  34. vtt_fixed: fixedregulator-vtt {
  35. /* TPS51200 */
  36. compatible = "regulator-fixed";
  37. regulator-name = "vtt_fixed";
  38. vin-supply = <&v3_3d>;
  39. regulator-min-microvolt = <3300000>;
  40. regulator-max-microvolt = <3300000>;
  41. regulator-always-on;
  42. regulator-boot-on;
  43. };
  44. };
  45. &i2c1 {
  46. status = "okay";
  47. clock-frequency = <400000>;
  48. tps659038: tps659038@58 {
  49. compatible = "ti,tps659038";
  50. reg = <0x58>;
  51. interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH
  52. &dra7_pmx_core 0x418>;
  53. #interrupt-cells = <2>;
  54. interrupt-controller;
  55. ti,system-power-controller;
  56. tps659038_pmic {
  57. compatible = "ti,tps659038-pmic";
  58. smps12-in-supply = <&vmain>;
  59. smps3-in-supply = <&vmain>;
  60. smps45-in-supply = <&vmain>;
  61. smps6-in-supply = <&vmain>;
  62. smps7-in-supply = <&vmain>;
  63. smps8-in-supply = <&vmain>;
  64. smps9-in-supply = <&vmain>;
  65. ldo1-in-supply = <&vmain>;
  66. ldo2-in-supply = <&vmain>;
  67. ldo3-in-supply = <&vmain>;
  68. ldo4-in-supply = <&vmain>;
  69. ldo9-in-supply = <&vmain>;
  70. ldoln-in-supply = <&vmain>;
  71. ldousb-in-supply = <&vmain>;
  72. ldortc-in-supply = <&vmain>;
  73. regulators {
  74. smps12_reg: smps12 {
  75. /* VDD_MPU */
  76. regulator-name = "smps12";
  77. regulator-min-microvolt = <850000>;
  78. regulator-max-microvolt = <1250000>;
  79. regulator-always-on;
  80. regulator-boot-on;
  81. };
  82. smps3_reg: smps3 {
  83. /* VDD_DDR EMIF1 EMIF2 */
  84. regulator-name = "smps3";
  85. regulator-min-microvolt = <1350000>;
  86. regulator-max-microvolt = <1350000>;
  87. regulator-always-on;
  88. regulator-boot-on;
  89. };
  90. smps45_reg: smps45 {
  91. /* VDD_DSPEVE on AM572 */
  92. /* VDD_IVA + VDD_DSP on AM571 */
  93. regulator-name = "smps45";
  94. regulator-min-microvolt = <850000>;
  95. regulator-max-microvolt = <1250000>;
  96. regulator-always-on;
  97. regulator-boot-on;
  98. };
  99. smps6_reg: smps6 {
  100. /* VDD_GPU */
  101. regulator-name = "smps6";
  102. regulator-min-microvolt = <850000>;
  103. regulator-max-microvolt = <1250000>;
  104. regulator-always-on;
  105. regulator-boot-on;
  106. };
  107. smps7_reg: smps7 {
  108. /* VDD_CORE */
  109. regulator-name = "smps7";
  110. regulator-min-microvolt = <850000>;
  111. regulator-max-microvolt = <1150000>;
  112. regulator-always-on;
  113. regulator-boot-on;
  114. };
  115. smps8_reg: smps8 {
  116. /* 5728 - VDD_IVAHD */
  117. /* 5718 - N.C. test point */
  118. regulator-name = "smps8";
  119. };
  120. smps9_reg: smps9 {
  121. /* VDD_3_3D */
  122. regulator-name = "smps9";
  123. regulator-min-microvolt = <3300000>;
  124. regulator-max-microvolt = <3300000>;
  125. regulator-always-on;
  126. regulator-boot-on;
  127. };
  128. ldo1_reg: ldo1 {
  129. /* VDDSHV8 - VSDMMC */
  130. /* NOTE: on rev 1.3a, data supply */
  131. regulator-name = "ldo1";
  132. regulator-min-microvolt = <1800000>;
  133. regulator-max-microvolt = <3300000>;
  134. regulator-boot-on;
  135. regulator-always-on;
  136. };
  137. ldo2_reg: ldo2 {
  138. /* VDDSH18V */
  139. regulator-name = "ldo2";
  140. regulator-min-microvolt = <1800000>;
  141. regulator-max-microvolt = <1800000>;
  142. regulator-always-on;
  143. regulator-boot-on;
  144. };
  145. ldo3_reg: ldo3 {
  146. /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
  147. regulator-name = "ldo3";
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. regulator-always-on;
  151. regulator-boot-on;
  152. };
  153. ldo4_reg: ldo4 {
  154. /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
  155. regulator-name = "ldo4";
  156. regulator-min-microvolt = <1800000>;
  157. regulator-max-microvolt = <1800000>;
  158. regulator-always-on;
  159. regulator-boot-on;
  160. };
  161. /* LDO5-8 unused */
  162. ldo9_reg: ldo9 {
  163. /* VDD_RTC */
  164. regulator-name = "ldo9";
  165. regulator-min-microvolt = <840000>;
  166. regulator-max-microvolt = <1160000>;
  167. regulator-always-on;
  168. regulator-boot-on;
  169. };
  170. ldoln_reg: ldoln {
  171. /* VDDA_1V8_PLL */
  172. regulator-name = "ldoln";
  173. regulator-min-microvolt = <1800000>;
  174. regulator-max-microvolt = <1800000>;
  175. regulator-always-on;
  176. regulator-boot-on;
  177. };
  178. ldousb_reg: ldousb {
  179. /* VDDA_3V_USB: VDDA_USBHS33 */
  180. regulator-name = "ldousb";
  181. regulator-min-microvolt = <3300000>;
  182. regulator-max-microvolt = <3300000>;
  183. regulator-always-on;
  184. regulator-boot-on;
  185. };
  186. ldortc_reg: ldortc {
  187. /* VDDA_RTC */
  188. regulator-name = "ldortc";
  189. regulator-min-microvolt = <1800000>;
  190. regulator-max-microvolt = <1800000>;
  191. regulator-always-on;
  192. regulator-boot-on;
  193. };
  194. regen1: regen1 {
  195. /* VDD_3V3_ON */
  196. regulator-name = "regen1";
  197. regulator-boot-on;
  198. regulator-always-on;
  199. };
  200. regen2: regen2 {
  201. /* Needed for PMIC internal resource */
  202. regulator-name = "regen2";
  203. regulator-boot-on;
  204. regulator-always-on;
  205. };
  206. };
  207. };
  208. tps659038_rtc: tps659038_rtc {
  209. compatible = "ti,palmas-rtc";
  210. interrupt-parent = <&tps659038>;
  211. interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
  212. wakeup-source;
  213. };
  214. tps659038_pwr_button: tps659038_pwr_button {
  215. compatible = "ti,palmas-pwrbutton";
  216. interrupt-parent = <&tps659038>;
  217. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  218. wakeup-source;
  219. ti,palmas-long-press-seconds = <12>;
  220. };
  221. tps659038_gpio: tps659038_gpio {
  222. compatible = "ti,palmas-gpio";
  223. gpio-controller;
  224. #gpio-cells = <2>;
  225. };
  226. };
  227. };
  228. &uart3 {
  229. status = "okay";
  230. interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
  231. &dra7_pmx_core 0x248>;
  232. };
  233. &rtc {
  234. status = "okay";
  235. ext-clk-src;
  236. };
  237. &mac {
  238. status = "okay";
  239. dual_emac;
  240. };
  241. &cpsw_emac0 {
  242. phy_id = <&davinci_mdio>, <0>;
  243. phy-mode = "rgmii";
  244. dual_emac_res_vlan = <1>;
  245. };
  246. &cpsw_emac1 {
  247. phy_id = <&davinci_mdio>, <1>;
  248. phy-mode = "rgmii";
  249. dual_emac_res_vlan = <2>;
  250. };
  251. &usb2_phy1 {
  252. phy-supply = <&ldousb_reg>;
  253. };
  254. &usb2_phy2 {
  255. phy-supply = <&ldousb_reg>;
  256. };
  257. &usb1 {
  258. dr_mode = "host";
  259. };
  260. &usb2 {
  261. dr_mode = "otg";
  262. };
  263. &mmc1 {
  264. status = "okay";
  265. vmmc-supply = <&v3_3d>;
  266. vmmc_aux-supply = <&ldo1_reg>;
  267. bus-width = <4>;
  268. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
  269. /delete-property/ sd-uhs-sdr104;
  270. /delete-property/ sd-uhs-sdr50;
  271. /delete-property/ sd-uhs-ddr50;
  272. /delete-property/ sd-uhs-sdr25;
  273. /delete-property/ sd-uhs-sdr12;
  274. };
  275. &mmc2 {
  276. status = "okay";
  277. vmmc-supply = <&v3_3d>;
  278. bus-width = <8>;
  279. ti,non-removable;
  280. max-frequency = <96000000>;
  281. no-1-8-v;
  282. /delete-property/ mmc-hs200-1_8v;
  283. };
  284. &qspi {
  285. status = "okay";
  286. spi-max-frequency = <76800000>;
  287. m25p80@0 {
  288. compatible = "s25fl256s1", "spi-flash", "jedec,spi-nor";
  289. spi-max-frequency = <76800000>;
  290. reg = <0>;
  291. spi-tx-bus-width = <1>;
  292. spi-rx-bus-width = <4>;
  293. #address-cells = <1>;
  294. #size-cells = <1>;
  295. /* MTD partition table.
  296. * The ROM checks the first four physical blocks
  297. * for a valid file to boot and the flash here is
  298. * 64KiB block size.
  299. */
  300. partition@0 {
  301. label = "QSPI.SPL";
  302. reg = <0x00000000 0x000040000>;
  303. };
  304. partition@1 {
  305. label = "QSPI.u-boot";
  306. reg = <0x00040000 0x00100000>;
  307. };
  308. partition@2 {
  309. label = "QSPI.u-boot-spl-os";
  310. reg = <0x00140000 0x00080000>;
  311. };
  312. partition@3 {
  313. label = "QSPI.u-boot-env";
  314. reg = <0x001c0000 0x00010000>;
  315. };
  316. partition@4 {
  317. label = "QSPI.u-boot-env.backup1";
  318. reg = <0x001d0000 0x0010000>;
  319. };
  320. partition@5 {
  321. label = "QSPI.kernel";
  322. reg = <0x001e0000 0x0800000>;
  323. };
  324. partition@6 {
  325. label = "QSPI.file-system";
  326. reg = <0x009e0000 0x01620000>;
  327. };
  328. };
  329. };