[SQUASH] input: misc: Add support for max77620's onoff block

input: misc: Max77620 ON/OFF Block change to button press to key_sleep for linux.

input: misc: max77620-onoff: Ignore button release interrupt if the accompanying press was reported to userspace

Caused some userspaces to shutdown after wakeup from lp0 sleep if the
button was pressed during sleep and not released till after waking.

max77620-onoff: Refactor driver

- Add `maxim,onoff-keycode` under `onoff` child node to select custom ON/OFF button key code.
- Fix button stack at resume.

max77620-onoff: Correct regmap

max77620-onoff: correct irq priority and names

max77620-onoff: clear pending irq on probe

Change-Id: I033bd7a26a4e59b2508e90b4d9e42d2d52e5c17e
This commit is contained in:
Billy Laws authored and Thomas Makin committed 2026-10-10 11:17:17 -05:00
1 parent 5c7245e156
commit 2aa5b04a01
5 files changed
+261

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ obj-$(CONFIG_INPUT_M68K_BEEP) += m68kspkr.o
obj-$(CONFIG_INPUT_MAX7360_ROTARY) += max7360-rotary.o
obj-$(CONFIG_INPUT_MAX77650_ONKEY) += max77650-onkey.o
obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o
obj-$(CONFIG_INPUT_MAX77620_ONOFF) += max77620-onoff.o
obj-$(CONFIG_INPUT_MAX8925_ONKEY) += max8925_onkey.o
obj-$(CONFIG_INPUT_MAX8997_HAPTIC) += max8997_haptic.o
obj-$(CONFIG_INPUT_MC13783_PWRBUTTON) += mc13783-pwrbutton.o