[PATCH v2 6/6] documentation: regulator: add allow-dummy-supply

Andrej Picej andrej.picej at norik.com
Fri Nov 19 01:54:29 PST 2021


Add "barebox,allow-dummy-supply" property documentation.

Signed-off-by: Andrej Picej <andrej.picej at norik.com>
---
Changes in v2:
- adapt documentation to changed usage
---
 .../bindings/regulator/regulator.rst          | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/regulator.rst

diff --git a/Documentation/devicetree/bindings/regulator/regulator.rst b/Documentation/devicetree/bindings/regulator/regulator.rst
new file mode 100644
index 000000000..9afc020ac
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/regulator.rst
@@ -0,0 +1,35 @@
+Voltage/Current Regulators
+==========================
+
+In addition to the upstream bindings, another property is added:
+
+Optional properties:
+- ``barebox,allow-dummy-supply`` : A property to allow usage of dummy power
+  regulator. This can be added to regulator nodes, whose drivers are not yet
+  supported. It will rely on regulator reset defaults and use of dummy regulator
+  instead.
+
+Examples:
+
+.. code-block:: none
+
+  pmic at 58 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pmic>;
+	compatible = "dlg,da9063";
+	reg = <0x58>;
+
+	regulators {
+		barebox,allow-dummy-supply;
+
+		vddcore_reg: bcore1 {
+			regulator-min-microvolt = <730000>;
+			regulator-max-microvolt = <1380000>;
+		};
+
+		vddsoc_reg: bcore2 {
+			regulator-min-microvolt = <730000>;
+			regulator-max-microvolt = <1380000>;
+		};
+	}
+  }
-- 
2.25.1




More information about the barebox mailing list