[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250607212654.126412-2-alex.vinarskis@gmail.com>
Date: Sat, 7 Jun 2025 23:25:38 +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 1/2] regulator: Add dummy regulator consumer binding
Add the devicetree binding for the upcoming driver.
Signed-off-by: Aleksandrs Vinarskis <alex.vinarskis@...il.com>
---
.../bindings/regulator/dummy-consumer.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/dummy-consumer.yaml
diff --git a/Documentation/devicetree/bindings/regulator/dummy-consumer.yaml b/Documentation/devicetree/bindings/regulator/dummy-consumer.yaml
new file mode 100644
index 000000000000..efe8cccab080
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/dummy-consumer.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/dummy-consumer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Dummy regulator consumer
+
+maintainers:
+ - Aleksandrs Vinarskis <alex.vinarskis@...il.com>
+
+description: |
+ Simple dummy regulator consumer node for devices which are not/cannot be
+ described in the devicetree, and do not need to be powered on during
+ suspend. A power-friendly alternative to leaving regulator without
+ consumer with 'regulator-always-on' property.
+
+properties:
+ compatible:
+ enum:
+ - regulator-dummy-consumer
+
+ vdd-supply:
+ description: Regulator to control
+ $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+ - compatible
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ integrated-usb-camera {
+ compatible = "regulator-dummy-consumer";
+
+ vdd-supply = <&vdd>;
+ };
--
2.45.2
Powered by blists - more mailing lists