Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp422930imm; Mon, 9 Jul 2018 04:28:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpflB+gFP4dm7P/Oo/haWsY6VXHopLyLkrDy0646uKqDZCfp/7Ohq/X1LQJQOUjDnZi3rEtc X-Received: by 2002:a63:8c51:: with SMTP id q17-v6mr18981481pgn.236.1531135691818; Mon, 09 Jul 2018 04:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531135691; cv=none; d=google.com; s=arc-20160816; b=uZK5B+qoK1Y9WN5h6l2cpV5TP6V8jykLnmymMy3kL+2Ta74JsRz8VNKTSg3mcelgX/ 2ynrF/oLlrN9vQKQCCl/8EI8qkhQQAnvyTpTHS62AAjdK+D1FYUOBVqszWmgn7xENuog YBijuUqN/ewynPlueGsD7UWxAieio4fpBn/0y78jRfb87vsby37YVWV4dRqJxhR/5EkJ pAeZHsPI0C2/Xvzyiyv+DNeYOA5wQkDbCA7XUNMUwrnUXxhy7tySQ4eASMfQcYhvYwOZ YO6/ZCnP3Cq2KQqcwAckYuj9ODAEXAx6ttmJS+SYHHh85e6HZXNp4tEBi7WUbW7OAnCZ EbYg== 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=phKsp7PWpBJ50ZeBSTI7KmmBE7AOsvG3e/l0i41VK8A=; b=sFGAIOKaikO394aXFY9HZvoa7XMshnsnAaEP6kvs6yCaURS7b1vBrFQjJHNx7z5zdS 3gFk4LhloT+oq2VOCW3SZku0EFjvJAI/6DP/AI6Z1n/8WhNraJYVlubzvzm1O5Jr0Rlg tFmUBxLqKaandOTkvHN3dBmUz/U9Cj1JZ+3w+nViv/pyWtXHAM3Pr9fiWNc7+3H5Bcz7 xvgGIt9xpyLUkzYnE9ntBo2IqxMIuRnZ5vDWKuLauogHmxwSciDHqzpcr0aASlp47TPC WQR6Lhca3Iatgwrc03Mwpz0B4mNqUOpE2k+wbJDsVXRwjfOtphCmdfP6GUCU9t3YWL6y 2ijw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=lSlTRCcL; dkim=fail header.i=@linaro.org header.s=google header.b=ig82p968; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si13498862pgu.191.2018.07.09.04.27.57; Mon, 09 Jul 2018 04:28:11 -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=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=lSlTRCcL; dkim=fail header.i=@linaro.org header.s=google header.b=ig82p968; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932801AbeGIL04 (ORCPT + 99 others); Mon, 9 Jul 2018 07:26:56 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36715 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932547AbeGIL0x (ORCPT ); Mon, 9 Jul 2018 07:26:53 -0400 Received: by mail-oi0-f66.google.com with SMTP id r16-v6so35210173oie.3 for ; Mon, 09 Jul 2018 04:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=phKsp7PWpBJ50ZeBSTI7KmmBE7AOsvG3e/l0i41VK8A=; b=lSlTRCcL6EJ103uYbfDw6jxJaeZTdJeCoBZftooTZRThglIJ2wKflkJCkLHhjSIDUe r3gDuinCbUVdonpSfLZgFnsyrux7+8Q0fmu1Z0RG2IlZSxTyw/hlKAD0VHJyoIP4SLIv m1EwepQECiJU9aLtd054oNOqU5D4NbSNihImRmYJt6pi7j5mA57yYGMEV2KWAf3/LC/O yR9/bJEEAxHfhhKi9DlUC1MOVyBsgvSxKL6Hl3Gu6k+Jnjqjx9Ebg4y28Tt2NSJfNcJt OknXkHPiBT9bcS64XnN/L3uqgmZ/8d4LFqYUkB1JnwlT3QQPEA1sbx3WRXAlvXtHw+Pd oglQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=phKsp7PWpBJ50ZeBSTI7KmmBE7AOsvG3e/l0i41VK8A=; b=ig82p968NShEceVJZI7sJUzpJkhEVXbk7ijAKCzHQie5sTSN0Y9H2puv2dXJwLFPx+ q81K8uMWA/cknZEDI/p0aFaTOgWkH0saxUkWyvSjj4iaUxhRI9p6oiF5WAgV9b487SqG rUpe+VmyXCpUKmBG4uJJtRINT1b52O86nIzI8= 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=phKsp7PWpBJ50ZeBSTI7KmmBE7AOsvG3e/l0i41VK8A=; b=ruT4CKNkAwmyU9qWHIkmd4XpOFwRw9IshAEPKLNemK9B1yOn6IKRa19M/w3Se/2ORP WQJOv8g7WkC4zYHzXTflfJfd8jwf9zPu2mD8VYvWjcrAMaw/pHG738OzshWwxValRO13 COaNQjdOeymUJzc1HVypaijSVWfHWin53J0OBqG6VN6jCKturGQfmBUuRvzryiFVMWDs er49oWOiO94D0qDqvYCE2Cdx035aDRSGOkonAbERQGpqASdek5rAA8Eixim2Y2MLFvwy QpY6GQfjErGp2naKJPULeC2TiPf55rywFfQmqPFfREvpw5xU/JQIWDcyrPEvSyZjwUB0 Qn4g== X-Gm-Message-State: APt69E0tqb8f3+o+AmCT3mSpy1YdWLpPr8G+vWVaj3BeSibpHFtf/c4h d6o/5ud0vSL+ob6vfGwyakExFzli0kzmaOZPqtj9Ow== X-Received: by 2002:aca:f383:: with SMTP id r125-v6mr11507357oih.6.1531135612701; Mon, 09 Jul 2018 04:26:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:3745:0:0:0:0:0 with HTTP; Mon, 9 Jul 2018 04:26:51 -0700 (PDT) In-Reply-To: <20180703214822.GD129942@google.com> References: <20180703214822.GD129942@google.com> From: Amit Kucheria Date: Mon, 9 Jul 2018 16:56:51 +0530 X-Google-Sender-Auth: baFb-NvbCJ5VdX5Fwn9GDcn0D4M Message-ID: Subject: Re: [PATCH v4 6/6] arm64: dts: sdm845: Add tsens nodes To: Matthias Kaehlcke 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 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 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? Regards, Amit