Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4241644pxj; Tue, 25 May 2021 03:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHl/WfmMrsgKHqMTgbTnhDCnVC7oQJZ3pAE43HqyPMDLi6oTfKPoNhIPbyz2KDucQ98vpR X-Received: by 2002:aa7:cdd6:: with SMTP id h22mr30633011edw.278.1621939062507; Tue, 25 May 2021 03:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621939062; cv=none; d=google.com; s=arc-20160816; b=OeXmKobz7/t/58LKEMHUec8VxFiT797jnMBFEuVW4KFju7Ql0JZGQBfe9Ms3E5X9d5 K76RH4VEOl2W5sNjyEBax6qfEmqgM1Dgp/NArBqGpfDFAsqpIN642nM7vXR4KXnYHhWO eCTfAbBWl4cAXZjRLPksng4GMWVrkaZ/WNx0flChD2d7qTVAik9FvadQT2k+C22HqWhQ JNwnKlAJioOcCg9W+NE3bSpeSyyzpQXlU90AnpUaftvvFmGzr0qVBxsb+AKR1F0S78Xc ivjYOQs2yWJZ47MUVMZDd7S7WmIfSgORMtMdGB9OTtgQ9JAnzcWQnj+Y45jjGpNTx8XY 1sLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=YNaWVDV4OAmwNUQQ9/l3Ln1Xx7GdfJuZD5EDUXK3qsM=; b=piD9OHGV/NprpE0QoLhMyUROeyBubPxs7TF8Rk5mcjUCqc3l7rcyvoqqdi+YjiaaOP HpLyQ3xJOF7NuOfT7bvl0UzKkiF6c9Pr9mhbA7LKVQmIQjVGpDQTxRAW/Dw6WONo/N/C KsdWnOyddPi0nmfMOa/0Q3P17EO1vIweTh1eB7kfSY/9+gC5CF/V5McPWMyy6SfmJATW 0XEFXmE98Y7LmZtzqBLG1td8hn6uGn4WeCkw2r3YnaIev9XRvmAn4fl/Zy1295Ev5LMp 45b1K1IFBARKIeVZ9T20dVn2awVxjgrzcHOvjuwfDTauB5DD5MIXNrQ69eNAR1JwLsPL X88Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si15799252ejh.112.2021.05.25.03.37.08; Tue, 25 May 2021 03:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbhEYKOV (ORCPT + 99 others); Tue, 25 May 2021 06:14:21 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:53568 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbhEYKNa (ORCPT ); Tue, 25 May 2021 06:13:30 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 25 May 2021 03:11:58 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 May 2021 03:11:56 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 25 May 2021 15:41:25 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 962BA4C00; Tue, 25 May 2021 15:41:24 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: mka@chromium.org, Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH V5 03/11] arm64: dts: qcom: pm8350c: Add temp-alarm support Date: Tue, 25 May 2021 15:40:58 +0530 Message-Id: <1621937466-1502-4-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621937466-1502-1-git-send-email-skakit@codeaurora.org> References: <1621937466-1502-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add temp-alarm support for PM8350C pmic. Signed-off-by: satya priya Reviewed-by: Matthias Kaehlcke --- Changes in RESEND V4: - No Changes. Changes in V5: - Split this patch into two. One for adding temp-alarm support and next one to correct GPIO node. arch/arm64/boot/dts/qcom/pm8350c.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index 2b9b75e..f926508 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -13,6 +13,13 @@ #address-cells = <1>; #size-cells = <0>; + pm8350c_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pm8350c_gpios: gpio@8800 { compatible = "qcom,pm8350c-gpio"; reg = <0x8800>; @@ -23,3 +30,25 @@ }; }; }; + +&thermal_zones { + pm8350c_thermal: pm8350c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8350c_temp_alarm>; + + trips { + pm8350c_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pm8350c_crit: pm8350c-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; +}; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation