Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: linux-phy@lists.infradead.org, dmaengine@vger.kernel.org,
	conor+dt@kernel.org, vkoul@kernel.org, Frank.Li@kernel.org,
	robh@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v3 1/6] dt-bindings: dma: ti,cppi41: Convert to DT schema
Date: Mon, 31 Aug 2026 23:35:24 +0000	[thread overview]
Message-ID: <20260831233524.DA4681F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260901-ti-am33-usb-v3-1-5e15c617d2e9@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The `interrupts` property is not marked as required for the `ti,da830-cppi41` hardware variant, allowing incomplete nodes to pass schema validation.
- [Low] Missing property type definitions for deprecated custom properties `#dma-channels` and `#dma-requests`.
- [Low] The unit address in the example node name does not match the first `reg` address.
--

commit efe52f34688a9f85bd73ed6d80af2e1107be14ba
Author: Bhargav Joshi <j.bhargav.u@gmail.com>

dt-bindings: dma: ti,cppi41: Convert to DT schema
    
This commit converts the TI CPPI 4.1 DMA controller text bindings to DT
schema. It merges ti,am3359-cppi41 and ti,da830-cppi41 into a single schema
and adds undocumented properties like power-domains to match existing device
tree usage.

> diff --git a/Documentation/devicetree/bindings/dma/ti/ti,cppi41.yaml b/Documentation/devicetree/bindings/dma/ti/ti,cppi41.yaml
> new file mode 100644
> index 0000000000000..a8c28e8ada072
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dma/ti/ti,cppi41.yaml
> @@ -0,0 +1,109 @@
[ ... ]
> +  power-domains:
> +    maxItems: 1
> +
> +  "#dma-channels":
> +    description: Deprecated, use dma-channels instead.
> +    deprecated: true
> +
> +  "#dma-requests":
> +    description: Deprecated, use dma-requests instead.
> +    deprecated: true

[Severity: Low]
Are the #dma-channels and #dma-requests custom properties missing a type
definition?

The schema tool strictly requires all properties that do not match core
regex patterns to have an explicit type via a reference. Without a type
definition, does this regression cause schema validation to fail when
checking the bindings?

> +
> +required:
> +  - compatible
[ ... ]
> +allOf:
> +  - $ref: /schemas/dma/dma-controller.yaml#
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: ti,am3359-cppi41
[ ... ]
> +    else:
> +      properties:
> +        reg:
> +          maxItems: 3
> +        reg-names:
> +          items:
> +            - const: controller
> +            - const: scheduler
> +            - const: queuemgr

[Severity: Medium]
Should the interrupts property be marked as required in this else block for
the ti,da830-cppi41 hardware variant?

If incomplete nodes pass schema validation without an interrupts property,
won't this regression cause the driver probe to fail when it attempts to parse
and map the interrupt?

> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    dma-controller@7402000 {
> +        compatible = "ti,am3359-cppi41";
> +        reg = <0x47400000 0x1000>,

[Severity: Low]
Is the unit address in the dma-controller@7402000 node name mismatched with
the first reg address?

The node name uses 7402000, but the first register address is 0x47400000.
Will this formatting regression cause a compiler warning when the examples are
evaluated?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com?part=1

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-08-31 23:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 23:23 [PATCH v3 0/6] dt-bindings: usb: ti: Convert AM33xx/DA8xx MUSB bindings to DT schema Bhargav Joshi
2026-08-31 23:23 ` [PATCH v3 1/6] dt-bindings: dma: ti,cppi41: Convert " Bhargav Joshi
2026-08-31 23:35   ` sashiko-bot [this message]
2026-08-31 23:23 ` [PATCH v3 2/6] dt-bindings: phy: ti,am335x-usb-phy: " Bhargav Joshi
2026-09-03 11:45   ` Manivannan Sadhasivam
2026-08-31 23:23 ` [PATCH v3 3/6] dt-bindings: usb: ti,musb-am33xx: " Bhargav Joshi
2026-08-31 23:34   ` sashiko-bot
2026-08-31 23:23 ` [PATCH v3 4/6] dt-bindings: usb: ti,am335x-usb-ctrl-module: " Bhargav Joshi
2026-08-31 23:32   ` sashiko-bot
2026-08-31 23:23 ` [PATCH v3 5/6] dt-bindings: usb: ti,am33xx-usb: " Bhargav Joshi
2026-08-31 23:32   ` sashiko-bot
2026-08-31 23:23 ` [PATCH v3 6/6] dt-bindings: usb: ti,da830-musb: " Bhargav Joshi

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=20260831233524.DA4681F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=j.bhargav.u@gmail.com \
    --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