18c2ecf20Sopenharmony_ciTexas Instruments Palmas family power button module
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis module is part of the Palmas family of PMICs. For more details
48c2ecf20Sopenharmony_ciabout the whole chip see:
58c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/mfd/palmas.txt.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciThis module provides a simple power button event via an Interrupt.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired properties:
108c2ecf20Sopenharmony_ci- compatible: should be one of the following
118c2ecf20Sopenharmony_ci   - "ti,palmas-pwrbutton": For Palmas compatible power on button
128c2ecf20Sopenharmony_ci- interrupts: Interrupt number of power button submodule on device.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciOptional Properties:
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci- ti,palmas-long-press-seconds: Duration in seconds which the power
178c2ecf20Sopenharmony_ci  button should be kept pressed for Palmas to power off automatically.
188c2ecf20Sopenharmony_ci  NOTE: This depends on OTP support and POWERHOLD signal configuration
198c2ecf20Sopenharmony_ci  on platform. Valid values are 6, 8, 10 and 12.
208c2ecf20Sopenharmony_ci- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
218c2ecf20Sopenharmony_ci  which the power button should be kept pressed for Palmas to register
228c2ecf20Sopenharmony_ci  a press for debouncing purposes. NOTE: This depends on specific
238c2ecf20Sopenharmony_ci  Palmas variation capability. Valid values are 15, 100, 500 and 1000.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci&palmas {
288c2ecf20Sopenharmony_ci	palmas_pwr_button: pwrbutton {
298c2ecf20Sopenharmony_ci		compatible = "ti,palmas-pwrbutton";
308c2ecf20Sopenharmony_ci		interrupt-parent = <&tps659038>;
318c2ecf20Sopenharmony_ci		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
328c2ecf20Sopenharmony_ci		ti,palmas-long-press-seconds = <12>;
338c2ecf20Sopenharmony_ci		ti,palmas-pwron-debounce-milli-seconds = <15>;
348c2ecf20Sopenharmony_ci	};
358c2ecf20Sopenharmony_ci};
36