[PATCH] riscv: dts: sifive: unmatched: Add PWM controlled fans

René Rebe rene at exactco.de
Sun Nov 23 11:16:52 PST 2025


Hi,

On Sun, 23 Nov 2025 19:00:21 +0000, Conor Dooley <conor at kernel.org> wrote:

> > ---
> > Tested on SiFive HiFive Unmatched A00 running T2/Linux.
> 
> Was this generated on top of a tree that includes 7dbc4432ea6b ("pwm:
> sifive: Fix PWM algorithm and clarify inverted compare behavior")?
> That'd be 6.17-rc1 or later.

Yes, linus' 6.18-rc... tip

> If not, the polarity of the pwms will need to be switched because the
> original driver author intentionally got it wrong and so 6.17-rc1 and
> later have the correct polarity...

Indeed, I wondered about this and just inverted it yesterday to
upstream.  I had this pwm fans patched for a year already and likewise
inverted them before.

Thanks!

	René

> > ---
> >  arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
> > index 03ce2cee4e97..850fa1d25be7 100644
> > --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
> > +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
> > @@ -47,6 +47,16 @@ gpio-poweroff {
> >  		gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
-- 
René Rebe, ExactCODE GmbH, Berlin, Germany
https://exactco.dehttps://t2linux.comhttps://patreon.com/renerebe



More information about the linux-riscv mailing list