Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: IBM Operation Panel |
| 8 | |
| 9 | maintainers: |
| 10 | - Eddie James <eajames@linux.ibm.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: input.yaml# |
| 14 | |
| 15 | description: | |
| 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 | |
| 20 | properties: |
| 21 | compatible: |
| 22 | const: ibm,op-panel |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | linux,keycodes: |
| 28 | minItems: 1 |
| 29 | maxItems: 3 |
| 30 | |
| 31 | required: |
| 32 | - compatible |
| 33 | - reg |
| 34 | |
| 35 | additionalProperties: false |
| 36 | |
| 37 | examples: |
| 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 | }; |