am3517-evm.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "am3517.dtsi"
  7. #include "am3517-som.dtsi"
  8. #include "am3517-evm-ui.dtsi"
  9. #include <dt-bindings/input/input.h>
  10. / {
  11. model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
  12. compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
  13. aliases {
  14. display0 = &lcd0;
  15. };
  16. chosen {
  17. stdout-path = &uart3;
  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. button-user {
  33. label = "User Push Button";
  34. linux,code = <BTN_0>;
  35. gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
  36. };
  37. switch-1 {
  38. label = "User Switch 1";
  39. linux,code = <BTN_1>;
  40. gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
  41. };
  42. switch-2 {
  43. label = "User Switch 2";
  44. linux,code = <BTN_2>;
  45. gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
  46. };
  47. switch-3 {
  48. label = "User Switch 3";
  49. linux,code = <BTN_3>;
  50. gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
  51. };
  52. switch-4 {
  53. label = "User Switch 4";
  54. linux,code = <BTN_4>;
  55. gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
  56. };
  57. switch-5 {
  58. label = "User Switch 5";
  59. linux,code = <BTN_5>;
  60. gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
  61. };
  62. switch-6 {
  63. label = "User Switch 6";
  64. linux,code = <BTN_6>;
  65. gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
  66. };
  67. switch-7 {
  68. label = "User Switch 7";
  69. linux,code = <BTN_7>;
  70. gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
  71. };
  72. switch-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. /* This isn't the exact LCD, but the timings meet spec */
  105. /* To make it work, set CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=4 */
  106. compatible = "newhaven,nhd-4.3-480272ef-atxl";
  107. label = "15";
  108. backlight = <&bl>;
  109. enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
  110. vcc-supply = <&vdd_io_reg>;
  111. port {
  112. lcd_in: endpoint {
  113. remote-endpoint = <&dpi_out>;
  114. };
  115. };
  116. };
  117. bl: backlight {
  118. compatible = "pwm-backlight";
  119. pinctrl-names = "default";
  120. power-supply = <&vdd_io_reg>;
  121. pinctrl-0 = <&backlight_pins>;
  122. pwms = <&pwm11 0 5000000 0>;
  123. brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
  124. default-brightness-level = <7>;
  125. enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
  126. };
  127. pwm11: pwm-11 {
  128. compatible = "ti,omap-dmtimer-pwm";
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&pwm_pins>;
  131. ti,timers = <&timer11>;
  132. #pwm-cells = <3>;
  133. ti,clock-source = <0x01>;
  134. };
  135. /* HS USB Host PHY on PORT 1 */
  136. hsusb1_phy: hsusb1_phy {
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&hsusb1_rst_pins>;
  139. compatible = "usb-nop-xceiv";
  140. reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
  141. #phy-cells = <0>;
  142. };
  143. };
  144. &davinci_emac {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&ethernet_pins>;
  147. status = "okay";
  148. };
  149. &davinci_mdio {
  150. status = "okay";
  151. };
  152. &dss {
  153. status = "okay";
  154. pinctrl-names = "default";
  155. pinctrl-0 = <&dss_dpi_pins>;
  156. vdds_dsi-supply = <&vdd_io_reg>;
  157. vdda_video-supply = <&vdd_io_reg>;
  158. port {
  159. dpi_out: endpoint {
  160. remote-endpoint = <&lcd_in>;
  161. data-lines = <16>;
  162. };
  163. };
  164. };
  165. &i2c2 {
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&i2c2_pins>;
  168. clock-frequency = <400000>;
  169. /* User DIP swithes [1:8] / User LEDS [1:2] */
  170. tca6416: gpio@21 {
  171. compatible = "ti,tca6416";
  172. reg = <0x21>;
  173. gpio-controller;
  174. #gpio-cells = <2>;
  175. vcc-supply = <&vdd_io_reg>;
  176. };
  177. };
  178. &i2c3 {
  179. pinctrl-names = "default";
  180. pinctrl-0 = <&i2c3_pins>;
  181. clock-frequency = <400000>;
  182. };
  183. &mmc1 {
  184. status = "okay";
  185. pinctrl-names = "default";
  186. pinctrl-0 = <&mmc1_pins>;
  187. vmmc-supply = <&vmmc_fixed>;
  188. bus-width = <4>;
  189. wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
  190. cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
  191. };
  192. &mmc3 {
  193. status = "disabled";
  194. };
  195. &usbhshost {
  196. pinctrl-names = "default";
  197. pinctrl-0 = <&hsusb1_pins>;
  198. port1-mode = "ehci-phy";
  199. };
  200. &usbhsehci {
  201. phys = <&hsusb1_phy>;
  202. };
  203. &omap3_pmx_core {
  204. ethernet_pins: pinmux_ethernet_pins {
  205. pinctrl-single,pins = <
  206. OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */
  207. OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */
  208. OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */
  209. OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */
  210. OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */
  211. OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */
  212. OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */
  213. OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */
  214. OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */
  215. OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */
  216. >;
  217. };
  218. i2c2_pins: pinmux_i2c2_pins {
  219. pinctrl-single,pins = <
  220. OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  221. OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  222. >;
  223. };
  224. i2c3_pins: pinmux_i2c3_pins {
  225. pinctrl-single,pins = <
  226. OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  227. OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  228. >;
  229. };
  230. mmc1_pins: pinmux_mmc1_pins {
  231. pinctrl-single,pins = <
  232. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  233. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  234. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  235. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  236. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  237. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  238. OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
  239. OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
  240. >;
  241. };
  242. pwm_pins: pinmux_pwm_pins {
  243. pinctrl-single,pins = <
  244. OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */
  245. >;
  246. };
  247. backlight_pins: pinmux_backlight_pins {
  248. pinctrl-single,pins = <
  249. OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
  250. >;
  251. };
  252. dss_dpi_pins: pinmux_dss_dpi_pins {
  253. pinctrl-single,pins = <
  254. OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
  255. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  256. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  257. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  258. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  259. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
  260. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
  261. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
  262. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
  263. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
  264. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
  265. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  266. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  267. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  268. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  269. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  270. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  271. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  272. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  273. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  274. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  275. >;
  276. };
  277. hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
  278. pinctrl-single,pins = <
  279. OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
  280. >;
  281. };
  282. };
  283. &omap3_pmx_core2 {
  284. hsusb1_pins: pinmux_hsusb1_pins {
  285. pinctrl-single,pins = <
  286. OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */
  287. OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */
  288. OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */
  289. OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */
  290. OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */
  291. OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */
  292. OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */
  293. OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */
  294. OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */
  295. OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */
  296. OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */
  297. OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */
  298. >;
  299. };
  300. };
  301. &omap3_pmx_wkup {
  302. leds_pins: pinmux_leds_pins {
  303. pinctrl-single,pins = <
  304. OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
  305. OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
  306. >;
  307. };
  308. };