[PATCH RFC 0/4] Add regulator support to gpio-keys

From: Griffin Kroah-Hartman

Date: Fri May 08 2026 - 08:57:05 EST


This patchset adds regulator support to gpio-keys to ensure that the
regulator powering the Hall Effect sensor IC ("flip cover sensor") is on
when the input device is used.

Marked as RFC because we may want to represent a Hall Effect sensor with
a separate compatible + driver, and not use gpio-keys.

There was also a comment around the usage of of_regulator_get() in the
follow thread:
https://lore.kernel.org/all/DI5HOWHCCKKD.1SQFAA3L4QFDI@xxxxxxxxxxxxx/

Signed-off-by: Griffin Kroah-Hartman <griffin.kroah@xxxxxxxxxxxxx>
---
Griffin Kroah-Hartman (4):
regulator: add devm_fwnode family of functions
dt-bindings: input: gpio-keys: Add vdd-supply
Input: gpio-keys - add regulator to gpio_keys
arm64: dts: qcom: milos-fairphone-fp6: add supply for Hall Effect sensor

.../devicetree/bindings/input/gpio-keys.yaml | 4 ++
arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts | 4 +-
drivers/input/keyboard/gpio_keys.c | 41 ++++++++++++++
drivers/regulator/devres.c | 66 ++++++++++++++++++++++
include/linux/gpio_keys.h | 2 +
include/linux/regulator/consumer.h | 30 ++++++++++
6 files changed, 144 insertions(+), 3 deletions(-)
---
base-commit: 17c7841d09ee7d33557fd075562d9289b6018c90
change-id: 20260410-gpiokeys-vdd-supply-855d6ca8534b

Best regards,
--
Griffin Kroah-Hartman <griffin.kroah@xxxxxxxxxxxxx>