Skip to contentSkip to conversation

SDM670 GPI DMA support

PATCH Superseded Richard Acayan 2 participants 5 messages Sep 23, 2022

Subsystems (3)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

cover SDM670 GPI DMA support

This patch series adds the compatible string for GPI DMA, needed for the GENI interface, on Snapdragon 670.

 Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 +
 drivers/dma/qcom/gpi.c                              | 1 +
 2 files changed, 2 insertions(+)
#1 lore raw

PATCH 1/2 dt-bindings: dma: qcom: gpi: add compatible for sdm670

The Snapdragon 670 uses GPI DMA for its GENI interface. Add a compatible string for it in the documentation.

---
 Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/dma/qcom,gpi.yaml +1 -0
index eabf8a76d3a0..cabe6a51db07 100644
@@ -20,6 +20,7 @@ properties:
   compatible:
     enum:
       - qcom,sc7280-gpi-dma
+      - qcom,sdm670-gpi-dma
       - qcom,sdm845-gpi-dma
       - qcom,sm6350-gpi-dma
       - qcom,sm8150-gpi-dma
Signature · 1 line
2.37.3
#2 lore raw

Re: [PATCH 1/2] dt-bindings: dma: qcom: gpi: add compatible for sdm670

Quoted 13 lines · Richard Acayan

The Snapdragon 670 uses GPI DMA for its GENI interface. Add a compatible string for it in the documentation.

---
 Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/dma/qcom,gpi.yaml +0 -0
index eabf8a76d3a0..cabe6a51db07 100644

Documentation/devicetree/bindings/dma/qcom,gpi.yaml properties: · line 24

Quoted 5 lines
Documentation/devicetree/bindings/dma/qcom,gpi.yaml +1 -0
@@ -20,6 +20,7 @@ properties:
   compatible:
     enum:
       - qcom,sc7280-gpi-dma
+      - qcom,sdm670-gpi-dma
       - qcom,sdm845-gpi-dma

SDM670, SDM854, SM8150 have all the same xPU3 block. They are compatible. Are we sure we want to keep growing the list in the driver?

Best regards,
Krzysztof

#3 lore raw

PATCH 2/2 dmaengine: qcom: gpi: add sdm670 support

In reply to Richard Acayan

The Snapdragon 670 uses GPI DMA for its GENI interface. Add support for it.

---
 drivers/dma/qcom/gpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/qcom/gpi.c +1 -0
index 89839864b4ec..9634be23e46b 100644
@@ -2287,6 +2287,7 @@ static int gpi_probe(struct platform_device *pdev)
 
 static const struct of_device_id gpi_of_match[] = {
 	{ .compatible = "qcom,sc7280-gpi-dma", .data = (void *)0x10000 },
+	{ .compatible = "qcom,sdm670-gpi-dma", .data = (void *)0x0 },
 	{ .compatible = "qcom,sdm845-gpi-dma", .data = (void *)0x0 },
 	{ .compatible = "qcom,sm6350-gpi-dma", .data = (void *)0x10000 },
 	{ .compatible = "qcom,sm8150-gpi-dma", .data = (void *)0x0 },
Signature · 1 line
2.37.3
#4 lore raw

Re: [PATCH 2/2] dmaengine: qcom: gpi: add sdm670 support

Quoted 13 lines · Richard Acayan

The Snapdragon 670 uses GPI DMA for its GENI interface. Add support for it.

---
 drivers/dma/qcom/gpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/qcom/gpi.c +0 -0
index 89839864b4ec..9634be23e46b 100644

drivers/dma/qcom/gpi.c static int gpi_probe(struct platform_device *pdev) · line 2293

Quoted 7 lines
drivers/dma/qcom/gpi.c +1 -0
@@ -2287,6 +2287,7 @@ static int gpi_probe(struct platform_device *pdev)
 
 static const struct of_device_id gpi_of_match[] = {
 	{ .compatible = "qcom,sc7280-gpi-dma", .data = (void *)0x10000 },
+	{ .compatible = "qcom,sdm670-gpi-dma", .data = (void *)0x0 },
 	{ .compatible = "qcom,sdm845-gpi-dma", .data = (void *)0x0 },
 	{ .compatible = "qcom,sm6350-gpi-dma", .data = (void *)0x10000 },
 	{ .compatible = "qcom,sm8150-gpi-dma", .data = (void *)0x0 },

I vote for just one entry with 0x0 offset...

Best regards,
Krzysztof