From patchwork Sun Aug 27 11:50:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 718021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28D0FCA1000 for ; Sun, 27 Aug 2023 11:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbjH0LvS (ORCPT ); Sun, 27 Aug 2023 07:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbjH0Lu6 (ORCPT ); Sun, 27 Aug 2023 07:50:58 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 559761B5 for ; Sun, 27 Aug 2023 04:50:51 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50043cf2e29so3503480e87.2 for ; Sun, 27 Aug 2023 04:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693137049; x=1693741849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=USgeUwECAkOQEp1wsiFNyllfKzoxZQF/MlR4uioqAes=; b=SKRHXexgEO0hh70xfF+rypCfvjUljDWvouh9vQtfzEUqvtIvu0wmjl6kJo+IKL152x uqVvmNppO06Mp8tu+RmijGYKqBR/EuUHxzyi62jVbPqDXakTubVpaMqZAJD6uF9yLSZb oxsHRClqIq2gZvrTol3lkTTryMWCSV+UMuGPxU1peSxag1qpcUYDO1zJkYhiO4Wl7TtN a7Em3/Mc0hUpSpR8yLc0WHY4vOoPdCGvUIn4JwdX5JHQzotkRiHosQLQPUzs/Vuf71BM N8Io7qIiRZc37R6hKL2SkARBMrHQ6RpP5x/ZBTAfegpSaj4ubBASEiHO5Um/hOAyn5xu Yf+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693137049; x=1693741849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=USgeUwECAkOQEp1wsiFNyllfKzoxZQF/MlR4uioqAes=; b=TaKLXG06QMEw3JjKHJrkBE9E2jZEpxPcvOhIsEe8YpdagxUSeuo36cbgpHoq51/f0f v7NP/rbuHSd4M4mHJdSKUS8eBcNR4cfAapxZBNH0TkrEDxxX5aZcnSQ/QhURd6ZVSZWk CSY76U9ws+f1KHX2bt6H/b8eKTYQ27DHTm7OmvHhyHdflD6ct73RI3qPVr1seMAVqnLq vqdWl/qQGXR7q6kt6jp3gNSCmoxgdUlo3DKn0DlJJSQf6DrZhvhZtQfSuOFES/LojCui AGLe5SNJdSUrUwcHCPjd1epSKBEC2eXay8W//sBkUpSIFycJgyLTwZhF/bIj7meMAOC5 KY2w== X-Gm-Message-State: AOJu0Yy2lV6ccDCHVqKavkw+8nG7J5tEZJZfblneOJZ/KAdZod22K2no BoSZLwU9wHKrsBe9dZbZmA/Qtg== X-Google-Smtp-Source: AGHT+IG4gCJRpkHKUBlElPDMU0gUa0vMIXPRfjy4BFBrv0VVbh63oToUWwhhprskD3OTUevMYF7PIw== X-Received: by 2002:a05:6512:754:b0:4f6:d7b:2f19 with SMTP id c20-20020a056512075400b004f60d7b2f19mr13620653lfs.24.1693137049652; Sun, 27 Aug 2023 04:50:49 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id a8-20020a19f808000000b004ff9f88b86esm1114770lff.308.2023.08.27.04.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Aug 2023 04:50:49 -0700 (PDT) From: Dmitry Baryshkov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , Viresh Kumar , Nishanth Menon , Stephen Boyd , Michael Turquette , "Rafael J. Wysocki" , Georgi Djakov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, Christian Marangi , Stephan Gerhold Subject: [PATCH v4 18/23] ARM: dts: qcom: apq8064: enable passive CPU cooling Date: Sun, 27 Aug 2023 14:50:28 +0300 Message-Id: <20230827115033.935089-19-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230827115033.935089-1-dmitry.baryshkov@linaro.org> References: <20230827115033.935089-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Wire up CPUs and thermal trip points to save the SoC from overheating by lowering the CPU frequency. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi index f08d87bcc37e..638b2201ee0d 100644 --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { #address-cells = <1>; #size-cells = <1>; @@ -697,6 +698,13 @@ cpu_crit0: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu1-thermal { @@ -718,6 +726,13 @@ cpu_crit1: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu2-thermal { @@ -739,6 +754,13 @@ cpu_crit2: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert2>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu3-thermal { @@ -760,6 +782,13 @@ cpu_crit3: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert3>; + cooling-device = <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; };