kernel: rename CONFIG_TRACE_ENUM_MAP_FILE to CONFIG_TRACE_EVAL_MAP_FILE
[oweals/openwrt.git] / target / linux / ipq806x / patches-4.9 / 0053-regulator-add-smb208-support.patch
1 From ef10381ca4d01848ebedb4afb2c78feb8052f103 Mon Sep 17 00:00:00 2001
2 From: Adrian Panella <ianchi74@outlook.com>
3 Date: Thu, 9 Mar 2017 08:26:54 +0100
4 Subject: [PATCH 53/69] regulator: add smb208 support
5
6 Signed-off-by: Adrian Panella <ianchi74@outlook.com>
7 ---
8  Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 4 ++++
9  drivers/regulator/qcom_rpm-regulator.c             | 9 +++++++++
10  2 files changed, 13 insertions(+)
11
12 --- a/Documentation/devicetree/bindings/mfd/qcom-rpm.txt
13 +++ b/Documentation/devicetree/bindings/mfd/qcom-rpm.txt
14 @@ -61,6 +61,7 @@ Regulator nodes are identified by their
15                     "qcom,rpm-pm8901-regulators"
16                     "qcom,rpm-pm8921-regulators"
17                     "qcom,rpm-pm8018-regulators"
18 +                   "qcom,rpm-smb208-regulators"
19  
20  - vdd_l0_l1_lvs-supply:
21  - vdd_l2_l11_l12-supply:
22 @@ -171,6 +172,9 @@ pm8018:
23         s1, s2, s3, s4, s5, , l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
24         l12, l14, lvs1
25  
26 +smb208:
27 +       s1a, s1b, s2a, s2b
28 +
29  The content of each sub-node is defined by the standard binding for regulators -
30  see regulator.txt - with additional custom properties described below:
31  
32 --- a/drivers/regulator/qcom_rpm-regulator.c
33 +++ b/drivers/regulator/qcom_rpm-regulator.c
34 @@ -933,12 +933,21 @@ static const struct rpm_regulator_data r
35         { }
36  };
37  
38 +static const struct rpm_regulator_data rpm_smb208_regulators[] = {
39 +       { "s1a",  QCOM_RPM_SMB208_S1a, &smb208_smps, "vin_s1a" },
40 +       { "s1b",  QCOM_RPM_SMB208_S1b, &smb208_smps, "vin_s1b" },
41 +       { "s2a",  QCOM_RPM_SMB208_S2a, &smb208_smps, "vin_s2a" },
42 +       { "s2b",  QCOM_RPM_SMB208_S2b, &smb208_smps, "vin_s2b" },
43 +       { }
44 +};
45 +
46  static const struct of_device_id rpm_of_match[] = {
47         { .compatible = "qcom,rpm-pm8018-regulators",
48                 .data = &rpm_pm8018_regulators },
49         { .compatible = "qcom,rpm-pm8058-regulators", .data = &rpm_pm8058_regulators },
50         { .compatible = "qcom,rpm-pm8901-regulators", .data = &rpm_pm8901_regulators },
51         { .compatible = "qcom,rpm-pm8921-regulators", .data = &rpm_pm8921_regulators },
52 +       { .compatible = "qcom,rpm-smb208-regulators", .data = &rpm_smb208_regulators },
53         { }
54  };
55  MODULE_DEVICE_TABLE(of, rpm_of_match);