Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1476955pxj; Wed, 19 May 2021 06:55:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/zz3BsZ2NGaEYEoBhUtAazbwD2XNI7tdbAmCWUB6C2Yu8JwjasmPApYLqihH4n7CpyTwp X-Received: by 2002:a17:906:46cc:: with SMTP id k12mr12569852ejs.505.1621432521696; Wed, 19 May 2021 06:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621432521; cv=none; d=google.com; s=arc-20160816; b=b3AXdvWaWz8YRdeuWcYILrLdh/8xdw7O1Efy2zN2tkUNI+vKkUjKVrrBPd3tjrDbXb TmG8XIICLurNGalMKI5jU9uq+H23mIkKR98sKwLPRSQJw4WXXZaTf7n2GymT8h3p1tdo RKU2ivjRymjpLYcO65zNk5iRm6fKN2qt9NYMDoE7Ll2FsrzV/L48ud3a7VFpOA8Pb2b8 /A3TApNVtfZhluRYTDXNJHJjnEmsNFi0zTUY1wq9s536DFCDeNBQWRcLTdKqJmh2HJWY IMRKvZZ3ExQoGd3ITI+OcGEK46AAkPYJ9Dd72NIa91B/uP/A0daqGbnXeRU5mL3aRQ72 Yw8w== 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=fQbhLAeMgDBr6F9JbJHJ31rgtioIs7r3K7YMpowfSlM=; b=n7P4FMfZVFPt4qsRfmKU5GZOsjL4SqzVgUmF9JQxEW/VicatbFL0go5SBdF0YXpnaX RAwCIH//j2sS/wGDAUSSSwCR6EI2Mk84/70NQi7ZfvY19oWoY4QXZYno4klJyUGJc6d3 Gd13Y9vuHK84sq43CTcyWICoqcFN5iPapoi5ynfTZxT0OzLPotjoaEnsJlz19KV5QZsL gGgaBmuyXerE+mMzyP7nBmrB+9c6+alqWC72xTodQ8CfMno8I2wIUcSgOQQ9/rAT0nmT vylqOOHGDXXtEeOess+4aGGa8fophu3yXFRPq8XsX+srzm+/0bGndeb6afrlduGmUeZw aGPg== 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 l18si19252edt.366.2021.05.19.06.54.56; Wed, 19 May 2021 06:55:21 -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 S1346595AbhERGWR (ORCPT + 99 others); Tue, 18 May 2021 02:22:17 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:8690 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346640AbhERGWK (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 DBBE34FCC; 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 3/8] arm64: dts: qcom: pm7325: Add pm7325 base dts file Date: Tue, 18 May 2021 11:50:17 +0530 Message-Id: <1621318822-29332-4-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 base DTS file for pm7325 along with GPIOs and temp-alarm nodes. Signed-off-by: satya priya Reviewed-by: Matthias Kaehlcke --- Changes in RESEND V4: - No Changes. arch/arm64/boot/dts/qcom/pm7325.dtsi | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm7325.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm7325.dtsi b/arch/arm64/boot/dts/qcom/pm7325.dtsi new file mode 100644 index 0000000..e7f64a9 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm7325.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2021, The Linux Foundation. All rights reserved. + +#include +#include + +&spmi_bus { + pm7325: pmic@1 { + compatible = "qcom,pm7325", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm7325_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm7325_gpios: gpios@8800 { + compatible = "qcom,pm7325-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm7325_gpios 0 0 10>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +}; + +&thermal_zones { + pm7325_thermal: pm7325-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm7325_temp_alarm>; + + trips { + pm7325_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pm7325_crit: pm7325-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