regulator: qcom-rpmh: Add pmc8180 and pmc8180c
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 20 Jan 2021 22:49:01 +0000 (14:49 -0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 18:14:48 +0000 (18:14 +0000)
The regulators from PMC8180 and PMC8180C exposed by the RPMH in the
Qualcomm SC8180X seems to be the same as PM8150 and PM8150L. Add
compatibles for the two new PMICs and reuse the definition of the
existing PMICs.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210120224901.1611232-2-bjorn.andersson@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom-rpmh-regulator.c

index 98320e1d8bf6687b6873807238df92fa6c989f15..dbad80f904bd54ef969eab8eac5eac71dbf6c801 100644 (file)
@@ -1115,6 +1115,14 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
                .compatible = "qcom,pm6150l-rpmh-regulators",
                .data = pm6150l_vreg_data,
        },
+       {
+               .compatible = "qcom,pmc8180-rpmh-regulators",
+               .data = pm8150_vreg_data,
+       },
+       {
+               .compatible = "qcom,pmc8180c-rpmh-regulators",
+               .data = pm8150l_vreg_data,
+       },
        {
                .compatible = "qcom,pmx55-rpmh-regulators",
                .data = pmx55_vreg_data,