ibm,op-panel.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/ibm,op-panel.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: IBM Operation Panel
  7. maintainers:
  8. - Eddie James <eajames@linux.ibm.com>
  9. allOf:
  10. - $ref: input.yaml#
  11. description: |
  12. The IBM Operation Panel provides a simple interface to control the connected
  13. server. It has a display and three buttons: two directional arrows and one
  14. 'Enter' button.
  15. properties:
  16. compatible:
  17. const: ibm,op-panel
  18. reg:
  19. maxItems: 1
  20. linux,keycodes:
  21. minItems: 1
  22. maxItems: 3
  23. required:
  24. - compatible
  25. - reg
  26. additionalProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/i2c/i2c.h>
  30. #include <dt-bindings/input/input.h>
  31. i2c {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. ibm-op-panel@62 {
  35. compatible = "ibm,op-panel";
  36. reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
  37. linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_ENTER>;
  38. };
  39. };