Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Xuyang Dong" <dongxuyang@eswincomputing.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v11 1/3] dt-bindings: pwm: dwc: Document optional resets property
Date: Thu, 09 Jul 2026 08:24:56 +0000	[thread overview]
Message-ID: <20260709082457.66EFD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260709081419.2077-1-dongxuyang@eswincomputing.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Inconsistent Related Binding: The related timer binding (snps,dw-apb-timer.yaml) was not updated to support the two reset inputs, causing a mismatch within the same hardware family.
--

--- Patch [1]: [PATCH v11 1/3] dt-bindings: pwm: dwc: Document optional resets property ---
commit 9b39c1c87d6471d2eec01acf8e6da72e82635001
Author: Xuyang Dong <dongxuyang@eswincomputing.com>

dt-bindings: pwm: dwc: Document optional resets property

This commit updates the DesignWare PWM binding to document two optional
active-low reset lines, presetn and timer_N_resetn, to support future
use of resets for this IP block.

> diff --git a/Documentation/devicetree/bindings/pwm/snps,dw-apb-timers-pwm2.yaml b/Documentation/devicetree/bindings/pwm/snps,dw-apb-timers-pwm2.yaml
> --- a/Documentation/devicetree/bindings/pwm/snps,dw-apb-timers-pwm2.yaml
> +++ b/Documentation/devicetree/bindings/pwm/snps,dw-apb-timers-pwm2.yaml
[ ... ]
> @@ -43,6 +43,11 @@ properties:
>        - const: bus
>        - const: timer
>  
> +  resets:
> +    items:
> +      - description: Interface bus (presetn) reset
> +      - description: PWM timer logic (timer_N_resetn) reset
> +

[Severity: Medium]
Since the DesignWare PWM IP has two reset lines for this hardware family,
does the related timer binding also need a matching update?

Currently, the sibling timer binding restricts resets to a single item:

Documentation/devicetree/bindings/timer/snps,dw-apb-timer.yaml:properties.resets
  resets:
    maxItems: 1

If an SoC device tree author adds both reset lines to a snps,dw-apb-timer
node to match the hardware capabilities described here, dt_binding_check
will reject the valid hardware description.

Could the sibling timer binding be updated in this series to prevent
this inconsistency and allow for both reset lines?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260709081337.2022-1-dongxuyang@eswincomputing.com?part=1

  reply	other threads:[~2026-07-09  8:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  8:13 [PATCH v11 0/3] Update designware pwm driver dongxuyang
2026-07-09  8:14 ` [PATCH v11 1/3] dt-bindings: pwm: dwc: Document optional resets property Xuyang Dong
2026-07-09  8:24   ` sashiko-bot [this message]
2026-07-09  8:14 ` [PATCH v11 2/3] dt-bindings: pwm: dwc: Add eswin compatible dongxuyang
2026-07-09  8:15 ` [PATCH v11 3/3] pwm: dwc: add of/platform support dongxuyang
2026-07-09  8:27   ` sashiko-bot

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=20260709082457.66EFD1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dongxuyang@eswincomputing.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