From: Jiayu Du <duge1256@gmail.com>
To: daniel.lezcano@kernel.org, rafael@kernel.org
Cc: rui.zhang@intel.com, lukasz.luba@arm.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, dlan@kernel.org,
troy.mitchell@linux.spacemit.com, pjw@kernel.org,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
p.zabel@pengutronix.de, me@ziyao.cc, linux.amoon@gmail.com,
shuwei.wu@mailbox.org, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
spacemit@lists.linux.dev, linux-kernel@vger.kernel.org,
ipedrosa@redhat.com, aurelien@aurel32.net, srini@kernel.org,
Jiayu Du <duge1256@gmail.com>
Subject: [RFC PATCH 0/3] Add polling temperature monitoring for SpacemiT K3
Date: Fri, 4 Dec 2026 22:23:09 +0800 [thread overview]
Message-ID: <20261204142313.137015-1-duge1256@gmail.com> (raw)
This series adds polling temperature monitoring for the SpacemiT K3 SoC.
It exposes seven on-die sensors for the SoC, VPU, GPU and four CPU
clusters through the thermal and hwmon interfaces. It does not add
thermal trips, cooling maps or interrupt-driven updates.
This series depends on the K3 eFuse v4 series [1], which provides the
NVMEM driver and the primary and backup voltage reference calibration
cells.
Tested on a SpacemiT K3 COM260 Kit after a cold boot. All seven channels
reported temperatures through both the thermal and hwmon interfaces.
The test kernel also included the separate SoC information patches,
which are not required by this series.
TSEN CFG bits 25/26 still need clarification. After enabling the sensors,
the downstream driver [2] sets both bits, reads back CFG, clears both
bits and reads it back again. This RFC leaves those bits unchanged.
I have asked SpacemiT what these bits control, whether this sequence is
required, and whether there are any timing or readback requirements.
I am waiting for their reply.
Feedback on the initialization sequence and testing on other K3 boards,
including the Pico-ITX, would be welcome.
[1] https://lore.kernel.org/all/20261129144250.3212056-1-duge1256@gmail.com/
[2] https://github.com/spacemit-com/linux-6.18/blob/k3-br-v1.0.y/drivers/thermal/k3-thermal.c#L242-L251
Jiayu Du (3):
dt-bindings: thermal: Add SpacemiT K3 temperature sensor
thermal/drivers/spacemit/k3: Add temperature sensor support
riscv: dts: spacemit: Describe K3 temperature monitoring
.../bindings/thermal/spacemit,k3-tsensor.yaml | 82 +++++++
MAINTAINERS | 6 +
arch/riscv/boot/dts/spacemit/k3.dtsi | 51 ++++
drivers/thermal/spacemit/Kconfig | 11 +
drivers/thermal/spacemit/Makefile | 1 +
drivers/thermal/spacemit/k3_tsensor.c | 224 ++++++++++++++++++
6 files changed, 375 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
create mode 100644 drivers/thermal/spacemit/k3_tsensor.c
base-commit: d6bcfc94eb4da6e089c5473970cd96727292fd97
prerequisite-patch-id: 46efc135593cf02c0fe0e4ecee64414c6a0bf4ae
prerequisite-patch-id: 90781adce6b9f5e27c5460e3e49b0fa28455fcd9
prerequisite-patch-id: 54588ceef7a5671170d430e464d41ea2cb1cca01
--
2.43.0
next reply other threads:[~2026-12-04 14:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:23 Jiayu Du [this message]
2026-12-04 14:23 ` [RFC PATCH 1/3] dt-bindings: thermal: Add SpacemiT K3 temperature sensor Jiayu Du
2026-12-04 14:33 ` sashiko-bot
2026-12-04 14:23 ` [RFC PATCH 2/3] thermal/drivers/spacemit/k3: Add temperature sensor support Jiayu Du
2026-12-04 14:23 ` [RFC PATCH 3/3] riscv: dts: spacemit: Describe K3 temperature monitoring Jiayu Du
2026-12-04 14:57 ` sashiko-bot
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=20261204142313.137015-1-duge1256@gmail.com \
--to=duge1256@gmail.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=aurelien@aurel32.net \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=ipedrosa@redhat.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux.amoon@gmail.com \
--cc=lukasz.luba@arm.com \
--cc=me@ziyao.cc \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
--cc=shuwei.wu@mailbox.org \
--cc=spacemit@lists.linux.dev \
--cc=srini@kernel.org \
--cc=troy.mitchell@linux.spacemit.com \
/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