eeti,exc3000.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: EETI EXC3000 series touchscreen controller
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - const: eeti,exc3000
  15. - const: eeti,exc80h60
  16. - const: eeti,exc80h84
  17. - items:
  18. - enum:
  19. - eeti,exc81w32
  20. - const: eeti,exc80h84
  21. reg:
  22. const: 0x2a
  23. interrupts:
  24. maxItems: 1
  25. reset-gpios:
  26. maxItems: 1
  27. vdd-supply:
  28. description: Power supply regulator for the chip
  29. touchscreen-size-x: true
  30. touchscreen-size-y: true
  31. touchscreen-inverted-x: true
  32. touchscreen-inverted-y: true
  33. touchscreen-swapped-x-y: true
  34. required:
  35. - compatible
  36. - reg
  37. - interrupts
  38. - touchscreen-size-x
  39. - touchscreen-size-y
  40. additionalProperties: false
  41. examples:
  42. - |
  43. #include "dt-bindings/interrupt-controller/irq.h"
  44. i2c {
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. touchscreen@2a {
  48. compatible = "eeti,exc3000";
  49. reg = <0x2a>;
  50. interrupt-parent = <&gpio1>;
  51. interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
  52. touchscreen-size-x = <4096>;
  53. touchscreen-size-y = <4096>;
  54. touchscreen-inverted-x;
  55. touchscreen-swapped-x-y;
  56. };
  57. };