[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2c35dfab-fb6f-4f72-4395-705b5588fab3@quicinc.com>
Date: Wed, 24 Jan 2024 11:16:08 -0800
From: David Collins <quic_collinsd@...cinc.com>
To: <quic_fenglinw@...cinc.com>, <kernel@...cinc.com>,
Bjorn Andersson
<andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Rob Herring
<robh+dt@...nel.org>,
Krzysztof Kozlowski
<krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>
CC: <linux-arm-msm@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
Neil Armstrong <neil.armstrong@...aro.org>
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: sm8650-qrd: add PM8010
regulators
On 1/23/24 00:49, Fenglin Wu via B4 Relay wrote:
> From: Fenglin Wu <quic_fenglinw@...cinc.com>
>
> Add PM8010 regulator device nodes for sm8650-qrd board.
>
> Reviewed-by: Neil Armstrong <neil.armstrong@...aro.org>
> Tested-by: Neil Armstrong <neil.armstrong@...aro.org> # on SM8650-QRD
> Signed-off-by: Fenglin Wu <quic_fenglinw@...cinc.com>
> ---
> arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 118 ++++++++++++++++++++++++++++++++
> 1 file changed, 118 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
> index 592a67a47c78..361894fa201a 100644
> --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
> @@ -436,6 +436,124 @@ vreg_l3i_1p2: ldo3 {
> RPMH_REGULATOR_MODE_HPM>;
> };
> };
> +
> + regulators-6 {
> + compatible = "qcom,pm8010-rpmh-regulators";
> + qcom,pmic-id = "m";
> +
> + vdd-l1-l2-supply = <&vreg_s1c_1p2>;
> + vdd-l3-l4-supply = <&vreg_bob2>;
> + vdd-l5-supply = <&vreg_s6c_1p8>;
> + vdd-l6-l7-supply = <&vreg_bob1>;
Please replace this line with:
vdd-l6-supply = <&vreg_bob1>;
vdd-l7-supply = <&vreg_bob1>;
> +
> + vreg_l1m_1p1: ldo1 {
> + regulator-name = "vreg_l1m_1p1";
> + regulator-min-microvolt = <1104000>;
> + regulator-max-microvolt = <1104000>;
> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
Optional:
PM8010 L1 and L2 physically support LPM vs HPM configuration.
Therefore, these lines could be added here to allow such configuration
by software at runtime:
regulator-allow-set-load;
regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
RPMH_REGULATOR_MODE_HPM>;
> + };
> +
> + vreg_l2m_1p056: ldo2 {
> + regulator-name = "vreg_l2m_1p056";
> + regulator-min-microvolt = <1056000>;
> + regulator-max-microvolt = <1056000>;
> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
The same comment about LPM vs HPM configuration applies here.
> + regulators-7 {
> + compatible = "qcom,pm8010-rpmh-regulators";
> + qcom,pmic-id = "n";
> +
> + vdd-l1-l2-supply = <&vreg_s1c_1p2>;
> + vdd-l3-l4-supply = <&vreg_s6c_1p8>;
> + vdd-l5-l6-supply = <&vreg_bob2>;
Please replace this line with:
vdd-l5-supply = <&vreg_bob2>;
vdd-l6-supply = <&vreg_bob2>;
> + vdd-l7-supply = <&vreg_bob1>;
> +
> + vreg_l1n_1p1: ldo1 {
> + regulator-name = "vreg_l1n_1p1";
> + regulator-min-microvolt = <1104000>;
> + regulator-max-microvolt = <1104000>;
> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
The same comment about LPM vs HPM configuration applies here.
> + };
> +
> + vreg_l2n_1p056: ldo2 {
> + regulator-name = "vreg_l2n_1p056";
> + regulator-min-microvolt = <1056000>;
> + regulator-max-microvolt = <1056000>;
> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
The same comment about LPM vs HPM configuration applies here.
Thanks,
David
Powered by blists - more mailing lists