All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Eduard Bostina" <egbostina@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: pwm: Convert TI PWM Subsystem to DT schema
Date: Wed, 12 Aug 2026 09:53:01 +0000	[thread overview]
Message-ID: <20260812095301.C72EC1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260812094420.1057067-1-egbostina@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The newly added YAML binding example contains child nodes (ECAP, EQEP, and EHRPWM) that omit mandatory properties required by their respective device tree schemas, which will cause `make dt_binding_check` to fail.
--

--- Patch [1]: [PATCH v2] dt-bindings: pwm: Convert TI PWM Subsystem to DT schema ---
commit 6e7740860be9339a28d4f050268b9aad56636a0b
Author: Eduard Bostina <egbostina@gmail.com>

dt-bindings: pwm: Convert TI PWM Subsystem to DT schema

Convert the Texas Instruments SoC PWM Subsystem bindings to DT schema. 
During the conversion, a 'counter' node was added to the allowed child
nodes list to resolve dtbs_check warnings.

Link: https://lore.kernel.org/all/2026081109d-up2208.687731-1-egbostina@gmail.com/

> diff --git a/Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml b/Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml
> new file mode 100644
> index 0000000000000..e2b6ae326cb58
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml

[ ... ]

> +examples:
> +  - |
> +    pwm@48300000 {
> +        compatible = "ti,am33xx-pwmss";
> +        reg = <0x48300000 0x10>;
> +        #address-cells = <1>;
> +        #size-cells = <1>;
> +        ranges = <0x48300100 0x48300100 0x80>,   /* ECAP */
> +                 <0x48300180 0x48300180 0x80>,   /* EQEP */
> +                 <0x48300200 0x48300200 0x80>;   /* EHRPWM */
> +
> +        pwm@48300100 {
> +            compatible = "ti,am3352-ecap";
> +            #pwm-cells = <3>;
> +            reg = <0x48300100 0x80>;
> +        };
> +
> +        counter@48300180 {
> +            compatible = "ti,am3352-eqep";
> +            reg = <0x48300180 0x80>;
> +        };
> +
> +        pwm@48300200 {
> +            compatible = "ti,am3352-ehrpwm";
> +            #pwm-cells = <3>;
> +            reg = <0x48300200 0x80>;
> +        };

[Severity: Low]
Will this example fail dt_binding_check validation?

These child nodes omit properties that are mandatory in their respective device
tree schemas. For instance, the ECAP and EHRPWM nodes are missing clocks and
clock-names, and the EQEP node is missing clocks and interrupts.

Since dt_binding_check cross-validates examples against all existing schemas,
omitting these required properties will likely trigger validation errors.

> +    };

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

  reply	other threads:[~2026-08-12  9:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  9:44 [PATCH v2] dt-bindings: pwm: Convert TI PWM Subsystem to DT schema Eduard Bostina
2026-08-12  9:53 ` sashiko-bot [this message]
2026-08-12 19:28 ` Rob Herring (Arm)
2026-08-12 19:35 ` Rob Herring (Arm)
2026-08-12 19:44   ` Rob Herring

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=20260812095301.C72EC1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=egbostina@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.