Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: virtio: pci-iommu: Add ref to pci-device.yaml

The virtio pci-iommu is a PCI device, so it should have a reference to
the pci-device.yaml schema. The pci-device.yaml schema defines the 'reg'
format as a schema, so the text description for 'reg' can be dropped.

Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20250407165341.2934499-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+4 -6
+4 -6
Documentation/devicetree/bindings/virtio/pci-iommu.yaml
··· 20 20 virtio-iommu node doesn't have an "iommus" property, and is omitted from 21 21 the iommu-map property of the root complex. 22 22 23 + allOf: 24 + - $ref: /schemas/pci/pci-device.yaml# 25 + 23 26 properties: 24 27 # If compatible is present, it should contain the vendor and device ID 25 28 # according to the PCI Bus Binding specification. Since PCI provides ··· 36 33 - const: pci1af4,1057 37 34 38 35 reg: 39 - description: | 40 - PCI address of the IOMMU. As defined in the PCI Bus Binding 41 - reference, the reg property is a five-cell address encoded as (phys.hi 42 - phys.mid phys.lo size.hi size.lo). phys.hi should contain the device's 43 - BDF as 0b00000000 bbbbbbbb dddddfff 00000000. The other cells should be 44 - zero. See Documentation/devicetree/bindings/pci/pci.txt 36 + maxItems: 1 45 37 46 38 '#iommu-cells': 47 39 const: 1