[PATCH v3 7/7] arm64: dts: st: add power domains for STM32MP21 family
Patrick Delaunay
patrick.delaunay at foss.st.com
Thu Dec 3 09:16:05 PST 2026
Add PSCI CPU, cluster and retention power domains for STM32MP21.
Define the CPU idle state and connect the CPU and cluster domains to
the PSCI hierarchy. Add the D1 functional-dependency domain and assign
the affected peripheral to it.
Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
---
(no changes since v2)
Changes in v2:
- replace "power-domain-d1" by "power-controller"
- update commit message
arch/arm64/boot/dts/st/stm32mp211.dtsi | 37 ++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp211.dtsi b/arch/arm64/boot/dts/st/stm32mp211.dtsi
index 4bfd58b26b51..4da0ac7771b5 100644
--- a/arch/arm64/boot/dts/st/stm32mp211.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp211.dtsi
@@ -18,6 +18,21 @@ cpu0: cpu at 0 {
reg = <0>;
device_type = "cpu";
enable-method = "psci";
+ power-domains = <&cpu0_pd>;
+ power-domain-names = "psci";
+ };
+
+ idle-states {
+ entry-method = "psci";
+
+ cpu_sleep: cpu-sleep {
+ compatible = "arm,idle-state";
+ arm,psci-suspend-param = <0x00000002>;
+ local-timer-stop;
+ entry-latency-us = <150>;
+ exit-latency-us = <200>;
+ min-residency-us = <1000>;
+ };
};
};
@@ -70,9 +85,30 @@ scmi_reset: protocol at 16 {
};
};
+ d1_pd: power-controller {
+ compatible = "st,stm32mp-pm-domain";
+ #power-domain-cells = <0>;
+ power-domains = <&cluster_pd>;
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
+
+ cpu0_pd: power-domain-cpu0 {
+ #power-domain-cells = <0>;
+ domain-idle-states = <&cpu_sleep>;
+ power-domains = <&cluster_pd>;
+ };
+
+ cluster_pd: power-domain-cluster {
+ #power-domain-cells = <0>;
+ power-domains = <&ret_pd>;
+ };
+
+ ret_pd: power-domain-retention {
+ #power-domain-cells = <0>;
+ };
};
timer {
@@ -108,6 +144,7 @@ usart2: serial at 400e0000 {
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ck_flexgen_08>;
access-controllers = <&rifsc 32>;
+ power-domains = <&d1_pd>;
status = "disabled";
};
};
--
2.43.0
More information about the linux-arm-kernel
mailing list