touchscreen.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common touchscreen
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. properties:
  10. panel:
  11. description: If this touchscreen is integrally connected to a panel, this
  12. is a reference to that panel. The presence of this reference indicates
  13. that the touchscreen should be power sequenced together with the panel
  14. and that they may share power and/or reset signals.
  15. $ref: /schemas/types.yaml#/definitions/phandle
  16. touchscreen-min-x:
  17. description: minimum x coordinate reported
  18. $ref: /schemas/types.yaml#/definitions/uint32
  19. default: 0
  20. touchscreen-min-y:
  21. description: minimum y coordinate reported
  22. $ref: /schemas/types.yaml#/definitions/uint32
  23. default: 0
  24. touchscreen-size-x:
  25. description: horizontal resolution of touchscreen (maximum x coordinate reported + 1)
  26. $ref: /schemas/types.yaml#/definitions/uint32
  27. touchscreen-size-y:
  28. description: vertical resolution of touchscreen (maximum y coordinate reported + 1)
  29. $ref: /schemas/types.yaml#/definitions/uint32
  30. touchscreen-max-pressure:
  31. description: maximum reported pressure (arbitrary range dependent on the controller)
  32. $ref: /schemas/types.yaml#/definitions/uint32
  33. touchscreen-min-pressure:
  34. description: minimum pressure on the touchscreen to be achieved in order
  35. for the touchscreen driver to report a touch event.
  36. $ref: /schemas/types.yaml#/definitions/uint32
  37. touchscreen-fuzz-x:
  38. description: horizontal noise value of the absolute input device (in pixels)
  39. $ref: /schemas/types.yaml#/definitions/uint32
  40. touchscreen-fuzz-y:
  41. description: vertical noise value of the absolute input device (in pixels)
  42. $ref: /schemas/types.yaml#/definitions/uint32
  43. touchscreen-fuzz-pressure:
  44. description: pressure noise value of the absolute input device (arbitrary
  45. range dependent on the controller)
  46. $ref: /schemas/types.yaml#/definitions/uint32
  47. touchscreen-average-samples:
  48. description: Number of data samples which are averaged for each read (valid
  49. values dependent on the controller)
  50. $ref: /schemas/types.yaml#/definitions/uint32
  51. touchscreen-inverted-x:
  52. description: X axis is inverted
  53. type: boolean
  54. touchscreen-inverted-y:
  55. description: Y axis is inverted
  56. type: boolean
  57. touchscreen-swapped-x-y:
  58. description: X and Y axis are swapped
  59. Swapping is done after inverting the axis
  60. type: boolean
  61. touchscreen-x-mm:
  62. description: horizontal length in mm of the touchscreen
  63. touchscreen-y-mm:
  64. description: vertical length in mm of the touchscreen
  65. touchscreen-x-plate-ohms:
  66. description: Resistance of the X-plate in Ohms
  67. touchscreen-y-plate-ohms:
  68. description: Resistance of the Y-plate in Ohms
  69. dependencies:
  70. touchscreen-size-x: [ touchscreen-size-y ]
  71. touchscreen-size-y: [ touchscreen-size-x ]
  72. touchscreen-x-mm: [ touchscreen-y-mm ]
  73. touchscreen-y-mm: [ touchscreen-x-mm ]
  74. additionalProperties: true