ste-href-stuib.dtsi 4.5 KB

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