Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp332199pxf; Thu, 1 Apr 2021 02:16:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/2xJuKI8Y4BOp+2L5KBAa1N6rEAdoX+8DRdfTIDpedal4ur7WqzRs5h6VAms5NRFATOV/ X-Received: by 2002:a17:906:4d94:: with SMTP id s20mr8319914eju.286.1617268581316; Thu, 01 Apr 2021 02:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268581; cv=none; d=google.com; s=arc-20160816; b=W/WZbEnF7FldNVByScIL7ez6yCAZhkoEKkVm6buyXYwEEvogqNi5qOIkZ4IWdZy0Q7 i12YtewvWl/DgMjZZXhmuWt+WIOzqAXs4CgAwzpLKZcoVafOWTPtKAHSIKKt2KhAK7Qu 7n6bjJDD2j6hIr0mEhsHn0/JYE15GiQSRmIbYh46rQjS/ggezKSqKYiTQIN9XC+CIQYX M62kabRLkKXei1LbSdAAxdvmjHOWARspQtBjCzzqZKsuBUgqmWAsAB/yRrZqnAY8x8nK Gse3iwGXMCip6t69j2/NGOpUtHJzCyjEquGR6PwwEwnOFOoCeazYWlDi5V9YMdSQgE52 afrA== 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=LV/+AqWUPDPRtbLYgfMB03zoRMYZWNwpdz0CFBsjiqI=; b=MSV5hsavp86iZPm2hvWn9ZMRMvVve/yZnErsC69d2qQibsC8vCny5bZLhsPNCiH33I Z1mdH/972bxWNu55ezIeO0+4xY2SPQczc/4FMa/o1N1Maqe6002h/VwL1PnOnF9qD8S5 EdpkdoeoE9QvVNH5aFSEU3XDDnwXkb2dPJsYuAyNIV+ZYt2AHHDj9eCgERMGSguy7+Br RKZA5gzQ8L/J6H7CI9BA3cNoVJaSxmgpNAasY9Ln821383kD8OHRw3KsnMpzs8LFw1Nt v1fYllh321D8YJ4GsuHkNdtD0iS5yhDGzBP9eINVaLH4EUZiEnY7jaqkTZUFw9xhPGyq QTRQ== 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 h18si4006909eds.345.2021.04.01.02.15.58; Thu, 01 Apr 2021 02:16: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 S233818AbhDAJO3 (ORCPT + 99 others); Thu, 1 Apr 2021 05:14:29 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:25685 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233258AbhDAJOC (ORCPT ); Thu, 1 Apr 2021 05:14:02 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 01 Apr 2021 02:14:02 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 01 Apr 2021 02:14:01 -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; 01 Apr 2021 14:43:36 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 8E662236E; Thu, 1 Apr 2021 14:43:34 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH V2 1/5] arm64: dts: qcom: pm7325: Add PMIC peripherals for pm7325 Date: Thu, 1 Apr 2021 14:43:12 +0530 Message-Id: <1617268396-1837-2-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617268396-1837-1-git-send-email-skakit@codeaurora.org> References: <1617268396-1837-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add temp-alarm and GPIO support for pm7325. Signed-off-by: satya priya --- 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..1e0848a --- /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_trip1: trip1 { + 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