am335x-evm.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /*
  2. * Copyright (C) 2012 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/ "am33xx.dtsi"
  10. / {
  11. model = "TI AM335x EVM";
  12. compatible = "ti,am335x-evm", "ti,am33xx";
  13. cpus {
  14. cpu@0 {
  15. cpu0-supply = <&vdd1_reg>;
  16. };
  17. };
  18. memory {
  19. device_type = "memory";
  20. reg = <0x80000000 0x10000000>; /* 256 MB */
  21. };
  22. am33xx_pinmux: pinmux@44e10800 {
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0 &clkout2_pin>;
  25. matrix_keypad_s0: matrix_keypad_s0 {
  26. pinctrl-single,pins = <
  27. 0x54 0x7 /* gpmc_a5.gpio1_21, OUTPUT | MODE7 */
  28. 0x58 0x7 /* gpmc_a6.gpio1_22, OUTPUT | MODE7 */
  29. 0x64 0x27 /* gpmc_a9.gpio1_25, INPUT | MODE7 */
  30. 0x68 0x27 /* gpmc_a10.gpio1_26, INPUT | MODE7 */
  31. 0x6c 0x27 /* gpmc_a11.gpio1_27, INPUT | MODE7 */
  32. >;
  33. };
  34. volume_keys_s0: volume_keys_s0 {
  35. pinctrl-single,pins = <
  36. 0x150 0x27 /* spi0_sclk.gpio0_2, INPUT | MODE7 */
  37. 0x154 0x27 /* spi0_d0.gpio0_3, INPUT | MODE7 */
  38. >;
  39. };
  40. i2c0_pins: pinmux_i2c0_pins {
  41. pinctrl-single,pins = <
  42. 0x188 0x30 /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
  43. 0x18c 0x30 /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
  44. >;
  45. };
  46. i2c1_pins: pinmux_i2c1_pins {
  47. pinctrl-single,pins = <
  48. 0x158 0x32 /* spi0_d1.i2c1_sda PULLUP | INPUTENABLE | MODE2 */
  49. 0x15c 0x32 /* spi0_cs0.i2c1_scl PULLUP | INPUTENABLE | MODE2 */
  50. >;
  51. };
  52. uart0_pins: pinmux_uart0_pins {
  53. pinctrl-single,pins = <
  54. 0x170 0x30 /* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */
  55. 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
  56. >;
  57. };
  58. clkout2_pin: pinmux_clkout2_pin {
  59. pinctrl-single,pins = <
  60. 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
  61. >;
  62. };
  63. };
  64. ocp {
  65. uart0: serial@44e09000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&uart0_pins>;
  68. status = "okay";
  69. };
  70. i2c0: i2c@44e0b000 {
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&i2c0_pins>;
  73. status = "okay";
  74. clock-frequency = <400000>;
  75. tps: tps@2d {
  76. reg = <0x2d>;
  77. };
  78. };
  79. i2c1: i2c@4802a000 {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&i2c1_pins>;
  82. status = "okay";
  83. clock-frequency = <100000>;
  84. lis331dlh: lis331dlh@18 {
  85. compatible = "st,lis331dlh", "st,lis3lv02d";
  86. reg = <0x18>;
  87. Vdd-supply = <&lis3_reg>;
  88. Vdd_IO-supply = <&lis3_reg>;
  89. st,click-single-x;
  90. st,click-single-y;
  91. st,click-single-z;
  92. st,click-thresh-x = <10>;
  93. st,click-thresh-y = <10>;
  94. st,click-thresh-z = <10>;
  95. st,irq1-click;
  96. st,irq2-click;
  97. st,wakeup-x-lo;
  98. st,wakeup-x-hi;
  99. st,wakeup-y-lo;
  100. st,wakeup-y-hi;
  101. st,wakeup-z-lo;
  102. st,wakeup-z-hi;
  103. st,min-limit-x = <120>;
  104. st,min-limit-y = <120>;
  105. st,min-limit-z = <140>;
  106. st,max-limit-x = <550>;
  107. st,max-limit-y = <550>;
  108. st,max-limit-z = <750>;
  109. };
  110. tsl2550: tsl2550@39 {
  111. compatible = "taos,tsl2550";
  112. reg = <0x39>;
  113. };
  114. tmp275: tmp275@48 {
  115. compatible = "ti,tmp275";
  116. reg = <0x48>;
  117. };
  118. };
  119. };
  120. vbat: fixedregulator@0 {
  121. compatible = "regulator-fixed";
  122. regulator-name = "vbat";
  123. regulator-min-microvolt = <5000000>;
  124. regulator-max-microvolt = <5000000>;
  125. regulator-boot-on;
  126. };
  127. lis3_reg: fixedregulator@1 {
  128. compatible = "regulator-fixed";
  129. regulator-name = "lis3_reg";
  130. regulator-boot-on;
  131. };
  132. matrix_keypad: matrix_keypad@0 {
  133. compatible = "gpio-matrix-keypad";
  134. debounce-delay-ms = <5>;
  135. col-scan-delay-us = <2>;
  136. row-gpios = <&gpio1 25 0 /* Bank1, pin25 */
  137. &gpio1 26 0 /* Bank1, pin26 */
  138. &gpio1 27 0>; /* Bank1, pin27 */
  139. col-gpios = <&gpio1 21 0 /* Bank1, pin21 */
  140. &gpio1 22 0>; /* Bank1, pin22 */
  141. linux,keymap = <0x0000008b /* MENU */
  142. 0x0100009e /* BACK */
  143. 0x02000069 /* LEFT */
  144. 0x0001006a /* RIGHT */
  145. 0x0101001c /* ENTER */
  146. 0x0201006c>; /* DOWN */
  147. };
  148. gpio_keys: volume_keys@0 {
  149. compatible = "gpio-keys";
  150. #address-cells = <1>;
  151. #size-cells = <0>;
  152. autorepeat;
  153. switch@9 {
  154. label = "volume-up";
  155. linux,code = <115>;
  156. gpios = <&gpio0 2 1>;
  157. gpio-key,wakeup;
  158. };
  159. switch@10 {
  160. label = "volume-down";
  161. linux,code = <114>;
  162. gpios = <&gpio0 3 1>;
  163. gpio-key,wakeup;
  164. };
  165. };
  166. };
  167. /include/ "tps65910.dtsi"
  168. &tps {
  169. vcc1-supply = <&vbat>;
  170. vcc2-supply = <&vbat>;
  171. vcc3-supply = <&vbat>;
  172. vcc4-supply = <&vbat>;
  173. vcc5-supply = <&vbat>;
  174. vcc6-supply = <&vbat>;
  175. vcc7-supply = <&vbat>;
  176. vccio-supply = <&vbat>;
  177. regulators {
  178. vrtc_reg: regulator@0 {
  179. regulator-always-on;
  180. };
  181. vio_reg: regulator@1 {
  182. regulator-always-on;
  183. };
  184. vdd1_reg: regulator@2 {
  185. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  186. regulator-name = "vdd_mpu";
  187. regulator-min-microvolt = <912500>;
  188. regulator-max-microvolt = <1312500>;
  189. regulator-boot-on;
  190. regulator-always-on;
  191. };
  192. vdd2_reg: regulator@3 {
  193. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  194. regulator-name = "vdd_core";
  195. regulator-min-microvolt = <912500>;
  196. regulator-max-microvolt = <1150000>;
  197. regulator-boot-on;
  198. regulator-always-on;
  199. };
  200. vdd3_reg: regulator@4 {
  201. regulator-always-on;
  202. };
  203. vdig1_reg: regulator@5 {
  204. regulator-always-on;
  205. };
  206. vdig2_reg: regulator@6 {
  207. regulator-always-on;
  208. };
  209. vpll_reg: regulator@7 {
  210. regulator-always-on;
  211. };
  212. vdac_reg: regulator@8 {
  213. regulator-always-on;
  214. };
  215. vaux1_reg: regulator@9 {
  216. regulator-always-on;
  217. };
  218. vaux2_reg: regulator@10 {
  219. regulator-always-on;
  220. };
  221. vaux33_reg: regulator@11 {
  222. regulator-always-on;
  223. };
  224. vmmc_reg: regulator@12 {
  225. regulator-always-on;
  226. };
  227. };
  228. };
  229. &cpsw_emac0 {
  230. phy_id = <&davinci_mdio>, <0>;
  231. };
  232. &cpsw_emac1 {
  233. phy_id = <&davinci_mdio>, <1>;
  234. };