[PATCH 0/4] iio: light: stk3310: support powering off during suspend

From: Aren Moynihan
Date: Sun Apr 14 2024 - 13:53:28 EST


In the Pine64 PinePhone, the stk3310 chip is powered by a regulator that is
disabled at system boot and can be shut off during suspend. To ensure that
the chip properly initializes, both after boot and suspend, we need to
manage this regulator.

Additionally if the chip is shut off in suspend, we need to make sure that
it gets reinitialized with the same parameters after resume.

Aren Moynihan (2):
dt-bindings: iio: light: stk33xx: add regulator for vdd supply
iio: light: stk3310: log error if reading the chip id fails

Ondrej Jirman (2):
iio: light: stk3310: Implement vdd supply and power it off during
suspend
arm64: dts: allwinner: pinephone: Add power supply to stk3311

.../bindings/iio/light/stk33xx.yaml | 1 +
.../dts/allwinner/sun50i-a64-pinephone.dtsi | 1 +
drivers/iio/light/stk3310.c | 60 +++++++++++++++++--
3 files changed, 58 insertions(+), 4 deletions(-)

--
2.44.0