0001 # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/ariel-pwrbutton.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Dell Wyse 3020 a.k.a. "Ariel" Power Button
0008
0009 maintainers:
0010 - Lubomir Rintel <lkundrak@v3.sk>
0011
0012 description: |
0013 The ENE Embedded Controller on the Ariel board has an interface to the
0014 SPI bus that is capable of sending keyboard and mouse data. A single
0015 power button is attached to it. This binding describes this
0016 configuration.
0017
0018 allOf:
0019 - $ref: input.yaml#
0020 - $ref: /schemas/spi/spi-peripheral-props.yaml#
0021
0022 properties:
0023 compatible:
0024 items:
0025 - const: dell,wyse-ariel-ec-input
0026 - const: ene,kb3930-input
0027
0028 reg:
0029 maxItems: 1
0030
0031 interrupts:
0032 maxItems: 1
0033
0034 spi-max-frequency: true
0035
0036 required:
0037 - compatible
0038 - reg
0039 - interrupts
0040
0041 additionalProperties: false
0042
0043 examples:
0044 - |
0045 #include <dt-bindings/interrupt-controller/irq.h>
0046
0047 spi {
0048 #address-cells = <1>;
0049 #size-cells = <0>;
0050
0051 power-button@0 {
0052 compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
0053 reg = <0>;
0054 interrupt-parent = <&gpio>;
0055 interrupts = <60 IRQ_TYPE_EDGE_RISING>;
0056 spi-max-frequency = <33000000>;
0057 };
0058 };