Devicetree
 help / color / mirror / Atom feed
From: Yixun Lan <dlan@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2] riscv: dts: spacemit: k3: Add pwm support
Date: Mon, 18 May 2026 23:35:24 +0000	[thread overview]
Message-ID: <20260518233524-GKD3679294@kernel.org> (raw)
In-Reply-To: <20260518120631.67D96C2BCB7@smtp.kernel.org>

Hi

On 12:06 Mon 18 May     , sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
> - [High] The driver ignores the `bus` clock, which will lead to a system hang when accessing registers.
> - [Medium] DT binding violation due to undocumented compatible string and property constraints.
> - [Low] Copy-paste errors in pinctrl sub-node names.
> --
> 
> commit 4d46fb2ab333b7a733df38e29f0f7c7d23523cee
> Author: Yixun Lan <dlan@kernel.org>
> 
> riscv: dts: spacemit: k3: Add pwm support
>     
> This patch populates all PWM device tree nodes for the SpacemiT K3 SoC. It
> also adds the corresponding pinctrl configurations to easily enable them.
> 
> > diff --git a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi
> > index 23899d3f308a0..06abca6d08832 100644
> > --- a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi
> > +++ b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi
> [ ... ]
> > +	/omit-if-no-ref/
> > +	pwm1_1_cfg: pwm1-1-cfg {
..
> > +		pwm0-0-pins {

sorry, I overlooked this.. will fix it in next version

> > +			pinmux = <K3_PADCONF(43, 6)>;	/* pwm1 */
> > +
> > +			bias-pull-up = <0>;
> > +			drive-strength = <25>;
> > +		};
> > +	};
> 
> This isn't a bug, but it looks like there might be a copy-paste error here.
> Should this sub-node be named pwm1-1-pins instead of pwm0-0-pins? This
> pattern also appears in other blocks like pwm1_2_cfg and pwm6_1_cfg.
> 

-- 
Yixun Lan (dlan)

      reply	other threads:[~2026-05-18 23:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18 11:45 [PATCH v2] riscv: dts: spacemit: k3: Add pwm support Yixun Lan
2026-05-18 12:06 ` sashiko-bot
2026-05-18 23:35   ` Yixun Lan [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=20260518233524-GKD3679294@kernel.org \
    --to=dlan@kernel.org \
    --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