am335x-evm.dts 4.8 KB

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