Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lucas Tanure" <tanure@linux.com>
Cc: linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org,
	devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org,
	vkoul@kernel.org, olteanv@gmail.com
Subject: Re: [PATCH 3/9] dt-bindings: usb: add the Amlogic T7 USB controller
Date: Sun, 29 Nov 2026 09:32:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-239464@kernel.org> (raw)
In-Reply-To: <20261129092810.146043-4-tanure@linux.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: usb: non-canonical property ordering in
  amlogic,t7-usb.yaml
--

commit c22f49469c6fdecedd4c6b250862d6032d10bc2b
Author: Lucas Tanure <tanure@linux.com>

dt-bindings: usb: add the Amlogic T7 USB controller

This commit adds the Device Tree binding schema for the dual-role USB
controller on the Amlogic T7 SoC.

> diff --git a/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml
> new file mode 100644
> index 0000000000000..3eb56fb5fa6c8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml
> @@ -0,0 +1,78 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: amlogic,t7-usb
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +  resets:
> +    items:
> +      - description: USB block reset, shared by both controllers
> +      - description: controller reset
> +
> +  phys:
> +    minItems: 1
> +    maxItems: 2
> +
> +  phy-names:
> +    minItems: 1
> +    items:
> +      - const: usb2-phy
> +      - const: usb3-phy
> +
> +  power-domains:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clocks
> +  - resets
> +  - power-domains
> +  - phys
> +  - phy-names
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/clock/amlogic,t7-peripherals-clkc.h>
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +    #include <dt-bindings/power/amlogic,t7-pwrc.h>
> +
> +    usb@fde00000 {
> +        compatible = "amlogic,t7-usb";
> +        reg = <0xfde00000 0x8000>;
> +        interrupts = <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>;
> +        clocks = <&clkc_periphs CLKID_SYS_USB>;

[Severity: Low]
This isn't a bug, but the property order across properties, required, and the
example node does not follow the canonical Device Tree sequence (compatible,
reg, clocks, interrupts, power-domains).  In all three sections, clocks
should come before interrupts, and in properties, power-domains should follow
interrupts rather than coming after phy-names.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129092810.146043-1-tanure@linux.com?part=3

  reply	other threads:[~2026-11-29  9:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  9:28 [PATCH 0/9] Add USB support for the Amlogic T7 Lucas Tanure
2026-11-29  9:28 ` [PATCH 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible Lucas Tanure
2026-11-29  9:28 ` [PATCH 2/9] phy: amlogic: phy-meson-g12a-usb2: add T7 support Lucas Tanure
2026-11-29  9:28 ` [PATCH 3/9] dt-bindings: usb: add the Amlogic T7 USB controller Lucas Tanure
2026-11-29  9:32   ` sashiko-bot [this message]
2026-11-29  9:28 ` [PATCH 4/9] usb: host: xhci-plat: add Amlogic T7 support Lucas Tanure
2026-11-29  9:28 ` [PATCH 5/9] arm64: dts: amlogic: t7: add the USB controllers Lucas Tanure
2026-11-29  9:28 ` [PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports Lucas Tanure
2026-11-29  9:28 ` [PATCH 7/9] dt-bindings: phy: amlogic,g12a-usb3-pcie-phy: add the T7 compatible Lucas Tanure
2026-11-29  9:28 ` [PATCH 8/9] phy: amlogic: phy-meson-g12a-usb3-pcie: add T7 support Lucas Tanure
2026-11-29  9:28 ` [PATCH 9/9] arm64: dts: amlogic: t7: add the USB3 PHY Lucas Tanure

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-239464@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tanure@linux.com \
    --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