xref: /linux/Documentation/devicetree/bindings/input/fsl,scu-key.yaml (revision 03c11eb3b16dc0058589751dfd91f254be2be613)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: i.MX SCU Client Device Node - SCU Key Based on SCU Message Protocol
8
9maintainers:
10  - Dong Aisheng <aisheng.dong@nxp.com>
11
12description: i.MX SCU Client Device Node
13  Client nodes are maintained as children of the relevant IMX-SCU device node.
14
15allOf:
16  - $ref: input.yaml#
17
18properties:
19  compatible:
20    items:
21      - const: fsl,imx8qxp-sc-key
22      - const: fsl,imx-sc-key
23
24  linux,keycodes:
25    maxItems: 1
26
27  wakeup-source: true
28
29required:
30  - compatible
31  - linux,keycodes
32
33additionalProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/input/input.h>
38
39    keys {
40        compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
41        linux,keycodes = <KEY_POWER>;
42    };
43