Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp702605imm; Mon, 9 Jul 2018 09:05:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpevRBMIXwoVIBMBJIl4nuxtx4oKBNyC8ErBtKfeIk5rlhw5pkSSnStfpdFOoyVMdyM3I7Rj X-Received: by 2002:a63:f948:: with SMTP id q8-v6mr19025000pgk.292.1531152353203; Mon, 09 Jul 2018 09:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531152353; cv=none; d=google.com; s=arc-20160816; b=SpLlwfI+gsctehma++PJw1vCQrY8N3mk7pJlMWrtYIl8iEbReU2xt7W7FKAQmhi9As 7pXeBSRAulu9+5deu5O3QPxQwr6ITzfnT94W31SevGQdyMbY1q4R2fQB3AnRXyxknuRL IP2VSG9VbXTuzRFrp0prwlRVBpt4KZxCTaQsJlHWhOV7pujzyXkyjk+w1IpVPKX90pfl V5tZsEy/qC+VUtIWEkERg8Q7G2h/grYpDbROvigUS4uTi54kjue+1NH5+CbNKcOBlj61 7hIuPk+2A1FnAZOHpQI4bbRZRIwDlGHVvahZe05van35auyiTDLmow8B/xE2xb5uo2WG FOJw== 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=BHd3oRufYdoAtTtov+cIarS69Bv/NWthUNYzWKQO5FI=; b=wfbw5Yd8VjXagF26uKvNAYav+StgnVnWdrdrhkDVy1YmX6ibvj13g2OVgvERg6VYF9 PxcSYbBh5Ig1FOo4LjsXgQBXTELew0KX57IzFWbxuar4hG1ACZHLWAHD/8C/ta5fmqlE tF8YmDlZt/mcbe1QiIq8G30HIHsdRPYG6YANSfI3olPj3PbCxDBvjlJuK9yVqWLsuPKP 0Q9F2V+D8rZKRBHit3YpAriO6O50OqTQ1XeLz6zYMKtlV9MBuz/T3HKryNjYn/KmzHfb YQFU9NSnZKJ1gBnVtn509M/j5LOQEZGQJyd3ZjU5xy1g8YH0mTtra5c/CztL8WKQDvAA uT9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=Yp8QaHa6; dkim=fail header.i=@linaro.org header.s=google header.b="jdG4NM/h"; 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 t9-v6si288795pgo.42.2018.07.09.09.05.38; Mon, 09 Jul 2018 09:05:53 -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=Yp8QaHa6; dkim=fail header.i=@linaro.org header.s=google header.b="jdG4NM/h"; 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 S933280AbeGIQFA (ORCPT + 99 others); Mon, 9 Jul 2018 12:05:00 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:41241 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932770AbeGIQE5 (ORCPT ); Mon, 9 Jul 2018 12:04:57 -0400 Received: by mail-oi0-f67.google.com with SMTP id k12-v6so36831469oiw.8 for ; Mon, 09 Jul 2018 09:04:57 -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=BHd3oRufYdoAtTtov+cIarS69Bv/NWthUNYzWKQO5FI=; b=Yp8QaHa6Yv3EYYld/pwyo0YJDfVwgvICnaLtAsHEB7v4dJsDl8vs/WQ0sOH1OUTOLr UUeL0MpziD/vo9odAa8yau64benjwQYVwwgetu3ktRKeo0Z62VTQsUg3MKqbojwytmpZ rFLJxqJrsBHZxGa5SF5kAQLVPqwqnKKLKdOEBUis+87/9Zw/NVOUhrc2qY4fJofpViGy zjMnEVhiqRYjVWBaTxCyHx3Ncl+QKFXsXZvPZBEA6TPkr85vDTNU/DjtRJgS+Rqw+lQG 90o+kQJHr1SXIfHH1lpOGmDgk2Qhe+g89TbsabePOWBbolchB1tdMiJ3BggtW6mI+eia J1bw== 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=BHd3oRufYdoAtTtov+cIarS69Bv/NWthUNYzWKQO5FI=; b=jdG4NM/hOCp+KTIe+E6fAC88ETqF+ZRj2+dq0Pc4KxPkP52w3hZTFn0wNXr2gpA6Me esln6em3ulsKB5mn5CprlQw5J6SOPs0K21HUFLOwEiMEs/HdFdNXMQNLMSqFoUOAN1CW g9LPI9P1Wy5d8ZNLMpyBdZC0dkslCFZVtqOY4= 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=BHd3oRufYdoAtTtov+cIarS69Bv/NWthUNYzWKQO5FI=; b=Tme4vNlK/xMjrvfooy+17wW1L+wRrsAD2WsWtFCdm9DMUOVz0sLZbcRscz3hlwqVXJ uYKxGIq6y66AtBH8r67SBD/DK8giMme12g7xsNXMsaisd/LuUnEeATcfi+S7yIPvmexG 5Z5gf+lddjLdkDBnL02El5KfT/cZ+Q6fENKqcOgMSyBy3WiYaZ7H9rhqfU+uLtQ2ltp5 R1A9D8+DfM/a75NYD9ODA7efV4vEe5D5cJoHvbWjZunhQSIFLdC56Lx48ccrU1Hf//4q x/fyEkCf2Xw1uJzobLaYn9oIOzquI2KscXZxySN3kraoBB8vpsIlB6VzuT50QmdpIfLE PSMA== X-Gm-Message-State: APt69E2geBGL8O0jjMBpfqHiOTdFmXDQ6Fj91/BWnOGMToxcOt58K5xQ hbJMe0lQPUo072t8uZqEd3uThxqvCOiSea+YJMu9fQ== X-Received: by 2002:aca:f383:: with SMTP id r125-v6mr12587932oih.6.1531152296547; Mon, 09 Jul 2018 09:04:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:3745:0:0:0:0:0 with HTTP; Mon, 9 Jul 2018 09:04:55 -0700 (PDT) In-Reply-To: <20180709160131.GM129942@google.com> References: <20180703214822.GD129942@google.com> <20180709160131.GM129942@google.com> From: Amit Kucheria Date: Mon, 9 Jul 2018 21:34:55 +0530 X-Google-Sender-Auth: 1vB8Id5Mknh_SxEet0WZGazOt7g 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 Mon, Jul 9, 2018 at 9:31 PM, Matthias Kaehlcke wrote: > 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! Great! Would it be OK to add your Tested-by tag?