From: Conor Dooley <conor@kernel.org>
To: Hal Feng <hal.feng@starfivetech.com>
Cc: "sashiko-reviews@lists.linux.dev"
<sashiko-reviews@lists.linux.dev>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v22 2/3] riscv: dts: starfive: Correct pwm nodes
Date: Thu, 16 Jul 2026 09:44:50 +0100 [thread overview]
Message-ID: <20260716-yippee-moneywise-7d6b9568b6ec@spud> (raw)
In-Reply-To: <ZQ2PR01MB13070E253E038C26E43C63C3E6F82@ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn>
[-- Attachment #1: Type: text/plain, Size: 3261 bytes --]
On Wed, Jul 15, 2026 at 02:25:09AM +0000, Hal Feng wrote:
> > On 26.07.14 11:45, sashiko-bot wrote:
> > Thank you for your contribution! Sashiko AI review found 1 potential issue(s)
> > to consider:
> > - [Medium] Missing electrical pad configuration properties in `pwm1_pins`
> > after node split.
> > --
> >
> > --- Patch [2]: [PATCH v22 2/3] riscv: dts: starfive: Correct pwm nodes ---
> > commit af3d5e9905acdead9e2816d09f13f054b179cbde
> > Author: Hal Feng <hal.feng@starfivetech.com>
> >
> > riscv: dts: starfive: Correct pwm nodes
> >
> > Each of the StarFive JH7100/JH7110 SoCs has 8 OpenCores PTC IP cores.
> > One OpenCores PTC IP core can output one PWM channel. Change the
> > register size to 0x10, since an OpenCores PTC IP has only 4 32-bit registers.
> >
> > Fixes: 8d01f741a046 ("riscv: dts: starfive: jh7110: Add PWM node and pins
> > configuration")
> > Fixes: 5e598b99fedf ("riscv: dts: starfive: jh7100: Add PWM node and pins
> > configuration")
> >
> > > diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi
> > > b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi
> > > index ae1a6aeb0aeaa..85106545090ea 100644
> > > --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi
> > > +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi
> >
> > [ ... ]
> >
> > > - pwm_pins: pwm-0 {
> > > - pwm-pins {
> > > + pwm0_pins: pwm0-0 {
> > > + pwm0-pins {
> > > pinmux = <GPIOMUX(7,
> > > GPO_PWM_PAD_OUT_BIT0,
> > > GPO_PWM_PAD_OE_N_BIT0,
> > > - GPI_NONE)>,
> > > - <GPIOMUX(5,
> > > + GPI_NONE)>;
> > > + bias-disable;
> > > + drive-strength = <35>;
> > > + input-disable;
> > > + input-schmitt-disable;
> > > + slew-rate = <0>;
> > > + };
> > > + };
> > > +
> > > + pwm1_pins: pwm1-0 {
> > > + pwm1-pins {
> > > + pinmux = <GPIOMUX(5,
> > > GPO_PWM_PAD_OUT_BIT1,
> > > GPO_PWM_PAD_OE_N_BIT1,
> > > GPI_NONE)>;
> > > };
> > > };
> >
> > [Severity: Medium]
> > Should pwm1_pins also include the electrical pad configuration properties?
> >
> > When the pwm_pins node was split, properties like bias-disable,
> > drive-strength, input-disable, input-schmitt-disable, and slew-rate were
> > configured for pwm0_pins. However, pwm1_pins only has the pinmux
> > configured.
> >
> > When the kernel applies the pinctrl state for pwm1 during probe, it will only
> > configure the pinmux and skip the pad electrical settings. Does this leave the
> > PWM1 pad in an undefined or default electrical state that could cause weak
> > signal drive or other signal integrity issues depending on the hardware
> > defaults?
>
> No, I added the new electrical properties for pwm0-pins, so the old electrical properties
> are applied to pwm1-pins. You omitted the original code and got a wrong result. Please
> apply the patches to the mainline before you review them.
>
> The same reason as I explained before.
> https://lore.kernel.org/all/ZQ2PR01MB1307E58DBE3D3EA2DCA9BE9AE6162@ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn/
This is a bot that feeds your patches to an LLM for review.
The bot is not sophisticated enough to check previous revisions for
responses to the same problems.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-16 8:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 3:30 [PATCH v22 0/3] Add OpenCores PTC PWM support Hal Feng
2026-07-14 3:30 ` [PATCH v22 1/3] dt-bindings: pwm: opencores: Update compatibles, examples and maintainers Hal Feng
2026-07-14 3:30 ` [PATCH v22 2/3] riscv: dts: starfive: Correct pwm nodes Hal Feng
2026-07-14 3:44 ` sashiko-bot
2026-07-15 2:25 ` Hal Feng
2026-07-16 8:44 ` Conor Dooley [this message]
2026-07-14 3:30 ` [PATCH v22 3/3] pwm: Add OpenCores PTC PWM driver Hal Feng
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=20260716-yippee-moneywise-7d6b9568b6ec@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hal.feng@starfivetech.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