Skip to contentSkip to conversation

Add support for Qualcomm SM8150 and SC7180 SoCs

PATCH In review Sibi Sankar 4 participants 15 messages Aug 7, 2019 – Aug 21, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover Add support for Qualcomm SM8150 and SC7180 SoCs

This patch series adds SCM, APSS shared mailbox and QMP AOSS PD/clock support on SM8150 and SC7180 SoCs.

v2:
* re-arrange the compatible lists in sort order

Sibi Sankar (7):
soc: qcom: smem: Update max processor count
dt-bindings: firmware: scm: re-order compatible list
dt-bindings: firmware: scm: Add SM8150 and SC7180 support
dt-bindings: mailbox: Add APSS shared for SM8150 and SC7180 SoCs
mailbox: qcom: Add support for Qualcomm SM8150 and SC7180 SoCs
dt-bindings: soc: qcom: aoss: Add SM8150 and SC7180 support
soc: qcom: aoss: Add AOSS QMP support

 Documentation/devicetree/bindings/firmware/qcom,scm.txt      | 4 +++-
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt    | 2 ++
 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 5 ++++-
 drivers/mailbox/qcom-apcs-ipc-mailbox.c                      | 2 ++
 drivers/soc/qcom/qcom_aoss.c                                 | 2 ++
 drivers/soc/qcom/smem.c                                      | 2 +-
 6 files changed, 14 insertions(+), 3 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#1 lore raw

PATCH v2 1/7 soc: qcom: smem: Update max processor count

Update max processor count to reflect the number of co-processors on SC7180 SoCs.

---
 drivers/soc/qcom/smem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/smem.c +1 -1
index f27c00d82ae49..bef8502625f96 100644
@@ -84,7 +84,7 @@
 #define SMEM_GLOBAL_HOST	0xfffe
 
 /* Max number of processors/hosts in a system */
-#define SMEM_HOST_COUNT		10
+#define SMEM_HOST_COUNT		11
 
 /**
   * struct smem_proc_comm - proc_comm communication struct (legacy)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#2 lore raw

PATCH v2 2/7 dt-bindings: firmware: scm: re-order compatible list

In reply to Sibi Sankar

re-order compatible list to maintain sort order.

---
 Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/firmware/qcom,scm.txt +1 -1
index 41f133a4e2fa7..d19be836df533 100644
@@ -9,13 +9,13 @@ Required properties:
 - compatible: must contain one of the following:
  * "qcom,scm-apq8064"
  * "qcom,scm-apq8084"
+ * "qcom,scm-ipq4019"
  * "qcom,scm-msm8660"
  * "qcom,scm-msm8916"
  * "qcom,scm-msm8960"
  * "qcom,scm-msm8974"
  * "qcom,scm-msm8996"
  * "qcom,scm-msm8998"
- * "qcom,scm-ipq4019"
  * "qcom,scm-sdm845"
  and:
  * "qcom,scm"
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer Reviewed-by on v2 2/7
#3 lore raw

Re: [PATCH v2 2/7] dt-bindings: firmware: scm: re-order compatible list

Quoted 7 lines · Sibi Sankar

re-order compatible list to maintain sort order.

---
 Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#4 lore raw

PATCH v2 3/7 dt-bindings: firmware: scm: Add SM8150 and SC7180 support

In reply to Sibi Sankar

Add compatible for SM8150 and SC7180 SoCs.

---
 Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/firmware/qcom,scm.txt +2 -0
index d19be836df533..3f29ea04b5fe9 100644
@@ -16,7 +16,9 @@ Required properties:
  * "qcom,scm-msm8974"
  * "qcom,scm-msm8996"
  * "qcom,scm-msm8998"
+ * "qcom,scm-sc7180"
  * "qcom,scm-sdm845"
+ * "qcom,scm-sm8150"
  and:
  * "qcom,scm"
 - clocks: Specifies clocks needed by the SCM interface, if any:
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#6 lore raw

PATCH v2 4/7 dt-bindings: mailbox: Add APSS shared for SM8150 and SC7180 SoCs

In reply to Sibi Sankar

Add SM8150 and SC7180 APSS shared to the list of possible bindings.

---
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt       | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt +2 -0
index 1232fc9fc709c..e5a541a693e1b 100644
@@ -12,7 +12,9 @@ platforms.
 		    "qcom,msm8996-apcs-hmss-global"
 		    "qcom,msm8998-apcs-hmss-global"
 		    "qcom,qcs404-apcs-apps-global"
+		    "qcom,sc7180-apss-shared"
 		    "qcom,sdm845-apss-shared"
+		    "qcom,sm8150-apss-shared"
 
 - reg:
 	Usage: required
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer Reviewed-by on v2 4/7
#7 lore raw

Re: [PATCH v2 4/7] dt-bindings: mailbox: Add APSS shared for SM8150 and SC7180 SoCs

Quoted 7 lines · Sibi Sankar

Add SM8150 and SC7180 APSS shared to the list of possible bindings.

---
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt       | 2 ++
 1 file changed, 2 insertions(+)
#8 lore raw

PATCH v2 5/7 mailbox: qcom: Add support for Qualcomm SM8150 and SC7180 SoCs

In reply to Sibi Sankar

Add the corresponding APSS shared offset for SM8150 and SC7180 SoCs.

---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mailbox/qcom-apcs-ipc-mailbox.c +2 -0
index 705e17a5479cc..2dfd288fe720d 100644
@@ -118,7 +118,9 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = (void *)16 },
 	{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = (void *)8 },
 	{ .compatible = "qcom,qcs404-apcs-apps-global", .data = (void *)8 },
+	{ .compatible = "qcom,sc7180-apss-shared", .data = (void *)12 },
 	{ .compatible = "qcom,sdm845-apss-shared", .data = (void *)12 },
+	{ .compatible = "qcom,sm8150-apss-shared", .data = (void *)12 },
 	{}
 };
 MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Reviewed-by on v2 5/7
#9 lore raw

Re: [PATCH v2 5/7] mailbox: qcom: Add support for Qualcomm SM8150 and SC7180 SoCs

Quoted 3 lines · Sibi Sankar

Add the corresponding APSS shared offset for SM8150 and SC7180 SoCs.

Quoted 22 lines
---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mailbox/qcom-apcs-ipc-mailbox.c +2 -0
index 705e17a5479cc..2dfd288fe720d 100644
@@ -118,7 +118,9 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = (void *)16 },
 	{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = (void *)8 },
 	{ .compatible = "qcom,qcs404-apcs-apps-global", .data = (void *)8 },
+	{ .compatible = "qcom,sc7180-apss-shared", .data = (void *)12 },
 	{ .compatible = "qcom,sdm845-apss-shared", .data = (void *)12 },
+	{ .compatible = "qcom,sm8150-apss-shared", .data = (void *)12 },
 	{}
 };
 MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#10 lore raw

PATCH v2 6/7 dt-bindings: soc: qcom: aoss: Add SM8150 and SC7180 support

In reply to Sibi Sankar

Add SM8150 and SC7180 AOSS QMP to the list of possible bindings.

---
 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt +4 -1
index 954ffee0a9c45..4fc571e78f018 100644
@@ -15,7 +15,10 @@ power-domains.
 - compatible:
 	Usage: required
 	Value type: <string>
-	Definition: must be "qcom,sdm845-aoss-qmp"
+	Definition: must be one of:
+		    "qcom,sc7180-aoss-qmp"
+		    "qcom,sdm845-aoss-qmp"
+		    "qcom,sm8150-aoss-qmp"
 
 - reg:
 	Usage: required
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer Reviewed-by on v2 6/7
#11 lore raw

Re: [PATCH v2 6/7] dt-bindings: soc: qcom: aoss: Add SM8150 and SC7180 support

Quoted 7 lines · Sibi Sankar

Add SM8150 and SC7180 AOSS QMP to the list of possible bindings.

---
 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
#12 lore raw

PATCH v2 7/7 soc: qcom: aoss: Add AOSS QMP support

In reply to Sibi Sankar

Add AOSS QMP support for SM8150 and SC7180 SoCs.

---
 drivers/soc/qcom/qcom_aoss.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/soc/qcom/qcom_aoss.c +2 -0
index 5f885196f4d0f..6ae813837b74b 100644
@@ -461,7 +461,9 @@ static int qmp_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id qmp_dt_match[] = {
+	{ .compatible = "qcom,sc7180-aoss-qmp", },
 	{ .compatible = "qcom,sdm845-aoss-qmp", },
+	{ .compatible = "qcom,sm8150-aoss-qmp", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, qmp_dt_match);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#14 lore raw
In reply to Sibi Sankar
Quoted 6 lines · Sibi Sankar

This patch series adds SCM, APSS shared mailbox and QMP AOSS PD/clock support on SM8150 and SC7180 SoCs.

v2:
* re-arrange the compatible lists in sort order

Applied patches 1-3 and 6-7.

Regards,
Bjorn

Quoted 21 lines

Sibi Sankar (7):
soc: qcom: smem: Update max processor count
dt-bindings: firmware: scm: re-order compatible list
dt-bindings: firmware: scm: Add SM8150 and SC7180 support
dt-bindings: mailbox: Add APSS shared for SM8150 and SC7180 SoCs
mailbox: qcom: Add support for Qualcomm SM8150 and SC7180 SoCs
dt-bindings: soc: qcom: aoss: Add SM8150 and SC7180 support
soc: qcom: aoss: Add AOSS QMP support

 Documentation/devicetree/bindings/firmware/qcom,scm.txt      | 4 +++-
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt    | 2 ++
 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 5 ++++-
 drivers/mailbox/qcom-apcs-ipc-mailbox.c                      | 2 ++
 drivers/soc/qcom/qcom_aoss.c                                 | 2 ++
 drivers/soc/qcom/smem.c                                      | 2 +-
 6 files changed, 14 insertions(+), 3 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project