am335x-evmsk.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 = <&user_leds_s0 &gpio_keys_s0>;
  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. };
  46. ocp {
  47. uart1: serial@44e09000 {
  48. status = "okay";
  49. };
  50. i2c1: i2c@44e0b000 {
  51. status = "okay";
  52. clock-frequency = <400000>;
  53. tps: tps@2d {
  54. reg = <0x2d>;
  55. };
  56. lis331dlh: lis331dlh@18 {
  57. compatible = "st,lis331dlh", "st,lis3lv02d";
  58. reg = <0x18>;
  59. Vdd-supply = <&lis3_reg>;
  60. Vdd_IO-supply = <&lis3_reg>;
  61. st,click-single-x;
  62. st,click-single-y;
  63. st,click-single-z;
  64. st,click-thresh-x = <10>;
  65. st,click-thresh-y = <10>;
  66. st,click-thresh-z = <10>;
  67. st,irq1-click;
  68. st,irq2-click;
  69. st,wakeup-x-lo;
  70. st,wakeup-x-hi;
  71. st,wakeup-y-lo;
  72. st,wakeup-y-hi;
  73. st,wakeup-z-lo;
  74. st,wakeup-z-hi;
  75. st,min-limit-x = <120>;
  76. st,min-limit-y = <120>;
  77. st,min-limit-z = <140>;
  78. st,max-limit-x = <550>;
  79. st,max-limit-y = <550>;
  80. st,max-limit-z = <750>;
  81. };
  82. };
  83. };
  84. vbat: fixedregulator@0 {
  85. compatible = "regulator-fixed";
  86. regulator-name = "vbat";
  87. regulator-min-microvolt = <5000000>;
  88. regulator-max-microvolt = <5000000>;
  89. regulator-boot-on;
  90. };
  91. lis3_reg: fixedregulator@1 {
  92. compatible = "regulator-fixed";
  93. regulator-name = "lis3_reg";
  94. regulator-boot-on;
  95. };
  96. leds {
  97. compatible = "gpio-leds";
  98. led@1 {
  99. label = "evmsk:green:usr0";
  100. gpios = <&gpio2 4 0>;
  101. default-state = "off";
  102. };
  103. led@2 {
  104. label = "evmsk:green:usr1";
  105. gpios = <&gpio2 5 0>;
  106. default-state = "off";
  107. };
  108. led@3 {
  109. label = "evmsk:green:mmc0";
  110. gpios = <&gpio2 6 0>;
  111. linux,default-trigger = "mmc0";
  112. default-state = "off";
  113. };
  114. led@4 {
  115. label = "evmsk:green:heartbeat";
  116. gpios = <&gpio2 7 0>;
  117. linux,default-trigger = "heartbeat";
  118. default-state = "off";
  119. };
  120. };
  121. };
  122. /include/ "tps65910.dtsi"
  123. &tps {
  124. vcc1-supply = <&vbat>;
  125. vcc2-supply = <&vbat>;
  126. vcc3-supply = <&vbat>;
  127. vcc4-supply = <&vbat>;
  128. vcc5-supply = <&vbat>;
  129. vcc6-supply = <&vbat>;
  130. vcc7-supply = <&vbat>;
  131. vccio-supply = <&vbat>;
  132. regulators {
  133. vrtc_reg: regulator@0 {
  134. regulator-always-on;
  135. };
  136. vio_reg: regulator@1 {
  137. regulator-always-on;
  138. };
  139. vdd1_reg: regulator@2 {
  140. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  141. regulator-name = "vdd_mpu";
  142. regulator-min-microvolt = <912500>;
  143. regulator-max-microvolt = <1312500>;
  144. regulator-boot-on;
  145. regulator-always-on;
  146. };
  147. vdd2_reg: regulator@3 {
  148. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  149. regulator-name = "vdd_core";
  150. regulator-min-microvolt = <912500>;
  151. regulator-max-microvolt = <1150000>;
  152. regulator-boot-on;
  153. regulator-always-on;
  154. };
  155. vdd3_reg: regulator@4 {
  156. regulator-always-on;
  157. };
  158. vdig1_reg: regulator@5 {
  159. regulator-always-on;
  160. };
  161. vdig2_reg: regulator@6 {
  162. regulator-always-on;
  163. };
  164. vpll_reg: regulator@7 {
  165. regulator-always-on;
  166. };
  167. vdac_reg: regulator@8 {
  168. regulator-always-on;
  169. };
  170. vaux1_reg: regulator@9 {
  171. regulator-always-on;
  172. };
  173. vaux2_reg: regulator@10 {
  174. regulator-always-on;
  175. };
  176. vaux33_reg: regulator@11 {
  177. regulator-always-on;
  178. };
  179. vmmc_reg: regulator@12 {
  180. regulator-always-on;
  181. };
  182. };
  183. };