Re: [PATCH v2 1/1] hwmon: Add driver for Raspberry Pi RP1 fan tachometer
From: Guenter Roeck
Date: Sat Nov 28 2026 - 12:42:54 EST
On Tue, Nov 24, 2026 at 06:39:00PM +0100, Andrea della Porta wrote:
> Add a hardware monitoring driver to support the fan tachometer on the
> Raspberry Pi RP1 southbridge, found on the Raspberry Pi 5.
>
> The RP1 PWM controller block contains an MMIO register that holds the
> current fan speed in RPM. This register is periodically updated by the
> RP1 internal firmware based on the tachometer pulses.
>
> The RP1 PWM driver registers a "fan" auxiliary device for the
> tachometer. This driver binds to it as an auxiliary driver and reads
> the RPM value through rp1_pwm_read_tachometer(), exported by the PWM
> driver in the 'RP1_PWM' symbol namespace. Since the auxiliary device is
> a child of the PWM controller, no Device Tree node is needed and the
> lifetime of this driver is bound to the one of the PWM controller.
>
> Provides the standard hwmon sysfs attribute 'fan1_input'.
>
> Signed-off-by: Andrea della Porta <andrea.porta@xxxxxxxx>
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>
I assume that the driver will be applied together with the changes introducing
rp1_pwm_read_tachometer().
Guenter