xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunTexas Instruments Palmas family power button module
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis module is part of the Palmas family of PMICs. For more details
4*4882a593Smuzhiyunabout the whole chip see:
5*4882a593SmuzhiyunDocumentation/devicetree/bindings/mfd/palmas.txt.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThis module provides a simple power button event via an Interrupt.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRequired properties:
10*4882a593Smuzhiyun- compatible: should be one of the following
11*4882a593Smuzhiyun   - "ti,palmas-pwrbutton": For Palmas compatible power on button
12*4882a593Smuzhiyun- interrupts: Interrupt number of power button submodule on device.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunOptional Properties:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- ti,palmas-long-press-seconds: Duration in seconds which the power
17*4882a593Smuzhiyun  button should be kept pressed for Palmas to power off automatically.
18*4882a593Smuzhiyun  NOTE: This depends on OTP support and POWERHOLD signal configuration
19*4882a593Smuzhiyun  on platform. Valid values are 6, 8, 10 and 12.
20*4882a593Smuzhiyun- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
21*4882a593Smuzhiyun  which the power button should be kept pressed for Palmas to register
22*4882a593Smuzhiyun  a press for debouncing purposes. NOTE: This depends on specific
23*4882a593Smuzhiyun  Palmas variation capability. Valid values are 15, 100, 500 and 1000.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunExample:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun&palmas {
28*4882a593Smuzhiyun	palmas_pwr_button: pwrbutton {
29*4882a593Smuzhiyun		compatible = "ti,palmas-pwrbutton";
30*4882a593Smuzhiyun		interrupt-parent = <&tps659038>;
31*4882a593Smuzhiyun		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
32*4882a593Smuzhiyun		ti,palmas-long-press-seconds = <12>;
33*4882a593Smuzhiyun		ti,palmas-pwron-debounce-milli-seconds = <15>;
34*4882a593Smuzhiyun	};
35*4882a593Smuzhiyun};
36