ariel-pwrbutton.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/ariel-pwrbutton.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Dell Wyse 3020 a.k.a. "Ariel" Power Button
  7. maintainers:
  8. - Lubomir Rintel <lkundrak@v3.sk>
  9. description: |
  10. The ENE Embedded Controller on the Ariel board has an interface to the
  11. SPI bus that is capable of sending keyboard and mouse data. A single
  12. power button is attached to it. This binding describes this
  13. configuration.
  14. allOf:
  15. - $ref: input.yaml#
  16. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  17. properties:
  18. compatible:
  19. items:
  20. - const: dell,wyse-ariel-ec-input
  21. - const: ene,kb3930-input
  22. reg:
  23. maxItems: 1
  24. interrupts:
  25. maxItems: 1
  26. spi-max-frequency: true
  27. required:
  28. - compatible
  29. - reg
  30. - interrupts
  31. additionalProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. spi {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. power-button@0 {
  39. compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
  40. reg = <0>;
  41. interrupt-parent = <&gpio>;
  42. interrupts = <60 IRQ_TYPE_EDGE_RISING>;
  43. spi-max-frequency = <33000000>;
  44. };
  45. };