cypress-sf.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/cypress-sf.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Cypress StreetFighter touchkey controller
  7. maintainers:
  8. - Yassine Oudjana <y.oudjana@protonmail.com>
  9. allOf:
  10. - $ref: input.yaml#
  11. properties:
  12. compatible:
  13. const: cypress,sf3155
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. avdd-supply:
  19. description: Regulator for AVDD analog voltage
  20. vdd-supply:
  21. description: Regulator for VDD digital voltage
  22. linux,keycodes:
  23. minItems: 1
  24. maxItems: 8
  25. required:
  26. - compatible
  27. - reg
  28. - interrupts
  29. - avdd-supply
  30. - vdd-supply
  31. additionalProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/input/input.h>
  35. #include <dt-bindings/interrupt-controller/irq.h>
  36. i2c {
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. touchkey@28 {
  40. compatible = "cypress,sf3155";
  41. reg = <0x28>;
  42. interrupt-parent = <&msmgpio>;
  43. interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
  44. avdd-supply = <&vreg_l6a_1p8>;
  45. vdd-supply = <&vdd_3v2_tp>;
  46. linux,keycodes = <KEY_BACK KEY_MENU>;
  47. };
  48. };