From patchwork Fri Jun 2 11:03:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 102493 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp950136vqr; Fri, 2 Jun 2023 04:19:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BWhOmKGNSOD8JNVre6U46bP3vz8TfIYoSHDG6B47qScHaKFHjjGcvumGNVnhvxHVvaozJ X-Received: by 2002:a17:90b:388c:b0:258:7fae:dce with SMTP id mu12-20020a17090b388c00b002587fae0dcemr1981790pjb.24.1685704749437; Fri, 02 Jun 2023 04:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685704749; cv=none; d=google.com; s=arc-20160816; b=Ppv3iMq9qiWgN5cQjolWIzVSru7eDxb98i1nUdFcRe7qmATA351xqfwYfFg7KcIocg mGn6xgZ52Z1Qq8F7f2XsF9yWlyMz42Vja0dvh5rUjqJmwGHtoatH7z7H8QpiLqePt7+S NY4dEcbyYoWFmZwFkKxQjYT7ob3H4eZB3VQN0PqWaWK4A8JwOPMIN3NrtKfnpH0J9BK1 3HzXyprJY+gSGczRan3ItSmNYDOPsH38Sj4Ta4nuPmGs/qSTdGSynA6jWXM02/AOpx7M Yo6fldbqchEK06hQVVP76HfubCsYb7d4PbDPE8C4K9biNdW5/agPtx3hxqM/JNrEPbIy PYBA== 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=Bk8ZQLXKXg7MG36rOTQbk7zW98lzKa6E9RwBjKbQxFE=; b=mlSdX1eO4RxmZpmFlDlZ4dDZ79NRrrBEz2H1M3cXULzFLapBRercqVYhwscbDyxDNh Gszf3Kc5xOdNx59Nxr1Uu/ueVMrqJeslO9mEtz0xN0Q9cakk5OL9WOCagx4dIvDO3Hv/ t/pXgbFviIW4aL/awGoF+4QAC3aYBwgE9L8LifGugQ2ImQKpi5rOE5eZ/YO5ZpvSRHcl pfypQ0sXH+kPCOvbqxkPy/7RpHnxxWG2QSOsbsm2V4pjKuyG6dRgmJIn4fXp5rwBhKzH fshSdQVw7nkwmmxfeLegVcrgft5I3XV8vFqCvGCYevN0jQcLIzNfQqXeiZVhx2HxDBx8 0pHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YnS2qPwS; 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 b9-20020a63d809000000b0050fa9bc63cbsi834086pgh.432.2023.06.02.04.18.54; Fri, 02 Jun 2023 04:19:09 -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=YnS2qPwS; 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 S235804AbjFBLEV (ORCPT + 99 others); Fri, 2 Jun 2023 07:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234767AbjFBLES (ORCPT ); Fri, 2 Jun 2023 07:04:18 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BE3137; Fri, 2 Jun 2023 04:04:16 -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 352ArvWc000361; Fri, 2 Jun 2023 11:04:10 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=Bk8ZQLXKXg7MG36rOTQbk7zW98lzKa6E9RwBjKbQxFE=; b=YnS2qPwSWmRe23xSm7ckxB7nygo7ZzSbb0AhvBIBMUKhOX9jxSQ1iHM6qlyTY/UU42Sm uhDEEaIhfrDDw2aXXjWs+hxoUq/eCiasxwjJjMiXGvd4R7EcOME9q1MS4OD8qwZpx2tt TboiYaVSfwyVpycg4j6ERlOSlv19u8CVmMr9tCQDGNRKfqea3hDAQ/94moN8tKciyPxW tuOrc9A1HH0N5eoR4PQj5/wucif9rCIr5lvjUAaaZFNnhBfs5RPchO4OQSUJAp6UIhMh nGOm1mO+Jgtz6dELWzGrCeswwxIdkYPRI9p4W9EQ3IJsBdTwPOvm52F632geznVvKqlN zw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qy1bchf7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 11:04:10 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 352B49cP006041 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 11:04:09 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; Fri, 2 Jun 2023 04:04:04 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , CC: Praveenkumar I , Varadarajan Narayanan Subject: [PATCH v5 1/3] dt-bindings: thermal: tsens: Add ipq9574 compatible Date: Fri, 2 Jun 2023 16:33:50 +0530 Message-ID: <1daf835b3c77fd84ad55b0195816fabc3f0ab800.1685703605.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: LyBJT1tXh83vM9kL2xmpQs4KRRtYWb67 X-Proofpoint-GUID: LyBJT1tXh83vM9kL2xmpQs4KRRtYWb67 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_08,2023-06-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 malwarescore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306020081 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767589543396698984?= X-GMAIL-MSGID: =?utf-8?q?1767589543396698984?= From: Praveenkumar I Qualcomm IPQ9574 has tsens v2.3.1 block, which is similar to IPQ8074 tsens. Signed-off-by: Praveenkumar I Signed-off-by: Varadarajan Narayanan Reviewed-by: Krzysztof Kozlowski --- [v5]: Fix dt_binding_check & dtbs_check errors without removing existing entries [v4]: Add description about IPQ9574 and remove unnecessary additions to the file [v3]: Fix dt_binding_check & dtbs_check errors (Used Documentation/devicetree/bindings/display/allwinner,sun4i-a10-tcon.yaml as reference/example) Drop 'Acked-by: Rob Herring' as suggested in review [v2]: Thanks to Krzysztof Kozlowski for the tip to make qcom,ipq8074-tsens as fallback. --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index d1ec963..e7d0341 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -67,6 +67,12 @@ properties: enum: - qcom,ipq8074-tsens + - description: v2 of TSENS with combined interrupt + items: + - enum: + - qcom,ipq9574-tsens + - const: qcom,ipq8074-tsens + reg: items: - description: TM registers From patchwork Fri Jun 2 11:03:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 102484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp944048vqr; Fri, 2 Jun 2023 04:08:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+ZIgDNSj69ArdPXyqpAuFvuCYmb/ZisGJOZHarfkZHpXrpaDiCW5Kh4tu34c4AYoioQKR X-Received: by 2002:a05:6a20:160b:b0:104:35ec:c25c with SMTP id l11-20020a056a20160b00b0010435ecc25cmr9535828pzj.41.1685704133157; Fri, 02 Jun 2023 04:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685704133; cv=none; d=google.com; s=arc-20160816; b=wnllBHJrGgLz76e3X331H+fXmGQWBls4yNoToWXG24h0U4I7tc+Y4KUimvWgD9ZpVu tLd2pC2US9ux3KkXp9Jsb7cL7dE5DaYGUl6U7QpjE4udpkkGf7dXBNHZqt0TCftJGA8E /4zcEo5uAM13sTBy6jMmfJXLVpcVkj5r4ygz7hNZmbt1BMGkytz58rbtcTUSiKUr1wFt eDinkP+SrhN8RzVmM/i9HRxafUNlSyROTeMcyESugga/XpjAcIVXK1d6PDfZrNZiGuIy euQs0EdeCkm04tuw/nqwat6z2mdRSnjh0AcpOuuT3JyNGq87HFNYXhtpx3ZJtW15q3p2 USWQ== 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=39VDfzK2Ij5Ct58sDF3kKj68eOQ/1SSl/1CR4g+BcGg=; b=R1YWU9OURFtEif4yFBJXmVvWnj3p6AeuFCmsMkotvxTV8vMkQTW/rSgSCtRES0sIzE 9xAfuFzq5iGap4DerJq3cdR6K9BeliOrCQCYI2Dv/DPu05z+D0sfMUWs3AClH7W/am4T wPZruz+1QdD2ljgGyTfXYJogaGt8H46wl5QhjP90/hrg/ISwhEk5xaNs7JGJ+uixzPlt QrAsFUsTir6GlmSWIt8upXolwBWCbJx/HdexxebsbJSu0k7MUS/mIn/tN8FcJZ40oL1T Zh1PQmpPaQn1GT04WVB9dmlSeD5+WdKizlXci0Gz+VHZe+7PRf/1hWR0wlit+Timw10U iMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JFLJqvD0; 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 l69-20020a638848000000b0054288b91d66si824425pgd.635.2023.06.02.04.08.38; Fri, 02 Jun 2023 04:08:53 -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=JFLJqvD0; 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 S235820AbjFBLEY (ORCPT + 99 others); Fri, 2 Jun 2023 07:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235799AbjFBLEW (ORCPT ); Fri, 2 Jun 2023 07:04:22 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB33194; Fri, 2 Jun 2023 04:04:21 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352AcLfp002163; Fri, 2 Jun 2023 11:04: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=39VDfzK2Ij5Ct58sDF3kKj68eOQ/1SSl/1CR4g+BcGg=; b=JFLJqvD0zrRK7qsCfPvQPvxpDOfsufoJiqamVo081cbC/tVM+dxxLS7qx4lT0bBwsI3C aePD2Qh2uRJEiBcL99nscOe3CFfUALungtF/eK7ufu3R3skgrtsZTN7BehVgArH6PqX0 Qqwx3OJm/o5b4DqgvwkzhDoYXKZy4W6cC+SbzEoAPbdYsvxbkYGi429zQ2o4ABbUMTZn hz3lOzZ8LiOJAVJIbhDASUBEmQbkBYJ+F19XfU5kLHq3jsJc/8bRVZWv7DXKbhPXeXd2 ov1SlZdjQbgF2qoOgxJuz9eAh7PB+6rfNdIN1DyeF+yUrIMsKWbB0Qtks+vdrFCKFP/q mw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qycwe89yd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 11:04:16 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 352B4F5u001458 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 11:04:15 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; Fri, 2 Jun 2023 04:04:09 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , CC: Varadarajan Narayanan , Praveenkumar I Subject: [PATCH v5 2/3] arm64: dts: qcom: ipq9574: add tsens node Date: Fri, 2 Jun 2023 16:33:51 +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-ORIG-GUID: 4wkLciFr97-XHwFvuPGweJhSQVezMbqs X-Proofpoint-GUID: 4wkLciFr97-XHwFvuPGweJhSQVezMbqs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_07,2023-06-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=958 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306020081 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767588897390094143?= X-GMAIL-MSGID: =?utf-8?q?1767588897390094143?= 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: Konrad Dybcio --- [v5]: Incorporate review comments [v2]: Add "qcom,ipq8074-tsens" as fallback compatible --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 0baeb10..cda3fd4 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -206,6 +206,16 @@ #size-cells = <1>; }; + tsens: thermal-sensor@4a9000 { + compatible = "qcom,ipq9574-tsens", "qcom,ipq8074-tsens"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + interrupts = ; + interrupt-names = "combined"; + #qcom,sensors = <16>; + #thermal-sensor-cells = <1>; + }; + tlmm: pinctrl@1000000 { compatible = "qcom,ipq9574-tlmm"; reg = <0x01000000 0x300000>; From patchwork Fri Jun 2 11:03:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 102492 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp948326vqr; Fri, 2 Jun 2023 04:15:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fTd+AilHGtdP2hffT61HCxOnCOomiOGQE+GqsUVNvwfEKemcHE1hDR3yQm/bmYsA2sfei X-Received: by 2002:a17:90a:6c62:b0:256:9094:c017 with SMTP id x89-20020a17090a6c6200b002569094c017mr1162076pjj.9.1685704548324; Fri, 02 Jun 2023 04:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685704548; cv=none; d=google.com; s=arc-20160816; b=TeAJMQaril2j59EZL1/7m7kxRuCDO5AxNhMowZJzQEOLujZ81hNHPnESqNTwO4wQIb osWMG7z34IgkkOSykD7S/HKhGvW6KetucDCvB8Y5vlHC86FfSaP/q9OjHViB9U54XXx5 rBX+bso5lIiy3+68ulIh3efxqim+4Oknn/XJMGpwucSaDUmcTDrKQEIuX8ZqC18lhiS3 9pbTWlIdr39JUHHAsMApFqnZKrTm2Kpwr8zuWIUiqPp0nWf8a5noikGa2TKu+QvoLi7L 0YJpQfJmVJbO4PC9U0Nhz2zytbMiURUZ54RH8ax7tvKyICT19kJuAB48gzZGJVXgkTGJ qU+g== 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=gM0DDxKPzyI61z+wl1A5wOzmSM5QqZdd04x7K7mtZ/M=; b=NSe9jMBQVp3X6drYUiLufqB9PsWNbLa4i5Trnn1uWkd5RT/ZR6iZa0GLNmtPJ4S+vX 1g25USzzjMv6Y9Sabx3xk0pC/n3wn3ukBymSQO40F4S8AYYF5mt09f8jEe/dHMeWuGzA fWW62Wmbe1qZv4K+hGdb5wxXPAk/9P9SZgjO7KGYFDNAz0xVHuZZVwtL8ODw8LPXNCGR 7NflJhE4nvy32PO2/AJRQvQ5P/RnvgwUZax8iWRgA16hVtyvG8hmlO/JXE4URTsfeb4R FU6kBANxltOohaGiH3j39W6DSMJrz5Fw8Ivo+SKBDRIb38dOCrhGUr0u3V3nPrEBc0Y/ s/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="j3EbV2/l"; 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 d23-20020a17090ad3d700b00251e16303f2si877115pjw.86.2023.06.02.04.15.33; Fri, 02 Jun 2023 04:15:48 -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="j3EbV2/l"; 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 S235823AbjFBLEa (ORCPT + 99 others); Fri, 2 Jun 2023 07:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235549AbjFBLE1 (ORCPT ); Fri, 2 Jun 2023 07:04:27 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED7D18D; Fri, 2 Jun 2023 04:04:26 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352AkOaD023391; Fri, 2 Jun 2023 11:04: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=gM0DDxKPzyI61z+wl1A5wOzmSM5QqZdd04x7K7mtZ/M=; b=j3EbV2/ltfHZBWsDHeSHszRQnD83AHI3PjIt0Bo0GkDrEQ07Ui/8pOskARA/iRqgIS3b VSwKYCrbZJsqY9YUTnwsi31ucwdcrDZ1MyvaDewbjYXuBs6XKpc6D9Ubme+pCkymaqQQ zOiwBoaH8PmQZFZej3YmxjEiwQ8oyimllpkgK+tlk/nmypF+qi10UIYG6HRrB7OvY6Ly sZeec7P78BXzaXPV5FJZxSjtd2TULtIfBa8xrcE3vHMCvDGsMj4PVVSWxDpAVARHs8X4 aGNwuObhp+fAb7RxXeb5DEoiH2qr5kDtVNV0s11DLHzwytHTeeQOzvydlBmrRuZ1ZGqZ GA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qxugraeeq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 11:04:20 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 352B4Ks1006589 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 11:04:20 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; Fri, 2 Jun 2023 04:04:15 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , CC: Varadarajan Narayanan , Praveenkumar I Subject: [PATCH v5 3/3] arm64: dts: qcom: ipq9574: add thermal zone nodes Date: Fri, 2 Jun 2023 16:33:52 +0530 Message-ID: <4cc3aa1c93aacfc8ddf236a3d6ed07bfe75da1a4.1685703605.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: Yt3P0_MHZ9SlF2KKejSyxuOLm2gGktFk X-Proofpoint-ORIG-GUID: Yt3P0_MHZ9SlF2KKejSyxuOLm2gGktFk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_08,2023-06-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 mlxscore=0 clxscore=1015 impostorscore=0 adultscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306020082 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767589332285242477?= X-GMAIL-MSGID: =?utf-8?q?1767589332285242477?= 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 cda3fd4..392dbe5 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -592,6 +592,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 = ,