[RFC PATCH v1 1/2] regulator: Add dummy regulator consumer binding

From: Aleksandrs Vinarskis
Date: Sat Jun 07 2025 - 17:29:41 EST


Add the devicetree binding for the upcoming driver.

Signed-off-by: Aleksandrs Vinarskis <alex.vinarskis@xxxxxxxxx>
---
.../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@xxxxxxxxx>
+
+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