Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4438543pxj; Tue, 25 May 2021 08:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb7YgsgUj9T1IxB1GMU/y9WpSvHfMVfuVRKQwfnQJ8hwVer0kjX85Y1HJ+jAwNPdvnacPv X-Received: by 2002:a92:d8c8:: with SMTP id l8mr21639196ilo.197.1621955002546; Tue, 25 May 2021 08:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621955002; cv=none; d=google.com; s=arc-20160816; b=abLoynTaoiH8NcRUreXFzncizkgntrkpKefWKqTX3dI045HmtDIxR1AcKNjvPKZ43S Ib9YrILDla/juXCgNpNFi6IYWFoXWMGRnm+6dpo25/XOhXPdOniZ+Hf+VEOiIXfIF0xH srMBUmLPQljL1v1+P97/tFFH5GQetRn1pVWd1ibQfhUAi61DM1S3l7THGJlo1yLc/BAh CPGldH0hj6RBvnWaN3enSwPpuoAQ9so/kHp4qO49jeALg2EmSet2q1H00kaPUDxHOhle XGdKa6YQzMMpH3mwnGaUY0bWkDxxyCR+7AE0YYcUNETpdNyCTV7UoS1hynAVsTaNgvOE pSdA== 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=sz7uQFJrqBCwd/j4WkFpGSd2LL/bKEGUYyoAx3cUMng=; b=XqDdW1/hgNBYb0LeymUnPELYcddeyMwK4EsRvpc/Yl/kfEMSlQqzgDMdK7GS33OdPG 8iud5qTnJAvC2QOy6xEDdmKC6D89GlPeqR/Vmlr8/NwS28brKNZ+148aX3PkljYNK09d JZKAyvZlvxbedHvQJPNPZn8pQ6JXC9RnuVR+4fB3m1CJqQN8OO2T//+fybzcKfVu3aQi O+l26TmKDGDM4eqCsNq1HSDOzTW1zK+hMaH2oyxoqC8AmJxwFKf6052pWk1yxONDWHHv H70sKYxuUMDi5qolxppFlbfOHiTaTw8Hhs8grHoliivspjlS210gS10Or/OgXUe7Rljj TC0A== 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 r15si15059725ill.75.2021.05.25.08.03.06; Tue, 25 May 2021 08:03:22 -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 S230007AbhEYKNY (ORCPT + 99 others); Tue, 25 May 2021 06:13:24 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:50028 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbhEYKNX (ORCPT ); Tue, 25 May 2021 06:13:23 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 25 May 2021 03:11:54 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 May 2021 03:11:53 -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; 25 May 2021 15:41:25 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 81D3B4B82; Tue, 25 May 2021 15:41:24 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: mka@chromium.org, Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH V5 02/11] arm64: dts: qcom: pm7325: Add pm7325 base dts file Date: Tue, 25 May 2021 15:40:57 +0530 Message-Id: <1621937466-1502-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621937466-1502-1-git-send-email-skakit@codeaurora.org> References: <1621937466-1502-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. Changes in V5: - 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