linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org
Subject: PWM fan control not working with Rock5B and upstream kernel
Date: Tue, 15 Jul 2025 13:40:45 +0930	[thread overview]
Message-ID: <e9ddcc05-e6db-49b0-aad6-c7873c38c427@suse.com> (raw)

Hi,

My Rock5B board is running edk-rk3588 firmware and (almost) upstream 
kernel (6.14.6 kernel from ArchlinuxARM), using upstream dtbs (the 
firmware is also switched to device-tree boot mode)

Before that I'm using ACPI mode thus no PMW support, but the firmware's 
fan control is working properly although running at a fixed rpm setting.

But after switching to the upstream kernel and device-tree mode, the pwm 
fan control never works.

`sensors` command detects the fan, and the pwm seems to properly 
following the temperature, but the physical fan just do not spin at all:

center_thermal-virtual-0
Adapter: Virtual device
temp1:        +80.4°C

bigcore2_thermal-virtual-0
Adapter: Virtual device
temp1:        +84.1°C

package_thermal-virtual-0
Adapter: Virtual device
temp1:        +81.3°C

pwmfan-isa-0000
Adapter: ISA adapter
pwm1:            128%  MANUAL CONTROL <<<

gpu_thermal-virtual-0
Adapter: Virtual device
temp1:        +79.5°C

littlecore_thermal-virtual-0
Adapter: Virtual device
temp1:        +82.2°C

bigcore0_thermal-virtual-0
Adapter: Virtual device
temp1:        +83.2°C


I'm wondering is this a bug in the upstream PWM code or something else 
is missing preventing the fan from working properly.

Thanks,
Qu


             reply	other threads:[~2025-07-15  4:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-15  4:10 Qu Wenruo [this message]
2025-07-15  7:49 ` PWM fan control not working with Rock5B and upstream kernel Nicolas Frattaroli
2025-07-15  8:44   ` Qu Wenruo
2025-07-15  9:01     ` Qu Wenruo
2025-07-15  9:13     ` Nicolas Frattaroli

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=e9ddcc05-e6db-49b0-aad6-c7873c38c427@suse.com \
    --to=wqu@suse.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-rockchip@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).