From: sashiko-bot@kernel.org
To: "Marek Vasut" <marex@nabladev.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: usb: Document ST UCPD
Date: Wed, 19 Aug 2026 16:44:50 +0000 [thread overview]
Message-ID: <20260819164451.5B1421F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260819163410.119755-1-marex@nabladev.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Missing array bounds constraint for `vconn-gpios` property
- [Low] Invalid 2-cell `interrupts` property in the GIC example
--
--- Patch [1]: [PATCH 1/4] dt-bindings: usb: Document ST UCPD ---
commit aa08ea31b02f8625de21d6b8fefbebccc2a9ddcf
Author: Marek Vasut <marex@nabladev.com>
dt-bindings: usb: Document ST UCPD
This commit introduces the device tree binding documentation for the ST
UCPD Type-C controller on STM32MP25. It describes the physical layer of
Power Delivery, CC signaling, and required external Vbus/Vconn controls.
> diff --git a/Documentation/devicetree/bindings/usb/st,stm32mp25-ucpd.yaml b/Documentation/devicetree/bindings/usb/st,stm32mp25-ucpd.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/st,stm32mp25-ucpd.yaml
[ ... ]
> + resets:
> + maxItems: 1
> +
> + reset-names:
> + const: phy
> +
> + vconn-gpios:
> + description: GPIOs used to control CC1 and CC2 Vconn
[Severity: Low]
Should this property have a constraint like maxItems: 2?
Since the description specifies it controls CC1 and CC2 Vconn, adding an
explicit array bounds constraint would prevent device tree validation from
silently accepting an arbitrary number of GPIOs.
> +
> + vdd33-supply:
> + description: Regulator that supplies the CC lines driver
[ ... ]
> +examples:
> + - |
> + #include <dt-bindings/clock/st,stm32mp25-rcc.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/reset/st,stm32mp25-rcc.h>
> +
> + ucpd: phy@480a0000 {
> + compatible = "st,stm32mp25-ucpd";
> + reg = <0x480a0000 0x1000>;
> + access-controllers = <&rifsc 69>;
> + clocks = <&rcc CK_BUS_USBTC>, <&rcc CK_KER_USBTC>;
> + clock-names = "apb", "ker";
> + interrupts = <46 IRQ_TYPE_LEVEL_HIGH>;
[Severity: Low]
Is this interrupt definition missing a cell?
The example includes arm-gic.h, which expects a 3-cell interrupt definition
such as <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>.
Using a 2-cell definition here might cause the dtbs_check validation to
complain about standard interrupt controllers, or it might lead developers
to copy an invalid configuration into their device trees.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260819163410.119755-1-marex@nabladev.com?part=1
prev parent reply other threads:[~2026-08-19 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 16:33 [PATCH 1/4] dt-bindings: usb: Document ST UCPD Marek Vasut
2026-08-19 16:33 ` [PATCH 2/4] usb: typec: ucpd: Add ST UCPD driver Marek Vasut
2026-08-19 16:47 ` sashiko-bot
2026-08-19 16:33 ` [PATCH 3/4] arm64: dts: st: Add UCPD node on stm32mp231 Marek Vasut
2026-08-19 16:42 ` sashiko-bot
2026-08-19 16:33 ` [PATCH 4/4] arm64: dts: st: Add UCPD node on stm32mp251 Marek Vasut
2026-08-19 16:44 ` sashiko-bot [this message]
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=20260819164451.5B1421F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=marex@nabladev.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox