mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
From 9547df62c4fe30ceeb5b0e99c3283c810d2b89e0 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 20 Aug 2020 22:53:15 +0200
|
|
Subject: [PATCH] regulator: qcom_spmi: Add support for PMD9655 PMIC
|
|
|
|
Add support for PMD9655 for in SPMI regulator.
|
|
All 4 cores are supplied by a single common buck which
|
|
is the S3.
|
|
S4 buck powers the UBI cores and this support is required to provide access to NSS
|
|
voltage scaling.
|
|
|
|
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
|
|
@@ -470,6 +470,7 @@ static struct spmi_voltage_range ln_ldo_
|
|
static struct spmi_voltage_range smps_ranges[] = {
|
|
SPMI_VOLTAGE_RANGE(0, 375000, 375000, 1562500, 1562500, 12500),
|
|
SPMI_VOLTAGE_RANGE(1, 1550000, 1575000, 3125000, 3125000, 25000),
|
|
+ SPMI_VOLTAGE_RANGE(2, 670000, 670000, 990000, 990000, 8000),
|
|
};
|
|
|
|
static struct spmi_voltage_range ftsmps_ranges[] = {
|
|
@@ -1940,6 +1941,12 @@ static const struct spmi_regulator_data
|
|
{ }
|
|
};
|
|
|
|
+static const struct spmi_regulator_data pmd9655_regulators[] = {
|
|
+ { "s3", 0x1a00, "vdd_s3", },
|
|
+ { "s4", 0x1d00, "vdd_s4", },
|
|
+ { }
|
|
+};
|
|
+
|
|
static const struct of_device_id qcom_spmi_regulator_match[] = {
|
|
{ .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators },
|
|
{ .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
|
|
@@ -1948,6 +1955,7 @@ static const struct of_device_id qcom_sp
|
|
{ .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators },
|
|
{ .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators },
|
|
{ .compatible = "qcom,pms405-regulators", .data = &pms405_regulators },
|
|
+ { .compatible = "qcom,pmd9655-regulators", .data = &pmd9655_regulators },
|
|
{ }
|
|
};
|
|
MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match);
|