Skip to contentSkip to conversation

ARM: dts: imx7s: enable cpuidle driver

PATCH Applied Anson Huang 2 participants 2 messages Sep 3, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: imx7s: enable cpuidle driver

Enable cpuidle for i.MX7S/D using generic ARM cpuidle driver, below 2 idle states enabled:

1. ARM WFI;
2. SoC WAIT mode.

---
changes since V1:
replace uppercase with lowercase.

 arch/arm/boot/dts/imx7d.dtsi |  1 +
 arch/arm/boot/dts/imx7s.dtsi | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/imx7d.dtsi +1 -0
index 7cbc2ff..53eb371 100644
@@ -20,6 +20,7 @@
 			reg = <1>;
 			clock-frequency = <996000000>;
 			operating-points-v2 = <&cpu0_opp_table>;
+			cpu-idle-states = <&cpu_sleep_wait>;
 		};
 	};
 
arch/arm/boot/dts/imx7s.dtsi +14 -0
index 93884ce..d3f6488 100644
@@ -54,6 +54,19 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		idle-states {
+			entry-method = "psci";
+
+			cpu_sleep_wait: cpu-sleep-wait {
+				compatible = "arm,idle-state";
+				arm,psci-suspend-param = <0x0010000>;
+				local-timer-stop;
+				entry-latency-us = <100>;
+				exit-latency-us = <50>;
+				min-residency-us = <1000>;
+			};
+		};
+
 		cpu0: cpu at 0 {
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
@@ -61,6 +74,7 @@
 			clock-frequency = <792000000>;
 			clock-latency = <61036>; /* two CLK32 periods */
 			clocks = <&clks IMX7D_CLK_ARM>;
+			cpu-idle-states = <&cpu_sleep_wait>;
 		};
 	};
 
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 7 lines · Anson Huang

Enable cpuidle for i.MX7S/D using generic ARM cpuidle driver, below 2 idle states enabled:

1. ARM WFI;
2. SoC WAIT mode.

Applied, thanks.