am335x-evm.dts 5.3 KB

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