From patchwork Wed Jul 18 06:43:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 142240 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp177463ljj; Tue, 17 Jul 2018 23:43:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0lLXe0cgVbIsHMEbmqsZVlYa34WzoY7CxVSXBQQhWTpkGXsWsGoTCSOAB10oYKDKPp1Hy X-Received: by 2002:a17:902:381:: with SMTP id d1-v6mr4694551pld.309.1531896224859; Tue, 17 Jul 2018 23:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896224; cv=none; d=google.com; s=arc-20160816; b=cwYXXHF0zbD2uoSVZrWbn3cy1sJeriiHDfsFZ4dv1BOPwr+4s95b3NqlRr1j581C1P WwD+Q9hdcIH5RLelRthLVKKhxFg+VQ6D0gEa5AaYEKB3oHdUrEd/Nuvk4fPGimuJjv5F WeFfLlvK51vs3KWc8VL3TbfVyxb59TXicNy/nbqkf71iWlBwnLISUP3XJKXLLOFDmEYf GL7SvAP3AMbRXzZ+ktnFpXo6C2q2A2JxS5f5fHhf0N+DhwYjuLRFFA3n/KJMGbz4g1aM kZ/EzoctWR6FRWsmZB7jvFKSY89ZPXuMhbHtYsjsEJjNZGyzH9Hlh+A0OU0v8ilAKRsf 8R/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=wpYbk5rcyJ5//drPAdl8NqUEO8qLDEnBQNfgS2eY8w0=; b=y5d7o5GilcYKar38Apn9HkgjuSnBmUMkOpevZYnUrpD6d4XTXHEYIuaWvFe5nd+fxO jjH05zfe5u0G/cFbpgl5vjRnbORY7AiuU1uYHlppF2x8QfgHdjYE6s5GFnIEdUxzO7Nm 74sv1FyMGfMu4TRtf8NVWzHV/4TMHJ13t9ecdbdENeYrKUb9DqIjODtzd7viOT+EFCfa 2/eSbpUo9YfiJE2zkyXwNWADyuc40BHPKTUhprIx/zVwizKIXZQPKChlSnsUkaVzbR64 mFPSIz3R1OnZVy1ZGD0ygugFYP/DsmvDjrks7oZPf/PohF7hXdll0+AGad4TVNAx37KI ++2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X1wYElMj; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si2668820pgj.145.2018.07.17.23.43.44; Tue, 17 Jul 2018 23:43:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X1wYElMj; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728278AbeGRHUB (ORCPT + 13 others); Wed, 18 Jul 2018 03:20:01 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46798 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbeGRHUB (ORCPT ); Wed, 18 Jul 2018 03:20:01 -0400 Received: by mail-wr1-f67.google.com with SMTP id s11-v6so3402255wra.13 for ; Tue, 17 Jul 2018 23:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=4oDCvpizcqb4/i72AEYMNJaEhphPFSx5aHBq53Ho/iA=; b=X1wYElMjmFFVBIYhnF7TLSBDWkYYSU6NiObba5XVecgkEWylovwt0I8cX1pfFxrGeL 8QdFNOz/JrEkJeDaSswui7prpExaAtgg0Kq2WP9g9vgtoLpQjUmeFy5BLv0tlzBrniZH H01jcO/5eL22yYG5HcgTxZ8RLX7I/a8H/+OUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=4oDCvpizcqb4/i72AEYMNJaEhphPFSx5aHBq53Ho/iA=; b=lVJjgBTRgaBhIB2YpHJYpHC763Y+H38h9YIGphSOBcQjDxLpJBNCVgQJTYg+N3ZMup +mSaATxrnaH5kru8KYJRGfiozZYMRoaUDdcj8ys0XOZynAvqg0VsgIrz0IZtH5lG8Biv jLGtAnAxVuNQkij37D47ULIfGX7lZCcoktYJuKXRrru7w4/dZYSqKsP7xs67JpNnDZxe CePjCYZBpkv2uAhSFj7osSphhrDJVIKC+YfoKKdka4koVq3WuSBmK1uo19bzI27yMUdS N4OXJVREl1hxNdgJKiw4r5omVxMxUexe3R5hRcxCrRMER+Qvj+tZlyIESJhku56QCJzT GlYw== X-Gm-Message-State: AOUpUlGs7e7TZRj+Ore47BKeuUPGW1aJHqiTj9RoAJ8ja+Yohow/GS49 YrQ24xnOEERWaiV/116Jae7bEQ== X-Received: by 2002:adf:f410:: with SMTP id g16-v6mr3395500wro.256.1531896222866; Tue, 17 Jul 2018 23:43:42 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id r140-v6sm1365330wmd.27.2018.07.17.23.43.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:43:42 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , linux-pm@vger.kernel.org Subject: [PATCH v8 1/7] thermal: tsens: Get rid of unused fields in structure Date: Wed, 18 Jul 2018 12:13:07 +0530 Message-Id: <37bbc8c5c464bbc8d610c85bccaf449e5670497b.1531895128.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org status_field and trdy are unused in any of the tsens drivers. Remove them. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Acked-by: Rajendra Nayak Tested-by: Matthias Kaehlcke --- drivers/thermal/qcom/tsens.h | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index 911c197..dc56e1e 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -77,9 +77,7 @@ struct tsens_device { struct device *dev; u32 num_sensors; struct regmap *map; - struct regmap_field *status_field; struct tsens_context ctx; - bool trdy; const struct tsens_ops *ops; struct tsens_sensor sensor[0]; }; From patchwork Wed Jul 18 06:43:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 142245 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp178039ljj; Tue, 17 Jul 2018 23:44:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc0jaKezLOIQA+XTtRpnJpJVv+DmXHBOggMMAR4QjAmjep3pL65r9pQZZjgcihLhIV4myT3 X-Received: by 2002:a63:e60c:: with SMTP id g12-v6mr4641729pgh.308.1531896266858; Tue, 17 Jul 2018 23:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896266; cv=none; d=google.com; s=arc-20160816; b=BzGSgkYwwqaGkxO+vxyD0cm4/9vg/I1ZBJyv4p2w30sY85u2RPNf6G58Hw+43EgErr 9PFv+7y6kuAsqsq/w05fc57UEqIEgE38F18F+BX3mrckIR+eYxhgTVOqJYSK6IhJi9+J Wo6pxafopSIW9kU8RgCLK4Jqy6wbgzjcK+MOiZjcYKfbLLbqmENwwfQHiMHIQXk+rvS7 L7VSDVnQ4JZlaalgQ3REFZlKRXvkLHtbMBjxnO+aVteRthXNYx3WzwvHaEoDw08SAT9h frBr7AIN/mDJ1IIPCWL1UH5vIoTQkazXCKRibr9YJFR89uMPpPphV+1Kv9PmWv8QmArF aasA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=3kkvaYSKsnuZrc0t59nHkThJ1orQeKnx7h0eJEmjrKI=; b=JbUthABQOHJwQEXxJ6id/8o4klOFuGyiQCaerva4kq4BykwYK4uCjT+ozYbmzKWizs 5loe1U9h6y7LC7C/Ca1qaQzdhvIluPCEUGXUqX/JUj+LLMusSX0xy2h3Sfrmd8+c0U0P 5FkNcDP1pgpz6YQ24DONWc1iA4/v53d7lR8AszD5OeOJpgu3noG5dv/FIfQACHxeW0/r vOf0+6+9cS2civXB2kvQM2MlZbP65ySri2SiNhKBypj0z5KTAQcSaHv2jXyDa/X6GoK4 9nziNkcUOuNLbMxckaqvn4bFDakOgoUPdu6tY2W1keWfH/f8z8hPQoXKjYbFExhh+gH3 otsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T6dmlguk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si2442917pgv.641.2018.07.17.23.44.26; Tue, 17 Jul 2018 23:44:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T6dmlguk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730019AbeGRHUn (ORCPT + 13 others); Wed, 18 Jul 2018 03:20:43 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37175 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbeGRHUn (ORCPT ); Wed, 18 Jul 2018 03:20:43 -0400 Received: by mail-pg1-f194.google.com with SMTP id n7-v6so1555590pgq.4 for ; Tue, 17 Jul 2018 23:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=v7ifTUzkyvVtGx5wt0pGx0Zah3Qa2i6PSQqCHrSBSkU=; b=T6dmlguk24aBlZ6ctNglJS2Gx1gJKrcspfIbnkRUlXpf8SpxJ8Pet6vtzeqgDk236u FNKKjFonXyOUrsOV/UClu7WRvnvjsIYoWuE2oN+g+DVoUxeBzCZbPqBnSrzRr0rDCAUC aFEKf5fwFV4B3CPie6AUKSiCFEJkjpbEN/bQ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=v7ifTUzkyvVtGx5wt0pGx0Zah3Qa2i6PSQqCHrSBSkU=; b=mAYzEZbl7iUZYXUQKIM30viATAp9eoxlgXxMR1Lu4qXwiHT3FopGjuGaIMh57Fd797 oJddMEmSKeTQYEfyZjoaU/zDTSVvGBLlIHiv++Tl4J8aoE3RIeNb1U6/0mDW/GnWX4Ko 2KmPJ9mCRheulGU6vo0trjJzVnmzw2Sj+LHrJVUFAdOYXnMdV1EhyIQafQRM/FjsQ12h TNcbo1ROb2lKMk0ZsbmWRRtxDW1iDWnQch4OfRAYq72B+ZDBRcIjhoKr4WE+FbWYuPtA NqM2bxJtAv7BhORcQcaDmSWaA8E/CUH0kgQ2FIbV2icUbQm7slenApwdkdt7YVXdBOQm tRlw== X-Gm-Message-State: AOUpUlFKT81Kv1CWANRYuoBKCJpDm7h7Mb6GZ38PUJCm3hBAO8omuxs7 2unlnshJ5IOew/MhqI9pJmpAWg== X-Received: by 2002:a62:4a41:: with SMTP id x62-v6mr3951433pfa.45.1531896265134; Tue, 17 Jul 2018 23:44:25 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id z8-v6sm4054244pfe.163.2018.07.17.23.44.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:24 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Kees Cook , linux-pm@vger.kernel.org Subject: [PATCH v8 6/7] thermal: tsens: Add generic support for TSENS v2 IP Date: Wed, 18 Jul 2018 12:13:12 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SDM845 uses v2 of the TSENS IP block but the get_temp() function appears to be identical across v2.x.y in code seen so far. We use the generic get_temp() function defined as part of ops_generic_v2. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Tested-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- drivers/thermal/qcom/tsens-v2.c | 5 +++++ drivers/thermal/qcom/tsens.c | 3 +++ drivers/thermal/qcom/tsens.h | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c index 44d3736..f40150f 100644 --- a/drivers/thermal/qcom/tsens-v2.c +++ b/drivers/thermal/qcom/tsens-v2.c @@ -69,6 +69,11 @@ static const struct tsens_ops ops_generic_v2 = { .get_temp = get_temp_tsens_v2, }; +const struct tsens_data data_tsens_v2 = { + .ops = &ops_generic_v2, +}; + +/* Kept around for backward compatibility with old msm8996.dtsi */ const struct tsens_data data_8996 = { .num_sensors = 13, .ops = &ops_generic_v2, diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 3440166c..a2c9bfa 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -72,6 +72,9 @@ static const struct of_device_id tsens_table[] = { }, { .compatible = "qcom,msm8996-tsens", .data = &data_8996, + }, { + .compatible = "qcom,tsens-v2", + .data = &data_tsens_v2, }, {} }; diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index d785b37..14331eb 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -88,6 +88,9 @@ void compute_intercept_slope(struct tsens_device *, u32 *, u32 *, u32); int init_common(struct tsens_device *); int get_temp_common(struct tsens_device *, int, int *); -extern const struct tsens_data data_8916, data_8974, data_8960, data_8996; +/* TSENS v1 targets */ +extern const struct tsens_data data_8916, data_8974, data_8960; +/* TSENS v2 targets */ +extern const struct tsens_data data_8996, data_tsens_v2; #endif /* __QCOM_TSENS_H__ */ From patchwork Wed Jul 18 06:43:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 142246 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp178107ljj; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeVPBlE3XQ5K6+wFJlVFl3RpLvlqYYKb+jH8WIoDqAYvjF2e3hYZHIZgkNBLLXqTbbCmPFu X-Received: by 2002:a63:3c0c:: with SMTP id j12-v6mr4525951pga.440.1531896271192; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896271; cv=none; d=google.com; s=arc-20160816; b=O0da24aPMOiPPB3SvNnhDvH0cOYk1bSH5iORJOS2mQDC9AwibGrx5QpNRvHDbHexJO 3H0jC5pKY1dcYbmkY8uNX86f4mg/qd34o9EBzkhpBKSiNKBxtomECj9NBfiaQIBnlISc 8t9Sc7F2QVwPjwNkcDLx9L3iia0VtiEeJZ4mfqa5z7Vtz2g3kJto+7K6JgNv2gq3PYAx jL+b3D9bjnBfEd6hzk4zQ5kOEovHPGsXOKBAJ+ldtJLCSchf+4zdUYGfr375Tc+1xG2T JXMwlvWsr4WtaPadWLM0vy7zdObqD/6mQpMOMPfh53tSjK/VYFBxwkar2WQbkFUc97no s/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=yCvaDboezeN2wnG0sRsc8poSWVxkPMFHY4/b24+7m/g=; b=kfNcZZwacbm/xK+bbNYJSrvXo45E6fGa91sNN1Hgdrsxs5qiu5kP20aba+rs2aFmBE lCE6f5HVBLSuCUTeSN7AyJ8o2FULx48QTvOuA9/YrRxhtK85BxmXtZqzrliiOK6DHPKj YxSxbrKuFd7Mwu9CEFT3ApQCtKtNad/w6JCHYiBDpDdiZpKv0SJ8kV0sqG7DOwmxtd7f ct4qbTkOC87u7mQMeGn/ManEM3QIEoaduhaPZqcWHXj1PxC+Bwt5ILgFfEgdT9qf4O9a PtgdUySQguiL3ED/cq2Bpn25NdFzwSRnO0BIawrFRnHiNSuEPpF6+JgCc+e65VoZ+2SU i7nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="F0/20GA0"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4-v6si2962145pfh.168.2018.07.17.23.44.30; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="F0/20GA0"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbeGRHUr (ORCPT + 13 others); Wed, 18 Jul 2018 03:20:47 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42618 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729677AbeGRHUr (ORCPT ); Wed, 18 Jul 2018 03:20:47 -0400 Received: by mail-pg1-f196.google.com with SMTP id y4-v6so1550692pgp.9 for ; Tue, 17 Jul 2018 23:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=F0/20GA0BuCtCFnXTUAf9mmSlKh30DiHD3lYza665pIBMLkxHlgQxFC5dpB8HBTsPM WhLKrYWfVCFZ9NDZvRdBB9Hchbvg2y2+pyV0BU7MrEWW7CfAZ9T902gET4U/dkwXowXz lNUu6D9p3hUTtYY2zbqOm0D0BGEJ26FtkqDLM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=kGLSHekXQ6/roTseNniCZ/ANxdUjFCRNhifQELHLXtESiOy1vhupnmKWf/Flct7Ejq L86KtwiD4tFXHB78Vq3nCvTn+SLPMeuS8JoFktFDyASVQ9CbQZu8tJiMVYhmMsjMJDDD ZO+UGa+z9aTq5o4QEj3JHeF1dAGxSUso6+3Q/a3+X5PP7G3vVxBTBf+AWgF3mF+q1Jtl 4bzhV/x0rsh1/ZLob8gf5yJYW6tx3jLjoImk2hPqpE9Uptkzv3y1/f0eWq7OpFdWsOnw 989Ub9LFJQrbSbj59pCFaRBZep5pZz4uxzT+7z88RMK6lZHGWMdXXK2iaX1wXMXbVmhd NqcQ== X-Gm-Message-State: AOUpUlFp76WGs58hb/V2BVtY9unv/C+LGPIhXglzNJjIo11VZ8/aelsC +Mt9o5HJBpwHGKIkbNPqD7CSZg== X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr3853543pfe.207.1531896268411; Tue, 17 Jul 2018 23:44:28 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id d132-v6sm4905676pgc.93.2018.07.17.23.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:27 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 7/7] arm64: dts: sdm845: Add tsens nodes Date: Wed, 18 Jul 2018 12:13:13 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SDM845 has two tsens blocks, one with 13 sensors and the other with 8 sensors. It uses version 2 of the TSENS IP, so use the fallback property to allow more common code. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Tested-by: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cdaabeb..01ff146 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -221,6 +221,22 @@ #interrupt-cells = <2>; }; + tsens0: thermal-sensor@c263000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@c265000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc265000 0x1ff>, /* TM */ + <0xc223000 0x1ff>; /* SROT */ + #qcom,sensors = <8>; + #thermal-sensor-cells = <1>; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0xc440000 0x1100>,