| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | |
| %YAML 1.2 | |
| --- | |
| $id: http://devicetree.org/schemas/input/ti,tps65217-pwrbutton.yaml# | |
| $schema: http://devicetree.org/meta-schemas/core.yaml# | |
| title: Texas Instruments TPS65217 and TPS65218 Power Button | |
| maintainers: | |
| - Eduard Bostina <egbostina@gmail.com> | |
| description: | |
| This module is part of the TPS65217/TPS65218 PMIC. It provides a simple | |
| power button event via an interrupt. | |
| properties: | |
| compatible: | |
| enum: | |
| - ti,tps65217-pwrbutton | |
| - ti,tps65218-pwrbutton | |
| interrupts: | |
| maxItems: 1 | |
| required: | |
| - compatible | |
| - interrupts | |
| additionalProperties: false | |
| examples: | |
| - | | |
| #include <dt-bindings/interrupt-controller/irq.h> | |
| pmic { | |
| #address-cells = <1>; | |
| #size-cells = <0>; | |
| power-button { | |
| compatible = "ti,tps65218-pwrbutton"; | |
| interrupts = <3 IRQ_TYPE_EDGE_BOTH>; | |
| }; | |
| }; |