am43x-epos-evm.dts 22 KB

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