From: sashiko-bot@kernel.org
To: "Hal Feng" <hal.feng@starfivetech.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v22 2/3] riscv: dts: starfive: Correct pwm nodes
Date: Tue, 14 Jul 2026 03:44:53 +0000 [thread overview]
Message-ID: <20260714034453.8AA771F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260714033050.44952-3-hal.feng@starfivetech.com>
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?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260714033050.44952-1-hal.feng@starfivetech.com?part=2
next prev parent reply other threads:[~2026-07-14 3:44 UTC|newest]
Thread overview: 5+ 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 [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=20260714034453.8AA771F000E9@smtp.kernel.org \
--to=sashiko-bot@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