Skip to contentSkip to conversation

dt-bindings: dma: ti: k3-bcdma: Add J722S CSI BCDMA

PATCH Superseded Vaishnav Achath 2 participants 4 messages Nov 26, 2024 – Nov 27, 2024

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dt-bindings: dma: ti: k3-bcdma: Add J722S CSI BCDMA

J722S CSI BCDMA is similar to J721S2 CSI BCDMA and supports both RX and TX channels. Add an entry for J722S CSIRX BCDMA.

---

V1->V2:
* Address review from Conor to add new J722S compatible
* J722S BCDMA is more similar to J721S2 in terms of RX/TX support, add an entry alongside J721S2 instead of modifying AM62A.

V1: https://lore.kernel.org/all/[email protected]/

 Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +3 -1
index 27b8e1636560..37832c71bd8e 100644
@@ -196,7 +196,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: ti,j721s2-dmss-bcdma-csi
+            enum:
+              - ti,j721s2-dmss-bcdma-csi
+              - ti,j722s-dmss-bcdma-csi
     then:
       properties:
         ti,sci-rm-range-bchan: false
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 2/2 dmaengine: ti: k3-udma: Add support for J722S CSI BCDMA

J722S CSI BCDMA is similar to J721S2 CSI BCDMA but there are slight integration differences like different PSIL thread base ID which is handled in the driver. Add an entry to support J722S CSIRX.

J722S TRM (11.2 Data Movement Subsystem):
https://www.ti.com/lit/zip/sprujb3

---

V1->V2:
* Add new compatible for J722S instead of modifying AM62A

V1: https://lore.kernel.org/all/[email protected]/

CSI2RX capture test results on J722S EVM with 4 x IMX219:
https://gist.github.com/vaishnavachath/e2eaed62ee8f53428ee9b830aaa02cc3

 drivers/dma/ti/k3-udma.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/dma/ti/k3-udma.c +16 -0
index b3f27b3f9209..7ed1956b4642 100644
@@ -4404,6 +4404,18 @@ static struct udma_match_data j721s2_bcdma_csi_data = {
 	.soc_data = &j721s2_bcdma_csi_soc_data,
 };
 
+static struct udma_match_data j722s_bcdma_csi_data = {
+	.type = DMA_TYPE_BCDMA,
+	.psil_base = 0x3100,
+	.enable_memcpy_support = false,
+	.burst_size = {
+		TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES, /* Normal Channels */
+		0, /* No H Channels */
+		0, /* No UH Channels */
+	},
+	.soc_data = &j721s2_bcdma_csi_soc_data,
+};
+
 static const struct of_device_id udma_of_match[] = {
 	{
 		.compatible = "ti,am654-navss-main-udmap",
@@ -4435,6 +4447,10 @@ static const struct of_device_id udma_of_match[] = {
 		.compatible = "ti,j721s2-dmss-bcdma-csi",
 		.data = &j721s2_bcdma_csi_data,
 	},
+	{
+		.compatible = "ti,j722s-dmss-bcdma-csi",
+		.data = &j722s_bcdma_csi_data,
+	},
 	{ /* Sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, udma_of_match);
Signature · 1 line
2.34.1
#2 lore raw
In reply to Vaishnav Achath
Quoted 3 lines · Vaishnav Achath

J722S CSI BCDMA is similar to J721S2 CSI BCDMA and supports both RX and TX channels. Add an entry for J722S CSIRX BCDMA.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Quoted 19 lines

---

V1->V2:
* Address review from Conor to add new J722S compatible
* J722S BCDMA is more similar to J721S2 in terms of RX/TX support, add an entry alongside J721S2 instead of modifying AM62A.

V1: https://lore.kernel.org/all/[email protected]/

 Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +0 -0
index 27b8e1636560..37832c71bd8e 100644

Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml allOf: · line 201

Quoted 7 lines
Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +3 -1
@@ -196,7 +196,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: ti,j721s2-dmss-bcdma-csi
+            enum:
+              - ti,j721s2-dmss-bcdma-csi
+              - ti,j722s-dmss-bcdma-csi

This compatible was never documented. There is no dependency here, no cover letter explaining where is this compatible introduced.

Best regards,
Krzysztof

#3 lore raw

Hi Krzysztof,

Quoted 9 lines · Krzysztof Kozlowski
Quoted 3 lines · Vaishnav Achath

J722S CSI BCDMA is similar to J721S2 CSI BCDMA and supports both RX and TX channels. Add an entry for J722S CSIRX BCDMA.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

I will fix this in next revision.

Quoted 14 lines
Quoted 14 lines

---

V1->V2:
* Address review from Conor to add new J722S compatible
* J722S BCDMA is more similar to J721S2 in terms of RX/TX support, add an entry alongside J721S2 instead of modifying AM62A.

V1: https://lore.kernel.org/all/[email protected]/

  Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 17 lines

Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml allOf: · line 201

Quoted 12 lines
Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +3 -1
index 27b8e1636560..37832c71bd8e 100644
@@ -196,7 +196,9 @@ allOf:
        properties:
          compatible:
            contains:
-            const: ti,j721s2-dmss-bcdma-csi
+            enum:
+              - ti,j721s2-dmss-bcdma-csi
+              - ti,j722s-dmss-bcdma-csi

This compatible was never documented. There is no dependency here, no cover letter explaining where is this compatible introduced.

This was a mistake from my end, sorry about that, it was supposed to be introduced in this patch itself, will fix it in the next revision. Thank you for the review.

Thanks and Regards,
Vaishnav

Quoted 4 lines

Best regards,
Krzysztof