Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp218023pxy; Tue, 4 May 2021 23:58:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/D+mtZ3AF/UlKxEejdbFcSPdIU/ajwTXZp8Q7bZx03ebirMtqR960FqzfHSCvWLWN3tAf X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr30815284edt.17.1620197912956; Tue, 04 May 2021 23:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620197912; cv=none; d=google.com; s=arc-20160816; b=iJI42nviX1gXvNp1rJUmF+Knsxe/80q4fg8+CGH6cQQe1Xy9VAdYfryxs/GR30I7li tNs5tkbhDlhn+JZk9T8doPeHpv3FJ6bOkL+9F4nQw+yRAaskH4QcI4g+up3L/e85dfRt NK9NQ1EQWREzDSOt0gzCzHfSJMdCJ0TaCqy4nvVASfmXHWML90AKnp4/sT0KzMn4d2Jd 3k4rXCv7b7exX3NvjlrHLJgDdDbIC40Gnq71xNqD1wfzON4itGogg3rC8y1EDyxkT+ox Pjoz0EHMcMavt098tHcm8eva+4QQz8IFGfJR8I6hH8m03o4pebxbpvFcxqcDtt2P1clw 2lKA== 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=8FGDgIxZByunvHp8ZPVzaF5DcH3pcxd2CmRaec03TzM=; b=aEhlZNC1KQp+jXmDdZZ45lix6cnziZoCEn5ChaVaRdnP3dcs/qkPX0hbvUGTCIK3nb j9/onQo7UdJxkR8xrIrXWAYc665nP3PMv0AYxvLpS/pstd18XmPNr0YCPzz4kjpT9AVy gm0mtQD9F7/aR6+j0Mg4n7cOPRlnwZTumSEKnMJyyv6k1C6dSGWrx+sU3IAXl0WJVRO6 dppipN2SrhmMqcIxjF58vk+T9pKv7zeR+d0Hke8O9kv4+we/9KtHjHRmW2DchUKYiu8u IoW7Krv+mjwHT/QkfpDwGzWyXJ52gjouLGwVMLdzwAyqBWt+JBPK9fBjwIZ0GH/MUkEh pTLg== 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 e7si4564373ejj.140.2021.05.04.23.58.09; Tue, 04 May 2021 23:58:32 -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 S231950AbhEEG5L (ORCPT + 99 others); Wed, 5 May 2021 02:57:11 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:16096 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhEEG5C (ORCPT ); Wed, 5 May 2021 02:57:02 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 04 May 2021 23:56:06 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 04 May 2021 23:56:04 -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; 05 May 2021 12:25:38 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id BD20B4A50; Wed, 5 May 2021 12:25:37 +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: [PATCH V4 3/8] arm64: dts: qcom: pm7325: Add pm7325 base dts file Date: Wed, 5 May 2021 12:25:21 +0530 Message-Id: <1620197726-23802-4-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620197726-23802-1-git-send-email-skakit@codeaurora.org> References: <1620197726-23802-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 --- 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