From 328e0855c393523277abcad35b51eb3aeb76dc58 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Mon, 8 Jan 2024 13:56:11 +0530 Subject: [PATCH] ARM: dts: qcom: Enable userspace CPU freq cooling device for sun Enable userspace CPU frequency cooling device for sun. This config will enable cluster0 and cluster1 to be registered as cooling devices. Change-Id: I4a88c5f03b9da0e4ef1406e7e973d148c074dd93 Signed-off-by: Rashid Zafar Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/sun-thermal.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/qcom/sun-thermal.dtsi b/qcom/sun-thermal.dtsi index 31712074..bb689745 100644 --- a/qcom/sun-thermal.dtsi +++ b/qcom/sun-thermal.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -208,6 +208,17 @@ compatible = "qcom,devfreq-cdev"; qcom,devfreq = <&msm_gpu>; }; + + qcom,cpufreq-cdev { + compatible = "qcom,cpufreq-cdev"; + cpu-cluster0 { + qcom,cpus = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>; + }; + + cpu-cluster1 { + qcom,cpus = <&CPU6 &CPU7>; + }; + }; }; #include "sun-thermal-modem.dtsi"