Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp699609imm; Mon, 9 Jul 2018 09:03:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpenvEFkvA3taZgo8nAexkfgZ1Re2DmjqWgFX8xFHUMrF7GtVXNfQlVigyPcobOoOTtqSEpD X-Received: by 2002:a17:902:24c7:: with SMTP id l7-v6mr21147196plg.170.1531152209913; Mon, 09 Jul 2018 09:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531152209; cv=none; d=google.com; s=arc-20160816; b=NRLcEk/lxftHDXvdSy5TLL/hTv0wr4K9MMvIjfUtpfT/LZ/ZNzd9sNv/4IjQo6Lh7A bBHVR9OjtmIt4+bTaRaZ172Kt6l6djmi9gZCItTAvanDUWhh0r1ZYH6ZUWvhBqg0sz3D T288Wpi/e8+3lJo8Zo3KYpGpfyXo38o56WhlwRgn8mtqJ5gRtwMxqWeyl1ZXFBzx+xOF Frwb7R2/K1U2nQ0LSKSKpMI2thME3LOYArYoIe3eSxvxBNC2XZ8rWnqGeNXGuLDxcFA0 folqKrCOfjVSy2DYvJuxbE8xAnMSVcvh/3wFuMqxqurYCkJ+68ZKIPUOfs6sY/hB0at1 xn9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QW038reX92Lsz8+CJZqe0Bwb3d4HWRg1zlgouOa3RPE=; b=lodu3pYQDMY+6DNbEFwK5PCnqmYrAd0fodQfw3+ZGM512VN6GGDVQ6R90ceuYplK1Y SAWRpeY8kI0VOynhcs2a9yeK+qdkukXY4ct98LoWWsnfcC1WNQVJ5+OePdJ/vaTfKNgy jxcvJ4NG+M4ge1HC9rfe9joQzPCpwo+y3FPpqptdEz4VsOsi+nPWM9mNTaNj/ULh/Yrd 08WuKyOgYV1GE3DWkpLRLWi1Ht+07Ub7qBoZ7Df4afCiJwJkCzRtkqUs7y1GU4NHBGfV XWejLSBMR+XEwW9TWG3skyLYYyi0FAsgIGATZNxCoBM2GEj1vZj8uEnnvuuDV8nwwVos N2OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PsR+oc3G; 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=pass (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 q7-v6si14407568pll.445.2018.07.09.09.03.15; Mon, 09 Jul 2018 09:03:29 -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=@chromium.org header.s=google header.b=PsR+oc3G; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933795AbeGIQBs (ORCPT + 99 others); Mon, 9 Jul 2018 12:01:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46722 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933360AbeGIQBd (ORCPT ); Mon, 9 Jul 2018 12:01:33 -0400 Received: by mail-pg1-f196.google.com with SMTP id p23-v6so1198114pgv.13 for ; Mon, 09 Jul 2018 09:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QW038reX92Lsz8+CJZqe0Bwb3d4HWRg1zlgouOa3RPE=; b=PsR+oc3GDl/47cRMXmVsbWMY8k/NeazAKitjvNj+ERNqCPX+1DSiY/FgmQOtGrE0bS 5Q9zr5WG/UDWmzwl4QTfMSk/9fMCRDkqna5kmWioiv1CLgJrdgZxIT31WMcTgmYpYi18 +FndJrRPXuEpOundLTxDe9Phs6A4nLp5aPH1g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QW038reX92Lsz8+CJZqe0Bwb3d4HWRg1zlgouOa3RPE=; b=YnLw12m98P0kc32/PSOZyACOIzREFtXpIFaSN2eBrVKENVUysZasMBy805MfbtTwIS JwuXzHHdowEpomaKPlUDjuY4ukDduahKMfj5hzl4YwfuYVqm+ddMG2yUWH0IvLpk0xil 9T39E2UcN0a7eur5p2M5TFEWMhaSRX/d7Grj9qeQNjvW5URq6ZipHlYy9G8Nn3qemhzG GO8gF73GlSnfvaZ8WSFr18CDae82xCx8nunJX1u/Q1qY+wUn232IkBR2VD9da7oee/xc BT7hJ3IWIVgvFmRu+sg1JOBH98IGy89sc9l3kCsLn6Sl5Iu8pVOLzcq0pOHe4jenjYAS 6jHQ== X-Gm-Message-State: APt69E0WzwU/ETd6WQ/IXNcv9eaaN/Q0JCk2V7ziT9R2wJsj4q7mSky2 fGT8UHK7CKxxgZTob4Km4W0ryA== X-Received: by 2002:a62:9bc5:: with SMTP id e66-v6mr21734203pfk.84.1531152092778; Mon, 09 Jul 2018 09:01:32 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id j27-v6sm45899016pfe.48.2018.07.09.09.01.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 09:01:32 -0700 (PDT) Date: Mon, 9 Jul 2018 09:01:31 -0700 From: Matthias Kaehlcke 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" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lakml , Douglas Anderson Subject: Re: [PATCH v4 6/6] arm64: dts: sdm845: Add tsens nodes Message-ID: <20180709160131.GM129942@google.com> References: <20180703214822.GD129942@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 04:56:51PM +0530, Amit Kucheria wrote: > On Wed, Jul 4, 2018 at 3:18 AM, Matthias Kaehlcke wrote: > > Hi, > > > > On Mon, Jul 02, 2018 at 06:14:09PM +0530, Amit Kucheria wrote: > >> SDM845 has two tsens blocks, one with 13 sensors and the other with 8 > >> sensors. > >> > >> 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..edf8505 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@c222000 { > >> + compatible = "qcom,tsens-v2.4.0", "qcom,tsens-v2"; > >> + reg = <0xc263000 0x1ff>, /* TM */ > >> + <0xc222000 0x1ff>; /* SROT */ > >> + #qcom,sensors = <13>; > >> + #thermal-sensor-cells = <1>; > >> + }; > >> + > >> + tsens1: tsens@c223000 { > >> + compatible = "qcom,tsens-v2.4.0", "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>, > > > > I tested this series on an SDM845 board. Temperatures can be read from > > the tsens0 sensors, however for tsens1 sensors I get: > > > > cat temp > > cat: temp: No data available > > > > TRDY_READY_BIT set when reading TRDY_OFFSET in get_temp_tsens_v2(). > > Unfortunately I currently have no documentation of the registers or the > > thermal sensors in general and couldn't investigate further. > > > > Any idea what could be the problem? > > Strangely enough, I'm seeing this now after rebuilding my integration > branch to test some other bits. > > I've sent another version with this patch removed while I investigate > this. Could you check if you're able to read all 8 sensors with v5? With v6 all sensors can be read, thanks!