elan,ektf2127.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/elan,ektf2127.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Elan eKTF2127 I2C touchscreen controller
  7. maintainers:
  8. - Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - elan,ektf2127
  15. - elan,ektf2132
  16. - elan,ektf2232
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. power-gpios:
  22. maxItems: 1
  23. required:
  24. - compatible
  25. - reg
  26. - interrupts
  27. - power-gpios
  28. unevaluatedProperties: false
  29. examples:
  30. - |
  31. #include <dt-bindings/gpio/gpio.h>
  32. #include <dt-bindings/interrupt-controller/irq.h>
  33. i2c {
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. touchscreen@15 {
  37. compatible = "elan,ektf2127";
  38. reg = <0x15>;
  39. interrupt-parent = <&pio>;
  40. interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
  41. power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
  42. touchscreen-inverted-x;
  43. touchscreen-swapped-x-y;
  44. };
  45. };
  46. ...