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 1/3] dt-bindings: thermal: Add SpacemiT K3 temperature sensor
Date: Fri, 4 Dec 2026 22:23:10 +0800 [thread overview]
Message-ID: <20261204142313.137015-2-duge1256@gmail.com> (raw)
In-Reply-To: <20261204142313.137015-1-duge1256@gmail.com>
Describe the K3 on-die temperature sensor controller, its seven sensor
channels, two clocks, reset and NVMEM voltage reference calibration cells.
Signed-off-by: Jiayu Du <duge1256@gmail.com>
---
.../bindings/thermal/spacemit,k3-tsensor.yaml | 82 +++++++++++++++++++
MAINTAINERS | 5 ++
2 files changed, 87 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
diff --git a/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml b/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
new file mode 100644
index 000000000000..9eb72512bdd6
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/spacemit,k3-tsensor.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SpacemiT K3 Thermal Sensor
+
+maintainers:
+ - Jiayu Du <duge1256@gmail.com>
+
+$ref: thermal-sensor.yaml#
+
+properties:
+ compatible:
+ const: spacemit,k3-tsensor
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: Core clock
+ - description: Bus clock
+
+ clock-names:
+ items:
+ - const: core
+ - const: bus
+
+ interrupts:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ nvmem-cells:
+ items:
+ - description: Primary voltage reference calibration
+ - description: Backup voltage reference calibration
+
+ nvmem-cell-names:
+ items:
+ - const: soc_rtemp_trim
+ - const: soc_rtemp_trim1
+
+ "#thermal-sensor-cells":
+ const: 1
+ description:
+ Sensor ID, 0 for SoC, 2 for VPU, 3 for GPU and 4-7 for CPU clusters.
+ ID 1 is unused.
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - interrupts
+ - resets
+ - nvmem-cells
+ - nvmem-cell-names
+ - "#thermal-sensor-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/spacemit,k3-clocks.h>
+ #include <dt-bindings/reset/spacemit,k3-resets.h>
+
+ thermal@d4018000 {
+ compatible = "spacemit,k3-tsensor";
+ reg = <0xd4018000 0x100>;
+ clocks = <&syscon_apbc CLK_APBC_TSEN>,
+ <&syscon_apbc CLK_APBC_TSEN_BUS>;
+ clock-names = "core", "bus";
+ interrupts = <61>;
+ 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>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index e0af83ecee37..b852a90873a0 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -26531,6 +26531,11 @@ S: Maintained
F: Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml
F: drivers/nvmem/spacemit-k3-efuse.c
+SPACEMIT K3 THERMAL DRIVER
+M: Jiayu Du <duge1256@gmail.com>
+S: Maintained
+F: Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
+
SPACEMIT RESET CONTROLLER DRIVER
M: Guodong Xu <docular.xu@gmail.com>
L: linux-riscv@lists.infradead.org
--
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 ` Jiayu Du [this message]
2026-12-04 14:33 ` [RFC PATCH 1/3] dt-bindings: thermal: Add SpacemiT K3 temperature sensor 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-2-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