st,stmfts.yaml 1.6 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/st,stmfts.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ST-Microelectronics FingerTip touchscreen controller
  7. maintainers:
  8. - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
  9. description:
  10. The ST-Microelectronics FingerTip device provides a basic touchscreen
  11. functionality. Along with it the user can enable the touchkey which can work
  12. as a basic HOME and BACK key for phones.
  13. allOf:
  14. - $ref: touchscreen.yaml#
  15. properties:
  16. compatible:
  17. const: st,stmfts
  18. reg:
  19. maxItems: 1
  20. avdd-supply:
  21. description: Analogic power supply
  22. interrupts:
  23. maxItems: 1
  24. ledvdd-supply:
  25. description: Power supply to the touch key leds
  26. touch-key-connected:
  27. type: boolean
  28. description: The touchkey feature is connected
  29. vdd-supply:
  30. description: Power supply
  31. required:
  32. - compatible
  33. - reg
  34. - avdd-supply
  35. - interrupts
  36. - vdd-supply
  37. unevaluatedProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/interrupt-controller/irq.h>
  41. i2c {
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. touchscreen@49 {
  45. compatible = "st,stmfts";
  46. reg = <0x49>;
  47. interrupt-parent = <&gpa1>;
  48. interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
  49. touchscreen-size-x = <1599>;
  50. touchscreen-size-y = <2559>;
  51. touch-key-connected;
  52. avdd-supply = <&ldo30_reg>;
  53. vdd-supply = <&ldo31_reg>;
  54. ledvdd-supply = <&ldo33_reg>;
  55. };
  56. };