From: "Gary Guo" <gary@garyguo.net>
To: "Andrea della Porta" <andrea.porta@suse.com>,
"Guenter Roeck" <linux@roeck-us.net>,
<linux-hwmon@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: "Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
linux-doc@vger.kernel.org,
"Uwe Kleine-König" <ukleinek@kernel.org>,
linux-pwm@vger.kernel.org, "Gary Guo" <gary@garyguo.net>
Subject: Re: [PATCH v2 1/1] hwmon: Add driver for Raspberry Pi RP1 fan tachometer
Date: Tue, 01 Dec 2026 21:26:24 +0000 [thread overview]
Message-ID: <DN9PPTBGABDC.1ICVCGYUXBJPW@garyguo.net> (raw)
In-Reply-To: <20261124173900.31266-2-andrea.porta@suse.com>
On Tue Nov 24, 2026 at 5:39 PM GMT, 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@suse.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Tested-by: Gary Guo <gary@garyguo.net>
> ---
> Documentation/hwmon/index.rst | 1 +
> Documentation/hwmon/rp1-fan.rst | 43 ++++++++++++++++++
> MAINTAINERS | 7 +++
> drivers/hwmon/Kconfig | 11 +++++
> drivers/hwmon/Makefile | 1 +
> drivers/hwmon/rp1-hwmon.c | 78 +++++++++++++++++++++++++++++++++
> 6 files changed, 141 insertions(+)
> create mode 100644 Documentation/hwmon/rp1-fan.rst
> create mode 100644 drivers/hwmon/rp1-hwmon.c
>
> diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
> index 199ca79621e9..2d81cf3b46ff 100644
> --- a/Documentation/hwmon/index.rst
> +++ b/Documentation/hwmon/index.rst
prev parent reply other threads:[~2026-12-01 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:38 [PATCH v2 0/1] hwmon: Add fan tachometer support for Raspberry Pi RP1 Andrea della Porta
2026-11-24 17:39 ` [PATCH v2 1/1] hwmon: Add driver for Raspberry Pi RP1 fan tachometer Andrea della Porta
2026-11-28 17:42 ` Guenter Roeck
2026-12-01 21:26 ` Gary Guo [this message]
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=DN9PPTBGABDC.1ICVCGYUXBJPW@garyguo.net \
--to=gary@garyguo.net \
--cc=andrea.porta@suse.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=ukleinek@kernel.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
all inboxes | Powered by JetHome®