Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp332148pxf; Thu, 1 Apr 2021 02:16:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfSNqUHqplkQiMQAN9TthUilMG4gG+4YNRVF7kiv+WcNhBJ7S5p8cysdzEQMpNL2GYxLJG X-Received: by 2002:a05:6402:31e9:: with SMTP id dy9mr8887093edb.186.1617268574471; Thu, 01 Apr 2021 02:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268574; cv=none; d=google.com; s=arc-20160816; b=Y20JEnjNVvGpoTu64kw8bAj8+wZ7q8Fda/uj8mfw5RNLxvKIPPdUEyibWYkPzC2hCb cv20JAB0gZOpGqUps6ouBOjYbZLj1G9prFjXffHwBQSn3KIQUmXmeJps57Er4aoLhhMI pgjJ6WVSaHHUNIphujvb4+ShlgV5zfjRIpQZVFoWKeYtahf9+zrSFKzldldrpXdbhUK0 TqqLGUyj+Jzo4mC/2PSlSnnfbLkWPF14GRAfRo0JrscGjkt2iGvbtIL+yBk1MZvUvU+T YUtAtfUxAI2ySQgeSj7k/pfeXHUaI/61Kw9jOxKqbij3guJlZ6V8u0jrJPyqpDGdis2C gKJg== 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=dDm8Hy9rZvX6MoKDxtyw+Z0V4sBgFwSG13098Aeg3W8=; b=zWh8MlgNbYtUmw0o9HV2057QSdjwzdJBUS7dmCpaOuA6Au7w+BFrCG6XiZhJhbDaz+ Vw4MkD2rk4uIm3K1QDfiGem1RTQSjuCBbWq4rrILXg9OYqh3UQNdVo4K1qpgk4Kc+vJS lDAUrL1Lx9/hcUn/MHqQtcQwhfpilZoWMvgo+jESdRkJbLWlNYfCjpjkC3FDzXc/NHW4 jJP+knOFb9WHxxqkn5K487tIjPExUcgtzZoNLgjQD+1rENxgspGD0Xga4RAGinVjwAjc bVsM5WBQK99Ah+3/aBEYen1a+ke55DP6a3cESKkODKKe/YXw1hDMAae+5ad0qP7kLUr0 nihg== 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 e13si4031842edz.432.2021.04.01.02.15.52; Thu, 01 Apr 2021 02:16:14 -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 S233803AbhDAJO1 (ORCPT + 99 others); Thu, 1 Apr 2021 05:14:27 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:63675 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233327AbhDAJOC (ORCPT ); Thu, 1 Apr 2021 05:14:02 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) 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 ironmsg08-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 D1CD24A4A; 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 4/5] arm64: dts: qcom: pmr735a: Add PMIC peripherals for pmr735a Date: Thu, 1 Apr 2021 14:43:15 +0530 Message-Id: <1617268396-1837-5-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 pmr735a. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pmr735a.dtsi | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmr735a.dtsi diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/pmr735a.dtsi new file mode 100644 index 0000000..07077fb --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2021, The Linux Foundation. All rights reserved. + +#include +#include + +&spmi_bus { + pmr735a: pmic@4 { + compatible = "qcom,pmr735a", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmr735a_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pmr735a_gpios: gpios@8800 { + compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmr735a_gpios 0 0 4>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +}; + +&thermal_zones { + pmr735a_thermal: pmr735a-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmr735a_temp_alarm>; + + trips { + pmr735a_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pmr735a_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