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 <[email protected]> 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-7b49bda74...@oss.qualcomm.com?part=1
