diff mbox series

[1/2] dt-bindings: dma: ti: Add J721S2 BCDMA

Message ID 20230503065303.16674-1-vaishnav.a@ti.com (mailing list archive)
State Changes Requested
Headers show
Series [1/2] dt-bindings: dma: ti: Add J721S2 BCDMA | expand

Commit Message

Vaishnav Achath May 3, 2023, 6:53 a.m. UTC
Add bindings for J721S2 BCDMA instance dedicated for Camera
Serial Interface. Unlike AM62A CSI BCDMA, this instance has RX
and TX channels but lacks block copy channels.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
---
 .../devicetree/bindings/dma/ti/k3-bcdma.yaml  | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Krzysztof Kozlowski May 4, 2023, 5:04 p.m. UTC | #1
On 03/05/2023 08:53, Vaishnav Achath wrote:
> Add bindings for J721S2 BCDMA instance dedicated for Camera
> Serial Interface. Unlike AM62A CSI BCDMA, this instance has RX
> and TX channels but lacks block copy channels.
> 
> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
> ---
>  .../devicetree/bindings/dma/ti/k3-bcdma.yaml  | 21 +++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> index beecfe7a1732..5ca9581a66f4 100644
> --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> @@ -33,6 +33,7 @@ properties:
>      enum:
>        - ti,am62a-dmss-bcdma-csirx
>        - ti,am64-dmss-bcdma
> +      - ti,j721s2-dmss-bcdma-csi
>  
>    reg:
>      minItems: 3
> @@ -150,7 +151,27 @@ allOf:
>  
>        required:
>          - power-domains
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: ti,j721s2-dmss-bcdma-csi
> +    then:
> +      properties:
> +        ti,sci-rm-range-bchan: false
> +
> +        reg:
> +          maxItems: 4
>  
> +        reg-names:
> +          items:
> +            - const: gcfg
> +            - const: rchanrt
> +            - const: tchanrt
> +            - const: ringrt
> +
> +      required:
> +        - ti,sci-rm-range-tchan
>      else:
>        properties:


You now require 5 reg items on ti,am62a-dmss-bcdma-csirx. I don't think
you tested your DTS against this change. Rework the else: so it will
match specific variant (if:).

Best regards,
Krzysztof
Vaishnav Achath May 5, 2023, 8:58 a.m. UTC | #2
Hi Krzysztof,

On 04/05/23 22:34, Krzysztof Kozlowski wrote:
> On 03/05/2023 08:53, Vaishnav Achath wrote:
>> Add bindings for J721S2 BCDMA instance dedicated for Camera
>> Serial Interface. Unlike AM62A CSI BCDMA, this instance has RX
>> and TX channels but lacks block copy channels.
>>
>> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
>> ---
>>  .../devicetree/bindings/dma/ti/k3-bcdma.yaml  | 21 +++++++++++++++++++
>>  1 file changed, 21 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
>> index beecfe7a1732..5ca9581a66f4 100644
>> --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
>> +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
>> @@ -33,6 +33,7 @@ properties:
>>      enum:
>>        - ti,am62a-dmss-bcdma-csirx
>>        - ti,am64-dmss-bcdma
>> +      - ti,j721s2-dmss-bcdma-csi
>>  
>>    reg:
>>      minItems: 3
>> @@ -150,7 +151,27 @@ allOf:
>>  
>>        required:
>>          - power-domains
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            const: ti,j721s2-dmss-bcdma-csi
>> +    then:
>> +      properties:
>> +        ti,sci-rm-range-bchan: false
>> +
>> +        reg:
>> +          maxItems: 4
>>  
>> +        reg-names:
>> +          items:
>> +            - const: gcfg
>> +            - const: rchanrt
>> +            - const: tchanrt
>> +            - const: ringrt
>> +
>> +      required:
>> +        - ti,sci-rm-range-tchan
>>      else:
>>        properties:
> 
> 
> You now require 5 reg items on ti,am62a-dmss-bcdma-csirx. I don't think
> you tested your DTS against this change. Rework the else: so it will
> match specific variant (if:).

Thank you for the review, Sorry, I did not have the ti,am62a-dmss-bcdma-csirx
instance added while I tested this change, I have made the update you suggested,
checked DTS with the nodes added and sent a v2 now.

Thanks and Regards,
Vaishnav

> 
> Best regards,
> Krzysztof
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
index beecfe7a1732..5ca9581a66f4 100644
--- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
+++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
@@ -33,6 +33,7 @@  properties:
     enum:
       - ti,am62a-dmss-bcdma-csirx
       - ti,am64-dmss-bcdma
+      - ti,j721s2-dmss-bcdma-csi
 
   reg:
     minItems: 3
@@ -150,7 +151,27 @@  allOf:
 
       required:
         - power-domains
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: ti,j721s2-dmss-bcdma-csi
+    then:
+      properties:
+        ti,sci-rm-range-bchan: false
+
+        reg:
+          maxItems: 4
 
+        reg-names:
+          items:
+            - const: gcfg
+            - const: rchanrt
+            - const: tchanrt
+            - const: ringrt
+
+      required:
+        - ti,sci-rm-range-tchan
     else:
       properties:
         reg: