Skip to contentSkip to conversation

Add support for Qualcomm SM8150 and SC7180 SoCs

PATCH Superseded Sibi Sankar 2 participants 9 messages Jul 29, 2019

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

Sibi Sankar (6):
soc: qcom: smem: Update max processor count
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      | 2 ++
 .../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, 13 insertions(+), 2 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 1/6 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 2/6 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 41f133a4e2fa7..5282ad3fc79d0 100644
@@ -17,6 +17,8 @@ Required properties:
  * "qcom,scm-msm8998"
  * "qcom,scm-ipq4019"
  * "qcom,scm-sdm845"
+ * "qcom,scm-sm8150"
+ * "qcom,scm-sc7180"
  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
#3 lore raw

PATCH 3/6 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..1e081dc3f2dae 100644
@@ -13,6 +13,8 @@ platforms.
 		    "qcom,msm8998-apcs-hmss-global"
 		    "qcom,qcs404-apcs-apps-global"
 		    "qcom,sdm845-apss-shared"
+		    "qcom,sm8150-apss-shared"
+		    "qcom,sc7180-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
#4 lore raw

PATCH 4/6 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..d5dbfd5f8417f 100644
@@ -119,6 +119,8 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = (void *)8 },
 	{ .compatible = "qcom,qcs404-apcs-apps-global", .data = (void *)8 },
 	{ .compatible = "qcom,sdm845-apss-shared", .data = (void *)12 },
+	{ .compatible = "qcom,sm8150-apss-shared", .data = (void *)12 },
+	{ .compatible = "qcom,sc7180-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
#5 lore raw

PATCH 5/6 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..91b972c1fee57 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,sdm845-aoss-qmp"
+		    "qcom,sm8150-aoss-qmp"
+		    "qcom,sc7180-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
#6 lore raw

PATCH 6/6 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..e2f8c7c9a5a0a 100644
@@ -462,6 +462,8 @@ static int qmp_remove(struct platform_device *pdev)
 
 static const struct of_device_id qmp_dt_match[] = {
 	{ .compatible = "qcom,sdm845-aoss-qmp", },
+	{ .compatible = "qcom,sm8150-aoss-qmp", },
+	{ .compatible = "qcom,sc7180-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
#7 lore raw
In reply to Sibi Sankar
Quoted 3 lines · Sibi Sankar

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

Thanks Sibi, this looks good.

Could you please update the last 5 patches to ensure/maintain sort order of the lists they affect.

Regards,
Bjorn

Quoted 20 lines

Sibi Sankar (6):
soc: qcom: smem: Update max processor count
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      | 2 ++
 .../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, 13 insertions(+), 2 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#8 lore raw

Hey Bjorn,
Thanks for the review!

Quoted 10 lines · Bjorn Andersson
Quoted 3 lines · Sibi Sankar

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

Thanks Sibi, this looks good.

Could you please update the last 5 patches to ensure/maintain sort order of the lists they affect.

yes I'll do that

Quoted 25 lines

Regards,
Bjorn

Quoted 21 lines

Sibi Sankar (6):
soc: qcom: smem: Update max processor count
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      | 2 ++
 .../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, 13 insertions(+), 2 deletions(-)

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Signature · 3 lines
-- Sibi Sankar --
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.