mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From cb5dc874a8f0740eb988c2851a97d214e463eeb1 Mon Sep 17 00:00:00 2001
|
|
From: Praveenkumar I <ipkumar@codeaurora.org>
|
|
Date: Tue, 31 Mar 2020 22:00:27 +0530
|
|
Subject: [PATCH] regulator: qcom_spmi: Add PMD9655 SPMI regulator
|
|
|
|
PMD9655 is used in IPQ8074 and provides S3 for cores,
|
|
S4 for UBI core and LDO11 for SDIO/eMMC.
|
|
|
|
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/regulator/qcom_spmi-regulator.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
--- a/drivers/regulator/qcom_spmi-regulator.c
|
|
+++ b/drivers/regulator/qcom_spmi-regulator.c
|
|
@@ -2092,6 +2092,13 @@ static const struct spmi_regulator_data
|
|
{ }
|
|
};
|
|
|
|
+static const struct spmi_regulator_data pmd9655_regulators[] = {
|
|
+ { "s3", 0x1a00, "vdd_s3",},
|
|
+ { "s4", 0x1d00, "vdd_s4",},
|
|
+ { "ldo11", 0x4a00, "vdd_ldo11",},
|
|
+ { }
|
|
+};
|
|
+
|
|
static const struct of_device_id qcom_spmi_regulator_match[] = {
|
|
{ .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators },
|
|
{ .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators },
|
|
@@ -2104,6 +2111,7 @@ static const struct of_device_id qcom_sp
|
|
{ .compatible = "qcom,pm660-regulators", .data = &pm660_regulators },
|
|
{ .compatible = "qcom,pm660l-regulators", .data = &pm660l_regulators },
|
|
{ .compatible = "qcom,pms405-regulators", .data = &pms405_regulators },
|
|
+ { .compatible = "qcom,pmd9655-regulators", .data = &pmd9655_regulators },
|
|
{ }
|
|
};
|
|
MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match);
|