Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp331870pxf; Thu, 1 Apr 2021 02:15:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNE/uvs2yNOF6vI0bFX+5qFXky+JE4GfTs7/DmTldxNS4IomSYk9L+D6dawpLkiW2C3jFm X-Received: by 2002:a05:6402:17d5:: with SMTP id s21mr8666815edy.65.1617268542907; Thu, 01 Apr 2021 02:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268542; cv=none; d=google.com; s=arc-20160816; b=YxO7zIPcnazJLVNi/XjB4XbccinHc7gpVbCki1VRZ0y0jxRJz44bsuNVSSMJx4Lvzb F/MUnbF1eL9lHaftn4Dl0lIXxDajkWkimmbbJB72vufdsmUjBDFLiWzzJmKii8h51Cl0 VHALx4++QsfPp+2Javi3852ZkELjPFMzIO+te6w4vn0GydzKgZyVQsyHkO7SFDCKdiMb zvBX1schk4f7EYrbfDdhqCQdDhGVAQz6p1VGu9OMqr09HC7HfjL3LEqnVcij5fWSRj6G K3pPm7kfsc0PdgQCerV3kuJ/rNd1ifL5jDLnhQ4n7xlKQmF9DfU37ZyDRkiL3bOJHI71 XGlg== 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=QOj5ofvZWithYXwQW20jNgwdFJF9psry2EXufsqZ8No=; b=DEe8gnACz3E98FonoZgQHNB0UJocpt/FNGg6NVgbGZVNC4ThS68i8wc7dkA8Nz/06o 4dsCb+Pi9ccpN//AqE4HO02BJV6ffiEo7pudbw3OpcaQCU0V/0SeAlnvTLkgMLLILneK zEGLmw5zG6ZH6WL6YvnjETdVsNldARAz36QocIr46s3NA37wIbMUFPVlEI2BACxBPRT5 ubgbnlXQny6ri/Ap9eOzzjCR7S0Vz99oN8to67aw1+QqBprUnzQwdPYRJ7pgiyHzJ1SO HEgQmzXuI+niUJ2r4V9Pikzj27TIEBnRAFyU2BJOH7pyw/UwR69X1PFtt5buksoYeEme T1Og== 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 a12si3762634ejy.363.2021.04.01.02.15.20; Thu, 01 Apr 2021 02:15:42 -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 S233729AbhDAJOV (ORCPT + 99 others); Thu, 1 Apr 2021 05:14:21 -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 S233024AbhDAJN7 (ORCPT ); Thu, 1 Apr 2021 05:13:59 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 01 Apr 2021 02:13:59 -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:13:57 -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 9A8C42CFC; 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 2/5] arm64: dts: qcom: pm8350c: Add PMIC peripherals for pm8350c Date: Thu, 1 Apr 2021 14:43:13 +0530 Message-Id: <1617268396-1837-3-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 pm8350c. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8350c.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi new file mode 100644 index 0000000..f2538b3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2021, The Linux Foundation. All rights reserved. + +#include +#include + +&spmi_bus { + pm8350c: pmic@2 { + compatible = "qcom,pm8350c", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8350c_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8350c_gpios: gpios@8800 { + compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8350c_gpios 0 0 9>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +}; + +&thermal_zones { + pm8350c_thermal: pm8350c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8350c_temp_alarm>; + + trips { + pm8350c_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pm8350c_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