[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1654602615-28849-4-git-send-email-quic_c_skakit@quicinc.com>
Date: Tue, 7 Jun 2022 17:20:09 +0530
From: Satya Priya <quic_c_skakit@...cinc.com>
To: Bjorn Andersson <bjorn.andersson@...aro.org>,
Rob Herring <robh+dt@...nel.org>
CC: Lee Jones <lee.jones@...aro.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
<linux-arm-msm@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <swboyd@...omium.org>,
<quic_collinsd@...cinc.com>, <quic_subbaram@...cinc.com>,
<quic_jprakash@...cinc.com>,
Satya Priya <quic_c_skakit@...cinc.com>
Subject: [PATCH V14 3/9] dt-bindings: mfd: pm8008: Add regulators for pm8008
Add regulators and their parent supplies along with example.
Signed-off-by: Satya Priya <quic_c_skakit@...cinc.com>
Reviewed-by: Stephen Boyd <swboyd@...omium.org>
Reviewed-by: Rob Herring <robh@...nel.org>
---
Changes in V14:
- None.
Changes in V13:
- None.
Changes in V12:
- None.
Changes in V11:
- Add ldos directly under pm8008@8 node, remove the intermediate "regulators"
node.
Changes in V10:
- Regulators are added as a part of pm8008@8 device. Change bindings doc
accordingly.
.../devicetree/bindings/mfd/qcom,pm8008.yaml | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
index a54d1ce0..fd3c51e 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
@@ -47,6 +47,21 @@ properties:
reset-gpios:
maxItems: 1
+ vdd_l1_l2-supply:
+ description: Input supply phandle of ldo1 and ldo2 regulators.
+
+ vdd_l3_l4-supply:
+ description: Input supply phandle of ldo3 and ldo4 regulators.
+
+ vdd_l5-supply:
+ description: Input supply phandle of ldo5 regulator.
+
+ vdd_l6-supply:
+ description: Input supply phandle of ldo6 regulator.
+
+ vdd_l7-supply:
+ description: Input supply phandle of ldo7 regulator.
+
patternProperties:
"^gpio@0,[0-9a-f]+$":
type: object
@@ -88,6 +103,27 @@ patternProperties:
additionalProperties: false
+ "^ldo[1-7]@[1],[0-9a-f]+$":
+ type: object
+
+ $ref: "/schemas/regulator/regulator.yaml#"
+
+ description: PM8008 regulator peripherals of PM8008 regulator device.
+
+ properties:
+ compatible:
+ const: qcom,pm8008-regulator
+
+ reg:
+ description: Peripheral offset and address of the ldo regulator.
+ maxItems: 1
+
+ required:
+ - compatible
+ - reg
+
+ unevaluatedProperties: false
+
required:
- compatible
- reg
@@ -120,6 +156,12 @@ examples:
reset-gpios = <&pm8350c_gpios 4 GPIO_ACTIVE_LOW>;
+ vdd_l1_l2-supply = <&vreg_s8b_1p2>;
+ vdd_l3_l4-supply = <&vreg_s1b_1p8>;
+ vdd_l5-supply = <&vreg_bob>;
+ vdd_l6-supply = <&vreg_bob>;
+ vdd_l7-supply = <&vreg_bob>;
+
pm8008_gpios: gpio@0,c000 {
compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio";
reg = <0x0 0xc000>;
@@ -129,6 +171,14 @@ examples:
interrupt-controller;
#interrupt-cells = <2>;
};
+
+ ldo1@1,4000 {
+ compatible = "qcom,pm8008-regulator";
+ reg = <0x1 0x4000>;
+ regulator-name = "pm8008_ldo1";
+ regulator-min-microvolt = <950000>;
+ regulator-max-microvolt = <1300000>;
+ };
};
};
--
2.7.4
Powered by blists - more mailing lists