From: sashiko-bot@kernel.org
To: "Charan Pedumuru" <charan.pedumuru@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH] dt-bindings: pwm: st,pwm: convert to DT schema
Date: Sat, 13 Jun 2026 07:13:27 +0000 [thread overview]
Message-ID: <20260613071327.BE3101F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260613-st-pwm-v1-1-458c2c89709a@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `interrupts` property is unconditionally required by the driver but omitted from the YAML schema's required list.
--
commit b16a62dff3236ec8b123a99775f6c90dbfd9912f
Author: Charan Pedumuru <charan.pedumuru@gmail.com>
dt-bindings: pwm: st,pwm: convert to DT schema
Convert STMicroelectronics STiH41x PWM/Capture controller binding
to DT schema.
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-st.txt b/Documentation/devicetree/bindings/pwm/pwm-st.txt
> deleted file mode 100644
> index 19fce774cafad..0000000000000
> --- a/Documentation/devicetree/bindings/pwm/pwm-st.txt
> +++ /dev/null
[ ... ]
> -Required parameters:
[ ... ]
> -- interrupts: IRQ for the Capture device
[ ... ]
> diff --git a/Documentation/devicetree/bindings/pwm/st,pwm.yaml b/Documentation/devicetree/bindings/pwm/st,pwm.yaml
> new file mode 100644
> index 0000000000000..2c10f54b5caf3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/st,pwm.yaml
[ ... ]
> +required:
> + - reg
> + - compatible
> + - "#pwm-cells"
> + - pinctrl-names
> + - clock-names
> + - clocks
[Severity: Medium]
Should interrupts be included in this required list?
The original text binding listed interrupts under the required parameters,
and the driver unconditionally requests it during probe:
drivers/pwm/pwm-sti.c:sti_pwm_probe() {
...
irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
ret = devm_request_irq(&pdev->dev, irq, sti_pwm_interrupt, 0,
pdev->name, pc);
...
}
Without interrupts in the required list, incomplete device trees will pass
schema validation but fail deterministically at runtime.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260613-st-pwm-v1-1-458c2c89709a@gmail.com?part=1
next prev parent reply other threads:[~2026-06-13 7:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-13 7:04 [PATCH] dt-bindings: pwm: st,pwm: convert to DT schema Charan Pedumuru
2026-06-13 7:13 ` sashiko-bot [this message]
2026-06-13 7:20 ` Charan Pedumuru
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=20260613071327.BE3101F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=charan.pedumuru@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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