Skip to content

feat: enable PWM_RP1 drivers for Raspberry Pi 5 fan control#1500

Closed
blacksd wants to merge 1 commit intosiderolabs:mainfrom
blacksd:feat/pwm-rp1-rpi5
Closed

feat: enable PWM_RP1 drivers for Raspberry Pi 5 fan control#1500
blacksd wants to merge 1 commit intosiderolabs:mainfrom
blacksd:feat/pwm-rp1-rpi5

Conversation

@blacksd
Copy link
Copy Markdown

@blacksd blacksd commented Mar 29, 2026

Summary

  • Enable CONFIG_PWM_RP1 and CONFIG_PWM_PIO_RP1 in the arm64 kernel config
  • These in-tree drivers are required for the Raspberry Pi 5 dedicated 4-pin PWM fan header

Context

With the rpi_5 overlay now available in the Image Factory (sbc-raspberrypi v0.2.0), Pi 5 boards can boot Talos natively. However, the dedicated fan header does not work because the RP1 PWM drivers are not enabled in the kernel config.

The kernel logs show:

platform cooling_fan: deferred probe pending: pwm-fan: Could not get PWM

The cooling_fan device is defined in the Pi 5 device tree and requires the RP1 PWM driver to acquire a PWM channel. Without it, the fan never spins, leading to thermal throttling under load.

PR #1375 previously enabled CONFIG_SENSORS_GPIO_FAN and CONFIG_PWM_GPIO for GPIO-connected fans (RPi 4), but did not cover the Pi 5's native fan header.

Fixes #1499

@talos-bot talos-bot moved this to In Review in Planning Mar 29, 2026
Enable CONFIG_PWM_RP1 and CONFIG_PWM_PIO_RP1 in the arm64 kernel
config. These in-tree drivers are required for the Raspberry Pi 5
dedicated 4-pin PWM fan header to function.

Without them, the cooling_fan device tree node cannot acquire a PWM
channel and the fan probe is permanently deferred:

  platform cooling_fan: deferred probe pending: pwm-fan: Could not get PWM

Fixes: siderolabs#1499
Signed-off-by: Marco Bulgarini <marco.bulgarini@gmail.com>
@blacksd blacksd force-pushed the feat/pwm-rp1-rpi5 branch from d6c23de to 3af7ee3 Compare March 29, 2026 18:20
@smira
Copy link
Copy Markdown
Member

smira commented Mar 30, 2026

These config options don't seem to exist in the upstream Linux kernel

@smira smira closed this Mar 30, 2026
@github-project-automation github-project-automation bot moved this from In Review to Done in Planning Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

arm64: enable CONFIG_PWM_RP1 for Raspberry Pi 5 fan control

3 participants