Skip to contentSkip to conversation

Add PDC Global and AOSS reset support

PATCH Superseded Sibi Sankar 2 participants 7 messages Aug 21, 2019 – Aug 22, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add PDC Global and AOSS reset support

This patch series adds PDC Global and AOSS reset support on SC7180 SoCs.

Sibi Sankar (4):
dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs
reset: qcom: aoss: Add support for SC7180 SoCs
dt-bindings: reset: pdc: Add PDC Global binding for SC7180 SoCs
reset: qcom: pdc: Add support for SC7180 SoCs

 Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 3 ++-
 Documentation/devicetree/bindings/reset/qcom,pdc-global.txt | 3 ++-
 drivers/reset/reset-qcom-aoss.c                             | 1 +
 drivers/reset/reset-qcom-pdc.c                              | 1 +
 4 files changed, 6 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/4 dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

Add SC7180 AOSS reset to the list of possible bindings.

---
 Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +2 -1
index 510c748656ec5..8f0bbdc6afd91 100644
@@ -8,7 +8,8 @@ Required properties:
 - compatible:
 	Usage: required
 	Value type: <string>
-	Definition: must be:
+	Definition: must be one of:
+		    "qcom,sc7180-aoss-cc"
 		    "qcom,sdm845-aoss-cc"
 
 - reg:
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer
#2 lore raw

Re: [PATCH 1/4] dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

Quoted 12 lines · Sibi Sankar

Add SC7180 AOSS reset to the list of possible bindings.

---
 Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +0 -0
index 510c748656ec5..8f0bbdc6afd91 100644

Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt Required properties: · line 15

Quoted 9 lines
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +2 -1
@@ -8,7 +8,8 @@ Required properties:
 - compatible:
 	Usage: required
 	Value type: <string>
-	Definition: must be:
+	Definition: must be one of:
+		    "qcom,sc7180-aoss-cc"
 		    "qcom,sdm845-aoss-cc"
 
 - reg:

Does sc7180 have exactly the same resets (mss, camss, venus, gpu, dispss, wcss, and lpass) as sdm845? If so, it could be considered compatible, and the driver changes wouldn't be needed at all:

- Definition: must be:
+ Definition: must be one of:
+ "qcom,sc7180-aoss-cc", "qcom,sdm845-aoss-cc"

	    "qcom,sdm845-aoss-cc"

Is there a reason not to do this?

regards
Philipp

#3 lore raw

Re: [PATCH 1/4] dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

Hey Philipp,
Thanks for the review!

Quoted 21 lines · Philipp Zabel
Quoted 20 lines · Sibi Sankar

Add SC7180 AOSS reset to the list of possible bindings.

---
 Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +2 -1
index 510c748656ec5..8f0bbdc6afd91 100644
@@ -8,7 +8,8 @@ Required properties:
 - compatible:
 	Usage: required
 	Value type: <string>
-	Definition: must be:
+	Definition: must be one of:
+		    "qcom,sc7180-aoss-cc"
 		    "qcom,sdm845-aoss-cc"
 
Quoted 5 lines

Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt Required properties: · line 15

Quoted 1 line
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +0 -0
 - reg:

Does sc7180 have exactly the same resets (mss, camss, venus, gpu, dispss, wcss, and lpass) as sdm845? If so, it could be considered compatible, and the driver changes wouldn't be needed at all:

Yes they are identical both
AOSS and PDC resets.

Quoted 8 lines
Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt +2 -1
-	Definition: must be:
+	Definition: must be one of:
+		    "qcom,sc7180-aoss-cc", "qcom,sdm845-aoss-cc"
	    "qcom,sdm845-aoss-cc"

Is there a reason not to do this?

I am fine with ^^, will change
them in v2.

Quoted 3 lines

regards
Philipp

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

PATCH 2/4 reset: qcom: aoss: Add support for SC7180 SoCs

In reply to Sibi Sankar

Add AOSS reset support for SC7180 SoCs.

---
 drivers/reset/reset-qcom-aoss.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-qcom-aoss.c +1 -0
index 36db967504507..a400db93eb7d2 100644
@@ -115,6 +115,7 @@ static int qcom_aoss_reset_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id qcom_aoss_reset_of_match[] = {
+	{ .compatible = "qcom,sc7180-aoss-cc", .data = &sdm845_aoss_desc },
 	{ .compatible = "qcom,sdm845-aoss-cc", .data = &sdm845_aoss_desc },
 	{}
 };
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 3/4 dt-bindings: reset: pdc: Add PDC Global binding for SC7180 SoCs

In reply to Sibi Sankar

Add SC7180 PDC global to the list of possible bindings.

---
 Documentation/devicetree/bindings/reset/qcom,pdc-global.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/qcom,pdc-global.txt +2 -1
index a62a492843e70..1f1ff280b2d69 100644
@@ -8,7 +8,8 @@ Required properties:
 - compatible:
 	Usage: required
 	Value type: <string>
-	Definition: must be:
+	Definition: must be one of:
+		    "qcom,sc7180-pdc-global"
 		    "qcom,sdm845-pdc-global"
 
 - reg:
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 4/4 reset: qcom: pdc: Add support for SC7180 SoCs

In reply to Sibi Sankar

Add PCD Global support for SC7180 SoCs.

---
 drivers/reset/reset-qcom-pdc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-qcom-pdc.c +1 -0
index ab74bccd4a5b5..d876e48f05524 100644
@@ -106,6 +106,7 @@ static int qcom_pdc_reset_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id qcom_pdc_reset_of_match[] = {
+	{ .compatible = "qcom,sc7180-pdc-global" },
 	{ .compatible = "qcom,sdm845-pdc-global" },
 	{}
 };
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project