dra7-evm.dts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. /*
  2. * Copyright (C) 2013 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 "dra74x.dtsi"
  10. #include "dra7-evm-common.dtsi"
  11. / {
  12. model = "TI DRA742";
  13. compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x80000000 0x0 0x60000000>; /* 1536 MB */
  17. };
  18. evm_3v3_sd: fixedregulator-sd {
  19. compatible = "regulator-fixed";
  20. regulator-name = "evm_3v3_sd";
  21. regulator-min-microvolt = <3300000>;
  22. regulator-max-microvolt = <3300000>;
  23. enable-active-high;
  24. gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
  25. };
  26. evm_3v3_sw: fixedregulator-evm_3v3_sw {
  27. compatible = "regulator-fixed";
  28. regulator-name = "evm_3v3_sw";
  29. vin-supply = <&sysen1>;
  30. regulator-min-microvolt = <3300000>;
  31. regulator-max-microvolt = <3300000>;
  32. };
  33. aic_dvdd: fixedregulator-aic_dvdd {
  34. /* TPS77018DBVT */
  35. compatible = "regulator-fixed";
  36. regulator-name = "aic_dvdd";
  37. vin-supply = <&evm_3v3_sw>;
  38. regulator-min-microvolt = <1800000>;
  39. regulator-max-microvolt = <1800000>;
  40. };
  41. vtt_fixed: fixedregulator-vtt {
  42. compatible = "regulator-fixed";
  43. regulator-name = "vtt_fixed";
  44. regulator-min-microvolt = <1350000>;
  45. regulator-max-microvolt = <1350000>;
  46. regulator-always-on;
  47. regulator-boot-on;
  48. enable-active-high;
  49. vin-supply = <&sysen2>;
  50. gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
  51. };
  52. };
  53. &dra7_pmx_core {
  54. mmc1_pins_default: mmc1_pins_default {
  55. pinctrl-single,pins = <
  56. DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */
  57. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
  58. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
  59. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
  60. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
  61. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
  62. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
  63. >;
  64. };
  65. mmc1_pins_sdr12: pinmux_mmc1_sdr12_pins {
  66. pinctrl-single,pins = <
  67. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
  68. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
  69. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
  70. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
  71. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
  72. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
  73. >;
  74. };
  75. mmc1_pins_hs: pinmux_mmc1_hs_pins {
  76. pinctrl-single,pins = <
  77. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_clk.clk */
  78. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_cmd.cmd */
  79. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat0.dat0 */
  80. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat1.dat1 */
  81. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat2.dat2 */
  82. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat3.dat3 */
  83. >;
  84. };
  85. mmc1_pins_sdr25: pinmux_mmc1_sdr25_pins {
  86. pinctrl-single,pins = <
  87. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_clk.clk */
  88. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_cmd.cmd */
  89. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat0.dat0 */
  90. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat1.dat1 */
  91. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat2.dat2 */
  92. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE11 | MUX_MODE0) /* mmc1_dat3.dat3 */
  93. >;
  94. };
  95. mmc1_pins_sdr50: pinmux_mmc1_sdr50_pins {
  96. pinctrl-single,pins = <
  97. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_clk.clk */
  98. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_cmd.cmd */
  99. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_dat0.dat0 */
  100. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_dat1.dat1 */
  101. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_dat2.dat2 */
  102. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_VIRTUAL_MODE10 | MUX_MODE0) /* mmc1_dat3.dat3 */
  103. >;
  104. };
  105. mmc1_pins_ddr50: pinmux_mmc1_ddr50_pins {
  106. pinctrl-single,pins = <
  107. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_clk.clk */
  108. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_cmd.cmd */
  109. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat0.dat0 */
  110. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat1.dat1 */
  111. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat2.dat2 */
  112. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat3.dat3 */
  113. >;
  114. };
  115. mmc1_pins_sdr104: pinmux_mmc1_sdr104_pins {
  116. pinctrl-single,pins = <
  117. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_clk.clk */
  118. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_cmd.cmd */
  119. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat0.dat0 */
  120. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat1.dat1 */
  121. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat2.dat2 */
  122. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE0) /* mmc1_dat3.dat3 */
  123. >;
  124. };
  125. mmc2_pins_default: mmc2_pins_default {
  126. pinctrl-single,pins = <
  127. DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
  128. DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
  129. DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
  130. DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
  131. DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
  132. DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
  133. DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
  134. DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
  135. DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
  136. DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
  137. >;
  138. };
  139. mmc2_pins_hs: mmc2_pins_hs {
  140. pinctrl-single,pins = <
  141. DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
  142. DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
  143. DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
  144. DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
  145. DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
  146. DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
  147. DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
  148. DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
  149. DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
  150. DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
  151. >;
  152. };
  153. mmc2_pins_ddr_1_8v: pinmux_mmc2_ddr_1_8v_pins {
  154. pinctrl-single,pins = <
  155. DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a23.mmc2_clk */
  156. DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
  157. DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
  158. DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
  159. DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
  160. DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
  161. DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
  162. DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
  163. DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
  164. DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
  165. >;
  166. };
  167. mmc2_pins_hs200_1_8v: mmc2_pins_hs200_1_8v {
  168. pinctrl-single,pins = <
  169. DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a23.mmc2_clk */
  170. DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
  171. DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
  172. DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
  173. DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
  174. DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
  175. DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
  176. DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
  177. DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
  178. DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MODE_SELECT | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
  179. >;
  180. };
  181. };
  182. &dra7_iodelay_core {
  183. mmc1_iodelay_ddr50_rev11_conf: mmc1_iodelay_ddr50_rev11_conf {
  184. pinctrl-pin-array = <
  185. 0x618 A_DELAY_PS(572) G_DELAY_PS(540) /* CFG_MMC1_CLK_IN */
  186. 0x624 A_DELAY_PS(0) G_DELAY_PS(600) /* CFG_MMC1_CMD_IN */
  187. 0x630 A_DELAY_PS(403) G_DELAY_PS(120) /* CFG_MMC1_DAT0_IN */
  188. 0x63c A_DELAY_PS(23) G_DELAY_PS(60) /* CFG_MMC1_DAT1_IN */
  189. 0x648 A_DELAY_PS(25) G_DELAY_PS(60) /* CFG_MMC1_DAT2_IN */
  190. 0x654 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_IN */
  191. 0x620 A_DELAY_PS(1525) G_DELAY_PS(0) /* CFG_MMC1_CLK_OUT */
  192. 0x628 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OEN */
  193. 0x62c A_DELAY_PS(55) G_DELAY_PS(0) /* CFG_MMC1_CMD_OUT */
  194. 0x634 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OEN */
  195. 0x638 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OUT */
  196. 0x640 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OEN */
  197. 0x644 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OUT */
  198. 0x64c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OEN */
  199. 0x650 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OUT */
  200. 0x658 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OEN */
  201. 0x65c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OUT */
  202. >;
  203. };
  204. mmc1_iodelay_ddr50_rev20_conf: mmc1_iodelay_ddr50_rev20_conf {
  205. pinctrl-pin-array = <
  206. 0x618 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CLK_IN */
  207. 0x620 A_DELAY_PS(1271) G_DELAY_PS(0) /* CFG_MMC1_CLK_OUT */
  208. 0x624 A_DELAY_PS(229) G_DELAY_PS(0) /* CFG_MMC1_CMD_IN */
  209. 0x628 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OEN */
  210. 0x62C A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OUT */
  211. 0x630 A_DELAY_PS(850) G_DELAY_PS(0) /* CFG_MMC1_DAT0_IN */
  212. 0x634 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OEN */
  213. 0x638 A_DELAY_PS(20) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OUT */
  214. 0x63C A_DELAY_PS(468) G_DELAY_PS(0) /* CFG_MMC1_DAT1_IN */
  215. 0x640 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OEN */
  216. 0x644 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OUT */
  217. 0x648 A_DELAY_PS(466) G_DELAY_PS(0) /* CFG_MMC1_DAT2_IN */
  218. 0x64C A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OEN */
  219. 0x650 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OUT */
  220. 0x654 A_DELAY_PS(399) G_DELAY_PS(0) /* CFG_MMC1_DAT3_IN */
  221. 0x658 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OEN */
  222. 0x65C A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OUT */
  223. >;
  224. };
  225. mmc1_iodelay_sdr104_rev11_conf: mmc1_iodelay_sdr104_rev11_conf {
  226. pinctrl-pin-array = <
  227. 0x620 A_DELAY_PS(1063) G_DELAY_PS(17) /* CFG_MMC1_CLK_OUT */
  228. 0x628 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OEN */
  229. 0x62c A_DELAY_PS(23) G_DELAY_PS(0) /* CFG_MMC1_CMD_OUT */
  230. 0x634 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OEN */
  231. 0x638 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OUT */
  232. 0x640 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OEN */
  233. 0x644 A_DELAY_PS(2) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OUT */
  234. 0x64c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OEN */
  235. 0x650 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OUT */
  236. 0x658 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OEN */
  237. 0x65c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OUT */
  238. >;
  239. };
  240. mmc1_iodelay_sdr104_rev20_conf: mmc1_iodelay_sdr104_rev20_conf {
  241. pinctrl-pin-array = <
  242. 0x620 A_DELAY_PS(600) G_DELAY_PS(400) /* CFG_MMC1_CLK_OUT */
  243. 0x628 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OEN */
  244. 0x62c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_CMD_OUT */
  245. 0x634 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OEN */
  246. 0x638 A_DELAY_PS(30) G_DELAY_PS(0) /* CFG_MMC1_DAT0_OUT */
  247. 0x640 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OEN */
  248. 0x644 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT1_OUT */
  249. 0x64c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OEN */
  250. 0x650 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT2_OUT */
  251. 0x658 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OEN */
  252. 0x65c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC1_DAT3_OUT */
  253. >;
  254. };
  255. mmc2_iodelay_hs200_1_8v_rev11_conf: mmc2_iodelay_hs200_1_8v_rev11_conf {
  256. pinctrl-pin-array = <
  257. 0x190 A_DELAY_PS(621) G_DELAY_PS(600) /* CFG_GPMC_A19_OEN */
  258. 0x194 A_DELAY_PS(300) G_DELAY_PS(0) /* CFG_GPMC_A19_OUT */
  259. 0x1a8 A_DELAY_PS(739) G_DELAY_PS(600) /* CFG_GPMC_A20_OEN */
  260. 0x1ac A_DELAY_PS(240) G_DELAY_PS(0) /* CFG_GPMC_A20_OUT */
  261. 0x1b4 A_DELAY_PS(812) G_DELAY_PS(600) /* CFG_GPMC_A21_OEN */
  262. 0x1b8 A_DELAY_PS(240) G_DELAY_PS(0) /* CFG_GPMC_A21_OUT */
  263. 0x1c0 A_DELAY_PS(954) G_DELAY_PS(600) /* CFG_GPMC_A22_OEN */
  264. 0x1c4 A_DELAY_PS(60) G_DELAY_PS(0) /* CFG_GPMC_A22_OUT */
  265. 0x1d0 A_DELAY_PS(1340) G_DELAY_PS(420) /* CFG_GPMC_A23_OUT */
  266. 0x1d8 A_DELAY_PS(935) G_DELAY_PS(600) /* CFG_GPMC_A24_OEN */
  267. 0x1dc A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A24_OUT */
  268. 0x1e4 A_DELAY_PS(525) G_DELAY_PS(600) /* CFG_GPMC_A25_OEN */
  269. 0x1e8 A_DELAY_PS(120) G_DELAY_PS(0) /* CFG_GPMC_A25_OUT */
  270. 0x1f0 A_DELAY_PS(767) G_DELAY_PS(600) /* CFG_GPMC_A26_OEN */
  271. 0x1f4 A_DELAY_PS(225) G_DELAY_PS(0) /* CFG_GPMC_A26_OUT */
  272. 0x1fc A_DELAY_PS(565) G_DELAY_PS(600) /* CFG_GPMC_A27_OEN */
  273. 0x200 A_DELAY_PS(60) G_DELAY_PS(0) /* CFG_GPMC_A27_OUT */
  274. 0x364 A_DELAY_PS(969) G_DELAY_PS(600) /* CFG_GPMC_CS1_OEN */
  275. 0x368 A_DELAY_PS(180) G_DELAY_PS(0) /* CFG_GPMC_CS1_OUT */
  276. >;
  277. };
  278. mmc2_iodelay_hs200_1_8v_rev20_conf: mmc2_iodelay_hs200_1_8v_rev20_conf {
  279. pinctrl-pin-array = <
  280. 0x190 A_DELAY_PS(274) G_DELAY_PS(0) /* CFG_GPMC_A19_OEN */
  281. 0x194 A_DELAY_PS(162) G_DELAY_PS(0) /* CFG_GPMC_A19_OUT */
  282. 0x1a8 A_DELAY_PS(401) G_DELAY_PS(0) /* CFG_GPMC_A20_OEN */
  283. 0x1ac A_DELAY_PS(73) G_DELAY_PS(0) /* CFG_GPMC_A20_OUT */
  284. 0x1b4 A_DELAY_PS(465) G_DELAY_PS(0) /* CFG_GPMC_A21_OEN */
  285. 0x1b8 A_DELAY_PS(115) G_DELAY_PS(0) /* CFG_GPMC_A21_OUT */
  286. 0x1c0 A_DELAY_PS(633) G_DELAY_PS(0) /* CFG_GPMC_A22_OEN */
  287. 0x1c4 A_DELAY_PS(47) G_DELAY_PS(0) /* CFG_GPMC_A22_OUT */
  288. 0x1d0 A_DELAY_PS(935) G_DELAY_PS(280) /* CFG_GPMC_A23_OUT */
  289. 0x1d8 A_DELAY_PS(621) G_DELAY_PS(0) /* CFG_GPMC_A24_OEN */
  290. 0x1dc A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A24_OUT */
  291. 0x1e4 A_DELAY_PS(183) G_DELAY_PS(0) /* CFG_GPMC_A25_OEN */
  292. 0x1e8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A25_OUT */
  293. 0x1f0 A_DELAY_PS(467) G_DELAY_PS(0) /* CFG_GPMC_A26_OEN */
  294. 0x1f4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A26_OUT */
  295. 0x1fc A_DELAY_PS(262) G_DELAY_PS(0) /* CFG_GPMC_A27_OEN */
  296. 0x200 A_DELAY_PS(46) G_DELAY_PS(0) /* CFG_GPMC_A27_OUT */
  297. 0x364 A_DELAY_PS(684) G_DELAY_PS(0) /* CFG_GPMC_CS1_OEN */
  298. 0x368 A_DELAY_PS(76) G_DELAY_PS(0) /* CFG_GPMC_CS1_OUT */
  299. >;
  300. };
  301. mmc2_iodelay_ddr_1_8v_rev11_conf: mmc2_iodelay_ddr_1_8v_rev11_conf {
  302. pinctrl-pin-array = <
  303. 0x18c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A19_IN */
  304. 0x1a4 A_DELAY_PS(274) G_DELAY_PS(240) /* CFG_GPMC_A20_IN */
  305. 0x1b0 A_DELAY_PS(0) G_DELAY_PS(60) /* CFG_GPMC_A21_IN */
  306. 0x1bc A_DELAY_PS(0) G_DELAY_PS(60) /* CFG_GPMC_A22_IN */
  307. 0x1c8 A_DELAY_PS(514) G_DELAY_PS(360) /* CFG_GPMC_A23_IN */
  308. 0x1d4 A_DELAY_PS(187) G_DELAY_PS(120) /* CFG_GPMC_A24_IN */
  309. 0x1e0 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A25_IN */
  310. 0x1ec A_DELAY_PS(0) G_DELAY_PS(60) /* CFG_GPMC_A26_IN */
  311. 0x1f8 A_DELAY_PS(121) G_DELAY_PS(60) /* CFG_GPMC_A27_IN */
  312. 0x360 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_CS1_IN */
  313. 0x190 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A19_OEN */
  314. 0x194 A_DELAY_PS(174) G_DELAY_PS(0) /* CFG_GPMC_A19_OUT */
  315. 0x1a8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A20_OEN */
  316. 0x1ac A_DELAY_PS(168) G_DELAY_PS(0) /* CFG_GPMC_A20_OUT */
  317. 0x1b4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A21_OEN */
  318. 0x1b8 A_DELAY_PS(136) G_DELAY_PS(0) /* CFG_GPMC_A21_OUT */
  319. 0x1c0 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A22_OEN */
  320. 0x1c4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A22_OUT */
  321. 0x1d0 A_DELAY_PS(879) G_DELAY_PS(0) /* CFG_GPMC_A23_OUT */
  322. 0x1d8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A24_OEN */
  323. 0x1dc A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A24_OUT */
  324. 0x1e4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A25_OEN */
  325. 0x1e8 A_DELAY_PS(34) G_DELAY_PS(0) /* CFG_GPMC_A25_OUT */
  326. 0x1f0 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A26_OEN */
  327. 0x1f4 A_DELAY_PS(120) G_DELAY_PS(0) /* CFG_GPMC_A26_OUT */
  328. 0x1fc A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A27_OEN */
  329. 0x200 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A27_OUT */
  330. 0x364 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_CS1_OEN */
  331. 0x368 A_DELAY_PS(11) G_DELAY_PS(0) /* CFG_GPMC_CS1_OUT */
  332. >;
  333. };
  334. mmc2_iodelay_ddr_1_8v_rev20_conf: mmc2_iodelay_ddr_1_8v_rev20_conf {
  335. pinctrl-pin-array = <
  336. 0x18c A_DELAY_PS(270) G_DELAY_PS(0) /* CFG_GPMC_A19_IN */
  337. 0x1a4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A20_IN */
  338. 0x1b0 A_DELAY_PS(170) G_DELAY_PS(0) /* CFG_GPMC_A21_IN */
  339. 0x1bc A_DELAY_PS(758) G_DELAY_PS(0) /* CFG_GPMC_A22_IN */
  340. 0x1c8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A23_IN */
  341. 0x1d4 A_DELAY_PS(81) G_DELAY_PS(0) /* CFG_GPMC_A24_IN */
  342. 0x1e0 A_DELAY_PS(286) G_DELAY_PS(0) /* CFG_GPMC_A25_IN */
  343. 0x1ec A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A26_IN */
  344. 0x1f8 A_DELAY_PS(123) G_DELAY_PS(0) /* CFG_GPMC_A27_IN */
  345. 0x360 A_DELAY_PS(346) G_DELAY_PS(0) /* CFG_GPMC_CS1_IN */
  346. 0x190 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A19_OEN */
  347. 0x194 A_DELAY_PS(55) G_DELAY_PS(0) /* CFG_GPMC_A19_OUT */
  348. 0x1a8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A20_OEN */
  349. 0x1ac A_DELAY_PS(422) G_DELAY_PS(0) /* CFG_GPMC_A20_OUT */
  350. 0x1b4 A_DELAY_PS(642) G_DELAY_PS(0) /* CFG_GPMC_A21_OEN */
  351. 0x1b8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A21_OUT */
  352. 0x1c0 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A22_OEN */
  353. 0x1c4 A_DELAY_PS(128) G_DELAY_PS(0) /* CFG_GPMC_A22_OUT */
  354. 0x1d0 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A23_OUT */
  355. 0x1d8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A24_OEN */
  356. 0x1dc A_DELAY_PS(395) G_DELAY_PS(0) /* CFG_GPMC_A24_OUT */
  357. 0x1e4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A25_OEN */
  358. 0x1e8 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A25_OUT */
  359. 0x1f0 A_DELAY_PS(623) G_DELAY_PS(0) /* CFG_GPMC_A26_OEN */
  360. 0x1f4 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A26_OUT */
  361. 0x1fc A_DELAY_PS(54) G_DELAY_PS(0) /* CFG_GPMC_A27_OEN */
  362. 0x200 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_A27_OUT */
  363. 0x364 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_CS1_OEN */
  364. 0x368 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_GPMC_CS1_OUT */
  365. >;
  366. };
  367. };
  368. &i2c1 {
  369. status = "okay";
  370. clock-frequency = <400000>;
  371. tps659038: tps659038@58 {
  372. compatible = "ti,tps659038";
  373. reg = <0x58>;
  374. ti,palmas-override-powerhold;
  375. ti,system-power-controller;
  376. tps659038_pmic {
  377. compatible = "ti,tps659038-pmic";
  378. regulators {
  379. smps123_reg: smps123 {
  380. /* VDD_MPU */
  381. regulator-name = "smps123";
  382. regulator-min-microvolt = < 850000>;
  383. regulator-max-microvolt = <1250000>;
  384. regulator-always-on;
  385. regulator-boot-on;
  386. };
  387. smps45_reg: smps45 {
  388. /* VDD_DSPEVE */
  389. regulator-name = "smps45";
  390. regulator-min-microvolt = < 850000>;
  391. regulator-max-microvolt = <1250000>;
  392. regulator-always-on;
  393. regulator-boot-on;
  394. };
  395. smps6_reg: smps6 {
  396. /* VDD_GPU - over VDD_SMPS6 */
  397. regulator-name = "smps6";
  398. regulator-min-microvolt = <850000>;
  399. regulator-max-microvolt = <1250000>;
  400. regulator-always-on;
  401. regulator-boot-on;
  402. };
  403. smps7_reg: smps7 {
  404. /* CORE_VDD */
  405. regulator-name = "smps7";
  406. regulator-min-microvolt = <850000>;
  407. regulator-max-microvolt = <1150000>;
  408. regulator-always-on;
  409. regulator-boot-on;
  410. };
  411. smps8_reg: smps8 {
  412. /* VDD_IVAHD */
  413. regulator-name = "smps8";
  414. regulator-min-microvolt = < 850000>;
  415. regulator-max-microvolt = <1250000>;
  416. regulator-always-on;
  417. regulator-boot-on;
  418. };
  419. smps9_reg: smps9 {
  420. /* VDDS1V8 */
  421. regulator-name = "smps9";
  422. regulator-min-microvolt = <1800000>;
  423. regulator-max-microvolt = <1800000>;
  424. regulator-always-on;
  425. regulator-boot-on;
  426. };
  427. ldo1_reg: ldo1 {
  428. /* LDO1_OUT --> SDIO */
  429. regulator-name = "ldo1";
  430. regulator-min-microvolt = <1800000>;
  431. regulator-max-microvolt = <3300000>;
  432. regulator-always-on;
  433. regulator-boot-on;
  434. };
  435. ldo2_reg: ldo2 {
  436. /* VDD_RTCIO */
  437. /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
  438. regulator-name = "ldo2";
  439. regulator-min-microvolt = <3300000>;
  440. regulator-max-microvolt = <3300000>;
  441. regulator-always-on;
  442. regulator-boot-on;
  443. };
  444. ldo3_reg: ldo3 {
  445. /* VDDA_1V8_PHY */
  446. regulator-name = "ldo3";
  447. regulator-min-microvolt = <1800000>;
  448. regulator-max-microvolt = <1800000>;
  449. regulator-always-on;
  450. regulator-boot-on;
  451. };
  452. ldo9_reg: ldo9 {
  453. /* VDD_RTC */
  454. regulator-name = "ldo9";
  455. regulator-min-microvolt = <1050000>;
  456. regulator-max-microvolt = <1050000>;
  457. regulator-always-on;
  458. regulator-boot-on;
  459. regulator-allow-bypass;
  460. };
  461. ldoln_reg: ldoln {
  462. /* VDDA_1V8_PLL */
  463. regulator-name = "ldoln";
  464. regulator-min-microvolt = <1800000>;
  465. regulator-max-microvolt = <1800000>;
  466. regulator-always-on;
  467. regulator-boot-on;
  468. };
  469. ldousb_reg: ldousb {
  470. /* VDDA_3V_USB: VDDA_USBHS33 */
  471. regulator-name = "ldousb";
  472. regulator-min-microvolt = <3300000>;
  473. regulator-max-microvolt = <3300000>;
  474. regulator-boot-on;
  475. };
  476. /* REGEN1 is unused */
  477. regen2: regen2 {
  478. /* Needed for PMIC internal resources */
  479. regulator-name = "regen2";
  480. regulator-boot-on;
  481. regulator-always-on;
  482. };
  483. /* REGEN3 is unused */
  484. sysen1: sysen1 {
  485. /* PMIC_REGEN_3V3 */
  486. regulator-name = "sysen1";
  487. regulator-boot-on;
  488. regulator-always-on;
  489. };
  490. sysen2: sysen2 {
  491. /* PMIC_REGEN_DDR */
  492. regulator-name = "sysen2";
  493. regulator-boot-on;
  494. regulator-always-on;
  495. };
  496. };
  497. };
  498. };
  499. pcf_lcd: gpio@20 {
  500. compatible = "ti,pcf8575", "nxp,pcf8575";
  501. reg = <0x20>;
  502. gpio-controller;
  503. #gpio-cells = <2>;
  504. interrupt-parent = <&gpio6>;
  505. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  506. interrupt-controller;
  507. #interrupt-cells = <2>;
  508. };
  509. pcf_gpio_21: gpio@21 {
  510. compatible = "ti,pcf8575", "nxp,pcf8575";
  511. reg = <0x21>;
  512. lines-initial-states = <0x1408>;
  513. gpio-controller;
  514. #gpio-cells = <2>;
  515. interrupt-parent = <&gpio6>;
  516. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  517. interrupt-controller;
  518. #interrupt-cells = <2>;
  519. u-boot,i2c-offset-len = <0>;
  520. };
  521. tlv320aic3106: tlv320aic3106@19 {
  522. #sound-dai-cells = <0>;
  523. compatible = "ti,tlv320aic3106";
  524. reg = <0x19>;
  525. adc-settle-ms = <40>;
  526. ai3x-micbias-vg = <1>; /* 2.0V */
  527. status = "okay";
  528. /* Regulators */
  529. AVDD-supply = <&evm_3v3_sw>;
  530. IOVDD-supply = <&evm_3v3_sw>;
  531. DRVDD-supply = <&evm_3v3_sw>;
  532. DVDD-supply = <&aic_dvdd>;
  533. };
  534. };
  535. &i2c2 {
  536. status = "okay";
  537. clock-frequency = <400000>;
  538. pcf_hdmi: gpio@26 {
  539. compatible = "ti,pcf8575", "nxp,pcf8575";
  540. reg = <0x26>;
  541. gpio-controller;
  542. #gpio-cells = <2>;
  543. p1 {
  544. /* vin6_sel_s0: high: VIN6, low: audio */
  545. gpio-hog;
  546. gpios = <1 GPIO_ACTIVE_HIGH>;
  547. output-low;
  548. line-name = "vin6_sel_s0";
  549. };
  550. };
  551. };
  552. &mmc1 {
  553. status = "okay";
  554. vmmc-supply = <&evm_3v3_sd>;
  555. vmmc_aux-supply = <&ldo1_reg>;
  556. bus-width = <4>;
  557. /*
  558. * SDCD signal is not being used here - using the fact that GPIO mode
  559. * is always hardwired.
  560. */
  561. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
  562. pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104";
  563. pinctrl-0 = <&mmc1_pins_default>;
  564. pinctrl-1 = <&mmc1_pins_hs>;
  565. pinctrl-2 = <&mmc1_pins_sdr12>;
  566. pinctrl-3 = <&mmc1_pins_sdr25>;
  567. pinctrl-4 = <&mmc1_pins_sdr50>;
  568. pinctrl-5 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr50_rev11_conf>;
  569. pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev11_conf>;
  570. pinctrl-7 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr50_rev20_conf>;
  571. pinctrl-8 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
  572. };
  573. &mmc2 {
  574. status = "okay";
  575. vmmc-supply = <&evm_3v3_sw>;
  576. bus-width = <8>;
  577. pinctrl-names = "default", "hs", "ddr_1_8v-rev11", "ddr_1_8v", "hs200_1_8v-rev11", "hs200_1_8v";
  578. pinctrl-0 = <&mmc2_pins_default>;
  579. pinctrl-1 = <&mmc2_pins_hs>;
  580. pinctrl-2 = <&mmc2_pins_ddr_1_8v &mmc2_iodelay_ddr_1_8v_rev11_conf>;
  581. pinctrl-3 = <&mmc2_pins_ddr_1_8v &mmc2_iodelay_ddr_1_8v_rev20_conf>;
  582. pinctrl-4 = <&mmc2_pins_hs200_1_8v &mmc2_iodelay_hs200_1_8v_rev11_conf>;
  583. pinctrl-5 = <&mmc2_pins_hs200_1_8v &mmc2_iodelay_hs200_1_8v_rev20_conf>;
  584. };
  585. &cpu0 {
  586. cpu0-supply = <&smps123_reg>;
  587. };
  588. &elm {
  589. status = "okay";
  590. };
  591. &gpmc {
  592. /*
  593. * For the existing IOdelay configuration via U-Boot we don't
  594. * support NAND on dra7-evm. Keep it disabled. Enabling it
  595. * requires a different configuration by U-Boot.
  596. */
  597. status = "disabled";
  598. ranges = <0 0 0x08000000 0x01000000>; /* minimum GPMC partition = 16MB */
  599. nand@0,0 {
  600. compatible = "ti,omap2-nand";
  601. reg = <0 0 4>; /* device IO registers */
  602. interrupt-parent = <&gpmc>;
  603. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  604. <1 IRQ_TYPE_NONE>; /* termcount */
  605. rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
  606. ti,nand-ecc-opt = "bch8";
  607. ti,elm-id = <&elm>;
  608. nand-bus-width = <16>;
  609. gpmc,device-width = <2>;
  610. gpmc,sync-clk-ps = <0>;
  611. gpmc,cs-on-ns = <0>;
  612. gpmc,cs-rd-off-ns = <80>;
  613. gpmc,cs-wr-off-ns = <80>;
  614. gpmc,adv-on-ns = <0>;
  615. gpmc,adv-rd-off-ns = <60>;
  616. gpmc,adv-wr-off-ns = <60>;
  617. gpmc,we-on-ns = <10>;
  618. gpmc,we-off-ns = <50>;
  619. gpmc,oe-on-ns = <4>;
  620. gpmc,oe-off-ns = <40>;
  621. gpmc,access-ns = <40>;
  622. gpmc,wr-access-ns = <80>;
  623. gpmc,rd-cycle-ns = <80>;
  624. gpmc,wr-cycle-ns = <80>;
  625. gpmc,bus-turnaround-ns = <0>;
  626. gpmc,cycle2cycle-delay-ns = <0>;
  627. gpmc,clk-activation-ns = <0>;
  628. gpmc,wr-data-mux-bus-ns = <0>;
  629. /* MTD partition table */
  630. /* All SPL-* partitions are sized to minimal length
  631. * which can be independently programmable. For
  632. * NAND flash this is equal to size of erase-block */
  633. #address-cells = <1>;
  634. #size-cells = <1>;
  635. partition@0 {
  636. label = "NAND.SPL";
  637. reg = <0x00000000 0x000020000>;
  638. };
  639. partition@1 {
  640. label = "NAND.SPL.backup1";
  641. reg = <0x00020000 0x00020000>;
  642. };
  643. partition@2 {
  644. label = "NAND.SPL.backup2";
  645. reg = <0x00040000 0x00020000>;
  646. };
  647. partition@3 {
  648. label = "NAND.SPL.backup3";
  649. reg = <0x00060000 0x00020000>;
  650. };
  651. partition@4 {
  652. label = "NAND.u-boot-spl-os";
  653. reg = <0x00080000 0x00040000>;
  654. };
  655. partition@5 {
  656. label = "NAND.u-boot";
  657. reg = <0x000c0000 0x00100000>;
  658. };
  659. partition@6 {
  660. label = "NAND.u-boot-env";
  661. reg = <0x001c0000 0x00020000>;
  662. };
  663. partition@7 {
  664. label = "NAND.u-boot-env.backup1";
  665. reg = <0x001e0000 0x00020000>;
  666. };
  667. partition@8 {
  668. label = "NAND.kernel";
  669. reg = <0x00200000 0x00800000>;
  670. };
  671. partition@9 {
  672. label = "NAND.file-system";
  673. reg = <0x00a00000 0x0f600000>;
  674. };
  675. };
  676. };
  677. &usb2_phy1 {
  678. phy-supply = <&ldousb_reg>;
  679. };
  680. &usb2_phy2 {
  681. phy-supply = <&ldousb_reg>;
  682. };
  683. &gpio7 {
  684. ti,no-reset-on-init;
  685. ti,no-idle-on-init;
  686. };
  687. &mac {
  688. status = "okay";
  689. dual_emac;
  690. };
  691. &cpsw_emac0 {
  692. phy_id = <&davinci_mdio>, <2>;
  693. phy-mode = "rgmii";
  694. dual_emac_res_vlan = <1>;
  695. };
  696. &cpsw_emac1 {
  697. phy_id = <&davinci_mdio>, <3>;
  698. phy-mode = "rgmii";
  699. dual_emac_res_vlan = <2>;
  700. };