Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1125845imm; Wed, 11 Jul 2018 18:02:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeEnXKVu9RQruemuYaDGhx0P9/NUiMjmElzoY2YrUFNIaBjUbe4Dys4vNRO5Fm4eZWDkQyH X-Received: by 2002:a17:902:740b:: with SMTP id g11-v6mr124627pll.85.1531357371137; Wed, 11 Jul 2018 18:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531357371; cv=none; d=google.com; s=arc-20160816; b=TtHHAz1I5d/hzJ+7nf8sVNPCc6m364z0tuLu10dXEkMemCZ3/Jef8Rv0unpPB7YnLW tsxoNd7/ZnPAL7OzndRnoLxbL7knXMQo7Y2NbjAiY8P5gAw5Roou6ZKQaNYCCkf7e+Bn lDQWl4IIcLmXcWTV6jqIarYvtFcFBOpwuMaIWZaDKzF4upG0j74yFDIR+zV9u+NmvkAx 9mBmrhFWAFHIDvhE8SYTkzRgvGNe5DcFp3v4AVXZ9xCDuK3Iw7DWZBxKfgRx4Y6j/Kn4 lDHkS1/bKbNX20K+fsgKvaFENATMWa0//QkpJVfqt7TzPWURLivvajd/knXP8Mm5VH36 Mg2w== 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:dkim-signature:dkim-signature :arc-authentication-results; bh=94fXCpSd45c8Fbyjuqut8tXExDuTQIPRyjvQWKlxufI=; b=YHqfutwpyu8GqMzdFlRLDVFhed58OsPkY8NI1L1ufMAcj2V/7egDVq1epzRW/6kUp6 t1YyYv6LFTEkQJIeqeQPl5Im16EakWl1jsThw3BAAczSmv5BxfJgicP+oyqqtxF4IEW4 ih5nox+BuUNGO2HOchNCeXXUTYXeuYvK1uPx9tnBvNRLBdV1dvu6nmhUkJ7jrTTVcZNf 0osCgWoN3rQ+vj/n9W7Y+pL4AGZU8cl+F3NclLapOyU3DGiS/w42//4f99WFEsvpDwE2 5oJYcVmsC5+4czsBMTuBlPfrkTFtAtqnp2B6uUvB0wukCbAs+equwV7xuugwN0CBap4Q HNIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=gaETRTM8; dkim=fail header.i=@chromium.org header.s=google header.b=jkgCFQEa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30-v6si20204921pgn.258.2018.07.11.18.02.35; Wed, 11 Jul 2018 18:02:51 -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=fail header.i=@google.com header.s=20161025 header.b=gaETRTM8; dkim=fail header.i=@chromium.org header.s=google header.b=jkgCFQEa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389098AbeGKStw (ORCPT + 99 others); Wed, 11 Jul 2018 14:49:52 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:38371 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387535AbeGKStw (ORCPT ); Wed, 11 Jul 2018 14:49:52 -0400 Received: by mail-vk0-f67.google.com with SMTP id b77-v6so14979132vkb.5 for ; Wed, 11 Jul 2018 11:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=94fXCpSd45c8Fbyjuqut8tXExDuTQIPRyjvQWKlxufI=; b=gaETRTM83aQN6gxWum18XROI1gtUc2wlx+DvZsY0shkm7WWSJQvZz9cyTIzY1D92RV gQ1avVcPMPHMaSPcP0f/nRyVLT3NZCWmXd/KSWs5qfPvZWuyS2lunq1ybKS3N4TeDMOm L+p7I8RQ0oGrUy4w9WfwBlSPtfz+Fy41KduY+w9kiinxs1GnFdoXroF9ne4dwgLRz7o/ iJZgbSsQDFC1QTv6LdwS2/zIybClY0q1Yiv9FaLJejv7oyBaIy2FKzEuRc/2etvmK3eT w3wgKQ+Bhsne4qNB97nTsT0nza2sjEpXfhNPCe3YUbn05avDjej3CRzFKK4pWH2iQKMm b9AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=94fXCpSd45c8Fbyjuqut8tXExDuTQIPRyjvQWKlxufI=; b=jkgCFQEa9Upw9+MyIbd1KEuaAe1CCKaeiYhFd0S37EdcaRETq+4fDWAaE7oq6Pm/7Q BeSAYUSFGQlu9XvmK2WTti+rxXxzUnzYWIOrBgjKC9dLm/iZPCEx8/haHktsSeyRrNur LItOQmFUABIMbaUecTplNaOxa364lmPnfgOdU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=94fXCpSd45c8Fbyjuqut8tXExDuTQIPRyjvQWKlxufI=; b=mZSaUIl7tVdU9hKQaCWKMv2bVLv/rSDfQIk83H2TXoCsjWx4a/oYOv2vi4qvRFzynq Y0oikh5X2cSUr13bsFY0U6b6fTYYMLBrp+/mw11MdJmjC8glFabiYbImskvRMwjo52MW n1zI9jxaLlWvlcCdyDCWlH9qGL5rwLy6QSFMPIoT2pej3iDB0kSqDLjTruRnYFQASqCl ezexnRYGZ02hNi2j4jMU6tvA1zAqzfgLCRUyZD7tkMntbJ91HTZKEQJ1tR+f6RVdcPG3 c4apPARmF0CxKevB59R7pARdJUbHdefgc/nVu5WqDQdAWO33Sllor0qVIVCqYfM8jPhG 1RXQ== X-Gm-Message-State: APt69E2yJCnVFQgVF1yci/sowCrK0Uyfmxo8RECaBIFTlvZi5fu/PafO odPOn3WUCGC3+3rK8hYUz1rQRD3GICKR2cceusOvVQ== X-Received: by 2002:a1f:c014:: with SMTP id q20-v6mr14221242vkf.144.1531334654793; Wed, 11 Jul 2018 11:44:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:9495:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 11:44:13 -0700 (PDT) In-Reply-To: <65c39c405076627bd43ec94c211c6998191b9f16.1531136000.git.amit.kucheria@linaro.org> References: <65c39c405076627bd43ec94c211c6998191b9f16.1531136000.git.amit.kucheria@linaro.org> From: Doug Anderson Date: Wed, 11 Jul 2018 11:44:13 -0700 X-Google-Sender-Auth: GBd09JCXNS-vrhpA83iLVAtZlzA Message-ID: Subject: Re: [PATCH v6 7/7] arm64: dts: sdm845: Add tsens nodes To: Amit Kucheria Cc: LKML , Rajendra Nayak , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , smohanad@codeaurora.org, Vivek Gautam , Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , "open list:ARM/QUALCOMM SUPPORT" , devicetree@vger.kernel.org, Linux ARM 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, On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria wrote: > 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 > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index cdaabeb..ba2899c 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: tsens@c263000 { As per my comments in the bindings, nit that this should probably be "thermal-sensor" not "tsens", AKA: tsens0: thermal-sensor@c263000 { > + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; > + reg = <0xc263000 0x1ff>, /* TM */ > + <0xc222000 0x1ff>; /* SROT */ > + #qcom,sensors = <13>; As per my comment in the bindings and the code, I'm confused about the whole "#qcom,sensors" bit. It's not documented and doesn't seem hooked up in the code either. ...but if people have tested this, perhaps I'm confused. How can things work if num_sensors is 0??? -Doug