All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jeremiah Bishop" <jbishop.dev@gmail.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2] dt-bindings: usb: convert PXA USB bindings to YAML
Date: Sat, 30 May 2026 03:06:11 +0000	[thread overview]
Message-ID: <20260530030611.D2B191F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260530022955.32728-1-jbishop.dev@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] YAML conversion incorrectly renames properties `marvell,power-sense-low` to `marvell,port-sense-low` and `marvell,power_on_delay` to `marvell,power-on-delay`, breaking validation and backward compatibility.
- [Medium] The `clocks` property is newly enforced as strictly required for `marvell,pxa-ohci`, which breaks schema validation for existing device trees.
--

commit 64a29827cc603985850c4a4a36ae40793189e8ff
Author: Jeremiah Bishop <jbishop.dev@gmail.com>
    
dt-bindings: usb: convert PXA USB bindings to YAML
    
Convert the legacy pxa-usb.txt binding documentation to YAML schemas. The
original text binding documented two distinct devices, which are now split
into marvell,pxa-ohci.yaml and marvell,pxa270-udc.yaml.
    
> diff --git a/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml b/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml
[ ... ]
> +  marvell,enable-port3:
> +    type: boolean
> +    description: Enable USB port 3 if present.
> +
> +  marvell,port-sense-low:
> +    type: boolean
> +    description: Port sense pin in low-active.

[Severity: Medium]
The original text binding defined this property as "marvell,power-sense-low".
Will renaming "power" to "port" here cause validation failures for existing
device trees that use the legacy property name?

> +
> +  marvell,power-control-low:
> +    type: boolean
> +    description: Power control pin is low-active.
> +
> +  marvell,no-oc-protection:
> +    type: boolean
> +    description: Disable over-current protection.
> +
> +  marvell,oc-mode-perport:
> +    type: boolean
> +    description: Enable per-port over-current protection.
> +
> +  marvell,power-on-delay:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: Power On to Power Good time in milliseconds.

[Severity: Medium]
The legacy binding documented this as "marvell,power_on_delay" with an
underscore. Could changing the underscore to a hyphen break ABI compatibility
with older device trees and drivers expecting the original format?

[ ... ]
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clocks

[Severity: Medium]
Is it intentional to enforce "clocks" as a strictly required property here? 

The original pxa-usb.txt binding didn't list "clocks" as required for the 
OHCI controller, and the original example omitted it. Since the schema uses
unevaluatedProperties: false, will enforcing this new requirement cause 
existing valid device trees to fail schema validation?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260530022955.32728-1-jbishop.dev@gmail.com?part=1

  reply	other threads:[~2026-05-30  3:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29 21:35 [PATCH] dt-bindings: usb: convert PXA USB bindings to YAML Jeremiah Bishop
2026-05-29 22:01 ` sashiko-bot
2026-05-30  1:16   ` Jeremiah Bishop
2026-05-30  2:29 ` [PATCH v2] " Jeremiah Bishop
2026-05-30  3:06   ` sashiko-bot [this message]
2026-05-30  7:24   ` 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=20260530030611.D2B191F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbishop.dev@gmail.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 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.