Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1189709pxu; Thu, 8 Oct 2020 05:44:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQx8MMS8mYfIMxWIpka6CJzbn+O/Wld9rdKhznEo7+efE5C0uh/vf1dTjmh/J6m9NO5NWl X-Received: by 2002:a17:906:590d:: with SMTP id h13mr8370644ejq.226.1602161093467; Thu, 08 Oct 2020 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602161093; cv=none; d=google.com; s=arc-20160816; b=hVxdS2hfk2ATVwwTZ+SLY6QDvFXjE7kKfkx4IS7W+4hFqn7fDQCFbh5ZrHb270lFW+ 0J2lf438TmKuLwxWcM15qDwuXuOR0kgj2hL3N6oUezN3bc8o4XSub1NOSjEBh3RDro/D xdCIgKeMlb/njsyy81wde/h+0JZP04IJS15aplCIYT0uVw/n5mil6u9NNW2y5T3DXPpR P5kvf37A4Xv5Rrt9y/IOaxvlva1LRhMdsPp2gDPGZ5Bgw93CTvltM8tUW1AfIgRANzL7 LmFi9L6NrXBfm4xWu5Dr2t/njXHlpbHbx3nZaJwSkt/Sg66dM3UKhR0deY2vDUSGggLb BBYA== 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:dmarc-filter:sender:dkim-signature; bh=c2wuWebFeMtU0dq6plbSJA78fREfFo6EKjuDMrJdPNU=; b=ksrmcuQ7kitrge3fqAYfgtvm7fWSpermsRV/6J8nViyLApmBHHnP2Fs8/bi0xYi0ht itSJZ6EnE0JyTP7j461CyR5oLOGaQXUFgM3KpXWNJIi12aH8//TAIWXb5odIg8VHJuLK Iell0sIqe0wmep1KU8MzNtyfdzVm++NYtfvWRp/R6RQ+e6gXse0V0zr4PwjKbOoP4vJB Tet3JzisGmbiv8d7enL708vyyykXA7uitLkk3JbDmQxSEytn7Netwsf9dlOCW7jAUWHU OCFb9ACCPvvzTmST/LTMAT6KimLuzmIbs57oi9u7YTumMS9EDcFQQKAo3vbHaXmRDrNX pD2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pQXvxBKw; 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 z3si3558390edp.549.2020.10.08.05.44.30; Thu, 08 Oct 2020 05:44:53 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pQXvxBKw; 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 S1730063AbgJHMlH (ORCPT + 99 others); Thu, 8 Oct 2020 08:41:07 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:16396 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730045AbgJHMlH (ORCPT ); Thu, 8 Oct 2020 08:41:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602160866; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=c2wuWebFeMtU0dq6plbSJA78fREfFo6EKjuDMrJdPNU=; b=pQXvxBKwTwBqgwlEdmmSxCcEoD/YJFIWJ+aWIc4IqnUXw+0a+D3/n6reQ9LvfwvSVMbh8LfO 262sG95UvQ7SrNckH4Ujehtf7n7ZpcLRykvTFxcNyC0TKUyoTvFknTT93oNlw8WZnMj34FGO U0P38F0O38FfwIll8oTp3X5luqw= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5f7f08e206d81bc48d5f756a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 08 Oct 2020 12:41:06 GMT Sender: jprakash=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D11DDC433AD; Thu, 8 Oct 2020 12:41:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jprakash-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jprakash) by smtp.codeaurora.org (Postfix) with ESMTPSA id 543E9C433FE; Thu, 8 Oct 2020 12:41:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 543E9C433FE Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jprakash@codeaurora.org From: Jishnu Prakash To: agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, Jonathan.Cameron@huawei.com, amit.kucheria@verdurent.com, kgunda@codeaurora.org, aghayal@codeaurora.org, Rob Herring , linux-arm-msm@vger.kernel.org Cc: linux-arm-msm-owner@vger.kernel.org, Jishnu Prakash Subject: [PATCH] arm64: dts: qcom: pm6150x: add ADC_TM definitions Date: Thu, 8 Oct 2020 18:10:25 +0530 Message-Id: <1602160825-10414-2-git-send-email-jprakash@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1602160825-10414-1-git-send-email-jprakash@codeaurora.org> References: <1602160825-10414-1-git-send-email-jprakash@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ADC_TM peripheral definitions for PM6150 and PM6150L. Add ADC peripheral definition for PM6150l, which is needed for ADC_TM. Signed-off-by: Jishnu Prakash --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi index 57af0b4..8ab4f1f 100644 --- a/arch/arm64/boot/dts/qcom/pm6150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -52,6 +52,16 @@ }; }; + pm6150_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pm6150_gpio: gpios@c000 { compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; reg = <0xc000>; diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qcom/pm6150l.dtsi index f84027b..b49860c 100644 --- a/arch/arm64/boot/dts/qcom/pm6150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -11,6 +11,30 @@ #address-cells = <1>; #size-cells = <0>; + pm6150l_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + adc-chan@6 { + reg = ; + label = "die_temp"; + }; + }; + + pm6150l_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pm6150l_gpio: gpios@c000 { compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio"; reg = <0xc000>; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project