From patchwork Mon May 8 05:32:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 90941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1934111vqo; Sun, 7 May 2023 22:48:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4t+/5JOGh4AGXHLg3bMV8VrRgsP0Iokacq38nvqbAImwXavxguZTR1x354QivfDrm9Nqd1 X-Received: by 2002:a17:902:da89:b0:1ac:718c:3fb1 with SMTP id j9-20020a170902da8900b001ac718c3fb1mr3788006plx.19.1683524907559; Sun, 07 May 2023 22:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683524907; cv=none; d=google.com; s=arc-20160816; b=l38YH43oc1OzL+kerqY42e+bb5q38KprwymBLvBCqMNLhnl5lPuGEYecRgYnET2GMA BUiGWwbnGCrq//v8PnkNxEh1JGmKWeBxEDqcBWnD+oD9gG79leW0poYCw8cFci7Pa4Cf ik21+VolZrNHGwFdAlRYWtjtCXVrZ9FiqoJTf6bUG5J1AY6ND+LMjfOJp6DfgsSLUBKr /KCa0ubFK/1/Vrjn3ZuOVc9o2x8oL1T7R/pdU7yY1tD1aJZYnqV175bMMPkbvNEbm2mC BlrDIXiaKNt4/sjY209KW7Nufwq8yCtiq66jKcpH2NTyPHPC7e3IhXznoTRhaphdp3Tb RtkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bbIz4fvuYCwrvONNktQcI8xnOLrAY5L/8MWYnsnCwvM=; b=A0ZZ2SnaNb+WZz020BjRtWouS2gpBB7rmZt5LSqR1mFNe+J1YCYr2UgpAWIrH1JAFH l8PPaJjUjtVzpxq2EoqYtG1NEdsSPYH7PLOdbWxzbiOyhTvrxeAslAFmNTrZJYT0ZOyQ uDs8F1JvxAbXKkrLOByNmjI8dP6W4oaOCl60izh0jV28JyO/s76m5wUQLtHFh/TWxeX6 3pl34Sd48N4qyrQiZ7uW7tOxfkNY8G1giTR5Mxl/BwVlxwS7qw6ppdARPwLkLQ1m+wwL TlAF90q+bL56TLZpO0ohz9E195uNchB0YWhAqJSszX3zcEmfwiRdaxIP2nKzVtRwTjuW tCMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=N7RseDEg; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902db0500b001ac39a179eesi7642412plx.646.2023.05.07.22.48.14; Sun, 07 May 2023 22:48:27 -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=@quicinc.com header.s=qcppdkim1 header.b=N7RseDEg; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232624AbjEHFdX (ORCPT + 99 others); Mon, 8 May 2023 01:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbjEHFdT (ORCPT ); Mon, 8 May 2023 01:33:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2DDA17FEF; Sun, 7 May 2023 22:33:17 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3484dVoN018744; Mon, 8 May 2023 05:33:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=bbIz4fvuYCwrvONNktQcI8xnOLrAY5L/8MWYnsnCwvM=; b=N7RseDEgKxChe0ri95ZWxjAYwuFXZlATtYGs0GiloUb6a2c6rk+uoxfJLERYqex8lkbP lIdg97/iy/MGwFVIHJ4eRM//cnD9vna9Y49x/Vg92uxmRLU8wilKs65fzb7WJWD2iM0i ucJV9BQNJQcIVcLdOJRWl7UYzvGbXk2RGkVcFhN3fd110971Lm79CZyOhi1TYyLK30gN yCMRDilqzS9Eu3cl/5aDeuEA0e3R3ETN0MUcX9APL4Ia0dUZKuwa8NxVZz9/A/QnQzjP xjew9BkZ1XYfEC1y6yP9WbHb5Uv2xQRd2dus3hU4ahBoQyLmXUqHY1jBZ2BVBbV07SHd Og== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qdg6hjr5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 May 2023 05:33:10 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3485XAVd014738 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 May 2023 05:33:10 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Sun, 7 May 2023 22:33:05 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , CC: Praveenkumar I , Varadarajan Narayanan Subject: [PATCH v2 1/3] dt-bindings: thermal: tsens: Add ipq9574 compatible Date: Mon, 8 May 2023 11:02:38 +0530 Message-ID: <345a61f6cd56e504e1f82ac2328ffa6d89e2d510.1683523370.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: SSvbwWrEQeGJHkPKfwEo9VacgMb1-gH- X-Proofpoint-ORIG-GUID: SSvbwWrEQeGJHkPKfwEo9VacgMb1-gH- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-08_02,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 adultscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305080038 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765303813818768419?= X-GMAIL-MSGID: =?utf-8?q?1765303813818768419?= From: Praveenkumar I Qualcomm IPQ9574 has tsens v2.3.1 block, which is similar to IPQ8074 tsens. Acked-by: Rob Herring Signed-off-by: Praveenkumar I Signed-off-by: Varadarajan Narayanan --- [v2]: Thanks to Krzysztof Kozlowski for the tip to make qcom,ipq8074-tsens as fallback. --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index d1ec963..ea67cf9 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -64,8 +64,11 @@ properties: - const: qcom,tsens-v2 - description: v2 of TSENS with combined interrupt - enum: - - qcom,ipq8074-tsens + - const: qcom,ipq8074-tsens + - items: + - enum: + - qcom,ipq9574-tsens + - const: qcom,ipq8074-tsens reg: items: @@ -277,6 +280,7 @@ allOf: contains: enum: - qcom,ipq8074-tsens + - qcom,ipq9574-tsens then: properties: interrupts: @@ -292,6 +296,7 @@ allOf: contains: enum: - qcom,ipq8074-tsens + - qcom,ipq9574-tsens - qcom,tsens-v0_1 - qcom,tsens-v1 - qcom,tsens-v2 From patchwork Mon May 8 05:32:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 90939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1929738vqo; Sun, 7 May 2023 22:36:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7P6M+9agDeUdFnnZw5/+VS2Kd9+3zNPr7K+vdRLjX8sfpGvZw/R1DTCOY+RbXKHd9vcyv+ X-Received: by 2002:a05:6a00:1ad0:b0:63b:5f78:d6db with SMTP id f16-20020a056a001ad000b0063b5f78d6dbmr12482077pfv.21.1683524193925; Sun, 07 May 2023 22:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683524193; cv=none; d=google.com; s=arc-20160816; b=Lhm4tEgIzAbHAXO6DjEiK2DMxoarli2GwpA0VeugLQtC5tlcaMnJ9q6DwZHR1PaoVr zKQZh4I46ILAZx+1je7YyCkOIiz7/NDK53EInccX2fZXyUkIGqBwyWwBAWVPOspXD5SB ZRSqsWFXDCRqzsgA79dYROzavySjOFWi1L9Qz62TrX/vfTNi7KcE/hi/Y1CJ3ims0voI M7RmdqlFz0TRGRnYBhXambKi/QE0yRtlgyOXhMKRqWKnjmaIiMBzbb4ti2n6GDvDkYmv F/cF8La7Rm2i3acxaYsSp+jAxb/SzmcdRqjQWzgUnc/u4xlq8u20w6rdb7UQGssNgcqZ nWGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Pd2CPz6IpIHjoAamSUZ93Xd1mYNqPbypMGkfUyfjVTQ=; b=tz8dqGjD014WthP/EpImLv2Vf3lYs+EbYjEVieTb7w5DIzWOG+37zVpOE2C8AimlRb Iss0Uj6rYnknLMDUvtW5vymens5EHXZn3Swo2MoOiADh3g8TLmNTfn75ZyNi/MzMq9EY FKrzvdS82v5ltKb4yCnq8uDed5U7ZLL7ENjSYmqMklw2V2shUjaKDtn2oSid9eV88sP1 YHLdbIHlyPB9cTsNvjkZ6sJNhjekh4jtdvEU0TDJyxuGSBhOsh2iHeXuaZxEfJ8bexKX dx6S5ODWotrvnEsEM3LblcDSJp0fKw9+JbuvgXhUqZ36Whbv58J7WF2duyUohXD2tKUE 3lsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="b8r/IYO3"; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p63-20020a622942000000b00643a1750a5bsi7008186pfp.273.2023.05.07.22.36.18; Sun, 07 May 2023 22:36:33 -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=@quicinc.com header.s=qcppdkim1 header.b="b8r/IYO3"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232672AbjEHFd0 (ORCPT + 99 others); Mon, 8 May 2023 01:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbjEHFdV (ORCPT ); Mon, 8 May 2023 01:33:21 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0ECF17DED; Sun, 7 May 2023 22:33:20 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3482MLQf010789; Mon, 8 May 2023 05:33:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=Pd2CPz6IpIHjoAamSUZ93Xd1mYNqPbypMGkfUyfjVTQ=; b=b8r/IYO3t2MszuI+D51B1RZG06ooLFKy/KnOsUBBD+WqERebF5xM0JMfHpYkmGs8rP5i atmouJjeUCMX0HO/eF+rWJlhKlEh+fCrJgGEGMjwmgCF9Gu1bs3can8v4+9CzwcFKpfZ WwblpI04yFC8ImeY3xing/ZFSPwv9oUP6OzlHx2F03lXdWCSj3fFOZU3n1v6IbG0u6e3 sxbyhbipPl4jiwPOlzhUWeNRv+wMjVcZZ1P0bQNbsrBFmxYLx3ltyT8vUtPZLx2v7U2l v79gO/pBiw0b3FKp7FmQDO3bv9nKGgyoSkP+duArGcqYpcjW8liOQF6EB7Ya9RS0DPHF Vw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qdc8xk0bw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 May 2023 05:33:15 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3485XE3j009551 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 May 2023 05:33:14 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Sun, 7 May 2023 22:33:10 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , CC: Varadarajan Narayanan , Praveenkumar I Subject: [PATCH v2 2/3] arm64: dts: qcom: ipq9574: add tsens node Date: Mon, 8 May 2023 11:02:39 +0530 Message-ID: <81653f1ac4bf42e57a7d6c4f1af844846d091224.1683523370.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: DPFqz02X9I4u8XaVAII6tvPS2_gBvDFl X-Proofpoint-GUID: DPFqz02X9I4u8XaVAII6tvPS2_gBvDFl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-08_02,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 mlxlogscore=877 suspectscore=0 malwarescore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305080038 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765303065361969738?= X-GMAIL-MSGID: =?utf-8?q?1765303065361969738?= IPQ9574 has a tsens v2.3.1 peripheral which monitors temperatures around the various subsystems on the die. Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Varadarajan Narayanan Reviewed-by: Dmitry Baryshkov --- [v2]: Add "qcom,ipq8074-tsens" as fallback compatible --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 93e3026..85bba6a 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -1056,6 +1056,15 @@ status = "disabled"; }; + tsens: thermal-sensor@4a9000 { + compatible = "qcom,ipq9574-tsens", "qcom,ipq8074-tsens"; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + interrupts = ; + interrupt-names = "combined"; + #qcom,sensors = <16>; + #thermal-sensor-cells = <1>; + }; }; timer { From patchwork Mon May 8 05:32:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 90940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1929921vqo; Sun, 7 May 2023 22:37:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Fazcy9qxWXfnjmY3XNUEgqcQ1z69NjKLpEacyPrMuaiTVlqO3i7Tvek0oZE89S0+hPGBZ X-Received: by 2002:a17:902:8687:b0:1a6:67e1:4d2c with SMTP id g7-20020a170902868700b001a667e14d2cmr8870361plo.6.1683524221814; Sun, 07 May 2023 22:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683524221; cv=none; d=google.com; s=arc-20160816; b=akJ6nozAsTmvEPGX2qC6ylAWJJ9KHO28CGGmQf7++qW6+58WO6fbDIM86v4rEwjGlY D9vY4wyHMdZB9PSVRyUVrQ4TEn8yjpVQ7ZkeaqRPig9NCGHehnPlWX1BycHdD4AvU4aV x+qZqtSotM2o8rIKgCWlwVfvHDJJ+mx3i4Z+zN3oCd74lM8uTX5cy+7tHfK1VIiV6+gm MIAGdcBC5G9czioA2vuncMLrs5KLLff8CeWkdQAvtm/Nw+gIj2tZFOVBQR2eOgHKPnxz nHnSsfI+D9qodGXyi7AWO/90xyi1WIchwQpZR5Xojr53G6Ho9/hZ8CbWfbUZMauX+ZtS UnIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bFPmGB0u7Dr2+BTxmqHDHeKdMFaRv76B10VpO7FvjMM=; b=GKWMCvi+XfgHQIFOGUqu6pgrHsDGw2jegh/p56ZtcbFN12j7byFOy1IgYa2o/riP8l LIZ+yX4+KJRBeMwtNRlANx2O0Q/w9n3CQoHB3B/uXhJoinVJp8hyOVf1HryvtKFDfJYB cVA29LSI+ZerhPO/bspXn9dSHvj+RQNxEFbsUzLOL35GaUllqA777yYnx+Qkk80FVAhW ux4B4b/7vVxkl9dQQPnQiecfY3DeDtQlVoVxj9/0hkf5eC22YOdUaUjDmZGN2+C7IFO0 xDmIcbStqjJfmUtWYBQI7vtadpfkd2VfVRXMxCMX45XRvtH3gVNfAvGsgivxPyWuExTZ myTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KwrJMdo7; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902c40c00b001aad9b73ff2si8095991plk.285.2023.05.07.22.36.46; Sun, 07 May 2023 22:37:01 -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=@quicinc.com header.s=qcppdkim1 header.b=KwrJMdo7; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232686AbjEHFdi (ORCPT + 99 others); Mon, 8 May 2023 01:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232684AbjEHFde (ORCPT ); Mon, 8 May 2023 01:33:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F5B518924; Sun, 7 May 2023 22:33:25 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3484ZLUs019912; Mon, 8 May 2023 05:33:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=bFPmGB0u7Dr2+BTxmqHDHeKdMFaRv76B10VpO7FvjMM=; b=KwrJMdo7uPVvmjsVVrfnWxfHVPFVGSO88P3Tv9zZnDpfK7sDYztzrzWQNHMpA1HRMOW0 vx7LNeo4JO2JUKdiNyKicvyZ/XiU8Uk4RNQZv7z5dfMJ7ZfW5dKemAIkY46eoBXgZMnz riG/3dks0gF8SuuwPtuK06Nyzs1wwdT3RKqiQb6GD/ggFOhc2z/AaOn8EhKAMn6zBTRe znzkF9P2RJhhf+n8vFtY0iNxAOMoYVqODhv3GNypLyjp7vrvNdHWhO0SxTUk7KdmJNBl B0uCIrV5DtO3/0gZG/fuaKAqMpOaFS4g+ZKzex5/a+WjyKvSP+a4NzT+2R+CYM2ctBqy Fw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qesg884mf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 May 2023 05:33:20 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3485XJuj001160 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 May 2023 05:33:19 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Sun, 7 May 2023 22:33:14 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , CC: Varadarajan Narayanan , Praveenkumar I Subject: [PATCH v2 3/3] arm64: dts: qcom: ipq9574: add thermal zone nodes Date: Mon, 8 May 2023 11:02:40 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: eOmtJKzJsMMY-feRCClXkd4QBelCuwka X-Proofpoint-ORIG-GUID: eOmtJKzJsMMY-feRCClXkd4QBelCuwka X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-08_02,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 phishscore=0 impostorscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305080038 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765303094106199567?= X-GMAIL-MSGID: =?utf-8?q?1765303094106199567?= This patch adds thermal zone nodes for the various sensors present in IPQ9574 Reviewed-by: Dmitry Baryshkov Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Varadarajan Narayanan --- [v2]: Rename clusterX nodes as cpussX nodes [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 85bba6a..5a29ee7 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"; + }; + }; + }; + + cpuss0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 8>; + + trips { + cpu-critical { + temperature = <125000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpuss1-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 = ,