dt-bindings: display: tegra: Allow dma-coherent on Tegra194 and later
authorThierry Reding <treding@nvidia.com>
Thu, 20 Apr 2023 12:12:33 +0000 (14:12 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 26 Apr 2024 15:40:18 +0000 (17:40 +0200)
Tegra194 and later chips have a coherency fabric, so some devices can be
marked as DMA coherent to avoid unnecessary cache maintenance.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml

index 94c5242c03b288da8aeb37c8c4b1ddf94d814564..3563378a01af47fe3593ff8183230bc6c9186f3a 100644 (file)
@@ -177,6 +177,15 @@ allOf:
 
       required:
         - reg-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - nvidia,tegra194-host1x
+    then:
+      properties:
+        dma-coherent: true
   - if:
       properties:
         compatible:
@@ -226,6 +235,8 @@ allOf:
             use. Should be a mapping of IDs 0..n to IOMMU entries corresponding to
             usable stream IDs.
 
+        dma-coherent: true
+
       required:
         - reg-names