From: sashiko-bot@kernel.org
To: "Jayant Shekhar" <jayant.shekhar@oss.qualcomm.com>
Cc: virtualization@lists.linux.dev, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport
Date: Thu, 26 Nov 2026 06:36:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-234870@kernel.org> (raw)
In-Reply-To: <20261126-jshekhar-qcom-virtio-dcp-v1-1-7b49bda74916@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] dt-bindings: virtio: missing referenced qcom,dcp.yaml schema
- [Medium] dt-bindings: virtio: invalid per-item uint32 ref in
iommu-ranges
- [Low] dt-bindings: virtio: use per-entry items list for interrupts
- [Low] dt-bindings: virtio: DTS example fails dt-check-style strict
checks
--
commit 32acdab74d03f0d1136a352cb6b5c3095b26176f
Author: Jayant Shekhar <jayant.shekhar@oss.qualcomm.com>
dt-bindings: virtio: Add Qualcomm DCP transport
This commit adds a Device Tree binding schema for the Qualcomm DCP VirtIO
transport wrapper.
> diff --git a/Documentation/devicetree/bindings/virtio/qcom,dcp-virtio.yaml b/Documentation/devicetree/bindings/virtio/qcom,dcp-virtio.yaml
> new file mode 100644
> index 0000000000000..46b0e53468be0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/virtio/qcom,dcp-virtio.yaml
> @@ -0,0 +1,147 @@
[ ... ]
> + interrupts-extended:
> + minItems: 2
> + maxItems: 2
> + description: The VirtIO-MMIO and DCP power-notify interrupts, in that order.
[Severity: Low]
When a property has a fixed set of ordered entries, DT binding schemas
describe each entry in an items list instead of using minItems/maxItems
with a combined description. Defining interrupts (in properties and
required) with two per-entry description items also lets dtschema accept
interrupts-extended automatically in DTS nodes and examples.
> +
> + iommus:
> + maxItems: 1
> +
> + iommu-ranges:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + description: |
> + The firmware-visible IOVA range, specified using the parent bus's
> + #address-cells followed by its #size-cells. The DCP transport uses two
> + cells for each, encoding a 64-bit IOVA base followed by a 64-bit range
> + size.
> + items:
> + - description: IOVA base, high cell
> + $ref: /schemas/types.yaml#/definitions/uint32
> + - description: IOVA base, low cell
> + $ref: /schemas/types.yaml#/definitions/uint32
> + - description: IOVA range size, high cell
> + $ref: /schemas/types.yaml#/definitions/uint32
> + - description: IOVA range size, low cell
> + $ref: /schemas/types.yaml#/definitions/uint32
[Severity: Medium]
Does make dt_binding_check fail on the per-item uint32 $ref entries under
iommu-ranges?
Because iommu-ranges already has $ref:
/schemas/types.yaml#/definitions/uint32-array, each entry under items
describes a single 32-bit cell validated against meta-schemas/cell.yaml,
which does not permit $ref (and /schemas/types.yaml#/definitions/uint32 is
a property-level type). Dropping the per-item $ref lines and keeping only
the description entries avoids the schema validation failure.
> +
> + dma-coherent: true
> +
> + mboxes:
> + maxItems: 1
> +
> + mbox-names:
> + const: dcp-power-tx
> +
> + display-subsystem:
> + $ref: ../display/msm/qcom,dcp.yaml#
[Severity: Medium]
Does make dt_binding_check fail to resolve ../display/msm/qcom,dcp.yaml#?
Documentation/devicetree/bindings/display/msm/qcom,dcp.yaml is not present
in the tree, so validating this schema and the display-subsystem child
node in the example fails with an unresolvable reference error. The
qcom,dcp.yaml schema needs to be present before this binding (and
referenced as /schemas/display/msm/qcom,dcp.yaml#).
[ ... ]
> + / {
> + compatible = "qcom,hawi-mtp", "qcom,hawi";
> + model = "Qualcomm Technologies, Inc. Hawi MTP";
> + #address-cells = <2>;
> + #size-cells = <2>;
[ ... ]
> + port@1 {
> + reg = <1>;
> + dcp_intf1_out: endpoint {
> + remote-endpoint = <&panel_dcp_in>;
> + };
> + };
[Severity: Low]
In the example, scripts/dtc/dt-check-style --mode=strict reports two style
warnings: in a root node model should precede compatible (or a simple soc
bus node can be used instead of /), and in port@1 a blank line is needed
between reg = <1>; and the dcp_intf1_out: endpoint child node.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-jshekhar-qcom-virtio-dcp-v1-0-7b49bda74916@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-11-26 6:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:23 [PATCH 0/3] virtio: Add Qualcomm Display Co-Processor transport wrapper Jayant Shekhar
2026-11-26 6:23 ` [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport Jayant Shekhar
2026-11-26 6:36 ` sashiko-bot [this message]
2026-11-26 6:24 ` [PATCH 2/3] virtio: Add vendor-specific device ID Jayant Shekhar
2026-11-26 6:27 ` Michael S. Tsirkin
2026-11-26 6:29 ` sashiko-bot
2026-11-26 6:24 ` [PATCH 3/3] virtio: Add Qualcomm VirtIO transport wrapper Jayant Shekhar
2026-11-26 6:35 ` Michael S. Tsirkin
2026-11-26 10:03 ` Jayant Shekhar
2026-11-26 11:41 ` Michael S. Tsirkin
2026-11-26 12:18 ` Jayant Shekhar
2026-11-26 6:44 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-234870@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eperezma@redhat.com \
--cc=jayant.shekhar@oss.qualcomm.com \
--cc=mst@redhat.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox