ARM: dts: am4372: Add idle_states for cpuidle
authorDave Gerlach <d-gerlach@ti.com>
Fri, 13 Dec 2019 04:17:25 +0000 (22:17 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 27 Feb 2020 17:33:33 +0000 (09:33 -0800)
Add idle_states table for CPU on am437x. Currently just add C1 state
which gates the MPU clock domain.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am4372.dtsi

index faa14dc..0001d4f 100644 (file)
@@ -45,6 +45,7 @@
                #size-cells = <0>;
                cpu: cpu@0 {
                        compatible = "arm,cortex-a9";
+                       enable-method = "ti,am4372";
                        device_type = "cpu";
                        reg = <0>;
 
                        operating-points-v2 = <&cpu0_opp_table>;
 
                        clock-latency = <300000>; /* From omap-cpufreq driver */
+                       cpu-idle-states = <&mpu_gate>;
+               };
+
+               idle-states {
+                       mpu_gate: mpu_gate {
+                               compatible = "arm,idle-state";
+                               entry-latency-us = <40>;
+                               exit-latency-us = <100>;
+                               min-residency-us = <300>;
+                               local-timer-stop;
+                       };
                };
        };