ipq806x: sync 4.9 kernel config with 4.4
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.9 / 167-ARM-qcom_rpm_fix_support_for_smb208.patch
1
2 In commit "regulator: qcom: Rework to single platform device" the smb208 regulator
3 used in IPQ8064 was left out.
4
5 Add it to that new framework and update Docs accordingly.
6
7 Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8
9 --- a/Documentation/devicetree/bindings/mfd/qcom-rpm.txt
10 +++ b/Documentation/devicetree/bindings/mfd/qcom-rpm.txt
11 @@ -171,6 +171,9 @@ pm8018:
12 s1, s2, s3, s4, s5, , l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
13 l12, l14, lvs1
14
15 +smb208:
16 + s1a, s1b, s2a, s2b
17 +
18 The content of each sub-node is defined by the standard binding for regulators -
19 see regulator.txt - with additional custom properties described below:
20
21 --- a/drivers/regulator/qcom_rpm-regulator.c
22 +++ b/drivers/regulator/qcom_rpm-regulator.c
23 @@ -933,12 +933,21 @@ static const struct rpm_regulator_data r
24 { }
25 };
26
27 +static const struct rpm_regulator_data rpm_smb208_regulators[] = {
28 + { "s1a", QCOM_RPM_SMB208_S1a, &smb208_smps, "vin_s1a" },
29 + { "s1b", QCOM_RPM_SMB208_S1b, &smb208_smps, "vin_s1b" },
30 + { "s2a", QCOM_RPM_SMB208_S2a, &smb208_smps, "vin_s2a" },
31 + { "s2b", QCOM_RPM_SMB208_S2b, &smb208_smps, "vin_s2b" },
32 + { }
33 +};
34 +
35 static const struct of_device_id rpm_of_match[] = {
36 { .compatible = "qcom,rpm-pm8018-regulators",
37 .data = &rpm_pm8018_regulators },
38 { .compatible = "qcom,rpm-pm8058-regulators", .data = &rpm_pm8058_regulators },
39 { .compatible = "qcom,rpm-pm8901-regulators", .data = &rpm_pm8901_regulators },
40 { .compatible = "qcom,rpm-pm8921-regulators", .data = &rpm_pm8921_regulators },
41 + { .compatible = "qcom,rpm-smb208-regulators", .data = &rpm_smb208_regulators },
42 { }
43 };
44 MODULE_DEVICE_TABLE(of, rpm_of_match);