neonode,zforce.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/neonode,zforce.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Neonode infrared touchscreen controller
  7. maintainers:
  8. - Heiko Stuebner <heiko@sntech.de>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. const: neonode,zforce
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. reset-gpios:
  19. maxItems: 1
  20. irq-gpios:
  21. maxItems: 1
  22. x-size:
  23. deprecated: true
  24. $ref: /schemas/types.yaml#/definitions/uint32
  25. y-size:
  26. deprecated: true
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. vdd-supply: true
  29. required:
  30. - compatible
  31. - reg
  32. - interrupts
  33. - reset-gpios
  34. unevaluatedProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/interrupt-controller/irq.h>
  38. i2c {
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. touchscreen@50 {
  42. compatible = "neonode,zforce";
  43. reg = <0x50>;
  44. interrupts = <2 0>;
  45. vdd-supply = <&reg_zforce_vdd>;
  46. reset-gpios = <&gpio5 9 0>; /* RST */
  47. irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
  48. touchscreen-min-x = <0>;
  49. touchscreen-size-x = <800>;
  50. touchscreen-min-y = <0>;
  51. touchscreen-size-y = <600>;
  52. };
  53. };
  54. ...