Skip to contentSkip to conversation

mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l

PATCH Superseded Kiran Gunda 2 participants 3 messages Nov 1, 2019 – Nov 5, 2019

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l

Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms.

---
 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 2 ++
 drivers/mfd/qcom-spmi-pmic.c                             | 4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +2 -0
index 1437062..b5fc64e 100644
@@ -32,6 +32,8 @@ Required properties:
                    "qcom,pm8998",
                    "qcom,pmi8998",
                    "qcom,pm8005",
+		   "qcom,pm6150",
+		   "qcom,pm6150l",
                    or generalized "qcom,spmi-pmic".
 - reg:             Specifies the SPMI USID slave address for this device.
                    For more information see:
drivers/mfd/qcom-spmi-pmic.c +4 -0
index e8fe705..d916aa8 100644
@@ -34,6 +34,8 @@
 #define PM8998_SUBTYPE		0x14
 #define PMI8998_SUBTYPE		0x15
 #define PM8005_SUBTYPE		0x18
+#define PM6150L_SUBTYPE		0x27
+#define PM6150_SUBTYPE		0x28
 
 static const struct of_device_id pmic_spmi_id_table[] = {
 	{ .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
@@ -53,6 +55,8 @@
 	{ .compatible = "qcom,pm8998",    .data = (void *)PM8998_SUBTYPE },
 	{ .compatible = "qcom,pmi8998",   .data = (void *)PMI8998_SUBTYPE },
 	{ .compatible = "qcom,pm8005",    .data = (void *)PM8005_SUBTYPE },
+	{ .compatible = "qcom,pm6150l",   .data = (void *)PM6150L_SUBTYPE },
+	{ .compatible = "qcom,pm6150",    .data = (void *)PM6150_SUBTYPE },
 	{ }
 };
 
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
 a Linux Foundation Collaborative Project
#1 lore raw

Quoting Kiran Gunda (2019-10-31 23:59:03)

Quoted 14 lines

Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms.

---
 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 2 ++
 drivers/mfd/qcom-spmi-pmic.c                             | 4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +0 -0
index 1437062..b5fc64e 100644

Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt Required properties: · line 36

Quoted 5 lines
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +2 -0
@@ -32,6 +32,8 @@ Required properties:
                    "qcom,pm8998",
                    "qcom,pmi8998",
                    "qcom,pm8005",
+                  "qcom,pm6150",
+                  "qcom,pm6150l",

Please sort on compatible string

drivers/mfd/qcom-spmi-pmic.c line 38

Quoted 13 lines
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +0 -0
                    or generalized "qcom,spmi-pmic".
 - reg:             Specifies the SPMI USID slave address for this device.
                    For more information see:
drivers/mfd/qcom-spmi-pmic.c +2 -0
index e8fe705..d916aa8 100644
@@ -34,6 +34,8 @@
 #define PM8998_SUBTYPE         0x14
 #define PMI8998_SUBTYPE                0x15
 #define PM8005_SUBTYPE         0x18
+#define PM6150L_SUBTYPE                0x27
+#define PM6150_SUBTYPE         0x28

And on macro name here.

drivers/mfd/qcom-spmi-pmic.c line 59

Quoted 9 lines
drivers/mfd/qcom-spmi-pmic.c +2 -0
 static const struct of_device_id pmic_spmi_id_table[] = {
        { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
@@ -53,6 +55,8 @@
        { .compatible = "qcom,pm8998",    .data = (void *)PM8998_SUBTYPE },
        { .compatible = "qcom,pmi8998",   .data = (void *)PMI8998_SUBTYPE },
        { .compatible = "qcom,pm8005",    .data = (void *)PM8005_SUBTYPE },
+       { .compatible = "qcom,pm6150l",   .data = (void *)PM6150L_SUBTYPE },
+       { .compatible = "qcom,pm6150",    .data = (void *)PM6150_SUBTYPE },

And compatible here.

Quoted 1 line
drivers/mfd/qcom-spmi-pmic.c +0 -0
        { }
#2 lore raw
Quoted 10 lines · Stephen Boyd

Quoting Kiran Gunda (2019-10-31 23:59:03)

Quoted 9 lines

Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms.

---
 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 2 ++
 drivers/mfd/qcom-spmi-pmic.c                             | 4 ++++
 2 files changed, 6 insertions(+)
Quoted 13 lines

Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt Required properties: · line 36

Quoted 10 lines
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +2 -0
index 1437062..b5fc64e 100644
@@ -32,6 +32,8 @@ Required properties:
                    "qcom,pm8998",
                    "qcom,pmi8998",
                    "qcom,pm8005",
+                  "qcom,pm6150",
+                  "qcom,pm6150l",

Please sort on compatible string

Will do it in next post.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +0 -0
                    or generalized "qcom,spmi-pmic".
 - reg:             Specifies the SPMI USID slave address for this 

device.
For more information see:

drivers/mfd/qcom-spmi-pmic.c +0 -0
index e8fe705..d916aa8 100644
Quoted 9 lines

drivers/mfd/qcom-spmi-pmic.c line 38

Quoted 6 lines
drivers/mfd/qcom-spmi-pmic.c +2 -0
@@ -34,6 +34,8 @@
 #define PM8998_SUBTYPE         0x14
 #define PMI8998_SUBTYPE                0x15
 #define PM8005_SUBTYPE         0x18
+#define PM6150L_SUBTYPE                0x27
+#define PM6150_SUBTYPE         0x28

And on macro name here.

Will do it in next post.

Quoted 18 lines
Quoted 12 lines
drivers/mfd/qcom-spmi-pmic.c +1 -0
 static const struct of_device_id pmic_spmi_id_table[] = {
        { .compatible = "qcom,spmi-pmic", .data = (void 
 *)COMMON_SUBTYPE },
@@ -53,6 +55,8 @@
        { .compatible = "qcom,pm8998",    .data = (void 
 *)PM8998_SUBTYPE },
        { .compatible = "qcom,pmi8998",   .data = (void 
 *)PMI8998_SUBTYPE },
        { .compatible = "qcom,pm8005",    .data = (void 
 *)PM8005_SUBTYPE },
+       { .compatible = "qcom,pm6150l",   .data = (void 
Quoted 3 lines

*)PM6150L_SUBTYPE },
+ { .compatible = "qcom,pm6150", .data = (void
*)PM6150_SUBTYPE },

And compatible here.

Will do it in next post.

Quoted 1 line
Quoted 1 line
        { }