Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2185815rwi; Thu, 3 Nov 2022 13:49:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6L0U5EWqeAU0QbHlGz+I215BJZXKeqcnqotAt3901tgC0T/0qqwmYa/j4ElwblXeOoYb/G X-Received: by 2002:a17:906:2681:b0:783:6a92:4c38 with SMTP id t1-20020a170906268100b007836a924c38mr30868002ejc.75.1667508544078; Thu, 03 Nov 2022 13:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667508544; cv=none; d=google.com; s=arc-20160816; b=hXLyzL0Z4rPcqy+gTJrjfzFLKQ072vcY8QFd4f/p5OtZKAPCvG47ShSkGXA7pdVJ/s JwgAIm/vhCyabSfco5FZh0KNIdeEPezSgGfuJ6AQY8IH5O7+4GK8BWxhVEZ3FkTTFbZ5 5utPJ5nl5e16OgxBIoYu5VgC9SXDh6T+OORKbDsXRkeqv1tc1XcMPszTEcHN8+satZfO mtvUhr5RId+pQ1ujx8RIa74pVv3lIy/j6EX/KBCddtwAeXb97uzvPjzwPKrb61LxXq3R FT1a/oQa1f3JW7eHkKr2pDeYjsg+pP2k9ynHYHfzXoFwaPWHKc747tOJxgkidTUI6RfB D1ww== 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:subject:user-agent:mime-version:date:message-id; bh=1Meq4Pv/QqGOX3UkEEkZ0wd/R3ojZnz7HPWDMsXJG6E=; b=PPsyIP0ucnVZZKUou+YZjZEi6GM4b9DvhJOgqRLvP9phprrpiaod8Ujwx7qcAnWaeA DbF5aWaMbFT0T4kn7Smz9ucmEGjpQKfbtqdJ5ogsvPeUohl4n3AYEyEIGMqIEthCsoeL t4N9rLvZOBn9JQYRpQUCXUqoEyqn+dMu2GYuMrEFsCPRta379ZBOLzni1i32gwnMOQcS fqs/cWhdSKFg7HR0bxFcgjJagZ1uWIwBLZCNX9qkE/UBz7y+aeGaoOeeOREodW3wnfMj 7Ex6kmm58vI7ExyT7OnZOHQVa667pJUbzIxUxJbwcXPLYZzhkD24dkosFTaRbeokiBD9 ojkw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a056402355300b0043e5ca9a0e2si2497706edd.628.2022.11.03.13.48.41; Thu, 03 Nov 2022 13:49:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbiKCULg (ORCPT + 98 others); Thu, 3 Nov 2022 16:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbiKCULb (ORCPT ); Thu, 3 Nov 2022 16:11:31 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F23B20341 for ; Thu, 3 Nov 2022 13:11:29 -0700 (PDT) Received: from [192.168.31.208] (unknown [194.29.137.22]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 82DB21F8A3; Thu, 3 Nov 2022 21:11:24 +0100 (CET) Message-ID: Date: Thu, 3 Nov 2022 21:11:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v4 12/12] arm64: dts: qcom: sc8280xp-x13s: Add thermal zone support To: Manivannan Sadhasivam , andersson@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org References: <20221103095810.64606-1-manivannan.sadhasivam@linaro.org> <20221103095810.64606-13-manivannan.sadhasivam@linaro.org> From: Konrad Dybcio In-Reply-To: <20221103095810.64606-13-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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/11/2022 10:58, Manivannan Sadhasivam wrote: > Add thermal zone support by making use of the thermistor SYS_THERM6. > Based on experiments, this thermistor seems to reflect the actual > surface temperature of the laptop. > > For the cooling device, all BIG CPU cores are throttled down to keep the > temperature at a sane level. > > Signed-off-by: Manivannan Sadhasivam > --- Taking into account your explanations from our thread on v2, Reviewed-by: Konrad Dybcio Konrad > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index bdaacf1abf9f..60dbc736f4d7 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -29,6 +29,52 @@ backlight { > pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; > }; > > + thermal-zones { > + skin-temp-thermal { > + polling-delay-passive = <250>; > + polling-delay = <0>; > + thermal-sensors = <&pmk8280_adc_tm 5>; > + > + trips { > + skin_temp_alert0: trip-point0 { > + temperature = <55000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + skin_temp_alert1: trip-point1 { > + temperature = <58000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + skin-temp-crit { > + temperature = <73000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&skin_temp_alert0>; > + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + trip = <&skin_temp_alert1>; > + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > vreg_edp_bl: regulator-edp-bl { > compatible = "regulator-fixed"; >