]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: mpc8xxx: Add wake on GPIO support
authorMartyn Welch <martyn.welch@collabora.com>
Tue, 20 Aug 2024 14:33:27 +0000 (15:33 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Sep 2024 10:36:01 +0000 (12:36 +0200)
commite9482dc50ab2cb81b7735180345c48ada87205a5
treed9c030cf49db64569b60cd6fe61f6792599d8284
parentc10c762f76b8cbce165bef9dfd33e6a0d9e52ba7
gpio: mpc8xxx: Add wake on GPIO support

The mpc8xxx GPIO can generate an interrupt on state change. This
interrupt can be used to wake up the device from its sleep state if
enabled to do so. Add required support to the driver so that the GPIO
can be used in this way.

In order for the GPIO to actually function in this way, it is necessary
to also set the GPIO bit in the RCPM. This can be done via the device
tree fsl,rcpm-wakeup property.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Link: https://lore.kernel.org/r/20240820143328.1987442-1-martyn.welch@collabora.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mpc8xxx.c