Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3541575pxb; Wed, 14 Apr 2021 07:51:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0wlPwKFeWDtN91sjwIGoHfESroqgaTNbzqwl9UEW5V+CvXVnL8T2hlKJ374zkXdHoUPcc X-Received: by 2002:a17:906:1d0e:: with SMTP id n14mr38545669ejh.97.1618411916687; Wed, 14 Apr 2021 07:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618411916; cv=none; d=google.com; s=arc-20160816; b=dgGm3Hzb5xenLFijheD/ttQYNoCo4hfXk0SBMxXo/k9xNKVEFlkOUn8ZRNHQM4++32 MrIjsM5HN07v6lzY1flDIqPNuDztb9S5bPuyHkl7FaIJKfn6NIqXXT4WUvcEcy9Iak4p BVPYxAk+XcqdYts/UXb2zbQJaY5mZMUNl0/U8gEAqn4RlgqiMhgUtchKeMc3igPVZnq8 0vWgE35mQ01s5e7evu9Czn25U5sHWPKjpcMiQKV8OfvkqqYfzqqTZf+VBuFTvcxi2AR6 JWugT50Qvfnj+Frsf+rZR8X68p0dVbwFAwcACflEjCrACktuFZ66w0Q/QhNlbv8BH5JV Ksrw== 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=HLKs+BeEhUZMxsB+V6aJbNPrUGQI62PFGFWuBs7ZP+w=; b=Lz2GmE322KnVy+HWysSFu+NN64hmrVgPkzjwguHjJVlhVqzSRRDPqzYYBNkaj0uUtr JSam5+5/Whj89trfQI/6nAX0XLTKuOwXHhhTNbL7Vuz6xZ7G08KN3kr3c8gXDyjMJqhM VrxDjZT6nEgNvhrB0SQi8eckMu2dPHrRE81+FuBMmnSm3fPm7UUwJc/jmdA0h/Hc9XbP VvxMy8vwvFAEyQw+Fm8xgJdThd1NA3q5hOHWDTIA1keYOw5GTNiWw2GFFCaVhXkJk4JM HJNI6J8Idt7A6uCFf4U7zd2Vz3sGAH01ZoIrIOeWXmbsv3LrwH2N0vJ1cw/DatGimemG IiUA== 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 dd18si12767826ejb.264.2021.04.14.07.51.33; Wed, 14 Apr 2021 07:51:56 -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 S1350131AbhDNIfj (ORCPT + 99 others); Wed, 14 Apr 2021 04:35:39 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:48485 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350088AbhDNIfW (ORCPT ); Wed, 14 Apr 2021 04:35:22 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 14 Apr 2021 01:35:01 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 14 Apr 2021 01:34:59 -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; 14 Apr 2021 14:04:29 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 4FADB614; Wed, 14 Apr 2021 14:04:28 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH V3 2/5] arm64: dts: qcom: pm8350c: Add temp-alarm support Date: Wed, 14 Apr 2021 14:04:23 +0530 Message-Id: <1618389266-5990-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618389266-5990-1-git-send-email-skakit@codeaurora.org> References: <1618389266-5990-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add temp-alarm node for PM8350C pmic and also modify gpio node to add gpio ranges and "qcom,spmi-gpio" compatible. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index 2b9b75e..e1b75ae 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -13,13 +13,43 @@ #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"; + compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio"; reg = <0x8800>; gpio-controller; + gpio-ranges = <&pm8350c_gpios 0 0 9>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; }; }; + +&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