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 3/3] riscv: dts: spacemit: Describe K3 temperature monitoring
Date: Fri, 4 Dec 2026 22:23:12 +0800 [thread overview]
Message-ID: <20261204142313.137015-4-duge1256@gmail.com> (raw)
In-Reply-To: <20261204142313.137015-1-duge1256@gmail.com>
Enable the K3 temperature sensor controller and add seven polling thermal
zones for the SoC, VPU, GPU and four CPU clusters. Connect the sensor to
the primary and backup calibration cells in eFuse.
Signed-off-by: Jiayu Du <duge1256@gmail.com>
---
arch/riscv/boot/dts/spacemit/k3.dtsi | 51 ++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spacemit/k3.dtsi
index af1a758788ff..a40a278acc09 100644
--- a/arch/riscv/boot/dts/spacemit/k3.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3.dtsi
@@ -433,6 +433,43 @@ osc_32k: clock-32k {
};
};
+ thermal_zones: thermal-zones {
+ soc-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 0>;
+ };
+
+ vpu-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 2>;
+ };
+
+ gpu-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 3>;
+ };
+
+ cluster0-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 4>;
+ };
+
+ cluster1-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 5>;
+ };
+
+ cluster2-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 6>;
+ };
+
+ cluster3-thermal {
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 7>;
+ };
+ };
+
soc: soc {
compatible = "simple-bus";
interrupt-parent = <&saplic>;
@@ -894,6 +931,20 @@ uart9: serial@d4017800 {
status = "disabled";
};
+ thermal: thermal@d4018000 {
+ compatible = "spacemit,k3-tsensor";
+ reg = <0x0 0xd4018000 0x0 0x100>;
+ interrupt-parent = <&saplic>;
+ interrupts = <61 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&syscon_apbc CLK_APBC_TSEN>,
+ <&syscon_apbc CLK_APBC_TSEN_BUS>;
+ clock-names = "core", "bus";
+ resets = <&syscon_apbc RESET_APBC_TSEN>;
+ nvmem-cells = <&soc_rtemp_trim>, <&soc_rtemp_trim1>;
+ nvmem-cell-names = "soc_rtemp_trim", "soc_rtemp_trim1";
+ #thermal-sensor-cells = <1>;
+ };
+
i2c6: i2c@d4018800 {
compatible = "spacemit,k3-i2c", "spacemit,k1-i2c";
reg = <0x0 0xd4018800 0x0 0x38>;
--
2.43.0
next prev parent 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 [RFC PATCH 0/3] Add polling temperature monitoring for SpacemiT K3 Jiayu Du
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 ` Jiayu Du [this message]
2026-12-04 14:57 ` [RFC PATCH 3/3] riscv: dts: spacemit: Describe K3 temperature monitoring 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-4-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