From patchwork Mon Jun 12 05:39:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 691749 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 90F1FC87FDE for ; Mon, 12 Jun 2023 05:40:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235948AbjFLFkP (ORCPT ); Mon, 12 Jun 2023 01:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235960AbjFLFjy (ORCPT ); Mon, 12 Jun 2023 01:39:54 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D27FB171A for ; Sun, 11 Jun 2023 22:39:43 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so4426469e87.2 for ; Sun, 11 Jun 2023 22:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686548379; x=1689140379; 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=9UX7NK4V+9Hzbg8jKZOwQnFK6tOBZPs2ooDLmGE25jY=; b=AzpjJjf1rRnX9/8zALf3MesyN9OaLzUS92PcVFWMfUfz61cX6SINAyaN4rtAf0Cvp3 yJyHbyTKfbyg6l79QWpNVS+eG379IO/ympACeqdSJdwFhPQVHr2H4RZ56dOi4I9iO6dw WuGJV/Y9mOGgmqEeaAr7W0VAqENtiV/KfSD/cgk3OnxkiMOKGBGCjlsQos2JGxLxECB/ xNbH0a2IcBH25Byze5J6+IJi02GDsxQQaQ/SdW8iuubwTJxJTMp/L1smdcRqeWB18nU/ /ZnnudIsga+wsvHHLPFYCCmBUgH51cVLJJZFZ3htw6zTbzoSnxIKAT5rlmjmKthkD/tA 326A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686548379; x=1689140379; 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=9UX7NK4V+9Hzbg8jKZOwQnFK6tOBZPs2ooDLmGE25jY=; b=kIKd4acbRRrorYWiCZrafWirr1YDeL9hm789EO947+I/oy7mUe+DkqgMljS1wxzUn1 cF/QokKXxceLOsJIBQkjgAJqsjUQnOr+kSPFqIWjgKdALD+T2JceatZEGmlxHFhI43mA 2KAGSo8o5GMouj2pjrmHYZ6BthNVqYiYe0voiN0nJjnWONn4FZXDKmyXCCeeYGdF/VZo JqQPSCKaBAzJrClHHptJm0cohtR3X6xGi6POQqKNApZMFE9EMrT2Fn0rZLpYi6Nrx6V8 1kIZb98lFM8REfKtchtCIItBK3Qdr+5fS6dThzx0XR3AbSvbWFViELp5jp1vI/+/20LU dfjA== X-Gm-Message-State: AC+VfDyM3W3iuojpZdg2EnPzIA+L/eUlV2YFhxy9aMnvjb1aSlZ9c7pD FR0vgmczbs4KOLSEtmNdyL9Rhw== X-Google-Smtp-Source: ACHHUZ4wzWtxLIONvLUsoHjLluwV+c2yaJibWU04gw+Iy3i1r8PtS/J7Hs69VzzP644zHXsD6fSuag== X-Received: by 2002:a19:6d1c:0:b0:4f6:424c:4fa8 with SMTP id i28-20020a196d1c000000b004f6424c4fa8mr2903128lfc.17.1686548379413; Sun, 11 Jun 2023 22:39:39 -0700 (PDT) Received: from eriador.lan (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id n6-20020a195506000000b004f38260f196sm1324125lfe.218.2023.06.11.22.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 22:39:38 -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" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, Christian Marangi Subject: [PATCH 16/18] ARM: dts: qcom: apq8064: enable passive CPU cooling Date: Mon, 12 Jun 2023 08:39:20 +0300 Message-Id: <20230612053922.3284394-17-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612053922.3284394-1-dmitry.baryshkov@linaro.org> References: <20230612053922.3284394-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Wire up CPUs and thermal trip points to save the SoC from overheating by lowering the CPU frequency. Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-apq8064.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index f35853b59544..82b381b66cfb 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include / { #address-cells = <1>; #size-cells = <1>; @@ -1279,6 +1280,13 @@ cpu_crit0: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu1-thermal { @@ -1300,6 +1308,13 @@ cpu_crit1: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu2-thermal { @@ -1321,6 +1336,13 @@ cpu_crit2: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert2>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu3-thermal { @@ -1342,6 +1364,13 @@ cpu_crit3: trip1 { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert3>; + cooling-device = <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; };