ste-href-tvk1281618.dtsi 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. * Device Tree for the TVK1281618 UIB
  12. */
  13. #include <dt-bindings/interrupt-controller/irq.h>
  14. / {
  15. gpio_keys {
  16. compatible = "gpio-keys";
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. vdd-supply = <&ab8500_ldo_aux1_reg>;
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>;
  22. button@139 {
  23. /* Proximity sensor */
  24. gpios = <&gpio6 25 0x4>;
  25. linux,code = <11>; /* SW_FRONT_PROXIMITY */
  26. label = "SFH7741 Proximity Sensor";
  27. };
  28. button@145 {
  29. /* Hall sensor */
  30. gpios = <&gpio4 17 0x4>;
  31. linux,code = <0>; /* SW_LID */
  32. label = "HED54XXU11 Hall Effect Sensor";
  33. };
  34. };
  35. soc {
  36. /* Add Synaptics touch screen, TC35893 keypad etc here */
  37. i2c@80004000 {
  38. tc35893@44 {
  39. compatible = "toshiba,tc35893";
  40. reg = <0x44>;
  41. interrupt-parent = <&gpio6>;
  42. interrupts = <26 IRQ_TYPE_EDGE_RISING>;
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&tc35893_tvk_mode>;
  45. interrupt-controller;
  46. #interrupt-cells = <1>;
  47. tc3589x_gpio {
  48. compatible = "toshiba,tc3589x-gpio";
  49. interrupts = <0>;
  50. interrupt-controller;
  51. #interrupt-cells = <2>;
  52. gpio-controller;
  53. #gpio-cells = <2>;
  54. };
  55. tc3589x_keypad {
  56. compatible = "toshiba,tc3589x-keypad";
  57. interrupts = <6>;
  58. debounce-delay-ms = <4>;
  59. keypad,num-columns = <8>;
  60. keypad,num-rows = <8>;
  61. linux,no-autorepeat;
  62. linux,wakeup;
  63. linux,keymap = <0x0301006b
  64. 0x04010066
  65. 0x06040072
  66. 0x040200d7
  67. 0x0303006a
  68. 0x0205000e
  69. 0x0607008b
  70. 0x0500001c
  71. 0x0403000b
  72. 0x03040034
  73. 0x05020067
  74. 0x0305006c
  75. 0x040500e7
  76. 0x0005009e
  77. 0x06020073
  78. 0x01030039
  79. 0x07060069
  80. 0x050500d9>;
  81. };
  82. };
  83. };
  84. /* Sensors mounted on this board variant */
  85. i2c@80128000 {
  86. lsm303dlh@18 {
  87. /* Accelerometer */
  88. compatible = "st,lsm303dlh-accel";
  89. st,drdy-int-pin = <1>;
  90. reg = <0x18>;
  91. vdd-supply = <&ab8500_ldo_aux1_reg>;
  92. vddio-supply = <&db8500_vsmps2_reg>;
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&accel_tvk_mode>;
  95. };
  96. lsm303dlm@1e {
  97. /* Magnetometer */
  98. compatible = "st,lsm303dlm-magn";
  99. reg = <0x1e>;
  100. vdd-supply = <&ab8500_ldo_aux1_reg>;
  101. vddio-supply = <&db8500_vsmps2_reg>;
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&magneto_tvk_mode>;
  104. };
  105. l3g4200d@68 {
  106. /* Gyroscope */
  107. compatible = "st,l3g4200d-gyro";
  108. st,drdy-int-pin = <2>;
  109. reg = <0x68>;
  110. vdd-supply = <&ab8500_ldo_aux1_reg>;
  111. vddio-supply = <&db8500_vsmps2_reg>;
  112. };
  113. lsp001wm@5c {
  114. /* Barometer/pressure sensor */
  115. compatible = "st,lps001wp-press";
  116. reg = <0x5c>;
  117. vdd-supply = <&ab8500_ldo_aux1_reg>;
  118. vddio-supply = <&db8500_vsmps2_reg>;
  119. };
  120. };
  121. pinctrl {
  122. /* Pull up this GPIO pin */
  123. tc35893 {
  124. tc35893_tvk_mode: tc35893_tvk {
  125. tvk_cfg {
  126. ste,pins = "GPIO218_AH11";
  127. ste,config = <&gpio_in_pu>;
  128. };
  129. };
  130. };
  131. prox {
  132. prox_tvk_mode: prox_tvk {
  133. tvk_cfg {
  134. ste,pins = "GPIO217_AH12";
  135. ste,config = <&gpio_in_pu>;
  136. };
  137. };
  138. };
  139. hall {
  140. hall_tvk_mode: hall_tvk {
  141. tvk_cfg {
  142. ste,pins = "GPIO145_C13";
  143. ste,config = <&gpio_in_pu>;
  144. };
  145. };
  146. };
  147. accelerometer {
  148. accel_tvk_mode: accel_tvk {
  149. /* Accelerometer interrupt lines 1 & 2 */
  150. tvk_cfg {
  151. ste,pins = "GPIO82_C1", "GPIO83_D3";
  152. ste,config = <&gpio_in_pu>;
  153. };
  154. };
  155. };
  156. magnetometer {
  157. magneto_tvk_mode: magneto_tvk {
  158. /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
  159. tvk_cfg1 {
  160. ste,pins = "GPIO31_V3";
  161. ste,config = <&gpio_in_pu>;
  162. };
  163. tvk_cfg2 {
  164. ste,pins = "GPIO32_V2";
  165. ste,config = <&gpio_in_pd>;
  166. };
  167. };
  168. };
  169. };
  170. };
  171. };