Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ansuelsmth@gmail.com>
Signed-off-by: Adrian Panella <ianchi74@outlook.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200219163711.479-1-ansuelsmth@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ansuel Smith and committed by
Mark Brown
b5f25304 a0fc8b6a

+13
+4
Documentation/devicetree/bindings/mfd/qcom-rpm.txt
··· 61 61 "qcom,rpm-pm8901-regulators" 62 62 "qcom,rpm-pm8921-regulators" 63 63 "qcom,rpm-pm8018-regulators" 64 + "qcom,rpm-smb208-regulators" 64 65 65 66 - vdd_l0_l1_lvs-supply: 66 67 - vdd_l2_l11_l12-supply: ··· 171 170 pm8018: 172 171 s1, s2, s3, s4, s5, , l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, 173 172 l12, l14, lvs1 173 + 174 + smb208: 175 + s1a, s1b, s2a, s2b 174 176 175 177 The content of each sub-node is defined by the standard binding for regulators - 176 178 see regulator.txt - with additional custom properties described below:
+9
drivers/regulator/qcom_rpm-regulator.c
··· 925 925 { } 926 926 }; 927 927 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 + 928 936 static const struct of_device_id rpm_of_match[] = { 929 937 { .compatible = "qcom,rpm-pm8018-regulators", 930 938 .data = &rpm_pm8018_regulators }, 931 939 { .compatible = "qcom,rpm-pm8058-regulators", .data = &rpm_pm8058_regulators }, 932 940 { .compatible = "qcom,rpm-pm8901-regulators", .data = &rpm_pm8901_regulators }, 933 941 { .compatible = "qcom,rpm-pm8921-regulators", .data = &rpm_pm8921_regulators }, 942 + { .compatible = "qcom,rpm-smb208-regulators", .data = &rpm_smb208_regulators }, 934 943 { } 935 944 }; 936 945 MODULE_DEVICE_TABLE(of, rpm_of_match);