From 7791055b13fc720ef0c32de7c52e3a9d3adb449b Mon Sep 17 00:00:00 2001 From: Johnny Liu Date: Mon, 10 Apr 2023 06:56:53 +0000 Subject: [PATCH] t23x: overlay: add cpuidle idle states Add the c7 cpu idle state for all cpu cores. The choice to enable the cpuidle psci driver can be specified in the platform-specific overlay file. Bug 3845478 Signed-off-by: Johnny Liu Change-Id: I506f3be56adc1c37703080213ec2e3026bc98850 Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871275 Reviewed-by: svcacv Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- overlay/tegra234-base-overlay.dtsi | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/overlay/tegra234-base-overlay.dtsi b/overlay/tegra234-base-overlay.dtsi index 9c35452..50718fb 100644 --- a/overlay/tegra234-base-overlay.dtsi +++ b/overlay/tegra234-base-overlay.dtsi @@ -704,6 +704,69 @@ }; }; + cpus { + idle-states { + entry-method = "psci"; + + C7: c7 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x40000007>; + min-residency-us = <30000>; + wakeup-latency-us = <5000>; + idle-state-name = "Core powergate"; + status = "disabled"; + }; + }; + + 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>; + }; + }; + mgbe_vm_irq_config: mgbe-vm-irq-config { nvidia,num-vm-irqs = <5>; vm_irq1 {