1# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/ariel-pwrbutton.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Dell Wyse 3020 a.k.a. "Ariel" Power Button
8
9maintainers:
10  - Lubomir Rintel <lkundrak@v3.sk>
11
12description: |
13  The ENE Embedded Controller on the Ariel board has an interface to the
14  SPI bus that is capable of sending keyboard and mouse data. A single
15  power button is attached to it. This binding describes this
16  configuration.
17
18allOf:
19  - $ref: input.yaml#
20
21properties:
22  compatible:
23    items:
24      - const: dell,wyse-ariel-ec-input
25      - const: ene,kb3930-input
26
27  reg:
28    maxItems: 1
29
30  interrupts:
31    maxItems: 1
32
33  spi-max-frequency: true
34
35required:
36  - compatible
37  - reg
38  - interrupts
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/irq.h>
45
46    spi {
47        #address-cells = <1>;
48        #size-cells = <0>;
49
50        power-button@0 {
51            compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
52            reg = <0>;
53            interrupt-parent = <&gpio>;
54            interrupts = <60 IRQ_TYPE_EDGE_RISING>;
55            spi-max-frequency = <33000000>;
56        };
57    };
58