[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250607212654.126412-1-alex.vinarskis@gmail.com>
Date: Sat, 7 Jun 2025 23:25:37 +0200
From: Aleksandrs Vinarskis <alex.vinarskis@...il.com>
To: Aleksandrs Vinarskis <alex.vinarskis@...il.com>,
Mark Brown <broonie@...nel.org>,
linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Cc: Liam Girdwood <lgirdwood@...il.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
jens.glathe@...schoolsolutions.biz,
konrad.dybcio@....qualcomm.com
Subject: [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
--
2.45.2
Powered by blists - more mailing lists