mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrej Picej <andrej.picej@norik.com>
To: barebox@lists.infradead.org
Subject: [PATCH v2 6/6] documentation: regulator: add allow-dummy-supply
Date: Fri, 19 Nov 2021 10:54:29 +0100	[thread overview]
Message-ID: <20211119095429.1905473-7-andrej.picej@norik.com> (raw)
In-Reply-To: <20211119095429.1905473-1-andrej.picej@norik.com>

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

Signed-off-by: Andrej Picej <andrej.picej@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@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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


  parent reply	other threads:[~2021-11-19  9:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19  9:54 [PATCH v2 0/6] PHYTEC patches to be mainlined Andrej Picej
2021-11-19  9:54 ` [PATCH v2 1/6] flash-header-phytec-pcl063: Set SOC voltage to 1.25 V during boot Andrej Picej
2021-11-19  9:54 ` [PATCH v2 2/6] ARM: configs: imx_v7_defconfig: add OF commands Andrej Picej
2021-11-19  9:54 ` [PATCH v2 3/6] ARM: configs: imx_v7_defconfig: add OCOTP write support Andrej Picej
2021-11-19  9:54 ` [PATCH v2 4/6] regulator: allow use of dummy regulator Andrej Picej
2021-11-19 10:49   ` Trent Piepho
2021-11-19 12:35     ` Andrej Picej
2021-11-19 13:06     ` [PATCH] regulator: fix memory leak Andrej Picej
2022-03-01  8:21       ` Andrej Picej
2022-03-01  8:47         ` Sascha Hauer
2022-03-01  9:01           ` Andrej Picej
2021-11-19  9:54 ` [PATCH v2 5/6] ARM: dts: imx6qdl: pfla02: use dummy regulators Andrej Picej
2021-11-19  9:54 ` Andrej Picej [this message]
2021-11-25  7:30 ` [PATCH v2 0/6] PHYTEC patches to be mainlined Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211119095429.1905473-7-andrej.picej@norik.com \
    --to=andrej.picej@norik.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox