Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp100507imm; Tue, 3 Jul 2018 14:49:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd+dt+Gh3rCI65GD4ghycfC4WvohAiXJIIcZuCzgB/GCnNmqJroub0iNJwHA/BSbfV0WHYn X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr7329437pfh.141.1530654573433; Tue, 03 Jul 2018 14:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530654573; cv=none; d=google.com; s=arc-20160816; b=ip8ed1piDuewSdPLp7IxtLdeUUI9m+f4E8FvctfJM427XfCRiMljD0bEiOI1SkF3Sy V3s0vUigONqYU7HVOHn6kSY3+jjNiMpuyJrQ9atO0x+Vf9co9jsJNBqkQn1V5SatXZMy tgc+7dqOZN9ikq0il5LvxwS8rJhXH3ibu0Hkguz77Mav5HNQ2/6qAoUvHPD3MQgRzqCS vu6VysTJo2cHVD6mX8cfVi0YWGSvyP9pZAiGynjGm/eL05Cx1XDK/K53YGbDufltzJv4 d0hzH21rSrBHS7EBvWBfMQJ+WsC69IjZmcxbTU3qpDK1JZUQu6GK4G50uFhwm8WDT7Jh TLZQ== 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=Zu0ewdK9sB0im189WeoIEE+LL2ocUAWsXvwjBauS7a4=; b=e2Sgoh1sPmlPKMDGlsoYlzMmjUYLi7wksc2B71GJWgCFeiDahc0TsIS8Wvee4O/vyY 12M2UPbpgOwBiLOm2l74Ceqbm+wsj3qiulIfqDWJ9lL+Dv8xfgG41vWqa2TxR127Vjhp t86gyiMmDHH72QL5wH3E4rhgdUUbhgMkXTwUxyLSPQSnZtDDvbk66//yMnnAQvyBIGTr Ze1vSj7mbOmSsYCAFi4W1g8TUGP9lt/+GVxXChnHcy+GisTOCbahNbrKxKGprXU5BR4w PG6eY/Wzs5Vt7utLGYqQVx5iNXpxtesL2IrWy19Sh7IAPU3OVNBUbsPX+aAvoOIPCPO4 6JyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KvhXSyHO; 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 67-v6si1957225pla.475.2018.07.03.14.49.18; Tue, 03 Jul 2018 14:49:33 -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=KvhXSyHO; 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 S1753036AbeGCVs0 (ORCPT + 99 others); Tue, 3 Jul 2018 17:48:26 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:44331 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753159AbeGCVsX (ORCPT ); Tue, 3 Jul 2018 17:48:23 -0400 Received: by mail-pl0-f68.google.com with SMTP id m16-v6so1632374pls.11 for ; Tue, 03 Jul 2018 14:48:23 -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=Zu0ewdK9sB0im189WeoIEE+LL2ocUAWsXvwjBauS7a4=; b=KvhXSyHOu+OhpqfhktAq8qH0ViswwOUBkg1tJErIZ9gW07NlseZ5A4u9UjxLdgQjM3 yL1g3k2C6rYo8A5Z8xE5WqLsQaJdk2M3CQ+7HACGfYng6N606gxBTaEdFnPmHPv6Pkrd X4z6O9rrhHfIsv7okWQVP3vUHxyT1ink9L5l4= 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=Zu0ewdK9sB0im189WeoIEE+LL2ocUAWsXvwjBauS7a4=; b=TgbgR/rg/arEIJnewgVYm0VjK+c88GQ2n6RZphsaJuYGu/tM6oBLFqhXKNvhyczQIy Ct9pnzvwmMYXiqjZaMDWAV0XOcWZczS0nqDOesg9b3o+sddodwK3oE+hguet+D3xiy1m K2HjY8F4MDmTi8E5ViVe/5fb0vvdUpiDMsU3zxYFZ8uZlkpA3ia8eswu+rhY0QAzel4c ZmkKGzZvOUV3Tf0SZfVNvzMEH0Dg61UVbgoCq1L9BOLfJzHeX0jlFeaDZcPiiO3TtOfu jYUO6AkLKuXV1sjmUn3Ciz4FaNwhtymbkHWvGywWpRuxahrQ/4w+LyYO4wUDDh8gp8vf Gzkg== X-Gm-Message-State: APt69E0zkr5vTh0pYA7PURtNMBadtWy6taKt5Fqnn6I+vFlnMXp8nU7m hrUuvg+fSP5BG2fCzCvS4IMOOQ== X-Received: by 2002:a17:902:82c3:: with SMTP id u3-v6mr24862446plz.83.1530654503432; Tue, 03 Jul 2018 14:48:23 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id b65-v6sm3742103pfg.34.2018.07.03.14.48.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 14:48:22 -0700 (PDT) Date: Tue, 3 Jul 2018 14:48:22 -0700 From: Matthias Kaehlcke To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, 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, 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, Douglas Anderson Subject: Re: [PATCH v4 6/6] arm64: dts: sdm845: Add tsens nodes Message-ID: <20180703214822.GD129942@google.com> References: 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 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? Thanks Matthias