Skip to content

Commit b5f2530

Browse files
Ansuelbroonie
authored andcommitted
regulator: add smb208 support
Smb208 regulators are used on some ipq806x soc. Add support for it to make it avaiable on some routers that use it. Signed-off-by: Ansuel Smith <[email protected]> Signed-off-by: Adrian Panella <[email protected]> Acked-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a0fc8b6 commit b5f2530

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Documentation/devicetree/bindings/mfd/qcom-rpm.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Regulator nodes are identified by their compatible:
6161
"qcom,rpm-pm8901-regulators"
6262
"qcom,rpm-pm8921-regulators"
6363
"qcom,rpm-pm8018-regulators"
64+
"qcom,rpm-smb208-regulators"
6465

6566
- vdd_l0_l1_lvs-supply:
6667
- vdd_l2_l11_l12-supply:
@@ -171,6 +172,9 @@ pm8018:
171172
s1, s2, s3, s4, s5, , l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
172173
l12, l14, lvs1
173174

175+
smb208:
176+
s1a, s1b, s2a, s2b
177+
174178
The content of each sub-node is defined by the standard binding for regulators -
175179
see regulator.txt - with additional custom properties described below:
176180

drivers/regulator/qcom_rpm-regulator.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,12 +925,21 @@ static const struct rpm_regulator_data rpm_pm8921_regulators[] = {
925925
{ }
926926
};
927927

928+
static const struct rpm_regulator_data rpm_smb208_regulators[] = {
929+
{ "s1a", QCOM_RPM_SMB208_S1a, &smb208_smps, "vin_s1a" },
930+
{ "s1b", QCOM_RPM_SMB208_S1b, &smb208_smps, "vin_s1b" },
931+
{ "s2a", QCOM_RPM_SMB208_S2a, &smb208_smps, "vin_s2a" },
932+
{ "s2b", QCOM_RPM_SMB208_S2b, &smb208_smps, "vin_s2b" },
933+
{ }
934+
};
935+
928936
static const struct of_device_id rpm_of_match[] = {
929937
{ .compatible = "qcom,rpm-pm8018-regulators",
930938
.data = &rpm_pm8018_regulators },
931939
{ .compatible = "qcom,rpm-pm8058-regulators", .data = &rpm_pm8058_regulators },
932940
{ .compatible = "qcom,rpm-pm8901-regulators", .data = &rpm_pm8901_regulators },
933941
{ .compatible = "qcom,rpm-pm8921-regulators", .data = &rpm_pm8921_regulators },
942+
{ .compatible = "qcom,rpm-smb208-regulators", .data = &rpm_smb208_regulators },
934943
{ }
935944
};
936945
MODULE_DEVICE_TABLE(of, rpm_of_match);

0 commit comments

Comments
 (0)