am335x-evm.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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>;
  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. };
  59. ocp {
  60. uart0: serial@44e09000 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&uart0_pins>;
  63. status = "okay";
  64. };
  65. i2c0: i2c@44e0b000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&i2c0_pins>;
  68. status = "okay";
  69. clock-frequency = <400000>;
  70. tps: tps@2d {
  71. reg = <0x2d>;
  72. };
  73. };
  74. i2c1: i2c@4802a000 {
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&i2c1_pins>;
  77. status = "okay";
  78. clock-frequency = <100000>;
  79. lis331dlh: lis331dlh@18 {
  80. compatible = "st,lis331dlh", "st,lis3lv02d";
  81. reg = <0x18>;
  82. Vdd-supply = <&lis3_reg>;
  83. Vdd_IO-supply = <&lis3_reg>;
  84. st,click-single-x;
  85. st,click-single-y;
  86. st,click-single-z;
  87. st,click-thresh-x = <10>;
  88. st,click-thresh-y = <10>;
  89. st,click-thresh-z = <10>;
  90. st,irq1-click;
  91. st,irq2-click;
  92. st,wakeup-x-lo;
  93. st,wakeup-x-hi;
  94. st,wakeup-y-lo;
  95. st,wakeup-y-hi;
  96. st,wakeup-z-lo;
  97. st,wakeup-z-hi;
  98. st,min-limit-x = <120>;
  99. st,min-limit-y = <120>;
  100. st,min-limit-z = <140>;
  101. st,max-limit-x = <550>;
  102. st,max-limit-y = <550>;
  103. st,max-limit-z = <750>;
  104. };
  105. tsl2550: tsl2550@39 {
  106. compatible = "taos,tsl2550";
  107. reg = <0x39>;
  108. };
  109. tmp275: tmp275@48 {
  110. compatible = "ti,tmp275";
  111. reg = <0x48>;
  112. };
  113. };
  114. };
  115. vbat: fixedregulator@0 {
  116. compatible = "regulator-fixed";
  117. regulator-name = "vbat";
  118. regulator-min-microvolt = <5000000>;
  119. regulator-max-microvolt = <5000000>;
  120. regulator-boot-on;
  121. };
  122. lis3_reg: fixedregulator@1 {
  123. compatible = "regulator-fixed";
  124. regulator-name = "lis3_reg";
  125. regulator-boot-on;
  126. };
  127. matrix_keypad: matrix_keypad@0 {
  128. compatible = "gpio-matrix-keypad";
  129. debounce-delay-ms = <5>;
  130. col-scan-delay-us = <2>;
  131. row-gpios = <&gpio1 25 0 /* Bank1, pin25 */
  132. &gpio1 26 0 /* Bank1, pin26 */
  133. &gpio1 27 0>; /* Bank1, pin27 */
  134. col-gpios = <&gpio1 21 0 /* Bank1, pin21 */
  135. &gpio1 22 0>; /* Bank1, pin22 */
  136. linux,keymap = <0x0000008b /* MENU */
  137. 0x0100009e /* BACK */
  138. 0x02000069 /* LEFT */
  139. 0x0001006a /* RIGHT */
  140. 0x0101001c /* ENTER */
  141. 0x0201006c>; /* DOWN */
  142. };
  143. gpio_keys: volume_keys@0 {
  144. compatible = "gpio-keys";
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. autorepeat;
  148. switch@9 {
  149. label = "volume-up";
  150. linux,code = <115>;
  151. gpios = <&gpio0 2 1>;
  152. gpio-key,wakeup;
  153. };
  154. switch@10 {
  155. label = "volume-down";
  156. linux,code = <114>;
  157. gpios = <&gpio0 3 1>;
  158. gpio-key,wakeup;
  159. };
  160. };
  161. };
  162. /include/ "tps65910.dtsi"
  163. &tps {
  164. vcc1-supply = <&vbat>;
  165. vcc2-supply = <&vbat>;
  166. vcc3-supply = <&vbat>;
  167. vcc4-supply = <&vbat>;
  168. vcc5-supply = <&vbat>;
  169. vcc6-supply = <&vbat>;
  170. vcc7-supply = <&vbat>;
  171. vccio-supply = <&vbat>;
  172. regulators {
  173. vrtc_reg: regulator@0 {
  174. regulator-always-on;
  175. };
  176. vio_reg: regulator@1 {
  177. regulator-always-on;
  178. };
  179. vdd1_reg: regulator@2 {
  180. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  181. regulator-name = "vdd_mpu";
  182. regulator-min-microvolt = <912500>;
  183. regulator-max-microvolt = <1312500>;
  184. regulator-boot-on;
  185. regulator-always-on;
  186. };
  187. vdd2_reg: regulator@3 {
  188. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  189. regulator-name = "vdd_core";
  190. regulator-min-microvolt = <912500>;
  191. regulator-max-microvolt = <1150000>;
  192. regulator-boot-on;
  193. regulator-always-on;
  194. };
  195. vdd3_reg: regulator@4 {
  196. regulator-always-on;
  197. };
  198. vdig1_reg: regulator@5 {
  199. regulator-always-on;
  200. };
  201. vdig2_reg: regulator@6 {
  202. regulator-always-on;
  203. };
  204. vpll_reg: regulator@7 {
  205. regulator-always-on;
  206. };
  207. vdac_reg: regulator@8 {
  208. regulator-always-on;
  209. };
  210. vaux1_reg: regulator@9 {
  211. regulator-always-on;
  212. };
  213. vaux2_reg: regulator@10 {
  214. regulator-always-on;
  215. };
  216. vaux33_reg: regulator@11 {
  217. regulator-always-on;
  218. };
  219. vmmc_reg: regulator@12 {
  220. regulator-always-on;
  221. };
  222. };
  223. };
  224. &cpsw_emac0 {
  225. phy_id = <&davinci_mdio>, <0>;
  226. };
  227. &cpsw_emac1 {
  228. phy_id = <&davinci_mdio>, <1>;
  229. };