From 04d2831976ac627b45da075db445e10c9826f0bd Mon Sep 17 00:00:00 2001 From: Johnny Liu Date: Wed, 15 Mar 2023 02:59:47 +0000 Subject: [PATCH] dts: enable c7 cpu idle state For platform-specific dts, it only need to enable the c7 cpu idle state to enable the psci cpuidle driver. Other cpu idle states information and configuration of cpu cores are specified in the soc overlay file. Bug 3845478 Signed-off-by: Johnny Liu Change-Id: I8a84d3199d47cf4fcd32edf4d7f13272b7c7e4eb Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2871279 Reviewed-by: svcacv Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- overlay/tegra234-p3737-0000+p3701-0000.dts | 69 ---------------------- overlay/tegra234-status-overlay.dtsi | 9 +++ 2 files changed, 9 insertions(+), 69 deletions(-) diff --git a/overlay/tegra234-p3737-0000+p3701-0000.dts b/overlay/tegra234-p3737-0000+p3701-0000.dts index 89a2ec5..fddda6d 100644 --- a/overlay/tegra234-p3737-0000+p3701-0000.dts +++ b/overlay/tegra234-p3737-0000+p3701-0000.dts @@ -35,75 +35,6 @@ hdr40_i2c1: i2c@c250000 { }; }; - - cpus { - cpu_core_power_states { - C1: c1 { - compatible = "arm,idle-state"; - state-name = "Clock gated"; - wakeup-latency-us = <1>; - min-residency-us = <1>; - status = "okay"; - }; - - C7: c7 { - compatible = "arm,idle-state"; - state-name = "Core powergate"; - wakeup-latency-us = <5000>; - arm,psci-suspend-param= <0x40000007>; - min-residency-us = <30000>; - status = "okay"; - }; - }; - - cpu@0 { - cpu-idle-states = <&C7>; - }; - - cpu@100 { - cpu-idle-states = <&C7>; - }; - - cpu@200 { - cpu-idle-states = <&C7>; - }; - - cpu@300 { - cpu-idle-states = <&C7>; - }; - - cpu@10000 { - cpu-idle-states = <&C7>; - }; - - cpu@10100 { - cpu-idle-states = <&C7>; - }; - - cpu@10200 { - cpu-idle-states = <&C7>; - }; - - cpu@10300 { - cpu-idle-states = <&C7>; - }; - - cpu@20000 { - cpu-idle-states = <&C7>; - }; - - cpu@20100 { - cpu-idle-states = <&C7>; - }; - - cpu@20200 { - cpu-idle-states = <&C7>; - }; - - cpu@20300 { - cpu-idle-states = <&C7>; - }; - }; }; }; }; diff --git a/overlay/tegra234-status-overlay.dtsi b/overlay/tegra234-status-overlay.dtsi index bcb1e74..48c30e6 100644 --- a/overlay/tegra234-status-overlay.dtsi +++ b/overlay/tegra234-status-overlay.dtsi @@ -303,6 +303,15 @@ status = "okay"; }; }; + + cpus { + idle-states { + c7 { + status = "okay"; + }; + }; + }; + }; }; };