Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp193905imm; Tue, 17 Jul 2018 16:56:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOOSkrzneqUutTj0mxKf1bqYEFy1gx55Jn3dQ46NjorVlXAYA2BW1sL3zt6NjMevvYZPei X-Received: by 2002:a65:460e:: with SMTP id v14-v6mr3417127pgq.177.1531871768839; Tue, 17 Jul 2018 16:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531871768; cv=none; d=google.com; s=arc-20160816; b=vKmoidMMSZQ2Hc5RvJQWHxdPBIb8aIGllbKUL2FtE1qtgp8HJ3ycN/UWI6T7GG2zHO nMSz5mIw9iq4OnWHrsgok2jamGdA9a9r/d6fNLma8fjTXj87TeqFAzlIuHGlA69s/RmN enK7A4VEjd5nBLj/Qr7eGpqOJHhb52u2ngwryaS+hjMzCjaosuk0nStuHKd19VSryrzb 206Gc9mbqBoArgdPLvy5IGqTSRaq934hvfrk9+fX3a+LzdAMcfXuvePx3OY4Febv4WNd NToWWlub4jqaiIWqxh/YJIg6x3Z4j0WwXwrrKaYOkMjWKXgHzgkJolKtTok1t76sEMNw qyYQ== 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=Yo2z4rQE2qCBKlOn0yhflAcQi5vYXCGynwaBPOjfu+A=; b=XFpuox7Ck+IdOXHSjeJgHIEWIHkQiTMVHsxvSjSAt5ExxK9+NutLH9NO4ZXRUQG8iO WzDrJu8dRm2wzgHKFLUIfb69QmZqw+ebTzL2JHH1YtNkeMFQHpxRhiSIGLKsu4dYdfIA gQ/ereqDEywVTgOsFd28emrYVZAWjbTLRAXJfPNOPW2LMMsv4AEOmSf32h0wI9lisBIu q3HQqd705FVSZbmpq+OGLYxGeZeTnR7W2nCllwM4pE625K1OTvUB7jqUvhuvxYetOMNZ NuqKLJPEnnKlVv5TKPqmGBzrI9r8+ZGJvT4dKZb1Y5jT7l5Y1/RwiQ6iRKCARcYPqCxk nI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=EUaYojsh; dkim=fail header.i=@chromium.org header.s=google header.b=LGX5fIzk; 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 x5-v6si1979988pgc.210.2018.07.17.16.55.53; Tue, 17 Jul 2018 16:56:08 -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=EUaYojsh; dkim=fail header.i=@chromium.org header.s=google header.b=LGX5fIzk; 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 S1731358AbeGRAaO (ORCPT + 99 others); Tue, 17 Jul 2018 20:30:14 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:42314 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730460AbeGRAaO (ORCPT ); Tue, 17 Jul 2018 20:30:14 -0400 Received: by mail-vk0-f67.google.com with SMTP id t4-v6so1544807vke.9 for ; Tue, 17 Jul 2018 16:55:12 -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=Yo2z4rQE2qCBKlOn0yhflAcQi5vYXCGynwaBPOjfu+A=; b=EUaYojshT+khRpvPguCuWZh1w/Am+oe67l45UhfylaXjDtSCQjuTwWoy/uDHhQZQbx Iotla/ibTPNvp490Xhc1ERDytu+Q63f2xTS3WfhyIS8JVFaQSMsoQ82GolXk/dtbVrTU c/nZzaFzvltLQYdH3pDd6CY7LuFUo1HEWnc8lgyJle0rDCBG2ZYZZxWkH72GW3uTTkQ/ bz2X9EvGTPCFgT374TpN8Ids79Fh8Jp7ekh7w0pNiJzj72tqHoGuM5AtOWebF3gcS2F9 ytSinqZZjzxXtkcDzHXo2h5FLKvhAkMhmzvmkxNIiuJdDOoNAw0c3hr+osSZ5a1V3b3p U1tw== 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=Yo2z4rQE2qCBKlOn0yhflAcQi5vYXCGynwaBPOjfu+A=; b=LGX5fIzkAtF/+R8p2BiC2lIhZM+a72unDA5GD8rUNPZSqYMxaV87PntMuOKsV7yf+I qgI+ir+Yi/vPGJTW4rHsDLuE/fRRWu2ewB4S3DIWv/s1Dn+28CZVjRHHzsM/FxKAG4d8 bGt8mxrxYekxwV5BBiTP9HZvlLEm4RIlPU+Vs= 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=Yo2z4rQE2qCBKlOn0yhflAcQi5vYXCGynwaBPOjfu+A=; b=b2QTL09FxV1SQE2IP4Hno9dqOSRJPZmycmVyZKxNXwyF6AsaRO8nyTZOwzdcJdDxCW 7V+ZQQAHFm/tXOIg2FMsuhyJsNVT7i918mIT0lxk6GaEYQqxpOghx4vW0h717iKIfwQX w/Ybdbr7yZzwBs9L9qZs72X/Ysa7LSbLhktcK0SdDE+Qo2Rclz8xDxqXDkA6e00Kq8HN OD5tXiSt0rdg9xW5ddrG39mkKRIr5DQ1NTCUEagkorzzfFTe0P2t3DbC0P3MjIAUO4IU SNFWkWh4dHpWfBiR2xB8/uW2Exm+1xuEyj3I/4sz7TykkQFlnNyzsSFuyPHx3i3htoBq Hj5A== X-Gm-Message-State: AOUpUlFFkiWdAmObSeP5eF87z79fm39+HpAilTDIWKiOnXNQlH8rUkoU OltGwX2bfcOQyzKlKI0wBRlt9bukmoYtUaZVeB29CA== X-Received: by 2002:a1f:c014:: with SMTP id q20-v6mr2315801vkf.144.1531871711062; Tue, 17 Jul 2018 16:55:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:cd5:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 16:55:10 -0700 (PDT) In-Reply-To: <20180717234213.GD129942@google.com> References: <20180717234213.GD129942@google.com> From: Doug Anderson Date: Tue, 17 Jul 2018 16:55:10 -0700 X-Google-Sender-Auth: mmSaqksdINMHqwubgL-4g15K_x8 Message-ID: Subject: Re: [PATCH v7 3/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller To: Matthias Kaehlcke Cc: Amit Kucheria , 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 Tue, Jul 17, 2018 at 4:42 PM, Matthias Kaehlcke wrote: > On Thu, Jul 12, 2018 at 02:09:04PM +0530, Amit Kucheria wrote: >> We also split up the regmap address space into two, for the TM and SROT >> registers. This was required to deal with different address offsets for the >> TM and SROT registers across different SoC families. >> >> 8996 has two TSENS IP blocks, initialise the second one too. >> >> Since tsens-common.c/init_common() currently only registers one address >> space, the order is important (TM before SROT). This is OK since the code >> doesn't really use the SROT functionality yet. >> >> Signed-off-by: Amit Kucheria >> Reviewed-by: Bjorn Andersson >> Tested-by: Matthias Kaehlcke >> --- >> arch/arm64/boot/dts/qcom/msm8996.dtsi | 14 ++++++++++++-- >> 1 file changed, 12 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi >> index 8c7f9ca..688e752 100644 >> --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi >> +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi >> @@ -459,9 +459,19 @@ >> status = "disabled"; >> }; >> >> - tsens0: thermal-sensor@4a8000 { >> + tsens0: thermal-sensor@4a9000 { > ~~~~~~ > > I suppose the address of the TM block is used here instead of the SROT > address (which is lower) since SROT functionality is currently not > used. Would/should this change if/when the driver uses SROT? For device tree you're always supposed to use the address of the first "reg" listed as the unit address in the node name. It doesn't matter if it's bigger or smaller as long as it's the first one listed. The bindings indicate that the TM block should be listed as the first register. This won't change even if you start using SROT. -Doug