* [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13
@ 2025-04-03 11:59 Olivier Moysan
2025-04-03 11:59 ` [PATCH 1/2] " Olivier Moysan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Olivier Moysan @ 2025-04-03 11:59 UTC (permalink / raw)
To: fabrice.gasnier, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue
Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel
Add vrefint calibration data in STM32MP13 device tree to support
STM32 ADC internal channel VREFINT.
Olivier Moysan (2):
ARM: dts: stm32: add vrefint calibration on stm32mp13
ARM: dts: stm32: add vrefint support to adc on stm32mp13
arch/arm/boot/dts/st/stm32mp131.dtsi | 5 +++++
arch/arm/boot/dts/st/stm32mp133.dtsi | 2 ++
2 files changed, 7 insertions(+)
base-commit: 65954899a157832f68536b488194cf698248a26e
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: add vrefint calibration on stm32mp13
2025-04-03 11:59 [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13 Olivier Moysan
@ 2025-04-03 11:59 ` Olivier Moysan
2025-04-03 11:59 ` [PATCH 2/2] ARM: dts: stm32: add vrefint support to adc " Olivier Moysan
2025-04-30 6:28 ` [PATCH 0/2] ARM: dts: stm32: add vrefint calibration " Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Olivier Moysan @ 2025-04-03 11:59 UTC (permalink / raw)
To: fabrice.gasnier, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue
Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel
Describe vrefint calibration cell to be retrieved through bsec,
on STM32MP13x SoCs family.
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
arch/arm/boot/dts/st/stm32mp131.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/stm32mp131.dtsi
index 8512a6e46b33..3cc5623d52ca 100644
--- a/arch/arm/boot/dts/st/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp131.dtsi
@@ -1018,6 +1018,9 @@ part_number_otp: part_number_otp@4 {
reg = <0x4 0x2>;
bits = <0 12>;
};
+ vrefint: vrefin-cal@52 {
+ reg = <0x52 0x2>;
+ };
ts_cal1: calib@5c {
reg = <0x5c 0x2>;
};
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: add vrefint support to adc on stm32mp13
2025-04-03 11:59 [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13 Olivier Moysan
2025-04-03 11:59 ` [PATCH 1/2] " Olivier Moysan
@ 2025-04-03 11:59 ` Olivier Moysan
2025-04-30 6:28 ` [PATCH 0/2] ARM: dts: stm32: add vrefint calibration " Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Olivier Moysan @ 2025-04-03 11:59 UTC (permalink / raw)
To: fabrice.gasnier, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue
Cc: Olivier Moysan, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel
Set STM32 ADC1&2 as consumers of BSEC, to retrieve vrefint calibration
data on STM32MP13x SoCs.
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
arch/arm/boot/dts/st/stm32mp131.dtsi | 2 ++
arch/arm/boot/dts/st/stm32mp133.dtsi | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/stm32mp131.dtsi
index 3cc5623d52ca..492bcf586361 100644
--- a/arch/arm/boot/dts/st/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp131.dtsi
@@ -1066,6 +1066,8 @@ adc2: adc@0 {
interrupts = <0>;
dmas = <&dmamux1 10 0x400 0x80000001>;
dma-names = "rx";
+ nvmem-cells = <&vrefint>;
+ nvmem-cell-names = "vrefint";
status = "disabled";
channel@13 {
diff --git a/arch/arm/boot/dts/st/stm32mp133.dtsi b/arch/arm/boot/dts/st/stm32mp133.dtsi
index 73e470019ce4..e48838374f0d 100644
--- a/arch/arm/boot/dts/st/stm32mp133.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp133.dtsi
@@ -60,6 +60,8 @@ adc1: adc@0 {
interrupts = <0>;
dmas = <&dmamux1 9 0x400 0x80000001>;
dma-names = "rx";
+ nvmem-cells = <&vrefint>;
+ nvmem-cell-names = "vrefint";
status = "disabled";
channel@18 {
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13
2025-04-03 11:59 [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13 Olivier Moysan
2025-04-03 11:59 ` [PATCH 1/2] " Olivier Moysan
2025-04-03 11:59 ` [PATCH 2/2] ARM: dts: stm32: add vrefint support to adc " Olivier Moysan
@ 2025-04-30 6:28 ` Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2025-04-30 6:28 UTC (permalink / raw)
To: Olivier Moysan, fabrice.gasnier, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Coquelin
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Hi Olivier
On 4/3/25 13:59, Olivier Moysan wrote:
> Add vrefint calibration data in STM32MP13 device tree to support
> STM32 ADC internal channel VREFINT.
>
> Olivier Moysan (2):
> ARM: dts: stm32: add vrefint calibration on stm32mp13
> ARM: dts: stm32: add vrefint support to adc on stm32mp13
>
> arch/arm/boot/dts/st/stm32mp131.dtsi | 5 +++++
> arch/arm/boot/dts/st/stm32mp133.dtsi | 2 ++
> 2 files changed, 7 insertions(+)
>
>
> base-commit: 65954899a157832f68536b488194cf698248a26e
Series applied on stm32-next.
thanks
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-30 6:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 11:59 [PATCH 0/2] ARM: dts: stm32: add vrefint calibration on stm32mp13 Olivier Moysan
2025-04-03 11:59 ` [PATCH 1/2] " Olivier Moysan
2025-04-03 11:59 ` [PATCH 2/2] ARM: dts: stm32: add vrefint support to adc " Olivier Moysan
2025-04-30 6:28 ` [PATCH 0/2] ARM: dts: stm32: add vrefint calibration " Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).