xref: /freebsd/sys/contrib/device-tree/Bindings/input/ibm,op-panel.yaml (revision 1c4ee7dfb8affed302171232b0f612e6bcba3c10)
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
7title: IBM Operation Panel
8
9maintainers:
10  - Eddie James <eajames@linux.ibm.com>
11
12allOf:
13  - $ref: input.yaml#
14
15description: |
16  The IBM Operation Panel provides a simple interface to control the connected
17  server. It has a display and three buttons: two directional arrows and one
18  'Enter' button.
19
20properties:
21  compatible:
22    const: ibm,op-panel
23
24  reg:
25    maxItems: 1
26
27  linux,keycodes:
28    minItems: 1
29    maxItems: 3
30
31required:
32  - compatible
33  - reg
34
35additionalProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/i2c/i2c.h>
40    #include <dt-bindings/input/input.h>
41    i2c {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        ibm-op-panel@62 {
46            compatible = "ibm,op-panel";
47            reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
48            linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_ENTER>;
49        };
50    };
51