From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: linux-pci@vger.kernel.org, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v4 4/6] dt-bindings: PCI: Describe the CS7542 host controller
Date: Fri, 04 Dec 2026 22:33:00 +0000 [thread overview]
Message-ID: <sashiko-outbox-250760@kernel.org> (raw)
In-Reply-To: <20261205-b4-cs7542-pcie-v4-4-6d0101b281b4@gmail.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] dt-bindings: pci: Root Port uses additionalProperties: true
- [Low] dt-bindings: pci: Root Port regex allows extra non-existent
ports
- [Low] dt-bindings: pci: redundant legacy phy-names for single PHY
--
commit 79b55635355834a2edd3875ad0c012643b49ab39
Author: Fil Dunsky <filipp.dunsky@gmail.com>
dt-bindings: PCI: Describe the CS7542 host controller
This commit adds the Device Tree binding schema for the Cortina Systems
CS7542 DesignWare-based PCIe host controller, documenting its register
windows, clock, reset, PHY, combined interrupt, INTx domain, and single
Root Port node.
> diff --git a/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml b/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml
> new file mode 100644
> index 0000000000000..64cd7c7448513
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml
> @@ -0,0 +1,157 @@
[ ... ]
> + phys:
> + maxItems: 1
> +
> + phy-names:
> + const: pcie
[Severity: Low]
Is phy-names needed here for a single PHY?
The single clock and reset properties in this binding omit -names, and
devm_phy_get(dev, NULL) resolves index 0 without it. In addition,
snps,dw-pcie-common.yaml categorizes "pcie" as a vendor-specific name to
avoid in new bindings in favor of generic names like "pcie0".
Consider dropping phy-names, or using "pcie0" if it is kept.
[ ... ]
> +patternProperties:
> + "^pcie@[0-9a-f]+,[0-7]$":
[Severity: Low]
Does this pattern allow extra non-existent Root Port nodes and invalid
PCI device numbers above 0x1f to pass dtbs_check?
The description states there is a single Root Port and required already
fixes it to pcie@0,0. Defining pcie@0,0 directly under properties (or
narrowing the pattern to ^pcie@0,0$) would match the hardware topology.
> + type: object
> + $ref: /schemas/pci/pci-pci-bridge.yaml#
> + additionalProperties: true
[Severity: Low]
Should this use unevaluatedProperties: false instead of
additionalProperties: true?
Setting additionalProperties: true disables schema validation of unknown
or misspelled properties (such as a typoed reset-gpio) inside the Root
Port node. With unevaluatedProperties: false, all properties from
pci-pci-bridge.yaml remain allowed while unexpected ones are caught.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-pcie-v4-0-6d0101b281b4@gmail.com?part=4
next prev parent reply other threads:[~2026-12-04 22:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:22 [PATCH v4 0/6] PCI: cortina: Add CS7542 PCIe host and PHY support Fil Dunsky via B4 Relay
2026-12-04 22:22 ` [PATCH v4 1/6] PCI: dwc: Export the multiplexed MSI interrupt handler Fil Dunsky via B4 Relay
2026-12-04 22:22 ` [PATCH v4 2/6] dt-bindings: phy: Describe CS7542 PCIe SerDes Fil Dunsky via B4 Relay
2026-12-04 22:33 ` sashiko-bot
2026-12-04 22:22 ` [PATCH v4 3/6] phy: Add CS7542 PCIe SerDes support Fil Dunsky via B4 Relay
2026-12-04 22:22 ` [PATCH v4 4/6] dt-bindings: PCI: Describe the CS7542 host controller Fil Dunsky via B4 Relay
2026-12-04 22:33 ` sashiko-bot [this message]
2026-12-04 22:22 ` [PATCH v4 5/6] PCI: cs7542: Add CS7542 PCIe host support Fil Dunsky via B4 Relay
2026-12-04 22:51 ` sashiko-bot
2026-12-04 22:22 ` [PATCH v4 6/6] MAINTAINERS: Add CS7542 PCIe support Fil Dunsky via B4 Relay
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-250760@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=linux-pci@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
/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