lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 22 Dec 2019 00:40:27 +0100
From:   Saravanan Sekar <sravanhome@...il.com>
To:     sravanhome@...il.com, lgirdwood@...il.com, broonie@...nel.org,
        robh+dt@...nel.org, mark.rutland@....com, mripard@...nel.org,
        shawnguo@...nel.org, heiko@...ech.de, sam@...nborg.org,
        icenowy@...c.io, laurent.pinchart@...asonboard.com,
        gregkh@...uxfoundation.org, Jonathan.Cameron@...wei.com,
        davem@...emloft.net, mchehab+samsung@...nel.org
Cc:     devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 2/4] dt-bindings: regulator: add document bindings for mpq7920

Add device tree binding information for mpq7920 regulator driver.
Example bindings for mpq7920 are added.

Signed-off-by: Saravanan Sekar <sravanhome@...il.com>
---
 .../bindings/regulator/mpq7920.yaml           | 135 ++++++++++++++++++
 1 file changed, 135 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..a60d3ef04c05
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/mpq7920.yaml
@@ -0,0 +1,135 @@
+# 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@...il.com>
+
+properties:
+  $nodename:
+    pattern: "mpq@[0-9a-f]{1,2}"
+  compatible:
+    enum:
+	- mps,mpq7920
+
+  reg:
+    maxItems: 1
+
+  regulators:
+    type: object
+    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"
+         - enum: [ 0, 1, 2, 3 ]
+         - default: 0
+       description: |
+         each regulator output shall be delayed during power on/off sequence which
+         based on configurable time slot value, must be one of following corresponding
+         value 0.5ms, 2ms, 8ms, 16ms
+
+       mps,fixed-on-time:
+          - $ref: "/schemas/types.yaml#/definitions/boolean"
+       description: |
+         select power on sequence with fixed time output delay mentioned in
+         time-slot reg for all the regulators.
+
+       mps,fixed-off-time:
+          - $ref: "/schemas/types.yaml#/definitions/boolean"
+       description: |
+          select power off sequence with fixed time output delay mentioned in
+          time-slot reg for all the regulators.
+
+       mps,inc-off-time:
+          - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+          - minimum: 0
+            maximum: 15
+       description: |
+          mutually exclusive to mps,fixed-off-time an array of 8, linearly increase
+          output delay during power off sequence based on factor of time slot/interval
+          for each regulator.
+
+       mps,inc-on-time:
+          - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+          - minimum: 0
+            maximum: 15
+          - default: [ 0, 6, 0, 6, 7, 7, 7, 9 ]
+       description: |
+          mutually exclusive to mps,fixed-on-time an array of 8, linearly increase
+          output delay during power on sequence based on factor of time slot/interval
+          for each regulator.
+
+       mps,switch-freq:
+         - $ref: "/schemas/types.yaml#/definitions/uint8"
+         - enum: [ 0, 1, 2, 3 ]
+         - default: 2
+       description: |
+          switching frequency must be one of following corresponding value
+          1.1MHz, 1.65MHz, 2.2MHz, 2.75MHz
+
+       mps,buck-softstart:
+         - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+         - enum: [ 0, 1, 2, 3 ]
+         - default: [ 1, 1, 1, 1 ]
+       description: |
+          An array of 4 contains soft start time of each buck, must be one of
+          following corresponding values 150us, 300us, 610us, 920us
+
+       mps,buck-ovp:
+         - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+         - enum: [ 0, 1 ]
+         - default: [ 1, 1, 1, 1 ]
+       description: |
+          An array of 4 contains over voltage protection of each buck, must be
+          one of above values
+
+       mps,buck-phase-delay:
+         - $ref: "/schemas/types.yaml#/definitions/uint8-array"
+         - enum: [ 0, 1, 2, 3 ]
+         - default: [ 0, 0, 1, 1 ]
+       description: |
+          An array of 4 contains phase delay of each buck must be one of above values
+          corresponding to 0deg, 90deg, 180deg, 270deg,
+
+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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ