am3517-evm.dts 9.2 KB

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