pine64,pinephone-keyboard.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/pine64,pinephone-keyboard.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Pine64 PinePhone keyboard
  7. maintainers:
  8. - Samuel Holland <samuel@sholland.org>
  9. description:
  10. A keyboard accessory is available for the Pine64 PinePhone and PinePhone Pro.
  11. It connects via I2C, providing a raw scan matrix, a flashing interface, and a
  12. subordinate I2C bus for communication with a battery charger IC.
  13. properties:
  14. compatible:
  15. const: pine64,pinephone-keyboard
  16. reg:
  17. const: 0x15
  18. interrupts:
  19. maxItems: 1
  20. vbat-supply:
  21. description: Supply for the keyboard MCU
  22. wakeup-source: true
  23. i2c:
  24. $ref: /schemas/i2c/i2c-controller.yaml#
  25. required:
  26. - compatible
  27. - reg
  28. - interrupts
  29. additionalProperties: false
  30. examples:
  31. - |
  32. #include <dt-bindings/input/input.h>
  33. #include <dt-bindings/interrupt-controller/irq.h>
  34. i2c {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. keyboard@15 {
  38. compatible = "pine64,pinephone-keyboard";
  39. reg = <0x15>;
  40. interrupt-parent = <&r_pio>;
  41. interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */
  42. i2c {
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. charger@75 {
  46. reg = <0x75>;
  47. };
  48. };
  49. };
  50. };