Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp322040pxb; Wed, 14 Apr 2021 16:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ4BDmNB2GXqfbUspOPUU54uTWK/8Hl7vUxTjM4xQmeGHV0DIpUTZn9jPff/9WgnUq515N X-Received: by 2002:aa7:842c:0:b029:251:7caf:1017 with SMTP id q12-20020aa7842c0000b02902517caf1017mr536670pfn.79.1618443739528; Wed, 14 Apr 2021 16:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618443739; cv=none; d=google.com; s=arc-20160816; b=z+XWwLEbhuLAbq9fGm74xampsP9pg2FZcCKJJx6D57Ynymd1ogB4/H0cnjAQOLYsoh uMHPiYC/sOeVpFXda5VuJPjbhObkK7x/NmGmdHcoa8jAqWwPuLnf6VaAbsxBx7YLMYOn +mKSZeQzyohzUyReTU6ZufbctXyb6Z4ErIw30KIpvw46BYOwHKbBCwOiU81gQyzGi/Qe 8j5BCfcJbUJHqK5bzx2b5Yfd0DX3fA9fjdtroC80wftN6gPUPMfTdI8L9GwrXs8PLtiD At997/wpUAcxJJdY1aXciuv5xjgM4pUQGgtfTANl5ql0YhJShb+m8AwOxiKKH5sOolJz 3g0Q== 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=VmvpdcGntaLtvqKeCsIkc3UtE7v3DwNtiG6K336bEfM=; b=d0Rn7S6PAVGeGEOfKtt6yubwZkZHU2v4CSkupTFW2FghxDxxtrTmxVW3bwMbgLGGP2 V6crHxcvkY0VxywozC+MD+hEX6pLzMnRIf1ZGgSuAnY1WLXkDjv6Xw1zPbKLnS3M3ay7 DuVdh/i9qXj4qIY+SSVNlN4zzVi5BIGphseJRzsj/Fsz1jghTjElFo8dZe5SdimMOnok xl7xJ349dTE+2TlmO75BezVWNcp1Mc2x2GNOjcxJAsg252tN95naw70FRllfU/Ncb/Oa 0q3c/r/kV7nsJosVmXzA5MVKRQdMvJxs+bwqp9XcCRLtIBw5LJq/jk+7uteoah5TKNC1 3E2g== 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 r9si1101831plc.411.2021.04.14.16.41.37; Wed, 14 Apr 2021 16:42:19 -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 S1346189AbhDNLN4 (ORCPT + 99 others); Wed, 14 Apr 2021 07:13:56 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:19167 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344040AbhDNLNy (ORCPT ); Wed, 14 Apr 2021 07:13:54 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 14 Apr 2021 04:13:31 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 14 Apr 2021 04:13:29 -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 16:43:13 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 77CD647ED; Wed, 14 Apr 2021 16:43:11 +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 V3 3/5] arm64: dts: qcom: pmr735a: Add temp-alarm support Date: Wed, 14 Apr 2021 16:43:01 +0530 Message-Id: <1618398783-7834-4-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618398783-7834-1-git-send-email-skakit@codeaurora.org> References: <1618398783-7834-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 --- 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