lkml.org 
[lkml]   [2022]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 2/4] dt-bindings: regulator: add bindings for output-supply
Date
Add a devicetree binding for the 9elements,output-supply driver.
Example is also provided.

Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
---
.../regulator/9elements,output-supply.yaml | 63 +++++++++++++++++++
1 file changed, 63 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/9elements,output-supply.yaml

diff --git a/Documentation/devicetree/bindings/regulator/9elements,output-supply.yaml b/Documentation/devicetree/bindings/regulator/9elements,output-supply.yaml
new file mode 100644
index 000000000000..e4b67bc0794f
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/9elements,output-supply.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/userspace-consumer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Regulator output-supply driver
+
+maintainers:
+ - Patrick Rudolph <patrick.rudolph@9elements.com>
+
+description: |
+ Regulator output-supply driver helps interact with regulator.
+ Provides regulator events & sysfs notify to capture regulator events
+ in realtime for userspace application.
+ This enables userspace application to monitor events in regulator(s) &
+ handle them appropriately.
+
+
+properties:
+ compatible:
+ enum:
+ - 9elements,output-supply
+
+ regulator-name:
+ description: Name of the consumer line
+
+ regulator-boot-on:
+ description: Enable regulator during boot
+
+ regulator-supplies:
+ description: Supply names for this regulator. This can be multiple strings
+
+patternProperties:
+ ".*-supply$":
+ description: |
+ Input supply phandle(s) for this node. There should be
+ <supply-name>-supply to pass regulators handle
+
+required:
+ - compatible
+ - regulator-supplies
+ - ".*-supply$"
+
+additionalProperties: false
+
+examples:
+ - |
+ p12v_b_consumer {
+ compatible = "9elements,output-supply";
+ regulator-name = "BCM1";
+ regulator-supplies = "vbus";
+ vbus-supply = <&p12v_b>;
+ };
+
+ ssb_rssd32 {
+ compatible = "9elements,output-supply";
+ regulator-name = "ssb_rssd32";
+ regulator-supplies = "sw0", "sw1";
+ sw0-supply = <&sw0_ssb_rssd32>;
+ sw1-supply = <&sw1_ssb_rssd32>;
+ };
+...
--
2.35.3
\
 
 \ /
  Last update: 2022-07-07 10:21    [W:0.098 / U:1.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site