Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1466575pxj; Wed, 19 May 2021 06:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6DRFKlM2GCLyvW9SDIYB9u8T8+Ahn35dyl+75Oq41O6GWqd/Etg8qSuMDk6EkzUoTgB1d X-Received: by 2002:a5d:88c2:: with SMTP id i2mr9884933iol.18.1621431773000; Wed, 19 May 2021 06:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621431772; cv=none; d=google.com; s=arc-20160816; b=tAd7gWll2wO4cnb7InYCXvUtyLZ+mTkLFhl+WBsmZq9RLdC1t7fMyrV3bwHzQUCBO2 LhWkEIiYencBN8ufDF3UaBAA4BzQtnBZk+12wWA3QKcBIQnrlIIiiOeTmqBuImJO68b+ sc0+RZ0LYj/ewvnwrjZxG1Gr5pDXvoltHITX9pNm0JGys0l5mvCOrMmlO+UtW8jeM7ju HYrFhOwanxWJnqThXXAuVBI4G23weJw1MHYkPTbE1KkS0ft7nLCgxrX5i84S8o7GHZa4 coqpA2TeSc8mzPkarC+WP9fCdcBREzBtjuhVgZYUdGzKJ7ezG5IGQawwil9xiQXHzw7f /uVA== 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=0G6qKVg6+0wA1zXRVzJFrp2QMk2I7JyvJE20LnIXvls=; b=LhZ41hL7u9JTHss5b9tQym3IKIqAgCxEaYFkp5wCD2gXDpbWbjmDQ5qQFUbwYw2mnW lXZ1AwZZAXVTRKpYv+nE0K5NIICwtX5ccsbAKTnJdo/4hJ8zU49AMXrPvEL/xr/UHS1A VoK2/s9xEaaIcH5UQtoKGePurzkRrFliJsSoTmcj6LnvBc6PwLwxudADinGh7+q88EkV IRJZqFm1woccPEFzZEEpwzQGTsbYfSfsUecO4YxJwLe/uTaq2aYa8pysyTN1VB8OKf1F 3P7X+L1DeWPhNYWfI0FbhWmXTCfWAStEdxz8+f1fJeyJPew6xwcKvU4ymaxCy8fDo6oD KWTw== 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 j6si24055024ilu.44.2021.05.19.06.42.39; Wed, 19 May 2021 06:42:52 -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 S1346561AbhERGWB (ORCPT + 99 others); Tue, 18 May 2021 02:22:01 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:7134 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346543AbhERGV7 (ORCPT ); Tue, 18 May 2021 02:21:59 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 17 May 2021 23:20:42 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 May 2021 23:20:41 -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; 18 May 2021 11:50:26 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 312E74FD7; Tue, 18 May 2021 11:50:25 +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: [RESEND PATCH V4 5/8] arm64: dts: qcom: pmr735a: Add temp-alarm support Date: Tue, 18 May 2021 11:50:19 +0530 Message-Id: <1621318822-29332-6-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621318822-29332-1-git-send-email-skakit@codeaurora.org> References: <1621318822-29332-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add temp-alarm node for PMR735A pmic and also modify gpio node to add gpio ranges and "qcom,spmi-gpio" compatible. Signed-off-by: satya priya Reviewed-by: Matthias Kaehlcke --- Changes in RESEND V4: - No Changes. arch/arm64/boot/dts/qcom/pmr735a.dtsi | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/pmr735a.dtsi index 1c675af1..b4b6ba24 100644 --- a/arch/arm64/boot/dts/qcom/pmr735a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi @@ -13,13 +13,43 @@ #address-cells = <1>; #size-cells = <0>; + pmr735a_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmr735a_gpios: gpio@8800 { - compatible = "qcom,pmr735a-gpio"; + compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio"; reg = <0x8800>; gpio-controller; + gpio-ranges = <&pmr735a_gpios 0 0 4>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; }; }; + +&thermal_zones { + pmr735a_thermal: pmr735a-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmr735a_temp_alarm>; + + trips { + pmr735a_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pmr735a_crit: pmr735a-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