am335x-evmsk.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. /*
  9. * AM335x Starter Kit
  10. * http://www.ti.com/tool/tmdssk3358
  11. */
  12. /dts-v1/;
  13. #include "am33xx.dtsi"
  14. / {
  15. model = "TI AM335x EVM-SK";
  16. compatible = "ti,am335x-evmsk", "ti,am33xx";
  17. cpus {
  18. cpu@0 {
  19. cpu0-supply = <&vdd1_reg>;
  20. };
  21. };
  22. memory {
  23. device_type = "memory";
  24. reg = <0x80000000 0x10000000>; /* 256 MB */
  25. };
  26. am33xx_pinmux: pinmux@44e10800 {
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
  29. user_leds_s0: user_leds_s0 {
  30. pinctrl-single,pins = <
  31. 0x10 0x7 /* gpmc_ad4.gpio1_4, OUTPUT | MODE7 */
  32. 0x14 0x7 /* gpmc_ad5.gpio1_5, OUTPUT | MODE7 */
  33. 0x18 0x7 /* gpmc_ad6.gpio1_6, OUTPUT | MODE7 */
  34. 0x1c 0x7 /* gpmc_ad7.gpio1_7, OUTPUT | MODE7 */
  35. >;
  36. };
  37. gpio_keys_s0: gpio_keys_s0 {
  38. pinctrl-single,pins = <
  39. 0x94 0x27 /* gpmc_oen_ren.gpio2_3, INPUT | MODE7 */
  40. 0x90 0x27 /* gpmc_advn_ale.gpio2_2, INPUT | MODE7 */
  41. 0x70 0x27 /* gpmc_wait0.gpio0_30, INPUT | MODE7 */
  42. 0x9c 0x27 /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
  43. >;
  44. };
  45. i2c0_pins: pinmux_i2c0_pins {
  46. pinctrl-single,pins = <
  47. 0x188 0x30 /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
  48. 0x18c 0x30 /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
  49. >;
  50. };
  51. uart0_pins: pinmux_uart0_pins {
  52. pinctrl-single,pins = <
  53. 0x170 0x30 /* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */
  54. 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
  55. >;
  56. };
  57. clkout2_pin: pinmux_clkout2_pin {
  58. pinctrl-single,pins = <
  59. 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
  60. >;
  61. };
  62. };
  63. ocp {
  64. uart0: serial@44e09000 {
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&uart0_pins>;
  67. status = "okay";
  68. };
  69. i2c0: i2c@44e0b000 {
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&i2c0_pins>;
  72. status = "okay";
  73. clock-frequency = <400000>;
  74. tps: tps@2d {
  75. reg = <0x2d>;
  76. };
  77. lis331dlh: lis331dlh@18 {
  78. compatible = "st,lis331dlh", "st,lis3lv02d";
  79. reg = <0x18>;
  80. Vdd-supply = <&lis3_reg>;
  81. Vdd_IO-supply = <&lis3_reg>;
  82. st,click-single-x;
  83. st,click-single-y;
  84. st,click-single-z;
  85. st,click-thresh-x = <10>;
  86. st,click-thresh-y = <10>;
  87. st,click-thresh-z = <10>;
  88. st,irq1-click;
  89. st,irq2-click;
  90. st,wakeup-x-lo;
  91. st,wakeup-x-hi;
  92. st,wakeup-y-lo;
  93. st,wakeup-y-hi;
  94. st,wakeup-z-lo;
  95. st,wakeup-z-hi;
  96. st,min-limit-x = <120>;
  97. st,min-limit-y = <120>;
  98. st,min-limit-z = <140>;
  99. st,max-limit-x = <550>;
  100. st,max-limit-y = <550>;
  101. st,max-limit-z = <750>;
  102. };
  103. };
  104. };
  105. vbat: fixedregulator@0 {
  106. compatible = "regulator-fixed";
  107. regulator-name = "vbat";
  108. regulator-min-microvolt = <5000000>;
  109. regulator-max-microvolt = <5000000>;
  110. regulator-boot-on;
  111. };
  112. lis3_reg: fixedregulator@1 {
  113. compatible = "regulator-fixed";
  114. regulator-name = "lis3_reg";
  115. regulator-boot-on;
  116. };
  117. leds {
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&user_leds_s0>;
  120. compatible = "gpio-leds";
  121. led@1 {
  122. label = "evmsk:green:usr0";
  123. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  124. default-state = "off";
  125. };
  126. led@2 {
  127. label = "evmsk:green:usr1";
  128. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  129. default-state = "off";
  130. };
  131. led@3 {
  132. label = "evmsk:green:mmc0";
  133. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  134. linux,default-trigger = "mmc0";
  135. default-state = "off";
  136. };
  137. led@4 {
  138. label = "evmsk:green:heartbeat";
  139. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  140. linux,default-trigger = "heartbeat";
  141. default-state = "off";
  142. };
  143. };
  144. gpio_buttons: gpio_buttons@0 {
  145. compatible = "gpio-keys";
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. switch@1 {
  149. label = "button0";
  150. linux,code = <0x100>;
  151. gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
  152. };
  153. switch@2 {
  154. label = "button1";
  155. linux,code = <0x101>;
  156. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  157. };
  158. switch@3 {
  159. label = "button2";
  160. linux,code = <0x102>;
  161. gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  162. gpio-key,wakeup;
  163. };
  164. switch@4 {
  165. label = "button3";
  166. linux,code = <0x103>;
  167. gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
  168. };
  169. };
  170. };
  171. #include "tps65910.dtsi"
  172. &tps {
  173. vcc1-supply = <&vbat>;
  174. vcc2-supply = <&vbat>;
  175. vcc3-supply = <&vbat>;
  176. vcc4-supply = <&vbat>;
  177. vcc5-supply = <&vbat>;
  178. vcc6-supply = <&vbat>;
  179. vcc7-supply = <&vbat>;
  180. vccio-supply = <&vbat>;
  181. regulators {
  182. vrtc_reg: regulator@0 {
  183. regulator-always-on;
  184. };
  185. vio_reg: regulator@1 {
  186. regulator-always-on;
  187. };
  188. vdd1_reg: regulator@2 {
  189. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  190. regulator-name = "vdd_mpu";
  191. regulator-min-microvolt = <912500>;
  192. regulator-max-microvolt = <1312500>;
  193. regulator-boot-on;
  194. regulator-always-on;
  195. };
  196. vdd2_reg: regulator@3 {
  197. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  198. regulator-name = "vdd_core";
  199. regulator-min-microvolt = <912500>;
  200. regulator-max-microvolt = <1150000>;
  201. regulator-boot-on;
  202. regulator-always-on;
  203. };
  204. vdd3_reg: regulator@4 {
  205. regulator-always-on;
  206. };
  207. vdig1_reg: regulator@5 {
  208. regulator-always-on;
  209. };
  210. vdig2_reg: regulator@6 {
  211. regulator-always-on;
  212. };
  213. vpll_reg: regulator@7 {
  214. regulator-always-on;
  215. };
  216. vdac_reg: regulator@8 {
  217. regulator-always-on;
  218. };
  219. vaux1_reg: regulator@9 {
  220. regulator-always-on;
  221. };
  222. vaux2_reg: regulator@10 {
  223. regulator-always-on;
  224. };
  225. vaux33_reg: regulator@11 {
  226. regulator-always-on;
  227. };
  228. vmmc_reg: regulator@12 {
  229. regulator-always-on;
  230. };
  231. };
  232. };