ti,palmas-pwrbutton.txt 1.3 KB

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