Skip to contentSkip to conversation

dt-bindings: soc: ti: pruss: Add dma-coherent property

PATCH Superseded Suman Anna 3 participants 4 messages Jul 30, 2021 – Aug 3, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 1/1 dt-bindings: soc: ti: pruss: Add dma-coherent property

Update the PRUSS schema file to include the dma-coherent property that indicates the coherency of the IP. The PRUSS IPs on 66AK2G SoCs do use this property.

---
Hi Santosh,

This patch updates the PRUSS binding in preparation for adding the PRUSS nodes for 66AK2G SoCs. Without this, the dtbs_check would complain about the undefined dma-coherent property. Patch is top of the AM64 ICSSG binding update patch [1].

regards
Suman

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

 .../devicetree/bindings/soc/ti/ti,pruss.yaml  | 37 +++++++++++++------
 1 file changed, 25 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +25 -12
index 47d7fd24bc56..9d128b9e7deb 100644
@@ -85,6 +85,8 @@ properties:
   dma-ranges:
     maxItems: 1
 
+  dma-coherent: true
+
   power-domains:
     description: |
       This property is as per sci-pm-domain.txt.
@@ -324,18 +326,29 @@ additionalProperties: false
 # - interrupt-controller
 # - pru
 
-if:
-  properties:
-    compatible:
-      contains:
-        enum:
-          - ti,k2g-pruss
-          - ti,am654-icssg
-          - ti,j721e-icssg
-          - ti,am642-icssg
-then:
-  required:
-    - power-domains
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+              - ti,am654-icssg
+              - ti,j721e-icssg
+              - ti,am642-icssg
+    then:
+      required:
+        - power-domains
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+    then:
+      required:
+        - dma-coherent
 
 examples:
   - |
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Suman Anna

Update the PRUSS schema file to include the dma-coherent property that indicates the coherency of the IP. The PRUSS IPs on 66AK2G SoCs do use this property.

---
Hi Santosh,

This patch updates the PRUSS binding in preparation for adding the PRUSS nodes for 66AK2G SoCs. Without this, the dtbs_check would complain about the undefined dma-coherent property. Patch is top of the AM64 ICSSG binding update patch [1].

Quoted 8 lines

regards
Suman

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

  .../devicetree/bindings/soc/ti/ti,pruss.yaml  | 37 +++++++++++++------
  1 file changed, 25 insertions(+), 12 deletions(-)
Signature · 2 lines
Best regards,
grygorii
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Suman Anna
Quoted 4 lines · Suman Anna

Update the PRUSS schema file to include the dma-coherent property that indicates the coherency of the IP. The PRUSS IPs on 66AK2G SoCs do use this property.

Quoted 8 lines

---
Hi Santosh,

This patch updates the PRUSS binding in preparation for adding the PRUSS nodes for 66AK2G SoCs. Without this, the dtbs_check would complain about the undefined dma-coherent property. Patch is top of the AM64 ICSSG binding update patch [1].

New required properties are not backwards compatible. You are kind of saying that here (not used yet?), but make that clear in the commit msg.

With that fixed,

Quoted 68 lines

regards
Suman

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

 .../devicetree/bindings/soc/ti/ti,pruss.yaml  | 37 +++++++++++++------
 1 file changed, 25 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +25 -12
index 47d7fd24bc56..9d128b9e7deb 100644
@@ -85,6 +85,8 @@ properties:
   dma-ranges:
     maxItems: 1
 
+  dma-coherent: true
+
   power-domains:
     description: |
       This property is as per sci-pm-domain.txt.
@@ -324,18 +326,29 @@ additionalProperties: false
 # - interrupt-controller
 # - pru
 
-if:
-  properties:
-    compatible:
-      contains:
-        enum:
-          - ti,k2g-pruss
-          - ti,am654-icssg
-          - ti,j721e-icssg
-          - ti,am642-icssg
-then:
-  required:
-    - power-domains
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+              - ti,am654-icssg
+              - ti,j721e-icssg
+              - ti,am642-icssg
+    then:
+      required:
+        - power-domains
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+    then:
+      required:
+        - dma-coherent
 
 examples:
   - |
Signature · 1 line
2.32.0
author
#3 lore raw
Quoted 9 lines · Rob Herring
Quoted 8 lines · Suman Anna

Update the PRUSS schema file to include the dma-coherent property that indicates the coherency of the IP. The PRUSS IPs on 66AK2G SoCs do use this property.

---
Hi Santosh,

Quoted 7 lines
Quoted 4 lines

This patch updates the PRUSS binding in preparation for adding the PRUSS nodes for 66AK2G SoCs. Without this, the dtbs_check would complain about the undefined dma-coherent property. Patch is top of the AM64 ICSSG binding update patch [1].

New required properties are not backwards compatible. You are kind of saying that here (not used yet?), but make that clear in the commit msg.

OK. Yeah, we haven't added the K2G dts nodes yet, and the new required property is only applicable for that SoC and not others.

regards
Suman

Quoted 73 lines

With that fixed,

Quoted 68 lines

regards
Suman

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

 .../devicetree/bindings/soc/ti/ti,pruss.yaml  | 37 +++++++++++++------
 1 file changed, 25 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +25 -12
index 47d7fd24bc56..9d128b9e7deb 100644
@@ -85,6 +85,8 @@ properties:
   dma-ranges:
     maxItems: 1
 
+  dma-coherent: true
+
   power-domains:
     description: |
       This property is as per sci-pm-domain.txt.
@@ -324,18 +326,29 @@ additionalProperties: false
 # - interrupt-controller
 # - pru
 
-if:
-  properties:
-    compatible:
-      contains:
-        enum:
-          - ti,k2g-pruss
-          - ti,am654-icssg
-          - ti,j721e-icssg
-          - ti,am642-icssg
-then:
-  required:
-    - power-domains
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+              - ti,am654-icssg
+              - ti,j721e-icssg
+              - ti,am642-icssg
+    then:
+      required:
+        - power-domains
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - ti,k2g-pruss
+    then:
+      required:
+        - dma-coherent
 
 examples:
   - |
Signature · 1 line
2.32.0