Add support for Qualcomm SM8150 and SC7180 SoCs
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
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
@@ -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
PATCH v2 2/7 dt-bindings: firmware: scm: re-order compatible list
In reply to Sibi Sankarre-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
@@ -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
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.
Signed-off-by Sibi Sankar <[email protected]>--- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH v2 3/7 dt-bindings: firmware: scm: Add SM8150 and SC7180 support
In reply to Sibi SankarAdd 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
@@ -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
Re: [PATCH v2 3/7] dt-bindings: firmware: scm: Add SM8150 and SC7180 support
Quoted 7 lines · Sibi Sankar
Add compatible for SM8150 and SC7180 SoCs.
Signed-off-by Sibi Sankar <[email protected]>--- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 ++ 1 file changed, 2 insertions(+)
PATCH v2 4/7 dt-bindings: mailbox: Add APSS shared for SM8150 and SC7180 SoCs
In reply to Sibi SankarAdd 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
@@ -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
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.
Signed-off-by Sibi Sankar <[email protected]>--- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt | 2 ++ 1 file changed, 2 insertions(+)
PATCH v2 5/7 mailbox: qcom: Add support for Qualcomm SM8150 and SC7180 SoCs
In reply to Sibi SankarAdd 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
@@ -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
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.
Signed-off-by Sibi Sankar <[email protected]>
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@@ -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
PATCH v2 6/7 dt-bindings: soc: qcom: aoss: Add SM8150 and SC7180 support
In reply to Sibi SankarAdd 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
@@ -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
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.
Signed-off-by Sibi Sankar <[email protected]>--- Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
PATCH v2 7/7 soc: qcom: aoss: Add AOSS QMP support
In reply to Sibi SankarAdd 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
@@ -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
Quoted 5 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
i checked these lgtm and tested on SM8150
Signature · 1 line
~Vinod
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 supportDocumentation/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