Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1575844imm; Wed, 13 Jun 2018 23:49:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLDW0NKrPr5CibuHyKiRf+F+/MJtzJ0n1dNBCluQdEWEEnaiyrslyft1ulDtgu8NVrxiQJG X-Received: by 2002:a62:48cd:: with SMTP id q74-v6mr7972343pfi.153.1528958970947; Wed, 13 Jun 2018 23:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528958970; cv=none; d=google.com; s=arc-20160816; b=Z9aiTLhlgzwMLYGfIY47aqW+9whH4NaiRb8MJByad5yWs4eQl1ljhI4Syh7jo0/3NV MS5yWtD5ZbPqFoyBevSB9+GWEbb9ZMD13k7XcKc3yKqJjCsDvBiNxe383rhflhek3FbG 5Gp9FLPJLeTTHmtR6crSAcEIuulOLHq4UrdOqLgQiI1etp3ERZXxDLiJt93z/Aj0Zw/n rT0Er4y3LnmKJ9dAhdjRMm3QgC9lwqy3gvv7+LUJP/ruiRkAsCAYxqfCElbItpITCXV8 x7Hqlydi1aZ8udSsfxGXJ1xPBr84BTSLxDRpl/q5KU3qW9dWpy9fo8Q99ZU8uPRKfTVw OzDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=SgULIKeo2o+nsaOm9cj/31jiu1PEoaVwys8MPBnsOXQ=; b=QenJvN2Ss7HJ9lRWLFjCr1WaAuEQsLSiGaxVVY1dC2Q/okiHO1fbyuELHuJDDv1LOX dP8uy+xMRq9qEkxFG7kiGjkJJKPh1u8z+BmwjQpaW0R2CJj04V5tcYHSlqWC9gI4ai0H S/HrbNSC99xNiV+Dhy1CCNtYr8a99l3F7lLxxXkDgLfCC/JcDwhM83NnxbzNXhYqMoDz fwWSRZ5pICeVZejBlbOf1NLWnO5BqnXKNXKl4dfjeD5PkuUu4wgLk9BdHqtixNtUdw3/ fq/sCwEIL6KLE5dys5+wZzsuMVBUjUDobDq85J5MHAckrCeWyXJAfA0MTqWIpAza2JUQ OcZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kPi1HTuX; dkim=pass header.i=@codeaurora.org header.s=default header.b=MOSO75o3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t195-v6si3870316pgb.323.2018.06.13.23.49.16; Wed, 13 Jun 2018 23:49:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kPi1HTuX; dkim=pass header.i=@codeaurora.org header.s=default header.b=MOSO75o3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbeFNGsw (ORCPT + 99 others); Thu, 14 Jun 2018 02:48:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33122 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeFNGst (ORCPT ); Thu, 14 Jun 2018 02:48:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4D28C606DB; Thu, 14 Jun 2018 06:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528958929; bh=dUAh1AGh/rJjhuHmjBc11b7zcyeFUnxhJ6/sgUPPUZ0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=kPi1HTuXFLMhGPlo7ldwFC4Sb1DYEXD3n33OM9jPz6EDomKeA2y/g8QGJlHYsrv+o by+6MQbqHfTbC/7LikZFhJbAiHbptNrEmikwGt+9fNFh7nYNbeKv+lAJNa9LLPbc2L Df02JESValzJvTN2xfXKbKTcjELjmGQWwDtmoDxw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 542A760159; Thu, 14 Jun 2018 06:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528958928; bh=dUAh1AGh/rJjhuHmjBc11b7zcyeFUnxhJ6/sgUPPUZ0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=MOSO75o3ru7lPZa12tJzQvv8fe4jpRjCAHk+XQfa/punssoRe86KB01l8vbBvkj5W 8jF+7GQMuJ8GZRG0YqPrKE3pRfflihEMMFFSkurgxWeNYNEsDYEPb1eg7xdcvU6H4B ds8nnN9V0TL4jxPW1ez+CBkF4OBvwBUhR/52IH/g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 542A760159 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org Received: by mail-qk0-f179.google.com with SMTP id y4-v6so3047360qka.5; Wed, 13 Jun 2018 23:48:48 -0700 (PDT) X-Gm-Message-State: APt69E2PJaAZjbBxSlNftZ5g23XhysBSZAeiEEp7jPQ/JenUrHp1Ewve rGuTnSDRQEmb2dG9lxBWOMywinaED3R0hac3738= X-Received: by 2002:a37:7c45:: with SMTP id x66-v6mr1044214qkc.310.1528958927511; Wed, 13 Jun 2018 23:48:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:1082:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 23:48:47 -0700 (PDT) In-Reply-To: References: From: Vivek Gautam Date: Thu, 14 Jun 2018 12:18:47 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/5] thermal: tsens: Add support for SDM845 To: Amit Kucheria Cc: open list , Rajendra Nayak , linux-arm-msm , Bjorn Andersson , edubezval@gmail.com, Zhang Rui , Rob Herring , Mark Rutland , "open list:THERMAL" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, On Tue, Jun 12, 2018 at 4:24 PM, Amit Kucheria wrote: > SDM845 uses the TSENS v2 IP block > > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 1 + > drivers/thermal/qcom/Makefile | 2 +- > drivers/thermal/qcom/tsens-sdm845.c | 15 +++++++++++++++ > drivers/thermal/qcom/tsens.c | 3 +++ > drivers/thermal/qcom/tsens.h | 5 ++++- > 5 files changed, 24 insertions(+), 2 deletions(-) > create mode 100644 drivers/thermal/qcom/tsens-sdm845.c > > diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > index 292ed89..8652499 100644 > --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > @@ -5,6 +5,7 @@ Required properties: > - "qcom,msm8916-tsens" : For 8916 Family of SoCs > - "qcom,msm8974-tsens" : For 8974 Family of SoCs > - "qcom,msm8996-tsens" : For 8996 Family of SoCs > + - "qcom,sdm845-tsens" : For SDM845 Family of SoCs > > - reg: Address range of the thermal registers > - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description. > diff --git a/drivers/thermal/qcom/Makefile b/drivers/thermal/qcom/Makefile > index 2cc2193..dc9f169 100644 > --- a/drivers/thermal/qcom/Makefile > +++ b/drivers/thermal/qcom/Makefile > @@ -1,2 +1,2 @@ > obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o > -qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-8996.o > +qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-8996.o tsens-sdm845.o > diff --git a/drivers/thermal/qcom/tsens-sdm845.c b/drivers/thermal/qcom/tsens-sdm845.c > new file mode 100644 > index 0000000..a647265 > --- /dev/null > +++ b/drivers/thermal/qcom/tsens-sdm845.c > @@ -0,0 +1,15 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2018, Linaro Limited > + */ > + > +#include "tsens.h" > + > +static const struct tsens_ops ops_sdm845 = { > + .init = init_common, > + .get_temp = get_temp_tsens_v2, > +}; > + > +const struct tsens_data data_sdm845 = { Just a minor nit. 'static' here? > + .ops = &ops_sdm845, > +}; [snip] Thanks & Regards Vivek -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation