am43x-epos-evm.dts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  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. /* AM43x EPOS EVM */
  9. /dts-v1/;
  10. #include "am4372.dtsi"
  11. #include <dt-bindings/pinctrl/am43xx.h>
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/pwm/pwm.h>
  14. #include <dt-bindings/sound/tlv320aic31xx-micbias.h>
  15. / {
  16. model = "TI AM43x EPOS EVM";
  17. compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
  18. aliases {
  19. display0 = &lcd0;
  20. };
  21. chosen {
  22. stdout-path = &uart0;
  23. tick-timer = &timer2;
  24. };
  25. vmmcsd_fixed: fixedregulator-sd {
  26. compatible = "regulator-fixed";
  27. regulator-name = "vmmcsd_fixed";
  28. regulator-min-microvolt = <3300000>;
  29. regulator-max-microvolt = <3300000>;
  30. enable-active-high;
  31. };
  32. vbat: fixedregulator@0 {
  33. compatible = "regulator-fixed";
  34. regulator-name = "vbat";
  35. regulator-min-microvolt = <5000000>;
  36. regulator-max-microvolt = <5000000>;
  37. regulator-boot-on;
  38. };
  39. lcd0: display {
  40. compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
  41. label = "lcd";
  42. panel-timing {
  43. clock-frequency = <33000000>;
  44. hactive = <800>;
  45. vactive = <480>;
  46. hfront-porch = <210>;
  47. hback-porch = <16>;
  48. hsync-len = <30>;
  49. vback-porch = <10>;
  50. vfront-porch = <22>;
  51. vsync-len = <13>;
  52. hsync-active = <0>;
  53. vsync-active = <0>;
  54. de-active = <1>;
  55. pixelclk-active = <1>;
  56. };
  57. port {
  58. lcd_in: endpoint {
  59. remote-endpoint = <&dpi_out>;
  60. };
  61. };
  62. };
  63. matrix_keypad: matrix_keypad@0 {
  64. compatible = "gpio-matrix-keypad";
  65. debounce-delay-ms = <5>;
  66. col-scan-delay-us = <2>;
  67. row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */
  68. &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */
  69. &gpio0 14 GPIO_ACTIVE_HIGH /* Bank0, pin14 */
  70. &gpio0 15 GPIO_ACTIVE_HIGH>; /* Bank0, pin15 */
  71. col-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH /* Bank3, pin9 */
  72. &gpio3 10 GPIO_ACTIVE_HIGH /* Bank3, pin10 */
  73. &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */
  74. &gpio2 19 GPIO_ACTIVE_HIGH>; /* Bank2, pin19 */
  75. linux,keymap = <0x00000201 /* P1 */
  76. 0x01000204 /* P4 */
  77. 0x02000207 /* P7 */
  78. 0x0300020a /* NUMERIC_STAR */
  79. 0x00010202 /* P2 */
  80. 0x01010205 /* P5 */
  81. 0x02010208 /* P8 */
  82. 0x03010200 /* P0 */
  83. 0x00020203 /* P3 */
  84. 0x01020206 /* P6 */
  85. 0x02020209 /* P9 */
  86. 0x0302020b /* NUMERIC_POUND */
  87. 0x00030067 /* UP */
  88. 0x0103006a /* RIGHT */
  89. 0x0203006c /* DOWN */
  90. 0x03030069>; /* LEFT */
  91. };
  92. backlight {
  93. compatible = "pwm-backlight";
  94. pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
  95. brightness-levels = <0 51 53 56 62 75 101 152 255>;
  96. default-brightness-level = <8>;
  97. };
  98. sound0: sound@0 {
  99. compatible = "simple-audio-card";
  100. simple-audio-card,name = "AM43-EPOS-EVM";
  101. simple-audio-card,widgets =
  102. "Microphone", "Microphone Jack",
  103. "Headphone", "Headphone Jack",
  104. "Speaker", "Speaker";
  105. simple-audio-card,routing =
  106. "MIC1LP", "Microphone Jack",
  107. "MIC1RP", "Microphone Jack",
  108. "MIC1LP", "MICBIAS",
  109. "MIC1RP", "MICBIAS",
  110. "Headphone Jack", "HPL",
  111. "Headphone Jack", "HPR",
  112. "Speaker", "SPL",
  113. "Speaker", "SPR";
  114. simple-audio-card,format = "dsp_b";
  115. simple-audio-card,bitclock-master = <&sound0_master>;
  116. simple-audio-card,frame-master = <&sound0_master>;
  117. simple-audio-card,bitclock-inversion;
  118. simple-audio-card,cpu {
  119. sound-dai = <&mcasp1>;
  120. system-clock-frequency = <12000000>;
  121. };
  122. sound0_master: simple-audio-card,codec {
  123. sound-dai = <&tlv320aic3111>;
  124. system-clock-frequency = <12000000>;
  125. };
  126. };
  127. };
  128. &am43xx_pinmux {
  129. cpsw_default: cpsw_default {
  130. pinctrl-single,pins = <
  131. /* Slave 1 */
  132. AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs */
  133. AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */
  134. AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */
  135. AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxdv.rmii1_rxdv */
  136. AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
  137. AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
  138. AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */
  139. AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */
  140. AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii1_refclk.rmii1_refclk */
  141. >;
  142. };
  143. cpsw_sleep: cpsw_sleep {
  144. pinctrl-single,pins = <
  145. /* Slave 1 reset value */
  146. AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  147. AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7)
  148. AM4372_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
  149. AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
  150. AM4372_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
  151. AM4372_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
  152. AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  153. AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
  154. AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)
  155. >;
  156. };
  157. davinci_mdio_default: davinci_mdio_default {
  158. pinctrl-single,pins = <
  159. /* MDIO */
  160. AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  161. AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  162. >;
  163. };
  164. davinci_mdio_sleep: davinci_mdio_sleep {
  165. pinctrl-single,pins = <
  166. /* MDIO reset value */
  167. AM4372_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
  168. AM4372_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  169. >;
  170. };
  171. i2c0_pins: pinmux_i2c0_pins {
  172. pinctrl-single,pins = <
  173. AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  174. AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  175. >;
  176. };
  177. nand_flash_x8: nand_flash_x8 {
  178. pinctrl-single,pins = <
  179. AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.SELQSPIorNAND/GPIO */
  180. AM4372_IOPAD(0x800, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
  181. AM4372_IOPAD(0x804, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
  182. AM4372_IOPAD(0x808, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
  183. AM4372_IOPAD(0x80c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
  184. AM4372_IOPAD(0x810, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
  185. AM4372_IOPAD(0x814, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
  186. AM4372_IOPAD(0x818, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
  187. AM4372_IOPAD(0x81c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
  188. AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
  189. AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */
  190. AM4372_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
  191. AM4372_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
  192. AM4372_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
  193. AM4372_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
  194. AM4372_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
  195. >;
  196. };
  197. ecap0_pins: backlight_pins {
  198. pinctrl-single,pins = <
  199. AM4372_IOPAD(0x964, MUX_MODE0) /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
  200. >;
  201. };
  202. i2c2_pins: pinmux_i2c2_pins {
  203. pinctrl-single,pins = <
  204. AM4372_IOPAD(0x9c0, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_sda.i2c2_sda */
  205. AM4372_IOPAD(0x9c4, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_scl.i2c2_scl */
  206. >;
  207. };
  208. spi0_pins: pinmux_spi0_pins {
  209. pinctrl-single,pins = <
  210. AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_clk.spi0_clk */
  211. AM4372_IOPAD(0x954, PIN_OUTPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */
  212. AM4372_IOPAD(0x958, PIN_INPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */
  213. AM4372_IOPAD(0x95c, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
  214. >;
  215. };
  216. spi1_pins: pinmux_spi1_pins {
  217. pinctrl-single,pins = <
  218. AM4372_IOPAD(0x990, PIN_INPUT | MUX_MODE3) /* mcasp0_aclkx.spi1_clk */
  219. AM4372_IOPAD(0x994, PIN_OUTPUT | MUX_MODE3) /* mcasp0_fsx.spi1_d0 */
  220. AM4372_IOPAD(0x998, PIN_INPUT | MUX_MODE3) /* mcasp0_axr0.spi1_d1 */
  221. AM4372_IOPAD(0x99c, PIN_OUTPUT | MUX_MODE3) /* mcasp0_ahclkr.spi1_cs0 */
  222. >;
  223. };
  224. mmc1_pins: pinmux_mmc1_pins {
  225. pinctrl-single,pins = <
  226. AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
  227. >;
  228. };
  229. qspi1_default: qspi1_default {
  230. pinctrl-single,pins = <
  231. AM4372_IOPAD(0x87c, PIN_INPUT_PULLUP | MUX_MODE3)
  232. AM4372_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE2)
  233. AM4372_IOPAD(0x890, PIN_INPUT_PULLUP | MUX_MODE3)
  234. AM4372_IOPAD(0x894, PIN_INPUT_PULLUP | MUX_MODE3)
  235. AM4372_IOPAD(0x898, PIN_INPUT_PULLUP | MUX_MODE3)
  236. AM4372_IOPAD(0x89c, PIN_INPUT_PULLUP | MUX_MODE3)
  237. >;
  238. };
  239. pixcir_ts_pins: pixcir_ts_pins {
  240. pinctrl-single,pins = <
  241. AM4372_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a1.gpio1_17 */
  242. >;
  243. };
  244. hdq_pins: pinmux_hdq_pins {
  245. pinctrl-single,pins = <
  246. AM4372_IOPAD(0xa34, PIN_INPUT_PULLUP | MUX_MODE1) /* cam1_wen.hdq_gpio */
  247. >;
  248. };
  249. dss_pins: dss_pins {
  250. pinctrl-single,pins = <
  251. AM4372_IOPAD(0x820, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
  252. AM4372_IOPAD(0x824, PIN_OUTPUT_PULLUP | MUX_MODE1)
  253. AM4372_IOPAD(0x828, PIN_OUTPUT_PULLUP | MUX_MODE1)
  254. AM4372_IOPAD(0x82c, PIN_OUTPUT_PULLUP | MUX_MODE1)
  255. AM4372_IOPAD(0x830, PIN_OUTPUT_PULLUP | MUX_MODE1)
  256. AM4372_IOPAD(0x834, PIN_OUTPUT_PULLUP | MUX_MODE1)
  257. AM4372_IOPAD(0x838, PIN_OUTPUT_PULLUP | MUX_MODE1)
  258. AM4372_IOPAD(0x83c, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
  259. AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
  260. AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0)
  261. AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0)
  262. AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0)
  263. AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0)
  264. AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0)
  265. AM4372_IOPAD(0x8B8, PIN_OUTPUT_PULLUP | MUX_MODE0)
  266. AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0)
  267. AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0)
  268. AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0)
  269. AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0)
  270. AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0)
  271. AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0)
  272. AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0)
  273. AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0)
  274. AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
  275. AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
  276. AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
  277. AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
  278. AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
  279. >;
  280. };
  281. display_mux_pins: display_mux_pins {
  282. pinctrl-single,pins = <
  283. /* GPMC CLK -> GPIO 2_1 to select LCD / HDMI */
  284. AM4372_IOPAD(0x88C, PIN_OUTPUT_PULLUP | MUX_MODE7)
  285. >;
  286. };
  287. vpfe1_pins_default: vpfe1_pins_default {
  288. pinctrl-single,pins = <
  289. AM4372_IOPAD(0x9cc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data9 mode 0 */
  290. AM4372_IOPAD(0x9d0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data8 mode 0 */
  291. AM4372_IOPAD(0x9d4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_hd mode 0 */
  292. AM4372_IOPAD(0x9d8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_vd mode 0 */
  293. AM4372_IOPAD(0x9dc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_pclk mode 0 */
  294. AM4372_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data0 mode 0 */
  295. AM4372_IOPAD(0x9ec, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data1 mode 0 */
  296. AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data2 mode 0 */
  297. AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data3 mode 0 */
  298. AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data4 mode 0 */
  299. AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data5 mode 0 */
  300. AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data6 mode 0 */
  301. AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data7 mode 0 */
  302. >;
  303. };
  304. vpfe1_pins_sleep: vpfe1_pins_sleep {
  305. pinctrl-single,pins = <
  306. AM4372_IOPAD(0x9cc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  307. AM4372_IOPAD(0x9d0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  308. AM4372_IOPAD(0x9d4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  309. AM4372_IOPAD(0x9d8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  310. AM4372_IOPAD(0x9dc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  311. AM4372_IOPAD(0x9e8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  312. AM4372_IOPAD(0x9ec, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  313. AM4372_IOPAD(0x9f0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  314. AM4372_IOPAD(0x9f4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  315. AM4372_IOPAD(0x9f8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  316. AM4372_IOPAD(0x9fc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  317. AM4372_IOPAD(0xa00, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  318. AM4372_IOPAD(0xa04, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
  319. >;
  320. };
  321. mcasp1_pins: mcasp1_pins {
  322. pinctrl-single,pins = <
  323. AM4372_IOPAD(0x9a0, PIN_INPUT_PULLDOWN | MUX_MODE3) /* MCASP0_ACLKR/MCASP1_ACLKX */
  324. AM4372_IOPAD(0x9a4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* MCASP0_FSR/MCASP1_FSX */
  325. AM4372_IOPAD(0x9a8, PIN_OUTPUT_PULLDOWN | MUX_MODE3)/* MCASP0_AXR1/MCASP1_AXR0 */
  326. AM4372_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE3) /* MCASP0_AHCLKX/MCASP1_AXR1 */
  327. >;
  328. };
  329. mcasp1_sleep_pins: mcasp1_sleep_pins {
  330. pinctrl-single,pins = <
  331. AM4372_IOPAD(0x9a0, PIN_INPUT_PULLDOWN | MUX_MODE7)
  332. AM4372_IOPAD(0x9a4, PIN_INPUT_PULLDOWN | MUX_MODE7)
  333. AM4372_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE7)
  334. AM4372_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE7)
  335. >;
  336. };
  337. };
  338. &mmc1 {
  339. status = "okay";
  340. vmmc-supply = <&vmmcsd_fixed>;
  341. bus-width = <4>;
  342. pinctrl-names = "default";
  343. pinctrl-0 = <&mmc1_pins>;
  344. cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  345. };
  346. &mac {
  347. pinctrl-names = "default", "sleep";
  348. pinctrl-0 = <&cpsw_default>;
  349. pinctrl-1 = <&cpsw_sleep>;
  350. status = "okay";
  351. };
  352. &davinci_mdio {
  353. pinctrl-names = "default", "sleep";
  354. pinctrl-0 = <&davinci_mdio_default>;
  355. pinctrl-1 = <&davinci_mdio_sleep>;
  356. status = "okay";
  357. };
  358. &cpsw_emac0 {
  359. phy_id = <&davinci_mdio>, <16>;
  360. phy-mode = "rmii";
  361. };
  362. &cpsw_emac1 {
  363. phy_id = <&davinci_mdio>, <1>;
  364. phy-mode = "rmii";
  365. };
  366. &phy_sel {
  367. rmii-clock-ext;
  368. };
  369. &i2c0 {
  370. status = "okay";
  371. pinctrl-names = "default";
  372. pinctrl-0 = <&i2c0_pins>;
  373. clock-frequency = <400000>;
  374. tps65218: tps65218@24 {
  375. reg = <0x24>;
  376. compatible = "ti,tps65218";
  377. interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
  378. interrupt-controller;
  379. #interrupt-cells = <2>;
  380. dcdc1: regulator-dcdc1 {
  381. compatible = "ti,tps65218-dcdc1";
  382. regulator-name = "vdd_core";
  383. regulator-min-microvolt = <912000>;
  384. regulator-max-microvolt = <1144000>;
  385. regulator-boot-on;
  386. regulator-always-on;
  387. };
  388. dcdc2: regulator-dcdc2 {
  389. compatible = "ti,tps65218-dcdc2";
  390. regulator-name = "vdd_mpu";
  391. regulator-min-microvolt = <912000>;
  392. regulator-max-microvolt = <1378000>;
  393. regulator-boot-on;
  394. regulator-always-on;
  395. };
  396. dcdc3: regulator-dcdc3 {
  397. compatible = "ti,tps65218-dcdc3";
  398. regulator-name = "vdcdc3";
  399. regulator-min-microvolt = <1500000>;
  400. regulator-max-microvolt = <1500000>;
  401. regulator-boot-on;
  402. regulator-always-on;
  403. };
  404. dcdc4: regulator-dcdc4 {
  405. compatible = "ti,tps65218-dcdc4";
  406. regulator-name = "vdcdc4";
  407. regulator-min-microvolt = <3300000>;
  408. regulator-max-microvolt = <3300000>;
  409. regulator-boot-on;
  410. regulator-always-on;
  411. };
  412. dcdc5: regulator-dcdc5 {
  413. compatible = "ti,tps65218-dcdc5";
  414. regulator-name = "v1_0bat";
  415. regulator-min-microvolt = <1000000>;
  416. regulator-max-microvolt = <1000000>;
  417. };
  418. dcdc6: regulator-dcdc6 {
  419. compatible = "ti,tps65218-dcdc6";
  420. regulator-name = "v1_8bat";
  421. regulator-min-microvolt = <1800000>;
  422. regulator-max-microvolt = <1800000>;
  423. };
  424. ldo1: regulator-ldo1 {
  425. compatible = "ti,tps65218-ldo1";
  426. regulator-min-microvolt = <1800000>;
  427. regulator-max-microvolt = <1800000>;
  428. regulator-boot-on;
  429. regulator-always-on;
  430. };
  431. };
  432. at24@50 {
  433. compatible = "at24,24c256";
  434. pagesize = <64>;
  435. reg = <0x50>;
  436. };
  437. pixcir_ts@5c {
  438. compatible = "pixcir,pixcir_tangoc";
  439. pinctrl-names = "default";
  440. pinctrl-0 = <&pixcir_ts_pins>;
  441. reg = <0x5c>;
  442. interrupt-parent = <&gpio1>;
  443. interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
  444. attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  445. touchscreen-size-x = <1024>;
  446. touchscreen-size-y = <600>;
  447. };
  448. tlv320aic3111: tlv320aic3111@18 {
  449. #sound-dai-cells = <0>;
  450. compatible = "ti,tlv320aic3111";
  451. reg = <0x18>;
  452. status = "okay";
  453. ai31xx-micbias-vg = <MICBIAS_2_0V>;
  454. /* Regulators */
  455. HPVDD-supply = <&dcdc4>; /* v3_3AUD -> V3_3D -> DCDC4 */
  456. SPRVDD-supply = <&vbat>; /* vbat */
  457. SPLVDD-supply = <&vbat>; /* vbat */
  458. AVDD-supply = <&dcdc4>; /* v3_3AUD -> V3_3D -> DCDC4 */
  459. IOVDD-supply = <&dcdc4>; /* V3_3D -> DCDC4 */
  460. DVDD-supply = <&ldo1>; /* V1_8AUD -> V1_8D -> LDO1 */
  461. };
  462. };
  463. &i2c2 {
  464. pinctrl-names = "default";
  465. pinctrl-0 = <&i2c2_pins>;
  466. status = "okay";
  467. };
  468. &gpio0 {
  469. status = "okay";
  470. };
  471. &gpio1 {
  472. status = "okay";
  473. };
  474. &gpio2 {
  475. pinctrl-names = "default";
  476. pinctrl-0 = <&display_mux_pins>;
  477. status = "okay";
  478. p1 {
  479. /*
  480. * SelLCDorHDMI selects between display and audio paths:
  481. * Low: HDMI display with audio via HDMI
  482. * High: LCD display with analog audio via aic3111 codec
  483. */
  484. gpio-hog;
  485. gpios = <1 GPIO_ACTIVE_HIGH>;
  486. output-high;
  487. line-name = "SelLCDorHDMI";
  488. };
  489. };
  490. &gpio3 {
  491. status = "okay";
  492. };
  493. &elm {
  494. status = "okay";
  495. };
  496. &gpmc {
  497. status = "okay"; /* Disable QSPI when enabling GPMC (NAND) */
  498. pinctrl-names = "default";
  499. pinctrl-0 = <&nand_flash_x8>;
  500. ranges = <0 0 0x08000000 0x01000000>; /* CS0 space. Min partition = 16MB */
  501. nand@0,0 {
  502. compatible = "ti,omap2-nand";
  503. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  504. interrupt-parent = <&gpmc>;
  505. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  506. <1 IRQ_TYPE_NONE>; /* termcount */
  507. ti,nand-ecc-opt = "bch16";
  508. ti,elm-id = <&elm>;
  509. nand-bus-width = <8>;
  510. gpmc,device-width = <1>;
  511. gpmc,sync-clk-ps = <0>;
  512. gpmc,cs-on-ns = <0>;
  513. gpmc,cs-rd-off-ns = <40>; /* tCEA + tCHZ + 1 */
  514. gpmc,cs-wr-off-ns = <40>;
  515. gpmc,adv-on-ns = <0>; /* cs-on-ns */
  516. gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */
  517. gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */
  518. gpmc,we-on-ns = <0>; /* cs-on-ns */
  519. gpmc,we-off-ns = <20>; /* we-on-time + tWP + 2 */
  520. gpmc,oe-on-ns = <3>; /* cs-on-ns + tRR + 2 */
  521. gpmc,oe-off-ns = <30>; /* oe-on-ns + tRP + 2 */
  522. gpmc,access-ns = <30>; /* tCEA + 4*/
  523. gpmc,rd-cycle-ns = <40>;
  524. gpmc,wr-cycle-ns = <40>;
  525. gpmc,bus-turnaround-ns = <0>;
  526. gpmc,cycle2cycle-delay-ns = <0>;
  527. gpmc,clk-activation-ns = <0>;
  528. gpmc,wr-access-ns = <40>;
  529. gpmc,wr-data-mux-bus-ns = <0>;
  530. /* MTD partition table */
  531. /* All SPL-* partitions are sized to minimal length
  532. * which can be independently programmable. For
  533. * NAND flash this is equal to size of erase-block */
  534. #address-cells = <1>;
  535. #size-cells = <1>;
  536. partition@0 {
  537. label = "NAND.SPL";
  538. reg = <0x00000000 0x00040000>;
  539. };
  540. partition@1 {
  541. label = "NAND.SPL.backup1";
  542. reg = <0x00040000 0x00040000>;
  543. };
  544. partition@2 {
  545. label = "NAND.SPL.backup2";
  546. reg = <0x00080000 0x00040000>;
  547. };
  548. partition@3 {
  549. label = "NAND.SPL.backup3";
  550. reg = <0x000C0000 0x00040000>;
  551. };
  552. partition@4 {
  553. label = "NAND.u-boot-spl-os";
  554. reg = <0x00100000 0x00080000>;
  555. };
  556. partition@5 {
  557. label = "NAND.u-boot";
  558. reg = <0x00180000 0x00100000>;
  559. };
  560. partition@6 {
  561. label = "NAND.u-boot-env";
  562. reg = <0x00280000 0x00040000>;
  563. };
  564. partition@7 {
  565. label = "NAND.u-boot-env.backup1";
  566. reg = <0x002C0000 0x00040000>;
  567. };
  568. partition@8 {
  569. label = "NAND.kernel";
  570. reg = <0x00300000 0x00700000>;
  571. };
  572. partition@9 {
  573. label = "NAND.file-system";
  574. reg = <0x00a00000 0x1f600000>;
  575. };
  576. };
  577. };
  578. &epwmss0 {
  579. status = "okay";
  580. };
  581. &tscadc {
  582. status = "okay";
  583. adc {
  584. ti,adc-channels = <0 1 2 3 4 5 6 7>;
  585. };
  586. };
  587. &ecap0 {
  588. status = "okay";
  589. pinctrl-names = "default";
  590. pinctrl-0 = <&ecap0_pins>;
  591. };
  592. &spi0 {
  593. pinctrl-names = "default";
  594. pinctrl-0 = <&spi0_pins>;
  595. status = "okay";
  596. };
  597. &spi1 {
  598. pinctrl-names = "default";
  599. pinctrl-0 = <&spi1_pins>;
  600. status = "okay";
  601. };
  602. &usb2_phy1 {
  603. status = "okay";
  604. };
  605. &usb1 {
  606. dr_mode = "peripheral";
  607. status = "okay";
  608. };
  609. &usb2_phy2 {
  610. status = "okay";
  611. };
  612. &usb2 {
  613. dr_mode = "host";
  614. status = "okay";
  615. };
  616. &qspi {
  617. status = "disabled"; /* Disable GPMC (NAND) when enabling QSPI */
  618. pinctrl-names = "default";
  619. pinctrl-0 = <&qspi1_default>;
  620. spi-max-frequency = <48000000>;
  621. m25p80@0 {
  622. compatible = "mx66l51235l";
  623. spi-max-frequency = <48000000>;
  624. reg = <0>;
  625. spi-cpol;
  626. spi-cpha;
  627. spi-tx-bus-width = <1>;
  628. spi-rx-bus-width = <4>;
  629. #address-cells = <1>;
  630. #size-cells = <1>;
  631. /* MTD partition table.
  632. * The ROM checks the first 512KiB
  633. * for a valid file to boot(XIP).
  634. */
  635. partition@0 {
  636. label = "QSPI.U_BOOT";
  637. reg = <0x00000000 0x000080000>;
  638. };
  639. partition@1 {
  640. label = "QSPI.U_BOOT.backup";
  641. reg = <0x00080000 0x00080000>;
  642. };
  643. partition@2 {
  644. label = "QSPI.U-BOOT-SPL_OS";
  645. reg = <0x00100000 0x00010000>;
  646. };
  647. partition@3 {
  648. label = "QSPI.U_BOOT_ENV";
  649. reg = <0x00110000 0x00010000>;
  650. };
  651. partition@4 {
  652. label = "QSPI.U-BOOT-ENV.backup";
  653. reg = <0x00120000 0x00010000>;
  654. };
  655. partition@5 {
  656. label = "QSPI.KERNEL";
  657. reg = <0x00130000 0x0800000>;
  658. };
  659. partition@6 {
  660. label = "QSPI.FILESYSTEM";
  661. reg = <0x00930000 0x36D0000>;
  662. };
  663. };
  664. };
  665. &hdq {
  666. status = "okay";
  667. pinctrl-names = "default";
  668. pinctrl-0 = <&hdq_pins>;
  669. };
  670. &dss {
  671. status = "ok";
  672. pinctrl-names = "default";
  673. pinctrl-0 = <&dss_pins>;
  674. port {
  675. dpi_out: endpoint@0 {
  676. remote-endpoint = <&lcd_in>;
  677. data-lines = <24>;
  678. };
  679. };
  680. };
  681. &vpfe1 {
  682. status = "okay";
  683. pinctrl-names = "default", "sleep";
  684. pinctrl-0 = <&vpfe1_pins_default>;
  685. pinctrl-1 = <&vpfe1_pins_sleep>;
  686. port {
  687. vpfe1_ep: endpoint {
  688. /* remote-endpoint = <&sensor>; add once we have it */
  689. ti,am437x-vpfe-interface = <0>;
  690. bus-width = <8>;
  691. hsync-active = <0>;
  692. vsync-active = <0>;
  693. };
  694. };
  695. };
  696. &mcasp1 {
  697. #sound-dai-cells = <0>;
  698. pinctrl-names = "default", "sleep";
  699. pinctrl-0 = <&mcasp1_pins>;
  700. pinctrl-1 = <&mcasp1_sleep_pins>;
  701. status = "okay";
  702. op-mode = <0>; /* MCASP_IIS_MODE */
  703. tdm-slots = <2>;
  704. /* 4 serializer */
  705. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  706. 1 2 0 0
  707. >;
  708. tx-num-evt = <32>;
  709. rx-num-evt = <32>;
  710. };
  711. &synctimer_32kclk {
  712. assigned-clocks = <&mux_synctimer32k_ck>;
  713. assigned-clock-parents = <&clkdiv32k_ick>;
  714. };