* [PATCH 0/3] Add SCMI regulators description on STM32MP21
@ 2026-11-13 14:10 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings Patrick Delaunay
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Patrick Delaunay @ 2026-11-13 14:10 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, Liam Girdwood, Mark Brown
Cc: Linux STM32, linux-arm-kernel, Patrick Delaunay, devicetree,
linux-kernel
Add the description for SCMI regulators provided by OP-TEE firmware.
The binding file named st,stm32mp21-regulator.h will be also used in
the OP-TEE firmware.
Patrick Delaunay (3):
dt-bindings: add STM32MP21 regulator bindings
arm64: dts: st: add SCMI voltage domain regulators for STM32MP211
arm64: dts: st: add SCMI regulators for stm32mp215f-dk board
arch/arm64/boot/dts/st/stm32mp211.dtsi | 27 +++++++++++
arch/arm64/boot/dts/st/stm32mp215f-dk.dts | 23 +++++++++
.../regulator/st,stm32mp21-regulator.h | 48 +++++++++++++++++++
3 files changed, 98 insertions(+)
create mode 100644 include/dt-bindings/regulator/st,stm32mp21-regulator.h
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
branch: fsdffsf
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings
2026-11-13 14:10 [PATCH 0/3] Add SCMI regulators description on STM32MP21 Patrick Delaunay
@ 2026-11-13 14:10 ` Patrick Delaunay
2026-11-13 14:34 ` Mark Brown
2026-11-13 14:10 ` [PATCH 2/3] arm64: dts: st: add SCMI voltage domain regulators for STM32MP211 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 3/3] arm64: dts: st: add SCMI regulators for stm32mp215f-dk board Patrick Delaunay
2 siblings, 1 reply; 5+ messages in thread
From: Patrick Delaunay @ 2026-11-13 14:10 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Coquelin, Alexandre Torgue
Cc: Linux STM32, linux-arm-kernel, Patrick Delaunay, devicetree,
linux-kernel
These bindings will be used for the SCMI voltage domain.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
.../regulator/st,stm32mp21-regulator.h | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 include/dt-bindings/regulator/st,stm32mp21-regulator.h
diff --git a/include/dt-bindings/regulator/st,stm32mp21-regulator.h b/include/dt-bindings/regulator/st,stm32mp21-regulator.h
new file mode 100644
index 000000000000..fcafcfb6dc54
--- /dev/null
+++ b/include/dt-bindings/regulator/st,stm32mp21-regulator.h
@@ -0,0 +1,48 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
+/*
+ * Copyright (C) 2026, STMicroelectronics - All Rights Reserved
+ */
+
+#ifndef __DT_BINDINGS_REGULATOR_ST_STM32MP21_REGULATOR_H
+#define __DT_BINDINGS_REGULATOR_ST_STM32MP21_REGULATOR_H
+
+/* SCMI voltage domains identifiers */
+
+/* SOC Internal regulators */
+#define VOLTD_SCMI_VDDIO1 0
+#define VOLTD_SCMI_VDDIO2 1
+#define VOLTD_SCMI_VDDIO3 2
+#define VOLTD_SCMI_ADC 3
+#define VOLTD_SCMI_VREFBUF 4
+
+/* STPMIC regulators (STPMIC25/STM32MP2L/STPMIC1L) */
+#define VOLTD_SCMI_STPMIC_BUCK1 5
+#define VOLTD_SCMI_STPMIC_BUCK2 6
+#define VOLTD_SCMI_STPMIC_BUCK3 7
+#define VOLTD_SCMI_STPMIC_BUCK4 8
+#define VOLTD_SCMI_STPMIC_BUCK5 9
+#define VOLTD_SCMI_STPMIC_BUCK6 10
+#define VOLTD_SCMI_STPMIC_BUCK7 11
+#define VOLTD_SCMI_STPMIC_LDO1 12
+#define VOLTD_SCMI_STPMIC_LDO2 13
+#define VOLTD_SCMI_STPMIC_LDO3 14
+#define VOLTD_SCMI_STPMIC_LDO4 15
+#define VOLTD_SCMI_STPMIC_LDO5 16
+#define VOLTD_SCMI_STPMIC_LDO6 17
+#define VOLTD_SCMI_STPMIC_LDO7 18
+#define VOLTD_SCMI_STPMIC_LDO8 19
+#define VOLTD_SCMI_STPMIC_REFDDR 20
+#define VOLTD_SCMI_STPMIC_GPO1 21
+#define VOLTD_SCMI_STPMIC_GPO2 22
+#define VOLTD_SCMI_STPMIC_GPO3 23
+#define VOLTD_SCMI_STPMIC_GPO4 24
+#define VOLTD_SCMI_STPMIC_GPO5 25
+
+/* External regulators */
+#define VOLTD_SCMI_REGU0 26
+#define VOLTD_SCMI_REGU1 27
+#define VOLTD_SCMI_REGU2 28
+#define VOLTD_SCMI_REGU3 29
+#define VOLTD_SCMI_REGU4 30
+
+#endif /*__DT_BINDINGS_REGULATOR_ST_STM32MP21_REGULATOR_H */
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: st: add SCMI voltage domain regulators for STM32MP211
2026-11-13 14:10 [PATCH 0/3] Add SCMI regulators description on STM32MP21 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings Patrick Delaunay
@ 2026-11-13 14:10 ` Patrick Delaunay
2026-11-13 14:10 ` [PATCH 3/3] arm64: dts: st: add SCMI regulators for stm32mp215f-dk board Patrick Delaunay
2 siblings, 0 replies; 5+ messages in thread
From: Patrick Delaunay @ 2026-11-13 14:10 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Linux STM32, linux-arm-kernel, Patrick Delaunay, devicetree,
linux-kernel
Add SCMI-based regulator descriptions in the STM32MP211 SoC DTS,
covering VDDIO1, VDDIO2, VDDIO3 and VDDA18ADC voltage domains.
These regulators are exposed through the SCMI voltage protocol
and will be referenced by board-level DTS files.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp211.dtsi | 27 ++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp211.dtsi b/arch/arm64/boot/dts/st/stm32mp211.dtsi
index 4bfd58b26b51..8ae19e1aedcc 100644
--- a/arch/arm64/boot/dts/st/stm32mp211.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp211.dtsi
@@ -4,6 +4,7 @@
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/regulator/st,stm32mp21-regulator.h>
/ {
#address-cells = <2>;
@@ -67,6 +68,32 @@ scmi_reset: protocol@16 {
reg = <0x16>;
#reset-cells = <1>;
};
+
+ scmi_voltd: protocol@17 {
+ reg = <0x17>;
+
+ scmi_regu: regulators {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ scmi_vddio1: regulator@0 {
+ reg = <VOLTD_SCMI_VDDIO1>;
+ regulator-name = "vddio1";
+ };
+ scmi_vddio2: regulator@1 {
+ reg = <VOLTD_SCMI_VDDIO2>;
+ regulator-name = "vddio2";
+ };
+ scmi_vddio3: regulator@2 {
+ reg = <VOLTD_SCMI_VDDIO3>;
+ regulator-name = "vddio3";
+ };
+ scmi_vdda18adc: regulator@3 {
+ reg = <VOLTD_SCMI_ADC>;
+ regulator-name = "vdda18adc";
+ };
+ };
+ };
};
};
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: st: add SCMI regulators for stm32mp215f-dk board
2026-11-13 14:10 [PATCH 0/3] Add SCMI regulators description on STM32MP21 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings Patrick Delaunay
2026-11-13 14:10 ` [PATCH 2/3] arm64: dts: st: add SCMI voltage domain regulators for STM32MP211 Patrick Delaunay
@ 2026-11-13 14:10 ` Patrick Delaunay
2 siblings, 0 replies; 5+ messages in thread
From: Patrick Delaunay @ 2026-11-13 14:10 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Linux STM32, linux-arm-kernel, Patrick Delaunay, devicetree,
linux-kernel
Add SCMI-based regulator nodes:
- vddcore (BUCK1)
- vdd3v3_usb (LDO4)
- vdd_flash (LDO5)
- vdda_1v8 (LDO6)
- v3v3 (GPO1)
These regulators are provided through the SCMI voltage protocol
and will be used by on-board peripherals.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp215f-dk.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
index a1285abc80ca..fc7010bf8d88 100644
--- a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
@@ -48,6 +48,29 @@ &bsec {
bootph-all;
};
+&scmi_regu {
+ scmi_vddcore: regulator@5 {
+ reg = <VOLTD_SCMI_STPMIC_BUCK1>;
+ regulator-name = "vddcore";
+ };
+ scmi_vdd3v3_usb: regulator@f {
+ reg = <VOLTD_SCMI_STPMIC_LDO4>;
+ regulator-name = "vdd3v3_usb";
+ };
+ scmi_vdd_flash: regulator@10 {
+ reg = <VOLTD_SCMI_STPMIC_LDO5>;
+ regulator-name = "vdd_flash";
+ };
+ scmi_vdda_1v8: regulator@11 {
+ reg = <VOLTD_SCMI_STPMIC_LDO6>;
+ regulator-name = "vdda_1v8";
+ };
+ scmi_v3v3: regulator@15 {
+ reg = <VOLTD_SCMI_STPMIC_GPO1>;
+ regulator-name = "v3v3";
+ };
+};
+
&usart2 {
status = "okay";
};
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings
2026-11-13 14:10 ` [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings Patrick Delaunay
@ 2026-11-13 14:34 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2026-11-13 14:34 UTC (permalink / raw)
To: Patrick Delaunay
Cc: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Linux STM32, linux-arm-kernel,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
On Fri, Nov 13, 2026 at 03:10:39PM +0100, Patrick Delaunay wrote:
> These bindings will be used for the SCMI voltage domain.
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-13 14:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 14:10 [PATCH 0/3] Add SCMI regulators description on STM32MP21 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 1/3] dt-bindings: add STM32MP21 regulator bindings Patrick Delaunay
2026-11-13 14:34 ` Mark Brown
2026-11-13 14:10 ` [PATCH 2/3] arm64: dts: st: add SCMI voltage domain regulators for STM32MP211 Patrick Delaunay
2026-11-13 14:10 ` [PATCH 3/3] arm64: dts: st: add SCMI regulators for stm32mp215f-dk board Patrick Delaunay
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®