xref: /linux/Documentation/devicetree/bindings/input/ti,tps65217-pwrbutton.yaml (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1*691f40e4SEduard Bostina# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*691f40e4SEduard Bostina%YAML 1.2
3*691f40e4SEduard Bostina---
4*691f40e4SEduard Bostina$id: http://devicetree.org/schemas/input/ti,tps65217-pwrbutton.yaml#
5*691f40e4SEduard Bostina$schema: http://devicetree.org/meta-schemas/core.yaml#
6*691f40e4SEduard Bostina
7*691f40e4SEduard Bostinatitle: Texas Instruments TPS65217 and TPS65218 Power Button
8*691f40e4SEduard Bostina
9*691f40e4SEduard Bostinamaintainers:
10*691f40e4SEduard Bostina  - Eduard Bostina <egbostina@gmail.com>
11*691f40e4SEduard Bostina
12*691f40e4SEduard Bostinadescription:
13*691f40e4SEduard Bostina  This module is part of the TPS65217/TPS65218 PMIC. It provides a simple
14*691f40e4SEduard Bostina  power button event via an interrupt.
15*691f40e4SEduard Bostina
16*691f40e4SEduard Bostinaproperties:
17*691f40e4SEduard Bostina  compatible:
18*691f40e4SEduard Bostina    enum:
19*691f40e4SEduard Bostina      - ti,tps65217-pwrbutton
20*691f40e4SEduard Bostina      - ti,tps65218-pwrbutton
21*691f40e4SEduard Bostina
22*691f40e4SEduard Bostina  interrupts:
23*691f40e4SEduard Bostina    maxItems: 1
24*691f40e4SEduard Bostina
25*691f40e4SEduard Bostinarequired:
26*691f40e4SEduard Bostina  - compatible
27*691f40e4SEduard Bostina  - interrupts
28*691f40e4SEduard Bostina
29*691f40e4SEduard BostinaadditionalProperties: false
30*691f40e4SEduard Bostina
31*691f40e4SEduard Bostinaexamples:
32*691f40e4SEduard Bostina  - |
33*691f40e4SEduard Bostina    #include <dt-bindings/interrupt-controller/irq.h>
34*691f40e4SEduard Bostina    pmic {
35*691f40e4SEduard Bostina        #address-cells = <1>;
36*691f40e4SEduard Bostina        #size-cells = <0>;
37*691f40e4SEduard Bostina
38*691f40e4SEduard Bostina        power-button {
39*691f40e4SEduard Bostina            compatible = "ti,tps65218-pwrbutton";
40*691f40e4SEduard Bostina            interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
41*691f40e4SEduard Bostina        };
42*691f40e4SEduard Bostina    };
43