edt-ft5x06.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: FocalTech EDT-FT5x06 Polytouch
  7. description: |
  8. There are 5 variants of the chip for various touch panel sizes
  9. FT5206GE1 2.8" .. 3.8"
  10. FT5306DE4 4.3" .. 7"
  11. FT5406EE8 7" .. 8.9"
  12. FT5506EEG 7" .. 8.9"
  13. FT5726NEI 5.7” .. 11.6"
  14. maintainers:
  15. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  16. allOf:
  17. - $ref: touchscreen.yaml#
  18. - if:
  19. properties:
  20. compatible:
  21. contains:
  22. enum:
  23. - evervision,ev-ft5726
  24. then:
  25. properties:
  26. offset-x: true
  27. offset-y: true
  28. properties:
  29. compatible:
  30. enum:
  31. - edt,edt-ft5206
  32. - edt,edt-ft5306
  33. - edt,edt-ft5406
  34. - edt,edt-ft5506
  35. - evervision,ev-ft5726
  36. - focaltech,ft5426
  37. - focaltech,ft5452
  38. - focaltech,ft6236
  39. - focaltech,ft8201
  40. - focaltech,ft8719
  41. reg:
  42. maxItems: 1
  43. interrupts:
  44. maxItems: 1
  45. reset-gpios:
  46. maxItems: 1
  47. wake-gpios:
  48. maxItems: 1
  49. wakeup-source: true
  50. vcc-supply: true
  51. iovcc-supply: true
  52. gain:
  53. description: Allows setting the sensitivity in the range from 0 to 31.
  54. Note that lower values indicate higher sensitivity.
  55. $ref: /schemas/types.yaml#/definitions/uint32
  56. minimum: 0
  57. maximum: 31
  58. offset:
  59. description: Allows setting the edge compensation in the range from 0 to 31.
  60. $ref: /schemas/types.yaml#/definitions/uint32
  61. minimum: 0
  62. maximum: 31
  63. offset-x:
  64. description: Same as offset, but applies only to the horizontal position.
  65. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
  66. $ref: /schemas/types.yaml#/definitions/uint32
  67. minimum: 0
  68. maximum: 80
  69. offset-y:
  70. description: Same as offset, but applies only to the vertical position.
  71. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
  72. $ref: /schemas/types.yaml#/definitions/uint32
  73. minimum: 0
  74. maximum: 80
  75. report-rate-hz:
  76. description: |
  77. Allows setting the scan rate in Hertz.
  78. M06 supports range from 30 to 140 Hz.
  79. M12 supports range from 1 to 255 Hz.
  80. minimum: 1
  81. maximum: 255
  82. threshold:
  83. description: Allows setting the "click"-threshold in the range from 0 to 255.
  84. $ref: /schemas/types.yaml#/definitions/uint32
  85. minimum: 0
  86. maximum: 255
  87. touchscreen-size-x: true
  88. touchscreen-size-y: true
  89. touchscreen-fuzz-x: true
  90. touchscreen-fuzz-y: true
  91. touchscreen-inverted-x: true
  92. touchscreen-inverted-y: true
  93. touchscreen-swapped-x-y: true
  94. interrupt-controller: true
  95. additionalProperties: false
  96. required:
  97. - compatible
  98. - reg
  99. - interrupts
  100. examples:
  101. - |
  102. #include <dt-bindings/gpio/gpio.h>
  103. #include <dt-bindings/interrupt-controller/arm-gic.h>
  104. i2c {
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. touchscreen@38 {
  108. compatible = "edt,edt-ft5406";
  109. reg = <0x38>;
  110. interrupt-parent = <&gpio2>;
  111. interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
  112. reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
  113. wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
  114. };
  115. };
  116. ...