ti,ads7843.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/ti,ads7843.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TI's SPI driven touch screen controllers
  7. maintainers:
  8. - Alexander Stein <alexander.stein@ew.tq-group.com>
  9. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  10. - Marek Vasut <marex@denx.de>
  11. description:
  12. TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046 SPI driven touch screen
  13. controllers.
  14. properties:
  15. compatible:
  16. enum:
  17. - ti,ads7843
  18. - ti,ads7845
  19. - ti,ads7846
  20. - ti,ads7873
  21. - ti,tsc2046
  22. interrupts:
  23. maxItems: 1
  24. pendown-gpio:
  25. maxItems: 1
  26. description:
  27. GPIO handle describing the pin the !PENIRQ line is connected to.
  28. vcc-supply:
  29. description:
  30. A regulator node for the supply voltage.
  31. wakeup-source: true
  32. ti,debounce-max:
  33. deprecated: true
  34. $ref: /schemas/types.yaml#/definitions/uint16
  35. description:
  36. Max number of additional readings per sample.
  37. ti,debounce-rep:
  38. $ref: /schemas/types.yaml#/definitions/uint16
  39. description:
  40. Additional consecutive good readings required after the first two.
  41. ti,debounce-tol:
  42. $ref: /schemas/types.yaml#/definitions/uint16
  43. description:
  44. Tolerance used for filtering.
  45. ti,hsync-gpios:
  46. maxItems: 1
  47. description:
  48. GPIO line to poll for hsync.
  49. ti,keep-vref-on:
  50. $ref: /schemas/types.yaml#/definitions/flag
  51. description:
  52. Set to keep Vref on for differential measurements as well.
  53. ti,pendown-gpio-debounce:
  54. $ref: /schemas/types.yaml#/definitions/uint32
  55. description:
  56. Platform specific debounce time for the pendown-gpio.
  57. ti,penirq-recheck-delay-usecs:
  58. $ref: /schemas/types.yaml#/definitions/uint16
  59. description:
  60. If set to non-zero, after samples are taken this delay is applied and
  61. penirq is rechecked, to help avoid false events. This value is
  62. affected by the material used to build the touch layer.
  63. ti,pressure-max:
  64. deprecated: true
  65. $ref: /schemas/types.yaml#/definitions/uint16
  66. description:
  67. Maximum reported pressure value.
  68. ti,pressure-min:
  69. deprecated: true
  70. $ref: /schemas/types.yaml#/definitions/uint16
  71. description:
  72. Minimum reported pressure value (threshold).
  73. ti,settle-delay-usec:
  74. $ref: /schemas/types.yaml#/definitions/uint16
  75. description:
  76. Settling time of the analog signals; a function of Vcc and the
  77. capacitance on the X/Y drivers. If set to non-zero, two samples are
  78. taken with settle_delay us apart, and the second one is used. ~150
  79. uSec with 0.01uF caps.
  80. ti,swap-xy:
  81. deprecated: true
  82. $ref: /schemas/types.yaml#/definitions/flag
  83. description:
  84. Swap x and y axis.
  85. ti,vref-delay-usecs:
  86. $ref: /schemas/types.yaml#/definitions/uint16
  87. description:
  88. Vref supply delay in usecs, 0 for external Vref.
  89. ti,vref-mv:
  90. $ref: /schemas/types.yaml#/definitions/uint16
  91. description:
  92. The VREF voltage, in millivolts.
  93. Set to 0 to use internal references (ADS7846).
  94. ti,x-plate-ohms:
  95. $ref: /schemas/types.yaml#/definitions/uint16
  96. description:
  97. Resistance of the X-plate, in Ohms.
  98. ti,x-max:
  99. deprecated: true
  100. $ref: /schemas/types.yaml#/definitions/uint16
  101. description:
  102. Maximum value on the X axis.
  103. ti,x-min:
  104. deprecated: true
  105. $ref: /schemas/types.yaml#/definitions/uint16
  106. description:
  107. Minimum value on the X axis.
  108. ti,y-plate-ohms:
  109. $ref: /schemas/types.yaml#/definitions/uint16
  110. description:
  111. Resistance of the Y-plate, in Ohms.
  112. ti,y-max:
  113. deprecated: true
  114. $ref: /schemas/types.yaml#/definitions/uint16
  115. description:
  116. Maximum value on the Y axis.
  117. ti,y-min:
  118. deprecated: true
  119. $ref: /schemas/types.yaml#/definitions/uint16
  120. description:
  121. Minimum value on the Y axis.
  122. required:
  123. - compatible
  124. - reg
  125. allOf:
  126. - $ref: touchscreen.yaml#
  127. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  128. unevaluatedProperties: false
  129. examples:
  130. - |
  131. spi{
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. touchscreen@0 {
  135. compatible = "ti,tsc2046";
  136. reg = <0>; /* CS0 */
  137. interrupt-parent = <&gpio1>;
  138. interrupts = <8 0>; /* BOOT6 / GPIO 8 */
  139. pendown-gpio = <&gpio1 8 0>;
  140. spi-max-frequency = <1000000>;
  141. vcc-supply = <&reg_vcc3>;
  142. wakeup-source;
  143. ti,pressure-max = /bits/ 16 <255>;
  144. ti,x-max = /bits/ 16 <8000>;
  145. ti,x-min = /bits/ 16 <0>;
  146. ti,x-plate-ohms = /bits/ 16 <40>;
  147. ti,y-max = /bits/ 16 <4800>;
  148. ti,y-min = /bits/ 16 <0>;
  149. };
  150. };