xref: /freebsd/sys/contrib/device-tree/Bindings/input/ariel-pwrbutton.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/input/ariel-pwrbutton.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Dell Wyse 3020 a.k.a. "Ariel" Power Button
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Lubomir Rintel <lkundrak@v3.sk>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |
135def4c47SEmmanuel Vadot  The ENE Embedded Controller on the Ariel board has an interface to the
145def4c47SEmmanuel Vadot  SPI bus that is capable of sending keyboard and mouse data. A single
155def4c47SEmmanuel Vadot  power button is attached to it. This binding describes this
165def4c47SEmmanuel Vadot  configuration.
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel VadotallOf:
195def4c47SEmmanuel Vadot  - $ref: input.yaml#
20*b97ee269SEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadotproperties:
235def4c47SEmmanuel Vadot  compatible:
245def4c47SEmmanuel Vadot    items:
255def4c47SEmmanuel Vadot      - const: dell,wyse-ariel-ec-input
265def4c47SEmmanuel Vadot      - const: ene,kb3930-input
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  reg:
295def4c47SEmmanuel Vadot    maxItems: 1
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  interrupts:
325def4c47SEmmanuel Vadot    maxItems: 1
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  spi-max-frequency: true
355def4c47SEmmanuel Vadot
365def4c47SEmmanuel Vadotrequired:
375def4c47SEmmanuel Vadot  - compatible
385def4c47SEmmanuel Vadot  - reg
395def4c47SEmmanuel Vadot  - interrupts
405def4c47SEmmanuel Vadot
415def4c47SEmmanuel VadotadditionalProperties: false
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel Vadotexamples:
445def4c47SEmmanuel Vadot  - |
455def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadot    spi {
485def4c47SEmmanuel Vadot        #address-cells = <1>;
495def4c47SEmmanuel Vadot        #size-cells = <0>;
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadot        power-button@0 {
525def4c47SEmmanuel Vadot            compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
535def4c47SEmmanuel Vadot            reg = <0>;
545def4c47SEmmanuel Vadot            interrupt-parent = <&gpio>;
555def4c47SEmmanuel Vadot            interrupts = <60 IRQ_TYPE_EDGE_RISING>;
565def4c47SEmmanuel Vadot            spi-max-frequency = <33000000>;
575def4c47SEmmanuel Vadot        };
585def4c47SEmmanuel Vadot    };
59