am3517-evm.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /*
  2. * Copyright (C) 2011 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 "am3517.dtsi"
  10. #include "am3517-som.dtsi"
  11. #include <dt-bindings/input/input.h>
  12. / {
  13. model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
  14. compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
  15. aliases {
  16. display0 = &lcd0;
  17. };
  18. memory@80000000 {
  19. device_type = "memory";
  20. reg = <0x80000000 0x10000000>; /* 256 MB */
  21. };
  22. vmmc_fixed: vmmc {
  23. compatible = "regulator-fixed";
  24. regulator-name = "vmmc_fixed";
  25. regulator-min-microvolt = <3300000>;
  26. regulator-max-microvolt = <3300000>;
  27. };
  28. gpio-keys {
  29. compatible = "gpio-keys-polled";
  30. poll-interval = <100>;
  31. user_pb {
  32. label = "User Push Button";
  33. linux,code = <BTN_0>;
  34. gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
  35. };
  36. user_sw_1 {
  37. label = "User Switch 1";
  38. linux,code = <BTN_1>;
  39. gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
  40. };
  41. user_sw_2 {
  42. label = "User Switch 2";
  43. linux,code = <BTN_2>;
  44. gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
  45. };
  46. user_sw_3 {
  47. label = "User Switch 3";
  48. linux,code = <BTN_3>;
  49. gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
  50. };
  51. user_sw_4 {
  52. label = "User Switch 4";
  53. linux,code = <BTN_4>;
  54. gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
  55. };
  56. user_sw_5 {
  57. label = "User Switch 5";
  58. linux,code = <BTN_5>;
  59. gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
  60. };
  61. user_sw_6 {
  62. label = "User Switch 6";
  63. linux,code = <BTN_6>;
  64. gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
  65. };
  66. user_sw_7 {
  67. label = "User Switch 7";
  68. linux,code = <BTN_7>;
  69. gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
  70. };
  71. user_sw_8 {
  72. label = "User Switch 8";
  73. linux,code = <BTN_8>;
  74. gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
  75. };
  76. };
  77. gpio-leds {
  78. compatible = "gpio-leds";
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&leds_pins>;
  81. user_led_1 {
  82. label = "am3517evm:green:user_led_1";
  83. gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
  84. default-state = "on";
  85. };
  86. user_led_2 {
  87. label = "am3517evm:green:user_led_2";
  88. gpios = <&tca6416 6 GPIO_ACTIVE_LOW>;
  89. default-state = "on";
  90. };
  91. user_led_3 {
  92. label = "am3517evm:green:user_led_3";
  93. gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
  94. linux,default-trigger = "mmc0"; /* SD/MMC card activity */
  95. };
  96. user_led_4 {
  97. label = "am3517evm:green:user_led_4";
  98. gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
  99. linux,default-trigger = "heartbeat";
  100. };
  101. };
  102. lcd0: display@0 {
  103. compatible = "panel-dpi";
  104. label = "15";
  105. status = "okay";
  106. pinctrl-names = "default";
  107. enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
  108. vcc-supply = <&vdd_io_reg>;
  109. port {
  110. lcd_in: endpoint {
  111. remote-endpoint = <&dpi_out>;
  112. };
  113. };
  114. panel-timing {
  115. clock-frequency = <9000000>;
  116. hactive = <480>;
  117. vactive = <272>;
  118. hfront-porch = <3>;
  119. hback-porch = <2>;
  120. hsync-len = <42>;
  121. vback-porch = <3>;
  122. vfront-porch = <4>;
  123. vsync-len = <11>;
  124. hsync-active = <0>;
  125. vsync-active = <0>;
  126. de-active = <1>;
  127. pixelclk-active = <1>;
  128. };
  129. };
  130. bl: backlight {
  131. compatible = "pwm-backlight";
  132. pinctrl-names = "default";
  133. power-supply = <&vdd_io_reg>;
  134. pinctrl-0 = <&backlight_pins>;
  135. pwms = <&pwm11 0 5000000 0>;
  136. brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
  137. default-brightness-level = <7>;
  138. enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
  139. };
  140. pwm11: dmtimer-pwm@11 {
  141. compatible = "ti,omap-dmtimer-pwm";
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&pwm_pins>;
  144. ti,timers = <&timer11>;
  145. #pwm-cells = <3>;
  146. };
  147. /* HS USB Host PHY on PORT 1 */
  148. hsusb1_phy: hsusb1_phy {
  149. compatible = "usb-nop-xceiv";
  150. reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
  151. #phy-cells = <0>;
  152. };
  153. };
  154. &davinci_emac {
  155. status = "okay";
  156. };
  157. &davinci_mdio {
  158. status = "okay";
  159. };
  160. &dss {
  161. status = "ok";
  162. pinctrl-names = "default";
  163. pinctrl-0 = <&dss_dpi_pins>;
  164. vdds_dsi-supply = <&vdd_io_reg>;
  165. vdda_video-supply = <&vdd_io_reg>;
  166. port {
  167. dpi_out: endpoint {
  168. remote-endpoint = <&lcd_in>;
  169. data-lines = <16>;
  170. };
  171. };
  172. };
  173. &i2c2 {
  174. clock-frequency = <400000>;
  175. /* User DIP swithes [1:8] / User LEDS [1:2] */
  176. tca6416: gpio@21 {
  177. compatible = "ti,tca6416";
  178. reg = <0x21>;
  179. gpio-controller;
  180. #gpio-cells = <2>;
  181. vcc-supply = <&vdd_io_reg>;
  182. };
  183. };
  184. &i2c3 {
  185. clock-frequency = <400000>;
  186. };
  187. &mmc1 {
  188. status = "okay";
  189. pinctrl-names = "default";
  190. pinctrl-0 = <&mmc1_pins>;
  191. vmmc-supply = <&vmmc_fixed>;
  192. bus-width = <4>;
  193. wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
  194. cd-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio_127 */
  195. };
  196. &mmc3 {
  197. status = "disabled";
  198. };
  199. &usbhshost {
  200. port1-mode = "ehci-phy";
  201. };
  202. &usbhsehci {
  203. phys = <&hsusb1_phy>;
  204. };
  205. &omap3_pmx_core {
  206. pinctrl-names = "default";
  207. pinctrl-0 = <&hsusb1_rst_pins>;
  208. leds_pins: pinmux_leds_pins {
  209. pinctrl-single,pins = <
  210. OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
  211. OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
  212. >;
  213. };
  214. mmc1_pins: pinmux_mmc1_pins {
  215. pinctrl-single,pins = <
  216. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  217. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  218. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  219. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  220. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  221. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  222. OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
  223. OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
  224. >;
  225. };
  226. pwm_pins: pinmux_pwm_pins {
  227. pinctrl-single,pins = <
  228. OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */
  229. >;
  230. };
  231. backlight_pins: pinmux_backlight_pins {
  232. pinctrl-single,pins = <
  233. OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
  234. >;
  235. };
  236. dss_dpi_pins: pinmux_dss_dpi_pins {
  237. pinctrl-single,pins = <
  238. OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
  239. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  240. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  241. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  242. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  243. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
  244. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
  245. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
  246. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
  247. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
  248. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
  249. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  250. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  251. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  252. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  253. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  254. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  255. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  256. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  257. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  258. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  259. >;
  260. };
  261. hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
  262. pinctrl-single,pins = <
  263. OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
  264. >;
  265. };
  266. };
  267. &omap3_pmx_core2 {
  268. pinctrl-names = "default";
  269. pinctrl-0 = <&hsusb1_pins>;
  270. hsusb1_pins: pinmux_hsusb1_pins {
  271. pinctrl-single,pins = <
  272. OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */
  273. OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */
  274. OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */
  275. OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */
  276. OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */
  277. OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */
  278. OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */
  279. OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */
  280. OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */
  281. OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */
  282. OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */
  283. OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */
  284. >;
  285. };
  286. };