162306a36Sopenharmony_ciTexas Instruments Palmas family power button module 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis module is part of the Palmas family of PMICs. For more details 462306a36Sopenharmony_ciabout the whole chip see: 562306a36Sopenharmony_ciDocumentation/devicetree/bindings/mfd/palmas.txt. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciThis module provides a simple power button event via an Interrupt. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciRequired properties: 1062306a36Sopenharmony_ci- compatible: should be one of the following 1162306a36Sopenharmony_ci - "ti,palmas-pwrbutton": For Palmas compatible power on button 1262306a36Sopenharmony_ci- interrupts: Interrupt number of power button submodule on device. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciOptional Properties: 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci- ti,palmas-long-press-seconds: Duration in seconds which the power 1762306a36Sopenharmony_ci button should be kept pressed for Palmas to power off automatically. 1862306a36Sopenharmony_ci NOTE: This depends on OTP support and POWERHOLD signal configuration 1962306a36Sopenharmony_ci on platform. Valid values are 6, 8, 10 and 12. 2062306a36Sopenharmony_ci- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds 2162306a36Sopenharmony_ci which the power button should be kept pressed for Palmas to register 2262306a36Sopenharmony_ci a press for debouncing purposes. NOTE: This depends on specific 2362306a36Sopenharmony_ci Palmas variation capability. Valid values are 15, 100, 500 and 1000. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciExample: 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci&palmas { 2862306a36Sopenharmony_ci palmas_pwr_button: pwrbutton { 2962306a36Sopenharmony_ci compatible = "ti,palmas-pwrbutton"; 3062306a36Sopenharmony_ci interrupt-parent = <&tps659038>; 3162306a36Sopenharmony_ci interrupts = <1 IRQ_TYPE_EDGE_FALLING>; 3262306a36Sopenharmony_ci ti,palmas-long-press-seconds = <12>; 3362306a36Sopenharmony_ci ti,palmas-pwron-debounce-milli-seconds = <15>; 3462306a36Sopenharmony_ci }; 3562306a36Sopenharmony_ci}; 36