All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Adrian Ng Ho Yin" <adrian.ho.yin.ng@altera.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
	linux-clk@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 3/6] dt-bindings: usb: add Altera Agilex5 DWC3 controller
Date: Wed, 12 Aug 2026 07:55:31 +0000	[thread overview]
Message-ID: <20260812075532.2F8C41F000E9@smtp.kernel.org> (raw)
In-Reply-To: <85e52e1dd400f39e055196fa1462337285a9b875.1786518803.git.adrian.ho.yin.ng@altera.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing generic fallback compatible string in DWC3 devicetree binding
--

--- Patch [3]: [PATCH v3 3/6] dt-bindings: usb: add Altera Agilex5 DWC3 controller ---
commit 1039f7f38ac48bd8193ef808b132fbeb99505e18
Author: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>

dt-bindings: usb: add Altera Agilex5 DWC3 controller

This commit adds a devicetree binding for the Altera Agilex5 SoC integration
of the Synopsys DWC3 USB controller.

> diff --git a/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml b/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml
> new file mode 100644
> index 0000000000000..8a815e8a3b7d1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml
> @@ -0,0 +1,102 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: altr,agilex5-dwc3

[Severity: Medium]
Does the compatible property definition need to include the generic
fallback string "snps,dwc3"?

Since this is rigidly constrained as a const, providing the generic fallback
string in a devicetree node will cause schema validation to fail. 

If a device tree node only uses "altr,agilex5-dwc3" to satisfy this schema,
the generic DWC3 driver (drivers/usb/dwc3/core.c) will ignore the device
because it requires "snps,dwc3" or "synopsys,dwc3".

Should this be structured to allow an array of items including the fallback?

> +
> +  reg:
> +    description: DWC3 USB3 controller register region.
> +    maxItems: 1

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1786518803.git.adrian.ho.yin.ng@altera.com?part=3

  reply	other threads:[~2026-08-12  7:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  7:32 [PATCH v3 0/6] Add USB3.1 support for Agilex5 Adrian Ng Ho Yin
2026-08-12  7:32 ` [PATCH v3 1/6] dt-bindings: clock: agilex5: Add USB3.1 reference clock ID Adrian Ng Ho Yin
2026-08-12 11:26   ` Krzysztof Kozlowski
2026-08-12  7:32 ` [PATCH v3 2/6] clk: socfpga: agilex5: add usb3.1 reference clock Adrian Ng Ho Yin
2026-08-12  7:49   ` sashiko-bot
2026-08-12  7:32 ` [PATCH v3 3/6] dt-bindings: usb: add Altera Agilex5 DWC3 controller Adrian Ng Ho Yin
2026-08-12  7:55   ` sashiko-bot [this message]
2026-08-12 11:32   ` Krzysztof Kozlowski
2026-08-12  7:32 ` [PATCH v3 4/6] arm64: dts: intel: agilex5: add USB3.1 controller node Adrian Ng Ho Yin
2026-08-12  7:53   ` sashiko-bot
2026-08-12  7:32 ` [PATCH v3 5/6] arm64: dts: intel: agilex5: remove usb0 in Agilex5 SoCDK Adrian Ng Ho Yin
2026-08-12  7:32 ` [PATCH v3 6/6] usb: dwc3: add Altera Agilex5 support to generic platform driver Adrian Ng Ho Yin
2026-08-12 11:27 ` [PATCH v3 0/6] Add USB3.1 support for Agilex5 Krzysztof Kozlowski

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=20260812075532.2F8C41F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=adrian.ho.yin.ng@altera.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.