]> git.dujemihanovic.xyz Git - linux.git/commitdiff
dt-bindings: regulator: add documentation entry for 88pm88x-regulator
authorKarel Balej <balejk@matfyz.cz>
Wed, 27 Dec 2023 19:47:59 +0000 (20:47 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 20 Jan 2024 19:52:02 +0000 (20:52 +0100)
The Marvell 88PM88X PMICs provide regulators among other things.
Document how to use them.

Signed-off-by: Karel Balej <balejk@matfyz.cz>
Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml
Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml [new file with mode: 0644]

index 115b41c9f22c78f469134f8852e109c76eb1773d..e6944369fc5c6660b2721e971334dc85ba961086 100644 (file)
@@ -54,6 +54,23 @@ examples:
         onkey {
           compatible = "marvell,88pm88x-onkey";
         };
+
+        regulators {
+          ldo2: ldo2 {
+            regulator-min-microvolt = <3100000>;
+            regulator-max-microvolt = <3300000>;
+            };
+
+          ldo15: ldo15 {
+            regulator-min-microvolt = <3300000>;
+            regulator-max-microvolt = <3300000>;
+            };
+
+          buck2: buck2 {
+            regulator-min-microvolt = <1800000>;
+            regulator-max-microvolt = <1800000>;
+            };
+        };
       };
     };
 ...
diff --git a/Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml b/Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml
new file mode 100644 (file)
index 0000000..c6ac17b
--- /dev/null
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/marvell,88pm88x-regulator.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell 88PM88X PMICs regulators
+
+maintainers:
+  - Karel Balej <balejk@matfyz.cz>
+
+description: |
+  This module is part of the Marvell 88PM88X MFD device. For more details
+  see Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml.
+
+  The regulator controller is represented as a sub-node of the PMIC node
+  in the device tree.
+
+  The valid names for 88PM886 regulator nodes are ldo[1-9], ldo1[0-6], buck[1-5].
+
+patternProperties:
+  "^(ldo|buck)[0-9]+$":
+    type: object
+    description:
+      Properties for single regulator.
+    $ref: regulator.yaml#
+
+additionalProperties: false