c2b3e8304dfd5b9abdcaa18073f9453faff35890
[openwrt/staging/blocktrron.git] /
1 From 18921bfd81c88fb85a19683467f680897672f062 Mon Sep 17 00:00:00 2001
2 From: Bjorn Andersson <bjorn.andersson@linaro.org>
3 Date: Sun, 17 Oct 2021 09:12:18 -0700
4 Subject: [PATCH] mfd: qcom-spmi-pmic: Add missing PMICs supported by socinfo
5
6 The Qualcomm socinfo driver has eight more PMICs described, add these to
7 the SPMI PMIC driver as well.
8
9 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
10 Signed-off-by: Lee Jones <lee.jones@linaro.org>
11 Link: https://lore.kernel.org/r/20211017161218.2378176-4-bjorn.andersson@linaro.org
12 ---
13 drivers/mfd/qcom-spmi-pmic.c | 17 +++++++++++++++++
14 1 file changed, 17 insertions(+)
15
16 --- a/drivers/mfd/qcom-spmi-pmic.c
17 +++ b/drivers/mfd/qcom-spmi-pmic.c
18 @@ -31,6 +31,8 @@
19 #define PM8916_SUBTYPE 0x0b
20 #define PM8004_SUBTYPE 0x0c
21 #define PM8909_SUBTYPE 0x0d
22 +#define PM8028_SUBTYPE 0x0e
23 +#define PM8901_SUBTYPE 0x0f
24 #define PM8950_SUBTYPE 0x10
25 #define PMI8950_SUBTYPE 0x11
26 #define PM8998_SUBTYPE 0x14
27 @@ -38,6 +40,13 @@
28 #define PM8005_SUBTYPE 0x18
29 #define PM660L_SUBTYPE 0x1A
30 #define PM660_SUBTYPE 0x1B
31 +#define PM8150_SUBTYPE 0x1E
32 +#define PM8150L_SUBTYPE 0x1f
33 +#define PM8150B_SUBTYPE 0x20
34 +#define PMK8002_SUBTYPE 0x21
35 +#define PM8009_SUBTYPE 0x24
36 +#define PM8150C_SUBTYPE 0x26
37 +#define SMB2351_SUBTYPE 0x29
38
39 static const struct of_device_id pmic_spmi_id_table[] = {
40 { .compatible = "qcom,pm660", .data = (void *)PM660_SUBTYPE },
41 @@ -45,9 +54,15 @@ static const struct of_device_id pmic_sp
42 { .compatible = "qcom,pm8004", .data = (void *)PM8004_SUBTYPE },
43 { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE },
44 { .compatible = "qcom,pm8019", .data = (void *)PM8019_SUBTYPE },
45 + { .compatible = "qcom,pm8028", .data = (void *)PM8028_SUBTYPE },
46 { .compatible = "qcom,pm8110", .data = (void *)PM8110_SUBTYPE },
47 + { .compatible = "qcom,pm8150", .data = (void *)PM8150_SUBTYPE },
48 + { .compatible = "qcom,pm8150b", .data = (void *)PM8150B_SUBTYPE },
49 + { .compatible = "qcom,pm8150c", .data = (void *)PM8150C_SUBTYPE },
50 + { .compatible = "qcom,pm8150l", .data = (void *)PM8150L_SUBTYPE },
51 { .compatible = "qcom,pm8226", .data = (void *)PM8226_SUBTYPE },
52 { .compatible = "qcom,pm8841", .data = (void *)PM8841_SUBTYPE },
53 + { .compatible = "qcom,pm8901", .data = (void *)PM8901_SUBTYPE },
54 { .compatible = "qcom,pm8909", .data = (void *)PM8909_SUBTYPE },
55 { .compatible = "qcom,pm8916", .data = (void *)PM8916_SUBTYPE },
56 { .compatible = "qcom,pm8941", .data = (void *)PM8941_SUBTYPE },
57 @@ -60,6 +75,8 @@ static const struct of_device_id pmic_sp
58 { .compatible = "qcom,pmi8962", .data = (void *)PMI8962_SUBTYPE },
59 { .compatible = "qcom,pmi8994", .data = (void *)PMI8994_SUBTYPE },
60 { .compatible = "qcom,pmi8998", .data = (void *)PMI8998_SUBTYPE },
61 + { .compatible = "qcom,pmk8002", .data = (void *)PMK8002_SUBTYPE },
62 + { .compatible = "qcom,smb2351", .data = (void *)SMB2351_SUBTYPE },
63 { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
64 { }
65 };