xref: /freebsd/sys/contrib/device-tree/Bindings/input/ibm,op-panel.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*7ef62cebSEmmanuel Vadot%YAML 1.2
3*7ef62cebSEmmanuel Vadot---
4*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/input/ibm,op-panel.yaml#
5*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7ef62cebSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: IBM Operation Panel
8*7ef62cebSEmmanuel Vadot
9*7ef62cebSEmmanuel Vadotmaintainers:
10*7ef62cebSEmmanuel Vadot  - Eddie James <eajames@linux.ibm.com>
11*7ef62cebSEmmanuel Vadot
12*7ef62cebSEmmanuel VadotallOf:
13*7ef62cebSEmmanuel Vadot  - $ref: input.yaml#
14*7ef62cebSEmmanuel Vadot
15*7ef62cebSEmmanuel Vadotdescription: |
16*7ef62cebSEmmanuel Vadot  The IBM Operation Panel provides a simple interface to control the connected
17*7ef62cebSEmmanuel Vadot  server. It has a display and three buttons: two directional arrows and one
18*7ef62cebSEmmanuel Vadot  'Enter' button.
19*7ef62cebSEmmanuel Vadot
20*7ef62cebSEmmanuel Vadotproperties:
21*7ef62cebSEmmanuel Vadot  compatible:
22*7ef62cebSEmmanuel Vadot    const: ibm,op-panel
23*7ef62cebSEmmanuel Vadot
24*7ef62cebSEmmanuel Vadot  reg:
25*7ef62cebSEmmanuel Vadot    maxItems: 1
26*7ef62cebSEmmanuel Vadot
27*7ef62cebSEmmanuel Vadot  linux,keycodes:
28*7ef62cebSEmmanuel Vadot    minItems: 1
29*7ef62cebSEmmanuel Vadot    maxItems: 3
30*7ef62cebSEmmanuel Vadot
31*7ef62cebSEmmanuel Vadotrequired:
32*7ef62cebSEmmanuel Vadot  - compatible
33*7ef62cebSEmmanuel Vadot  - reg
34*7ef62cebSEmmanuel Vadot
35*7ef62cebSEmmanuel VadotadditionalProperties: false
36*7ef62cebSEmmanuel Vadot
37*7ef62cebSEmmanuel Vadotexamples:
38*7ef62cebSEmmanuel Vadot  - |
39*7ef62cebSEmmanuel Vadot    #include <dt-bindings/i2c/i2c.h>
40*7ef62cebSEmmanuel Vadot    #include <dt-bindings/input/input.h>
41*7ef62cebSEmmanuel Vadot    i2c {
42*7ef62cebSEmmanuel Vadot        #address-cells = <1>;
43*7ef62cebSEmmanuel Vadot        #size-cells = <0>;
44*7ef62cebSEmmanuel Vadot
45*7ef62cebSEmmanuel Vadot        ibm-op-panel@62 {
46*7ef62cebSEmmanuel Vadot            compatible = "ibm,op-panel";
47*7ef62cebSEmmanuel Vadot            reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
48*7ef62cebSEmmanuel Vadot            linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_ENTER>;
49*7ef62cebSEmmanuel Vadot        };
50*7ef62cebSEmmanuel Vadot    };
51