From: Mateusz Nowicki <mateusz.nowicki@posteo.net>
To: Alexandre Torgue <alexandre.torgue@foss.st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Mateusz Nowicki <mateusz.nowicki@posteo.net>
Subject: [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251
Date: Thu, 24 Sep 2026 19:23:10 +0000 [thread overview]
Message-ID: <20260924192259.20517-2-mateusz.nowicki@posteo.net> (raw)
In-Reply-To: <20260924192259.20517-1-mateusz.nowicki@posteo.net>
The digital temperature sensor (DTS) of the STM32MP25 is a Moortec
MR75203 PVT controller with two temperature sensors, handled by the
mr75203 hwmon driver.
The reference manual does not document the process detector and
voltage monitor blocks that the controller reports and the driver maps.
They were found at offsets 0x180 and 0x400 on the STM32MP257F-DK.
Use the temperature coefficients from the STM32MP25 datasheet, as the
driver defaults read about 1 degree Celsius too high.
Signed-off-by: Mateusz Nowicki <mateusz.nowicki@posteo.net>
---
arch/arm64/boot/dts/st/stm32mp251.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index 44938c036e30..d57ae0c5574d 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -1800,6 +1800,21 @@ package-otp@1e8 {
};
};
+ dts: thermal-sensor@44070000 {
+ compatible = "moortec,mr75203";
+ reg = <0x44070000 0x80>,
+ <0x44070080 0xc0>,
+ <0x44070180 0x80>,
+ <0x44070400 0x400>;
+ reg-names = "common", "ts", "pd", "vm";
+ clocks = <&rcc CK_KER_DTS>;
+ resets = <&rcc DTS_R>;
+ #thermal-sensor-cells = <1>;
+ moortec,ts-coeff-g = <58500>;
+ moortec,ts-coeff-h = <201200>;
+ moortec,ts-coeff-j = <0>;
+ };
+
hdp: pinctrl@44090000 {
compatible = "st,stm32mp251-hdp";
reg = <0x44090000 0x400>;
--
2.55.0
next prev parent reply other threads:[~2026-09-24 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 19:23 [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Mateusz Nowicki
2026-09-24 19:23 ` Mateusz Nowicki [this message]
2026-09-24 19:23 ` [PATCH 2/2] arm64: defconfig: enable Moortec MR75203 PVT controller Mateusz Nowicki
2026-09-28 13:00 ` [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Alexandre TORGUE
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=20260924192259.20517-2-mateusz.nowicki@posteo.net \
--to=mateusz.nowicki@posteo.net \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@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®