dt-bindings: virtio,mmio: Allow setting devices 'dma-coherent'
authorRob Herring <robh@kernel.org>
Thu, 10 Mar 2022 01:35:27 +0000 (19:35 -0600)
committerRob Herring <robh@kernel.org>
Sun, 20 Mar 2022 19:08:08 +0000 (15:08 -0400)
'virtio,mmio' devices are always coherent within a guest. As Arm DTs
are default non-coherent, the 'dma-coherent' property needs to be set on
the virtio device to mark them as such. This aligns with the QEMU 'virt'
machine DTB.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220310013528.549030-1-robh@kernel.org
Documentation/devicetree/bindings/virtio/mmio.yaml

index 4b7a027..10c22b5 100644 (file)
@@ -20,6 +20,8 @@ properties:
   reg:
     maxItems: 1
 
+  dma-coherent: true
+
   interrupts:
     maxItems: 1