arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size
authorMarijn Suijten <marijn.suijten@somainline.org>
Sat, 7 May 2022 15:36:27 +0000 (17:36 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 16 Jul 2022 15:18:14 +0000 (10:18 -0500)
commit2aa54fa87cca1fa43870a9caf4fcce00eb087fa5
tree94ae38758bad4221e10bc8642e757d87feb214a3
parent7a9016dbc8760c4f8a610e5cb0ae0f815b0cca81
arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size

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>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220507153627.1478268-1-marijn.suijten@somainline.org
arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts