Devicetree
 help / color / mirror / Atom feed
From: Charan Pedumuru <charan.pedumuru@gmail.com>
To: sashiko-reviews@lists.linux.dev
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 12:50:54 +0530	[thread overview]
Message-ID: <84be047f-350f-470c-9680-179805152e1a@gmail.com> (raw)
In-Reply-To: <20260613071327.BE3101F000E9@smtp.kernel.org>



On 13-06-2026 12:43, sashiko-bot@kernel.org wrote:
> 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

Okay, I will define and add interrupts to the required.

> 
> [ ... ]
> 
>> 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.

Okay. I will add interrupts to my next revision.

> 

-- 
Best Regards,
Charan.


      reply	other threads:[~2026-06-13  7:20 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
2026-06-13  7:20   ` Charan Pedumuru [this message]

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=84be047f-350f-470c-9680-179805152e1a@gmail.com \
    --to=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