Nishanth Menon | adff596 | 2014-08-26 15:57:47 -0700 | [diff] [blame^] | 1 | Texas Instruments Palmas family power button module |
| 2 | |
| 3 | This module is part of the Palmas family of PMICs. For more details |
| 4 | about the whole chip see: |
| 5 | Documentation/devicetree/bindings/mfd/palmas.txt. |
| 6 | |
| 7 | This module provides a simple power button event via an Interrupt. |
| 8 | |
| 9 | Required properties: |
| 10 | - compatible: should be one of the following |
| 11 | - "ti,palmas-pwrbutton": For Palmas compatible power on button |
| 12 | - interrupt-parent: Parent interrupt device, must be handle of palmas node. |
| 13 | - interrupts: Interrupt number of power button submodule on device. |
| 14 | |
| 15 | Optional Properties: |
| 16 | |
| 17 | - ti,palmas-long-press-seconds: Duration in seconds which the power |
| 18 | button should be kept pressed for Palmas to power off automatically. |
| 19 | NOTE: This depends on OTP support and POWERHOLD signal configuration |
| 20 | on platform. Valid values are 6, 8, 10 and 12. |
| 21 | - ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds |
| 22 | which the power button should be kept pressed for Palmas to register |
| 23 | a press for debouncing purposes. NOTE: This depends on specific |
| 24 | Palmas variation capability. Valid values are 15, 100, 500 and 1000. |
| 25 | |
| 26 | Example: |
| 27 | |
| 28 | &palmas { |
| 29 | palmas_pwr_button: pwrbutton { |
| 30 | compatible = "ti,palmas-pwrbutton"; |
| 31 | interrupt-parent = <&tps659038>; |
| 32 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; |
| 33 | ti,palmas-long-press-seconds = <12>; |
| 34 | ti,palmas-pwron-debounce-milli-seconds = <15>; |
| 35 | }; |
| 36 | }; |