1117397SkanTexas Instruments Palmas family power button module
2117397Skan
3117397SkanThis module is part of the Palmas family of PMICs. For more details
4117397Skanabout the whole chip see:
5117397SkanDocumentation/devicetree/bindings/mfd/palmas.txt.
6117397Skan
7117397SkanThis module provides a simple power button event via an Interrupt.
8117397Skan
9117397SkanRequired properties:
10117397Skan- compatible: should be one of the following
11117397Skan   - "ti,palmas-pwrbutton": For Palmas compatible power on button
12117397Skan- interrupts: Interrupt number of power button submodule on device.
13117397Skan
14117397SkanOptional Properties:
15117397Skan
16117397Skan- ti,palmas-long-press-seconds: Duration in seconds which the power
17117397Skan  button should be kept pressed for Palmas to power off automatically.
18169691Skan  NOTE: This depends on OTP support and POWERHOLD signal configuration
19117397Skan  on platform. Valid values are 6, 8, 10 and 12.
20117397Skan- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
21117397Skan  which the power button should be kept pressed for Palmas to register
22117397Skan  a press for debouncing purposes. NOTE: This depends on specific
23117397Skan  Palmas variation capability. Valid values are 15, 100, 500 and 1000.
24117397Skan
25117397SkanExample:
26117397Skan
27117397Skan&palmas {
28117397Skan	palmas_pwr_button: pwrbutton {
29117397Skan		compatible = "ti,palmas-pwrbutton";
30117397Skan		interrupt-parent = <&tps659038>;
31117397Skan		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
32117397Skan		ti,palmas-long-press-seconds = <12>;
33117397Skan		ti,palmas-pwron-debounce-milli-seconds = <15>;
34117397Skan	};
35117397Skan};
36169691Skan