* [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25
@ 2026-09-24 19:23 Mateusz Nowicki
2026-09-24 19:23 ` [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251 Mateusz Nowicki
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mateusz Nowicki @ 2026-09-24 19:23 UTC (permalink / raw)
To: Alexandre Torgue, Maxime Coquelin
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Mateusz Nowicki
This series describes the digital temperature sensor (DTS) of the
STM32MP25, a Moortec MR75203 PVT controller, and enables its hwmon
driver in the arm64 defconfig. Thermal zones will follow in a separate
series once this one is applied.
Tested on the STM32MP257F-DK. Temperature sensor 1 follows the CPU
load. Two voltage monitor channels, in0 and in2, read about 815 mV. The
other 14 read 1 mV.
Questions for ST:
- The process detector and voltage monitor blocks are not in the
reference manual. Are they at offsets 0x180 and 0x400, as found on
the board? The downstream kernel places the process detector at
0x200, where no register responds on the DK.
- Which supplies are connected to the voltage monitor channels? With
this information, moortec,vm-active-channels could be added.
Mateusz Nowicki (2):
arm64: dts: st: add digital temperature sensor on stm32mp251
arm64: defconfig: enable Moortec MR75203 PVT controller
arch/arm64/boot/dts/st/stm32mp251.dtsi | 15 +++++++++++++++
arch/arm64/configs/defconfig | 1 +
2 files changed, 16 insertions(+)
base-commit: 2f92d900f262a16c8ae02daf53ae2910d07185f5
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251
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
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
2 siblings, 0 replies; 4+ messages in thread
From: Mateusz Nowicki @ 2026-09-24 19:23 UTC (permalink / raw)
To: Alexandre Torgue, Maxime Coquelin
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Mateusz Nowicki
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: defconfig: enable Moortec MR75203 PVT controller
2026-09-24 19:23 [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Mateusz Nowicki
2026-09-24 19:23 ` [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251 Mateusz Nowicki
@ 2026-09-24 19:23 ` Mateusz Nowicki
2026-09-28 13:00 ` [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Mateusz Nowicki @ 2026-09-24 19:23 UTC (permalink / raw)
To: Alexandre Torgue, Maxime Coquelin
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Mateusz Nowicki
Enable the Moortec MR75203 PVT controller driver as a module. It is used
by the digital temperature sensor of the STM32MP25 SoCs.
Signed-off-by: Mateusz Nowicki <mateusz.nowicki@posteo.net>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index f6d3d94ab7db..fd4da6a61ce6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -765,6 +765,7 @@ CONFIG_SENSORS_ARM_SCPI=y
CONFIG_SENSORS_GPIO_FAN=m
CONFIG_SENSORS_JC42=m
CONFIG_SENSORS_MACSMC_HWMON=m
+CONFIG_SENSORS_MR75203=m
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_LM90=m
CONFIG_SENSORS_PWM_FAN=m
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25
2026-09-24 19:23 [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Mateusz Nowicki
2026-09-24 19:23 ` [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251 Mateusz Nowicki
2026-09-24 19:23 ` [PATCH 2/2] arm64: defconfig: enable Moortec MR75203 PVT controller Mateusz Nowicki
@ 2026-09-28 13:00 ` Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2026-09-28 13:00 UTC (permalink / raw)
To: Mateusz Nowicki, Maxime Coquelin
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Hi Mateusz
On 9/24/26 21:23, Mateusz Nowicki wrote:
> This series describes the digital temperature sensor (DTS) of the
> STM32MP25, a Moortec MR75203 PVT controller, and enables its hwmon
> driver in the arm64 defconfig. Thermal zones will follow in a separate
> series once this one is applied.
>
> Tested on the STM32MP257F-DK. Temperature sensor 1 follows the CPU
> load. Two voltage monitor channels, in0 and in2, read about 815 mV. The
> other 14 read 1 mV.
>
> Questions for ST:
> - The process detector and voltage monitor blocks are not in the
> reference manual. Are they at offsets 0x180 and 0x400, as found on
> the board? The downstream kernel places the process detector at
> 0x200, where no register responds on the DK.
> - Which supplies are connected to the voltage monitor channels? With
> this information, moortec,vm-active-channels could be added.
>
> Mateusz Nowicki (2):
> arm64: dts: st: add digital temperature sensor on stm32mp251
> arm64: defconfig: enable Moortec MR75203 PVT controller
>
> arch/arm64/boot/dts/st/stm32mp251.dtsi | 15 +++++++++++++++
> arch/arm64/configs/defconfig | 1 +
> 2 files changed, 16 insertions(+)
>
>
> base-commit: 2f92d900f262a16c8ae02daf53ae2910d07185f5
Applied on stm32-next.
regards
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-28 13:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 19:23 [PATCH 0/2] arm64: dts: st: add digital temperature sensor on stm32mp25 Mateusz Nowicki
2026-09-24 19:23 ` [PATCH 1/2] arm64: dts: st: add digital temperature sensor on stm32mp251 Mateusz Nowicki
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
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®