ti,palmas-pwrbutton.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. - interrupts: Interrupt number of power button submodule on device.
  10. Optional Properties:
  11. - ti,palmas-long-press-seconds: Duration in seconds which the power
  12. button should be kept pressed for Palmas to power off automatically.
  13. NOTE: This depends on OTP support and POWERHOLD signal configuration
  14. on platform. Valid values are 6, 8, 10 and 12.
  15. - ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
  16. which the power button should be kept pressed for Palmas to register
  17. a press for debouncing purposes. NOTE: This depends on specific
  18. Palmas variation capability. Valid values are 15, 100, 500 and 1000.
  19. Example:
  20. &palmas {
  21. palmas_pwr_button: pwrbutton {
  22. compatible = "ti,palmas-pwrbutton";
  23. interrupt-parent = <&tps659038>;
  24. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  25. ti,palmas-long-press-seconds = <12>;
  26. ti,palmas-pwron-debounce-milli-seconds = <15>;
  27. };
  28. };