* [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size
@ 2022-05-07 15:36 Marijn Suijten
2022-05-07 17:35 ` Konrad Dybcio
2022-07-16 15:19 ` (subset) " Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Marijn Suijten @ 2022-05-07 15:36 UTC (permalink / raw)
To: phone-devel
Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
Konrad Dybcio, Martin Botka, Marijn Suijten, Andy Gross,
Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, linux-arm-msm,
devicetree, linux-kernel
These voltages are not a multiple of the given step-size 8000 (with base
voltage 1664000) in pm8998_pldo, resulting in PLDO regulators l18 and
l22 failing to validate and in turn not probing the rpm-pm8998-regulator
driver:
l18: unsupportable voltage constraints 2856000-2848000uV
qcom_rpm_smd_regulator rpm-glink:rpm-requests:pm8998-regulators: l18: devm_regulator_register() failed, ret=-22
Round the voltages down for the sake of erring on the safe side, leaving
a comment in place to document this discrepancy wrt downstream sources.
Fixes: 390883af89d2 ("arm64: dts: qcom: msm8998: Introduce support for Sony Yoshino platform")
Reported-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
.../dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
index 4a1f98a21031..c21333aa73c2 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
+++ b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
@@ -26,11 +26,13 @@ &lab {
};
&vreg_l18a_2p85 {
- regulator-min-microvolt = <2850000>;
- regulator-max-microvolt = <2850000>;
+ /* Note: Round-down from 2850000 to be a multiple of PLDO step-size 8000 */
+ regulator-min-microvolt = <2848000>;
+ regulator-max-microvolt = <2848000>;
};
&vreg_l22a_2p85 {
- regulator-min-microvolt = <2700000>;
- regulator-max-microvolt = <2700000>;
+ /* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */
+ regulator-min-microvolt = <2696000>;
+ regulator-max-microvolt = <2696000>;
};
--
2.36.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size
2022-05-07 15:36 [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size Marijn Suijten
@ 2022-05-07 17:35 ` Konrad Dybcio
2022-07-16 15:19 ` (subset) " Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2022-05-07 17:35 UTC (permalink / raw)
To: Marijn Suijten, phone-devel
Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
Martin Botka, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Markuss Broks
On 7.05.2022 17:36, Marijn Suijten wrote:
> These voltages are not a multiple of the given step-size 8000 (with base
> voltage 1664000) in pm8998_pldo, resulting in PLDO regulators l18 and
> l22 failing to validate and in turn not probing the rpm-pm8998-regulator
> driver:
>
> l18: unsupportable voltage constraints 2856000-2848000uV
> qcom_rpm_smd_regulator rpm-glink:rpm-requests:pm8998-regulators: l18: devm_regulator_register() failed, ret=-22
>
> Round the voltages down for the sake of erring on the safe side, leaving
> a comment in place to document this discrepancy wrt downstream sources.
>
> Fixes: 390883af89d2 ("arm64: dts: qcom: msm8998: Introduce support for Sony Yoshino platform")
> Reported-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> ---
Also:
Reported-by: Markuss Broks <markuss.broks@gmail.com>
Konrad
> .../dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
> index 4a1f98a21031..c21333aa73c2 100644
> --- a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
> @@ -26,11 +26,13 @@ &lab {
> };
>
> &vreg_l18a_2p85 {
> - regulator-min-microvolt = <2850000>;
> - regulator-max-microvolt = <2850000>;
> + /* Note: Round-down from 2850000 to be a multiple of PLDO step-size 8000 */
> + regulator-min-microvolt = <2848000>;
> + regulator-max-microvolt = <2848000>;
> };
>
> &vreg_l22a_2p85 {
> - regulator-min-microvolt = <2700000>;
> - regulator-max-microvolt = <2700000>;
> + /* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */
> + regulator-min-microvolt = <2696000>;
> + regulator-max-microvolt = <2696000>;
> };
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (subset) [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size
2022-05-07 15:36 [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size Marijn Suijten
2022-05-07 17:35 ` Konrad Dybcio
@ 2022-07-16 15:19 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2022-07-16 15:19 UTC (permalink / raw)
To: phone-devel, Marijn Suijten
Cc: Rob Herring, Martin Botka, linux-arm-msm, linux-kernel,
devicetree, Krzysztof Kozlowski, Andy Gross,
AngeloGioacchino Del Regno, Konrad Dybcio,
~postmarketos/upstreaming
On Sat, 7 May 2022 17:36:27 +0200, Marijn Suijten wrote:
> These voltages are not a multiple of the given step-size 8000 (with base
> voltage 1664000) in pm8998_pldo, resulting in PLDO regulators l18 and
> l22 failing to validate and in turn not probing the rpm-pm8998-regulator
> driver:
>
> l18: unsupportable voltage constraints 2856000-2848000uV
> qcom_rpm_smd_regulator rpm-glink:rpm-requests:pm8998-regulators: l18: devm_regulator_register() failed, ret=-22
>
> [...]
Applied, thanks!
[1/1] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size
commit: 2aa54fa87cca1fa43870a9caf4fcce00eb087fa5
Best regards,
--
Bjorn Andersson <bjorn.andersson@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-16 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07 15:36 [PATCH] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size Marijn Suijten
2022-05-07 17:35 ` Konrad Dybcio
2022-07-16 15:19 ` (subset) " Bjorn Andersson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.