1. Jan 19, 2024
  2. Jan 10, 2024
  3. Jan 05, 2024
  4. Jan 02, 2024
  5. Dec 29, 2023
  6. Dec 24, 2023
  7. Dec 23, 2023
  8. Dec 15, 2023
  9. Dec 14, 2023
  10. Dec 13, 2023
  11. Dec 12, 2023
  12. Dec 10, 2023
  13. Dec 09, 2023
  14. Dec 01, 2023
    • Tony Lindgren's avatar
      Input: gpio-keys - add system suspend support for dedicated wakeirqs · 3717194f
      Tony Lindgren authored
      Some SoCs have a separate dedicated wake-up interrupt controller that can
      be used to wake up the system from deeper idle states. We already support
      configuring a separate interrupt for a gpio-keys button to be used with a
      gpio line. However, we are lacking support system suspend for cases where
      a separate interrupt needs to be used in deeper sleep modes.
      
      Because of it's nature, gpio-keys does not know about the runtime PM state
      of the button gpios, and may have several gpio buttons configured for each
      gpio-keys device instance. Implementing runtime PM support for gpio-keys
      does not help, and we cannot use drivers/base/power/wakeirq.c support. We
      need to implement custom wakeirq support for gpio-keys.
      
      For handling a dedicated wakeirq for system suspend, we enable and disable
      it with gpio_keys_enable_wakeup() and gpio_keys_disable_wakeup() that we
      already use based on device_may_wakeup().
      
      Some systems may have a dedicated wakeirq that c...
      3717194f
    • Tony Lindgren's avatar
      dt-bindings: input: gpio-keys: Allow optional dedicated wakeirq · d2ff98b7
      Tony Lindgren authored
      
      
      Allow configuring an optional dedicated wakeirq for gpio-keys that
      some SoCs have.
      
      Let's use the common interrupt naming "irq" and "wakeup" that we already
      have in use for some drivers and subsystems like i2c framework.
      
      Note that the gpio-keys interrupt property is optional. If only a gpio
      property is specified, the driver tries to translate the gpio into an
      interrupt.
      
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Link: https://lore.kernel.org/r/20231129110618.27551-1-tony@atomide.com
      
      
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      d2ff98b7