mbox series

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

Message ID 20240414175300.956243-1-aren@peacevolution.org
Headers show
Series iio: light: stk3310: support powering off during suspend | expand

Message

Aren April 14, 2024, 5:53 p.m. UTC
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(-)