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

Signed-off-by: Andrej Picej <[email protected]>
---
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@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


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to