ste-href-stuib.dtsi 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /*
  2. * Copyright 2012 ST-Ericsson AB
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include <dt-bindings/interrupt-controller/irq.h>
  12. / {
  13. gpio_keys {
  14. compatible = "gpio-keys";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. vdd-supply = <&ab8500_ldo_aux1_reg>;
  18. pinctrl-names = "default";
  19. pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>;
  20. button@139 {
  21. /* Proximity sensor */
  22. gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
  23. linux,code = <11>; /* SW_FRONT_PROXIMITY */
  24. label = "SFH7741 Proximity Sensor";
  25. };
  26. button@145 {
  27. /* Hall sensor */
  28. gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
  29. linux,code = <0>; /* SW_LID */
  30. label = "HED54XXU11 Hall Effect Sensor";
  31. };
  32. };
  33. soc {
  34. i2c@80004000 {
  35. stmpe1601: stmpe1601@40 {
  36. compatible = "st,stmpe1601";
  37. reg = <0x40>;
  38. interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
  39. interrupt-parent = <&gpio6>;
  40. interrupt-controller;
  41. vcc-supply = <&db8500_vsmps2_reg>;
  42. vio-supply = <&db8500_vsmps2_reg>;
  43. wakeup-source;
  44. st,autosleep-timeout = <1024>;
  45. stmpe_keypad {
  46. compatible = "st,stmpe-keypad";
  47. debounce-interval = <64>;
  48. st,scan-count = <8>;
  49. st,no-autorepeat;
  50. linux,keymap = <0x205006b
  51. 0x4010074
  52. 0x3050072
  53. 0x1030004
  54. 0x502006a
  55. 0x500000a
  56. 0x5008b
  57. 0x706001c
  58. 0x405000b
  59. 0x6070003
  60. 0x3040067
  61. 0x303006c
  62. 0x60400e7
  63. 0x602009e
  64. 0x4020073
  65. 0x5050002
  66. 0x4030069
  67. 0x3020008>;
  68. };
  69. };
  70. };
  71. /* Sensors mounted on this board variant */
  72. i2c@80128000 {
  73. lis331dl@1c {
  74. /* Accelerometer */
  75. compatible = "st,lis331dl-accel";
  76. st,drdy-int-pin = <1>;
  77. reg = <0x1c>;
  78. vdd-supply = <&ab8500_ldo_aux1_reg>;
  79. vddio-supply = <&db8500_vsmps2_reg>;
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&accel_stuib_mode>;
  82. interrupt-parent = <&gpio2>;
  83. interrupts = <18 IRQ_TYPE_EDGE_RISING>,
  84. <19 IRQ_TYPE_EDGE_RISING>;
  85. };
  86. ak8974@0f {
  87. /* Magnetometer */
  88. compatible = "asahi-kasei,ak8974";
  89. reg = <0x0f>;
  90. vdd-supply = <&ab8500_ldo_aux1_reg>;
  91. vddio-supply = <&db8500_vsmps2_reg>;
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&magneto_stuib_mode>;
  94. interrupt-parent = <&gpio1>;
  95. interrupts = <0 IRQ_TYPE_EDGE_RISING>;
  96. };
  97. };
  98. i2c@80110000 {
  99. bu21013_tp@5c {
  100. compatible = "rohm,bu21013_tp";
  101. reg = <0x5c>;
  102. avdd-supply = <&ab8500_ldo_aux1_reg>;
  103. rohm,touch-max-x = <384>;
  104. rohm,touch-max-y = <704>;
  105. rohm,flip-y;
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&touch_rohm_mode>;
  108. };
  109. bu21013_tp@5d {
  110. compatible = "rohm,bu21013_tp";
  111. reg = <0x5d>;
  112. avdd-supply = <&ab8500_ldo_aux1_reg>;
  113. rohm,touch-max-x = <384>;
  114. rohm,touch-max-y = <704>;
  115. rohm,flip-y;
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&touch_rohm_mode>;
  118. };
  119. };
  120. pinctrl {
  121. prox {
  122. prox_stuib_mode: prox_stuib {
  123. stuib_cfg {
  124. pins = "GPIO217_AH12";
  125. ste,config = <&gpio_in_pu>;
  126. };
  127. };
  128. };
  129. hall {
  130. hall_stuib_mode: stuib_tvk {
  131. stuib_cfg {
  132. pins = "GPIO145_C13";
  133. ste,config = <&gpio_in_pu>;
  134. };
  135. };
  136. };
  137. accelerometer {
  138. accel_stuib_mode: accel_stuib {
  139. /* Accelerometer interrupt lines 1 & 2 */
  140. stuib_cfg {
  141. pins = "GPIO82_C1", "GPIO83_D3";
  142. ste,config = <&gpio_in_pu>;
  143. };
  144. };
  145. };
  146. magnetometer {
  147. magneto_stuib_mode: magneto_stuib {
  148. /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
  149. stuib_cfg1 {
  150. pins = "GPIO31_V3";
  151. ste,config = <&gpio_in_pu>;
  152. };
  153. stuib_cfg2 {
  154. pins = "GPIO32_V2";
  155. ste,config = <&gpio_in_pd>;
  156. };
  157. };
  158. };
  159. touch {
  160. touch_rohm_mode: touch_rohm {
  161. /*
  162. * ROHM touch screen uses GPIO 143 for
  163. * RST1, GPIO 146 for RST2 and
  164. * GPIO 67 for interrupts. Pull-up
  165. * the IRQ line and drive both
  166. * reset signals low.
  167. */
  168. stuib_cfg1 {
  169. pins = "GPIO143_D12", "GPIO146_D13";
  170. ste,config = <&gpio_out_lo>;
  171. };
  172. stuib_cfg2 {
  173. pins = "GPIO67_G2";
  174. ste,config = <&gpio_in_pu>;
  175. };
  176. };
  177. };
  178. };
  179. };
  180. };