Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp456993rwr; Wed, 3 May 2023 00:51:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CESrGplxoPcPhJeD7hDWkf0Iyo+viLoX6ogx/IKVbbmmDVFojSaam+I7RBMK9suBj4tFr X-Received: by 2002:a05:6a20:a68d:b0:f0:929c:e8c5 with SMTP id ba13-20020a056a20a68d00b000f0929ce8c5mr21984458pzb.35.1683100289202; Wed, 03 May 2023 00:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683100289; cv=none; d=google.com; s=arc-20160816; b=Ej6phtRQaVdz8SFxISbCtbWkkrti1ZdbPPggXeurguKIAr/Rs+TxfNhEimBD+RUmtI QIxrgAF3e9hzbnBJKUu8uX/as132xl8ct5AZejeGV5sMsT3OZYLG6ycvG2jCZTC96hSU 660LekpMJ0OLDkfGxer1nqdvlncf/lFaaDQzU+XWLJhcvnDC4ZEjLpkz1OL1SuLuCZYZ TcGH6mTRYsAXpjSP/B3UyWtkEG4WnHHU/Ei11oF/xvNBf9LgRhKGpULc1Ly0znWKwCeT JII29tsckNwz0vFGmBOfGhoQKMG26MfM2bsv38kuNPqD7MZVDXUXzZLy/P77uZ1xroU8 xrxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=az3ZjZw5c+oMwn1F0ZqH0yI5AWLiLyNI1BlVOd3ymQ8=; b=TYEM/5JMOZcK+9MEDIsa50i8q/G3OVP5DJ6jH12YMSHrl4stUzxSAj+EZpbEiQkCkm CESI4w260G0DB1Pu3eZ6wiQBCHaHgkJXzJ+6OfmK4Ebji51ay3ah5Wlsmh4j7y/+huCc Ki0uHhEXYxXNy3SfB0m4BvdFHMUoUG3puK10xFLetKPvi0X/rCvkRtjZ0cVhqKQ2aRxw D+scAL4KcV0btXIfXFZEyeCCy88kG3Z1igRKun+o2ag2+9II00bmgCn2H14Yz7cDhFgt KYl8ELCYEoKv5hb6sapvDhp3NY095x5yJWqp1kjUXV87Xng9zxeceGKW3i3rwV+AC9wy 1GxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zir+QTa2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a630243000000b00528c543a903si11511537pgc.329.2023.05.03.00.51.14; Wed, 03 May 2023 00:51:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zir+QTa2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbjECHpF (ORCPT + 99 others); Wed, 3 May 2023 03:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjECHpC (ORCPT ); Wed, 3 May 2023 03:45:02 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BBA82120 for ; Wed, 3 May 2023 00:44:57 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-55d2e87048cso2323917b3.1 for ; Wed, 03 May 2023 00:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683099896; x=1685691896; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=az3ZjZw5c+oMwn1F0ZqH0yI5AWLiLyNI1BlVOd3ymQ8=; b=zir+QTa2OoYRyEL82qbdMjPM4PdjHMEJZY1MWJvAskJCX9GmJP35sQw11Pz/ae8iZI LK1uvUO9Yb09slOZ0h2VU2o6LxBLLXBPAn0lM+i23XeI31IBGAMn9LDnPf85h3nXEu7W /7lcfLKxWlWg80qPzKTTHQsA0tK94v1RQFJwLfXKFdbVSjKVvWS8G1q1Aq1g8CdRJW2P RiYMX4qkZDTKuTpQoq4xXiIT9r7zG3ZeWzZP8UBf959kQlWLRLqWHI1EskALyQJ+giZY SyglIN3PcF7IDp3j0DC8O9D2GxfaD5oD/I+04S+wsp9y3Rb4KP/PdyCj9ym1yV+JaqP9 sf6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683099896; x=1685691896; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=az3ZjZw5c+oMwn1F0ZqH0yI5AWLiLyNI1BlVOd3ymQ8=; b=mFMeeSGupIeqy9LIdo7nT3zIIf068SVQ+TfEEZPUXgFkQQJ8qC0PGpp0QKzYOfNKmJ 0J5qrH2xj7696XWKL3jKqB13GyrfpRxDOPWh0sHuu/2AdMH6AX1pjivENq7D0vzRCrQv fuZolAAdph+529kUhtXK0Y01YWrF8sAgpim3P5LS5gZS+693xTsFRA+XKISOuhR1eP8Z Yt9vPZVXIbxnuRenchmCrmSJuVF7ZrGD8plVMTJD1HPqkvMAtTDr3cH5QbfuRq8rxQ9n 00/JsoCvy5Hf0959Nebbi6Vw4JPUppTjvWagUL6CwoVbLfDlqz/WDR8H1ppFpuPCLjN5 Y88w== X-Gm-Message-State: AC+VfDx/hNBDhdmxtvBGd5oVtePgB6Ax3NUMOen7+ZjYbCCHDqOxCKHt 2BPsUDdyAdVkyPFGsH5uviUADQ== X-Received: by 2002:a0d:efc2:0:b0:556:ceb2:c462 with SMTP id y185-20020a0defc2000000b00556ceb2c462mr17663236ywe.2.1683099896640; Wed, 03 May 2023 00:44:56 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id k63-20020a0dc842000000b00555ca01b112sm3283263ywd.105.2023.05.03.00.44.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 00:44:56 -0700 (PDT) Message-ID: <0a7caa8d-289a-d76a-d57b-611b178fdc34@linaro.org> Date: Wed, 3 May 2023 10:44:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 4/4] arm64: dts: qcom: ipq9574: add thermal zone nodes Content-Language: en-GB To: Varadarajan Narayanan , amitk@kernel.org, thara.gopinath@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Praveenkumar I References: <65d05b81201a8d24c14f0d7564e708348a368068.1683027347.git.quic_varada@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <65d05b81201a8d24c14f0d7564e708348a368068.1683027347.git.quic_varada@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2023 07:46, Varadarajan Narayanan wrote: > This patch adds thermal zone nodes for the various > sensors present in IPQ9574 > > Co-developed-by: Praveenkumar I > Signed-off-by: Praveenkumar I > Signed-off-by: Varadarajan Narayanan Reviewed-by: Dmitry Baryshkov one nit below. > --- > [v1]: > Fix node names > --- > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 208 ++++++++++++++++++++++++++++++++++ > 1 file changed, 208 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > index b22b999..bc4d061 100644 > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > @@ -1067,6 +1067,214 @@ > }; > }; > > + thermal-zones { > + nss-top-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 3>; > + > + trips { > + nss-top-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + ubi-0-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 4>; > + > + trips { > + ubi_0-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + ubi-1-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 5>; > + > + trips { > + ubi_1-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + ubi-2-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 6>; > + > + trips { > + ubi_2-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + ubi-3-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 7>; > + > + trips { > + ubi_3-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cluster0-thermal { I think we were usually using cpussN instead of clusterN, but this is really a minor issue, we don't have that standardized. > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 8>; > + > + trips { > + cpu-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cluster1-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 9>; > + > + trips { > + cpu-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu0-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 10>; > + > + trips { > + cpu-critical { > + temperature = <120000>; > + hysteresis = <10000>; > + type = "critical"; > + }; > + > + cpu-passive { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + }; > + }; > + > + cpu1-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 11>; > + > + trips { > + cpu-critical { > + temperature = <120000>; > + hysteresis = <10000>; > + type = "critical"; > + }; > + > + cpu-passive { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + }; > + }; > + > + cpu2-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 12>; > + > + trips { > + cpu-critical { > + temperature = <120000>; > + hysteresis = <10000>; > + type = "critical"; > + }; > + > + cpu-passive { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + }; > + }; > + > + cpu3-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 13>; > + > + trips { > + cpu-critical { > + temperature = <120000>; > + hysteresis = <10000>; > + type = "critical"; > + }; > + > + cpu-passive { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + }; > + }; > + > + wcss-phyb-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 14>; > + > + trips { > + wcss_phyb-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + top-glue-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens 15>; > + > + trips { > + top_glue-critical { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + }; > + > timer { > compatible = "arm,armv8-timer"; > interrupts = , -- With best wishes Dmitry