Skip to contentSkip to conversation

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

PATCH New Suman Anna 1 participant 1 message Aug 4, 2021

Subsystems (2)
lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH v2 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.

The new added dma-coherent property is a required property _only_ for 66AK2G SoCs and is not required/applicable for other SoCs, so the binding is backward compatible for other SoCs. This update is being done before the corresponding dts nodes can be added for 66AK2G SoCs.

---
v2:
- No code changes, only updated the patch description (added 2nd para) to
address Rob's review comments
- Picked up review tags
- Patch is still on top of AM64 ICSSG binding update patch [1]
v1: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/

[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