From patchwork Mon Apr 3 17:36:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 78648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2474529vqo; Mon, 3 Apr 2023 10:43:10 -0700 (PDT) X-Google-Smtp-Source: AKy350bFz5gMqPJE/dYhqytciiHfUQC/QcByPhchIJudc14sRiTHkdqzaHgZMMLJ5o7omI6lwYfq X-Received: by 2002:a17:906:32d8:b0:946:e68f:402c with SMTP id k24-20020a17090632d800b00946e68f402cmr19266681ejk.9.1680543790075; Mon, 03 Apr 2023 10:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680543790; cv=none; d=google.com; s=arc-20160816; b=JYhn+fCW3hrk7zop4TPCu8/RsvSbWnp65cnnVh23/DEyyTOKNC1+J7v47YPU38EhrA CDTx2a6k5J43yNJcs0eBYa6eERcrO8/FmHb+RLahdDl3U2+rlAVq7wcDIw1ANG9d1Zsq kRDn2K9ZcHlIadnWol1M9qoPRAq3zNMExYo3pm0u85ib/robUJMIQjarpoUC52nP2Hi1 ZyIlG5Pwbczb2UuvVXPgwF8+Q++hRq3/ncWWhs4v8Sha+DTBFfLm3uSzFv/I/MgHGPfh zKNsyIki8g64qMvQBLiLsjp9v/dbGrKeYqKprv42NlCsgugKnuwEs4Ai0xwsGOB6iprx xsWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7V+9COwDub12Y3ZvDhgfcwHpXceDSmjh1tUTcAgEHS4=; b=F6L1XfjRZ2ctJ4byhNuEFFNnb1LmI3OIzAcFX/vxtVtObOtM8G7mBQRYXlKXjADF6c KNvJqFMxgE2T3P2sdfdXDNElEBu1q225XXq2phY8RkoYVK43qd/ojmfpnIdqSBS44eku jG1YzfhyNwxqZ30j96zcrnSUpe6Xm2NqXf76OFdJVIOjEiqm+uNwtZxt0xwbBLC8wBB7 XQPpExuHThiwHDSv/G7s6+OxlvWiO8oZ4qL8lpFV/SuZas6uZL3HTfvQb4EZK2632efx gJth2RQ0epJh5I8lhmCQFthkVOnjpt7BCkbA4nLRgv8Eg4qmTn7fqgijccpuauj14zrc fDwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXBrJ72s; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a1709063ad500b0092fdec58af8si57829ejd.430.2023.04.03.10.42.45; Mon, 03 Apr 2023 10:43:10 -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=zXBrJ72s; 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 S232007AbjDCRg6 (ORCPT + 99 others); Mon, 3 Apr 2023 13:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231687AbjDCRgk (ORCPT ); Mon, 3 Apr 2023 13:36:40 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF2F02D53 for ; Mon, 3 Apr 2023 10:36:34 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id a11so31172457lji.6 for ; Mon, 03 Apr 2023 10:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680543393; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7V+9COwDub12Y3ZvDhgfcwHpXceDSmjh1tUTcAgEHS4=; b=zXBrJ72slB5px1JpcOlFvSmJULBMHnXlzAiZpBwZcmFmIEA6bF7DzJykzJCiHU6fN5 6F3eB5pt4thY/PEKfAe3s6sstG25+dpDMSO4oT7zqkcJmzXKHAmko4q8hYDsei5WYpoi Aa8IL2nsFMP3KxGXkWOncIVKgQTCp5hz32e9BFWxb9pmYXpYq9H2Hnelnhr7O/fHzo4w Ta9mM6DFR/utEJ+Zr4J9zyOzcmbvNXtosjhB61CAkDesGFO8r5gPnRuc+8iuHy1RcdK5 3ZLDE41ezBI1xthzwpCIu+cQfLptwWrvhnxNtCIHqhu41uMZTJQRHLcOkhIua1LHq3Qx uxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680543393; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7V+9COwDub12Y3ZvDhgfcwHpXceDSmjh1tUTcAgEHS4=; b=luvD70EcyvVyA1pp6WeaoIEukzpJtCILVDcO8wt0QXvNI7tn/NWEBpZ249yV/gSFVx nHgc3rRgbX/CzwsK+/oI5+nRlm+YfRI3X+qV5/pFQdsuns5M3TLRwe7J8aGK7J2Y0UtX MyKPZqN0tWtXQVCUamRBZlZ77tdm2jVUosyDB+h5naK2C+Q4teyM3XiY7MKwhO+xZK8j yLz7muaaXxlIygQTp70iQ+AtVS9C5xJjoOe3jbhZU8yoTpVI0V59TmdsFXNKiOidmmiW 6KVHpCRLh5ZVytKWYX25Ew9EVNe7FiDYjpTAgvRU0MGGZIT+lvkMJ/sGxaAmoB9CJaxK 7kIg== X-Gm-Message-State: AAQBX9e5owjX6FUyi6ZVtsAZIY+RH3ZKwPyEQqggUu7CN2rsJyZdrFL/ KPA8KabiTXlAXtzw4eTkcHqLDw== X-Received: by 2002:a2e:8086:0:b0:2a6:2894:c1e6 with SMTP id i6-20020a2e8086000000b002a62894c1e6mr70116ljg.28.1680543393030; Mon, 03 Apr 2023 10:36:33 -0700 (PDT) Received: from [192.168.1.101] (abxj135.neoplus.adsl.tpnet.pl. [83.9.3.135]) by smtp.gmail.com with ESMTPSA id v2-20020a056512096200b004cc5f44747dsm1871094lft.220.2023.04.03.10.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 10:36:32 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Apr 2023 19:36:03 +0200 Subject: [PATCH 5/9] arm64: dts: qcom: qcm2290: Add thermal zones MIME-Version: 1.0 Message-Id: <20230403-topic-rb1_qcm-v1-5-ca849b62ba07@linaro.org> References: <20230403-topic-rb1_qcm-v1-0-ca849b62ba07@linaro.org> In-Reply-To: <20230403-topic-rb1_qcm-v1-0-ca849b62ba07@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Robert Marko , Das Srinagesh Cc: Bhupesh Sharma , Vladimir Zapolskiy , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680543384; l=6064; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ZBHwGxxehL+0owRFdXHZJ0e8cp4AHvcKk4/jCwnA2m0=; b=+3Qrae1rdVWhCWGKLtdGUrAoOyfgfvuVOYG1WtQEZyS9f5PZdZHtpfJiR+jIsqg5coyl3+GAJfqL 6e8eCfJEB8kFZWJBBt/+B/F0ONWo6oPRDbsaMQ/617XgeoyaALE8 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762177885066282164?= X-GMAIL-MSGID: =?utf-8?q?1762177885066282164?= Add thermal zones associated with the TSENS sensors. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 272 ++++++++++++++++++++++++++++++++++ 1 file changed, 272 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index edfa18190454..1ea558bc35dc 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -1132,6 +1132,278 @@ cpufreq_hw: cpufreq@f521000 { }; }; + thermal-zones { + mapss-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 0>; + + trips { + mapss_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss_crit: mapss-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 1>; + + trips { + video_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + video_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + video_crit: video-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 2>; + + trips { + wlan_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + wlan_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + wlan_crit: wlan-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpuss0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 3>; + + trips { + cpuss0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpuss0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpuss0_crit: cpuss0-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpuss1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 4>; + + trips { + cpuss1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpuss1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpuss1_crit: cpuss1-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mdm0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 5>; + + trips { + mdm0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm0_crit: mdm0-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mdm1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 6>; + + trips { + mdm1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm1_crit: mdm1-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + gpu-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 7>; + + trips { + gpu_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu_crit: gpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + hm-center-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 8>; + + trips { + hm_center_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + hm_center_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + hm_center_crit: hm-center-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 9>; + + trips { + camera_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + camera_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + camera_crit: camera-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = ,