Marcin Niestroj | 722dc54 | 2016-09-10 10:42:53 -0700 | [diff] [blame] | 1 | Texas Instruments TPS65217 and TPS65218 power button |
| 2 | |
| 3 | This module is part of the TPS65217/TPS65218. For more details about the whole |
| 4 | TPS65217 chip see Documentation/devicetree/bindings/regulator/tps65217.txt. |
Felipe Balbi | 5fafed3 | 2014-12-27 20:37:37 -0800 | [diff] [blame] | 5 | |
| 6 | This driver provides a simple power button event via an Interrupt. |
| 7 | |
| 8 | Required properties: |
Marcin Niestroj | 722dc54 | 2016-09-10 10:42:53 -0700 | [diff] [blame] | 9 | - compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton" |
| 10 | |
Milo Kim | 2bc4d1c | 2016-12-09 15:28:33 +0900 | [diff] [blame] | 11 | Required properties: |
Felipe Balbi | 5fafed3 | 2014-12-27 20:37:37 -0800 | [diff] [blame] | 12 | - interrupts: should be one of the following |
Milo Kim | 2bc4d1c | 2016-12-09 15:28:33 +0900 | [diff] [blame] | 13 | - <2>: For controllers compatible with tps65217 |
Felipe Balbi | 5fafed3 | 2014-12-27 20:37:37 -0800 | [diff] [blame] | 14 | - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218 |
| 15 | |
Marcin Niestroj | 722dc54 | 2016-09-10 10:42:53 -0700 | [diff] [blame] | 16 | Examples: |
| 17 | |
| 18 | &tps { |
| 19 | tps65217-pwrbutton { |
| 20 | compatible = "ti,tps65217-pwrbutton"; |
Milo Kim | 2bc4d1c | 2016-12-09 15:28:33 +0900 | [diff] [blame] | 21 | interrupts = <2>; |
Marcin Niestroj | 722dc54 | 2016-09-10 10:42:53 -0700 | [diff] [blame] | 22 | }; |
| 23 | }; |
Felipe Balbi | 5fafed3 | 2014-12-27 20:37:37 -0800 | [diff] [blame] | 24 | |
| 25 | &tps { |
| 26 | power-button { |
| 27 | compatible = "ti,tps65218-pwrbutton"; |
| 28 | interrupts = <3 IRQ_TYPE_EDGE_BOTH>; |
| 29 | }; |
| 30 | }; |