Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: display: msm: qcom,dcp globally claims generic
  virtio,device34
- [Low] dt-bindings: display: msm: qcom,dcp: non-canonical property
  order in interface@
--

commit f399de20b9c1b05effa463501fa719abbb97394c
Author: Jayant Shekhar <[email protected]>

dt-bindings: display: msm: Add Qualcomm DCP

This commit adds the Device Tree binding schema for the Qualcomm Display
Co-Processor (DCP) VirtIO display function.

> diff --git a/Documentation/devicetree/bindings/display/msm/qcom,dcp.yaml 
> b/Documentation/devicetree/bindings/display/msm/qcom,dcp.yaml
> new file mode 100644
> index 0000000000000..ff7dc4e5c5eef
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/msm/qcom,dcp.yaml
> @@ -0,0 +1,159 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: virtio,device34

[Severity: Medium]
Does defining compatible solely as const: virtio,device34 without a select
rule cause dtschema to apply this Qualcomm DCP schema globally to every
vendor-specific VirtIO device node?

VIRTIO_ID_VENDOR (0x34) is a generic device ID shared across all
vendor-specific VirtIO functions, and virtio_device_of_init() matches child
nodes against virtio,device<hex_id>.  Without select: false (assuming the
parent transport schema references this schema directly) or a device-specific
compatible string, dtbs_check will enforce Qualcomm DCP's required properties
(iommus, ports, #address-cells, #size-cells) and unevaluatedProperties: false
on any non-DCP device using virtio,device34.  In addition, commit "virtio:
Add vendor-specific device ID" notes that device ID 52 (0x34) is only proposed
for VirtIO TC allocation and not yet formally allocated, so hardcoding
virtio,device34 here ties the DT binding ABI to an unallocated ID.

[ ... ]

> +patternProperties:
> +  "^interface@[0-9a-f]+$":
> +    type: object
> +    properties:
> +      "#address-cells":
> +        const: 1
> +      "#size-cells":
> +        const: 0
> +      reg:
> +        maxItems: 1
> +        description: DCP INTF index matching the output port.

[Severity: Low]
This isn't a bug, but in ^interface@[0-9a-f]+$, reg should be listed before
#address-cells and #size-cells under properties to match the canonical DT
property ordering as well as this node's required list and example.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1

Reply via email to