]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: imx95: enable A55 cpuidle
authorPeng Fan <peng.fan@nxp.com>
Sat, 12 Oct 2024 11:19:12 +0000 (19:19 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Oct 2024 01:31:14 +0000 (09:31 +0800)
Add cpuidle node and enable cpuidle for A55.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx95.dtsi

index ae8e09203ef431d8869fdce79df9f31a3e55971c..62bb526ba507b9fefc8d90743d653e9dadf030ef 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               idle-states {
+                       entry-method = "psci";
+
+                       cpu_pd_wait: cpu-pd-wait {
+                               compatible = "arm,idle-state";
+                               arm,psci-suspend-param = <0x0010033>;
+                               local-timer-stop;
+                               entry-latency-us = <10000>;
+                               exit-latency-us = <7000>;
+                               min-residency-us = <27000>;
+                               wakeup-latency-us = <15000>;
+                       };
+               };
+
                A55_0: cpu@0 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a55";
                        reg = <0x0>;
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        power-domains = <&scmi_perf IMX95_PERF_A55>;
                        power-domain-names = "perf";
                        i-cache-size = <32768>;
@@ -45,6 +60,7 @@
                        reg = <0x100>;
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        power-domains = <&scmi_perf IMX95_PERF_A55>;
                        power-domain-names = "perf";
                        i-cache-size = <32768>;
@@ -62,6 +78,7 @@
                        reg = <0x200>;
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        power-domains = <&scmi_perf IMX95_PERF_A55>;
                        power-domain-names = "perf";
                        i-cache-size = <32768>;
@@ -79,6 +96,7 @@
                        reg = <0x300>;
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        power-domains = <&scmi_perf IMX95_PERF_A55>;
                        power-domain-names = "perf";
                        i-cache-size = <32768>;
                        power-domain-names = "perf";
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        power-domain-names = "perf";
                        enable-method = "psci";
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&cpu_pd_wait>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;