Skip to content

RFC Introduce dummy regulator consumer

Aleksandrs Vinarskis linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regulator: Add dummy regulator consumer bindingDocumentation/devicetree/bindings/regulator/dummy-consumer.yaml+39 -01 reply
2/2regulator: Introduce dummy regulator consumer driverdrivers/regulator/Kconfig drivers/regulator/Makefile drivers/regulator/dummy-consumer.c+95 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH v1 0/2] Introduce dummy regulator consumer

Introduce a very simple dummy consumer driver. Designed to consume a single regulator 'vdd', the driver will power-on on probe and PM suspend (if supported), power-off on remove and PM resume (if enabled).

There are two main reasons for this driver:
1. Create a pseudo-consumer in place of real devices which are not or cannot be described in the device-tree. Examples would be integrated USB UVC camera (present on some arm64 laptops) or dedicated keyboard backlight regulator (hypothetical). Instead of leaving regulator without consumer and regulator-always-on property, one could bind to dummy consumer to save some power during suspend.
2. A great development tool.

Tested on Asus Zenbook A14 with webcamera indicator LED imitating vreg enable pin.

Aleksandrs Vinarskis (2):
regulator: Add dummy regulator consumer binding
regulator: Introduce dummy regulator consumer driver

 .../bindings/regulator/dummy-consumer.yaml    | 39 +++++++++
 drivers/regulator/Kconfig                     |  9 ++
 drivers/regulator/Makefile                    |  1 +
 drivers/regulator/dummy-consumer.c            | 85 +++++++++++++++++++
 4 files changed, 134 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/dummy-consumer.yaml
 create mode 100644 drivers/regulator/dummy-consumer.c
Signature · 1 line
2.45.2