From: Saravanan Sekar <sravanhome@gmail.com>
To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org,
robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org,
heiko@sntech.de, shawnguo@kernel.org,
laurent.pinchart@ideasonboard.com, icenowy@aosc.io,
mchehab+samsung@kernel.org, davem@davemloft.net,
gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH 2/4] dt-bindings: regulator: add document bindings for mpq7920
Date: Thu, 19 Dec 2019 11:37:19 +0100 [thread overview]
Message-ID: <20191219103721.10935-3-sravanhome@gmail.com> (raw)
In-Reply-To: <20191219103721.10935-1-sravanhome@gmail.com>
Add device tree binding information for mpq7920 regulator driver.
Example bindings for mpq7920 are added.
Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
---
.../bindings/regulator/mpq7920.yaml | 149 ++++++++++++++++++
1 file changed, 149 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/mpq7920.yaml
diff --git a/Documentation/devicetree/bindings/regulator/mpq7920.yaml b/Documentation/devicetree/bindings/regulator/mpq7920.yaml
new file mode 100644
index 000000000000..79000b745cfd
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/mpq7920.yaml
@@ -0,0 +1,149 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/mpq7920.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Monolithic Power System MPQ7920 PMIC
+
+maintainers:
+ - Saravanan Sekar <sravanhome@gmail.com>
+
+properties:
+ $nodename:
+ pattern: "mpq@[0-9a-f]{1,2}"
+ compatible:
+ enum:
+ - mps,mpq7920
+
+ reg:
+ maxItems: 1
+
+ regulators:
+ type: string
+ description: |
+ list of regulators provided by this controller, must be named
+ after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5]
+ The valid names for regulators are
+ buck1, buck2, buck3, buck4, ldortc, ldo2, ldo3, ldo4, ldo5
+
+ properties:
+ mps,time-slot:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ power on/off sequence time slot/interval must be one of following values
+ With:
+ * 0: 0.5ms
+ * 1: 2ms
+ * 2: 8ms
+ * 3: 16ms
+ Defaults to 0.5ms if not specified.
+
+ properties:
+ mps,fixed-on-time:
+ - $ref: "/schemas/types.yaml#/definitions/boolean"
+ description: |
+ select power on sequence with fixed time interval mentioned in
+ time-slot reg for all the regulators.
+
+ properties:
+ mps,fixed-off-time:
+ - $ref: "/schemas/types.yaml#/definitions/boolean"
+ description: |
+ select power off sequence with fixed time interval mentioned in
+ time-slot reg for all the regulators.
+
+ properties:
+ mps,inc-off-time:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ An array of 8, linearly increase power off sequence time
+ slot/interval for each regulator must be one of following values
+ * 0 to 15
+ properties:
+ mps,inc-on-time:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ An array of 8, linearly increase power on sequence time
+ slot/interval for each regulator must be one of following values
+ * 0 to 15
+
+ properties:
+ mps,switch-freq:
+ - $ref: "/schemas/types.yaml#/definitions/uint8"
+ description: |
+ switching frequency must be one of following values
+ * 0 : 1.1MHz
+ * 1 : 1.65MHz
+ * 2 : 2.2MHz
+ * 3 : 2.75MHz
+ Defaults to 2.2 MHz if not specified.
+
+ properties:
+ mps,buck-softstart:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ An array of 4 contains soft start time of each buck, must be one of
+ following values
+ * 0 : 150us
+ * 1 : 300us
+ * 2 : 610us
+ * 3 : 920us
+ Defaults to 300us if not specified.
+
+ properties:
+ mps,buck-ovp:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ An array of 4 contains over voltage protection of each buck, must be
+ one of following values
+ * 0 : disabled
+ * 1 : enabled
+ Defaults is enabled if not specified.
+
+ properties:
+ mps,buck-phase-delay:
+ - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+ description: |
+ An array of 4 contains each buck phase delay must be one of following
+ values
+ * 0: 0deg
+ * 1: 90deg
+ * 2: 180deg
+ * 3: 270deg
+ Defaults to 0deg for buck1 & buck2, 90deg for buck3 & buck4 if not
+ specified.
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mpq7920@69 {
+ compatible = "mps,mpq7920";
+ reg = <0x69>;
+
+ mps,switch-freq = <1>;
+ mps,buck-softstart = /bits/ 8 <1 2 1 3>;
+ mps,buck-ovp = /bits/ 8 <1 0 1 1>;
+
+ regulators {
+ buck1 {
+ regulator-name = "buck1";
+ regulator-min-microvolt = <400000>;
+ regulator-max-microvolt = <3587500>;
+ regulator-min-microamp = <460000>;
+ regulator-max-microamp = <7600000>;
+ regulator-boot-on;
+ };
+
+ ldo2 {
+ regulator-name = "ldo2";
+ regulator-min-microvolt = <650000>;
+ regulator-max-microvolt = <3587500>;
+ };
+ };
+ };
+ };
+...
--
2.17.1
next prev parent reply other threads:[~2019-12-19 10:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 10:37 [PATCH 0/4] Add regulator support " Saravanan Sekar
2019-12-19 10:37 ` [PATCH 1/4] dt-bindings: Add an entry for Monolithic Power System, MPS Saravanan Sekar
2019-12-19 10:37 ` Saravanan Sekar [this message]
2019-12-19 11:18 ` [PATCH 2/4] dt-bindings: regulator: add document bindings for mpq7920 Maxime Ripard
2019-12-19 10:37 ` [PATCH 3/4] regulator: mpq7920: add mpq7920 regulator driver Saravanan Sekar
2019-12-19 12:44 ` Mark Brown
2019-12-19 10:37 ` [PATCH 4/4] MAINTAINERS: Add entry for mpq7920 PMIC driver Saravanan Sekar
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=20191219103721.10935-3-sravanhome@gmail.com \
--to=sravanhome@gmail.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=broonie@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=icenowy@aosc.io \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab+samsung@kernel.org \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.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
all inboxes | Powered by JetHome®