[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220609150851.23084-2-max.oss.09@gmail.com>
Date: Thu, 9 Jun 2022 17:08:47 +0200
From: Max Krummenacher <max.oss.09@...il.com>
To: max.krummenacher@...adex.com
Cc: Ulf Hansson <ulf.hansson@...aro.org>, linux-pm@...r.kernel.org,
Francesco Dolcini <francesco.dolcini@...adex.com>,
Mark Brown <broonie@...nel.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Kevin Hilman <khilman@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v1 1/5] dt-bindings: power: Add bindings for a power domain controlled by a regulator
From: Max Krummenacher <max.krummenacher@...adex.com>
Adds binding for a power domain provider which uses a regulator to control
the power domain.
Signed-off-by: Max Krummenacher <max.krummenacher@...adex.com>
---
.../power/regulator-power-domain.yaml | 58 +++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/regulator-power-domain.yaml
diff --git a/Documentation/devicetree/bindings/power/regulator-power-domain.yaml b/Documentation/devicetree/bindings/power/regulator-power-domain.yaml
new file mode 100644
index 000000000000..2b49c4f2f866
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/regulator-power-domain.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/regulator-power-domain.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Power domain controlled by a regulator
+
+maintainers:
+ - Max Krummenacher <max.krummenacher@...adex.com>
+
+description: |+
+ Power domain provider which uses a regulator to control
+ the power domain.
+
+allOf:
+ - $ref: "power-domain.yaml#"
+
+properties:
+ compatible:
+ enum:
+ - regulator-pm-pd
+
+ power-supply:
+ description: The regulator used to control the power domain.
+
+ label:
+ description: Human readable string defining the domain.
+
+ "#power-domain-cells":
+ const: 0
+
+ power-domains:
+ maxItems: 1
+
+required:
+ - compatible
+ - "#power-domain-cells"
+ - power-supply
+
+additionalProperties: true
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ reg_pd_sleep_moci: regulator-sleep-moci {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio5 1 GPIO_ACTIVE_HIGH>;
+ regulator-name = "CTRL_SLEEP_MOCI";
+ };
+
+ pd_sleep_moci: power-sleep-moci {
+ compatible = "regulator-pm-pd";
+ power-supply = <®_pd_sleep_moci>;
+ label = "pd_sleep_moci";
+ #power-domain-cells = <0>;
+ };
--
2.20.1
Powered by blists - more mailing lists