mfd: qcom-spmi-pmic: Add support for pm8005, pm8998 and pmi8998
authorStephen Boyd <swboyd@chromium.org>
Wed, 2 May 2018 16:35:35 +0000 (09:35 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 4 Jun 2018 05:47:52 +0000 (06:47 +0100)
Add the compatibles and PMIC ids for the pm8005, pm8998, and pmi8998
PMICS found on MSM8998 and SDM845 based platforms.

Cc: <devicetree@vger.kernel.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt
drivers/mfd/qcom-spmi-pmic.c

index 6ac06c1b9aec8908095c0b2fc22af1882334293c..143706222a51cfc8c8785199f3a9d5b1d53eec33 100644 (file)
@@ -29,6 +29,9 @@ Required properties:
                    "qcom,pm8916",
                    "qcom,pm8004",
                    "qcom,pm8909",
+                   "qcom,pm8998",
+                   "qcom,pmi8998",
+                   "qcom,pm8005",
                    or generalized "qcom,spmi-pmic".
 - reg:             Specifies the SPMI USID slave address for this device.
                    For more information see:
index 2022bdfa7ab4221a544f3222217678671712bca7..e2e95de649a47c239eeaeb23b522011f442fa640 100644 (file)
@@ -39,6 +39,9 @@
 #define PM8916_SUBTYPE         0x0b
 #define PM8004_SUBTYPE         0x0c
 #define PM8909_SUBTYPE         0x0d
+#define PM8998_SUBTYPE         0x14
+#define PMI8998_SUBTYPE                0x15
+#define PM8005_SUBTYPE         0x18
 
 static const struct of_device_id pmic_spmi_id_table[] = {
        { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
@@ -55,6 +58,9 @@ static const struct of_device_id pmic_spmi_id_table[] = {
        { .compatible = "qcom,pm8916",    .data = (void *)PM8916_SUBTYPE },
        { .compatible = "qcom,pm8004",    .data = (void *)PM8004_SUBTYPE },
        { .compatible = "qcom,pm8909",    .data = (void *)PM8909_SUBTYPE },
+       { .compatible = "qcom,pm8998",    .data = (void *)PM8998_SUBTYPE },
+       { .compatible = "qcom,pmi8998",   .data = (void *)PMI8998_SUBTYPE },
+       { .compatible = "qcom,pm8005",    .data = (void *)PM8005_SUBTYPE },
        { }
 };