Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1476195pxj; Wed, 19 May 2021 06:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDcISdpu2p/qbfatNT1lDogQ/pPSLMPMj6KH3gSPlGG2+y+viT3Zn8ZzfBj+iGHEesT/Ij X-Received: by 2002:a17:906:a0d3:: with SMTP id bh19mr12186896ejb.205.1621432464010; Wed, 19 May 2021 06:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621432464; cv=none; d=google.com; s=arc-20160816; b=jdA+2eCpXYBqv5Iy/codsID58O+JsQbcc/BszG5R7GDu5I9zAIlBTT4XenqhGsAFYO DAmNPy0eND+i+0UKNgfPyiCqfMdZ/w0pue+dgVb277+h9LotXvv6TDLoPoNdFUukiti3 oYd4yFRlDKORn2aLLp7sjWhqi1Gsa7kD9D4lHH9G//zVx/JSZ8VHXAglqRJMQj3GtWb5 S0qbQKKpsLsxAfXnuLWrvLd8RKfKVPCBSB/ZjxpB/TUZk7vhMHDUleQmQflYx7BHqoNj qQjBQpOasVzv6MC0RE4X5RePLkA9TYvxN+OeY4QVFI9JYYhjGCr3NrjY0gw1kIcW8+cN bLsg== 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=WYWqmz8f/9xKrAhFjJDBkyjjqHXk09twyrXYJsXchik=; b=qZnJ3q+an1EAd0CQ5ZqCv+SNrliuvB8xqSp7W7uzlFxObS+TQx1OXWawUCwg4EKSAF asxCp+d+Dfz3znX/ra8cOnach3Y1s/ESOMyvHeS55D1U9VtxHDfQJztOWkdE0JBR725Z 6S5GxJdw/3Myp9mY48qpNoRgsgG/3vBGAJMKnvVZ2M5pViEM2Q3oaW18SPuDhX8ZXmhv iFo5TJ2YcQcpmOMUe1LOZ8+o15mzlZfwryuwww5D8igoQ97aurEMDnhUXfXgGWGevSMm mQaf3HDkhuC3Fmy9bRaXnMkCzRE9KdNKkJQXAZ8VZpix/2/ZzUhYENwd7j7Ll66fsKkC 3ddQ== 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 l25si11368041ejq.639.2021.05.19.06.54.00; Wed, 19 May 2021 06:54:23 -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 S1346660AbhERGWS (ORCPT + 99 others); Tue, 18 May 2021 02:22:18 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:10866 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346642AbhERGWK (ORCPT ); Tue, 18 May 2021 02:22:10 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 17 May 2021 23:20:48 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 May 2021 23:20:46 -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:25 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 1321E4FD3; Tue, 18 May 2021 11:50:24 +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 4/8] arm64: dts: qcom: pm8350c: Add temp-alarm support Date: Tue, 18 May 2021 11:50:18 +0530 Message-Id: <1621318822-29332-5-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 PM8350C 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/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