Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1187720rdh; Mon, 25 Sep 2023 06:00:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhWOKxcSTSGZDOQXqjJOOKVYnHUDJBF6Xm0PldQzz1kVy8A0Le6clBDbnY1C4G06hLO2vx X-Received: by 2002:a17:90a:f0ce:b0:277:4be4:7a84 with SMTP id fa14-20020a17090af0ce00b002774be47a84mr5435652pjb.19.1695646851730; Mon, 25 Sep 2023 06:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695646851; cv=none; d=google.com; s=arc-20160816; b=yJA4v2BcsEeN1RjPXYoUFcvbBVhIf7jQ4kSeUdGnMjAHbdjeWMr3a/kMvXotTGTtdh MAlheUOhdduapIAQi/sCy63XckeBuJxx1cNsoydoUclYqp47RBusZEZA0a8s8vzURjNO TN0BB99uMyTP58uZtwuB6dr6yKc3uHoSqBrJAFBbRKFBB1E4lmdSVlFyV+K0oGKTZ515 J7BTzhIacj6lNJnRIRJEzVT6mw63eVRO3KcQsS6G5zYyMYCAwokFAiBucvXntg2j51aR mZOATTsuWSYnAS5IohcIMMuXnv6Xop3bbh0AFN063ACVJNslpQcCySvDopue0BGyqXbK G43w== 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=gOu68Amm+qW3XZNBLbx+1piq7YY1IRG2q+AVux5o1JM=; fh=ioASl3F8UrCcVct6cJAnrap81mh9e/ZpmuajznH8yTk=; b=J+uZeF4y9LsEkX3yNEQbQqtYvl888tKWpmOxpaBK4vXTmqwHXJU9lc50cJO7/3v+fv 2qEdcuClDj5d6hjRxkkgUF2uzyfD1rJcJziJ6b4PDtoQbaO5K+YcBaFigIG7EBZnd7rJ Zf8MNyst7cV3xnrVRhvAUr51j1QYiGXWAwBZSa3syE2nyayTbsRIvjttOx8Om3nXxjw5 8B7fu1LK8j37j89hV3QTJ7M6ibbbwxkLHQ62xd8BBa453gzmIOa57PhOzG+WlPi9ypql Do02wnrL0+Dp52sYBii4U1PjiDtaqsefvFjklWrhNyTEwkts93tuyQI3aAmWPbnTecNs mKVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VUV187Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id pc2-20020a17090b3b8200b0027740943ec2si4282983pjb.158.2023.09.25.06.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VUV187Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DBE17824697A; Sun, 24 Sep 2023 19:09:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbjIYCJr (ORCPT + 99 others); Sun, 24 Sep 2023 22:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjIYCJq (ORCPT ); Sun, 24 Sep 2023 22:09:46 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F9BBD; Sun, 24 Sep 2023 19:09:39 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38P1eQYS019089; Mon, 25 Sep 2023 02:09:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=gOu68Amm+qW3XZNBLbx+1piq7YY1IRG2q+AVux5o1JM=; b=VUV187JvSVlwZMzBFGYfdwEaiisiVm9Y/NcAI9V/UUb2+H6Zs42AJZkJrxryLNCVTMtP v3UOLqZg+6/0cj4NuJGRCo5bUbR3vEQ2ksDm5ulfmxFrEUg/6MaOIuzZAq/+2m7InSF1 xeX60yCu9fFT0P1YZvahNRNYR9V0wp4Etuv8iFjTdQlsW6nnAD9PC+xejq17QuPu4OkA rKttzCihSizicXAa8AV4sdpv/G1Q4CITnRWDPgc/VoM/KikUQx0/1fh4gHkaKipNYFV+ Lz5TbOV+KQs8lx9QJHiegt8biqPyKkOzFvT+nB/VuFfFbIRjBHMdmSLIF5MUOIE3aUHD TA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t9r88jqm9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 02:09:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38P29SrN027965 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 02:09:28 GMT Received: from [10.216.19.6] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 24 Sep 2023 19:09:23 -0700 Message-ID: <6508a3ed-ac2e-c575-b152-0491b624e408@quicinc.com> Date: Mon, 25 Sep 2023 07:39:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH V3 4/4] arm64: dts: qcom: ipq5018: Add tsens node Content-Language: en-US To: Dmitry Baryshkov , Sricharan R CC: , , , , , , , , , , , , , , References: <20230922115116.2748804-1-srichara@win-platform-upstream01.qualcomm.com> <20230922115116.2748804-5-srichara@win-platform-upstream01.qualcomm.com> From: Sricharan Ramabadhran In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 2a0pRWVikoCu9XzVa-SIzmVQd0UKIjSk X-Proofpoint-GUID: 2a0pRWVikoCu9XzVa-SIzmVQd0UKIjSk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-24_21,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 impostorscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309250010 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 24 Sep 2023 19:09:48 -0700 (PDT) On 9/24/2023 12:18 AM, Dmitry Baryshkov wrote: > On Fri, 22 Sept 2023 at 14:51, Sricharan R > wrote: >> >> From: Sricharan Ramabadhran >> >> IPQ5018 has tsens V1.0 IP with 4 sensors. >> There is no RPM, so tsens has to be manually enabled. Adding the tsens >> and nvmem node and IPQ5018 has 4 thermal sensors (zones). With the >> critical temperature being 120'C and action is to reboot. Adding all >> the 4 zones here. >> >> Signed-off-by: Sricharan Ramabadhran >> --- >> [v3] Ordered the qfprom device node properties as per >> Krzysztof's comments >> >> arch/arm64/boot/dts/qcom/ipq5018.dtsi | 169 ++++++++++++++++++++++++++ >> 1 file changed, 169 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> index 9f13d2dcdfd5..9e28b54ebcbd 100644 >> --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> @@ -93,6 +93,117 @@ soc: soc@0 { >> #size-cells = <1>; >> ranges = <0 0 0 0xffffffff>; >> >> + qfprom: qfprom@a0000 { >> + compatible = "qcom,ipq5018-qfprom", "qcom,qfprom"; >> + reg = <0xa0000 0x1000>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + >> + tsens_base1: base1@249 { >> + reg = <0x249 2>; >> + bits = <3 8>; >> + }; >> + >> + tsens_base2: base2@24a { >> + reg = <0x24a 2>; >> + bits = <3 8>; >> + }; > > Sort by the address, please, as usual. > ok. <..> >> >> + thermal-zones { >> + ubi32-thermal { >> + polling-delay-passive = <0>; >> + polling-delay = <0>; >> + thermal-sensors = <&tsens 1>; >> + >> + trips { >> + ubi32-critical { >> + temperature = <120000>; >> + hysteresis = <2>; >> + type = "critical"; >> + }; >> + }; >> + }; >> + >> + cpu-thermal { > > 'c' < 'u'. Please sort the nodes here. ok Regards, Sricharan