aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@codeaurora.org>2017-11-02 05:24:00 -0400
committerMark Brown <broonie@kernel.org>2017-11-02 07:25:00 -0400
commitca5cd8c9400c7eeeda84e34fa773c6c245e65c82 (patch)
tree9bf996ab7911c8a238d4ab533bdbbb6621aa8012 /drivers
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
regulator: qcom_spmi: Add support for pmi8994
Document the regulators available on pmi8994 and add support for this PMIC to the SPMI PMIC regulator driver. Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/qcom_spmi-regulator.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c
index 16c5f84e06a7..9f8eb5dd2a4e 100644
--- a/drivers/regulator/qcom_spmi-regulator.c
+++ b/drivers/regulator/qcom_spmi-regulator.c
@@ -1619,11 +1619,20 @@ static const struct spmi_regulator_data pm8994_regulators[] = {
1619 { } 1619 { }
1620}; 1620};
1621 1621
1622static const struct spmi_regulator_data pmi8994_regulators[] = {
1623 { "s1", 0x1400, "vdd_s1", },
1624 { "s2", 0x1700, "vdd_s2", },
1625 { "s3", 0x1a00, "vdd_s3", },
1626 { "l1", 0x4000, "vdd_l1", },
1627 { }
1628};
1629
1622static const struct of_device_id qcom_spmi_regulator_match[] = { 1630static const struct of_device_id qcom_spmi_regulator_match[] = {
1623 { .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators }, 1631 { .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
1624 { .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators }, 1632 { .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators },
1625 { .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators }, 1633 { .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators },
1626 { .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators }, 1634 { .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators },
1635 { .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators },
1627 { } 1636 { }
1628}; 1637};
1629MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match); 1638MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match);