Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp195806imm; Tue, 17 Jul 2018 16:59:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpefJACOlJZR6p4MdWDVTL1ohPxLP23FEY5hWyZD2dNbGbNwaB7QKR3eQSRbZoMqNqNJYQ4E X-Received: by 2002:a17:902:e209:: with SMTP id ce9-v6mr3503591plb.233.1531871959166; Tue, 17 Jul 2018 16:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531871959; cv=none; d=google.com; s=arc-20160816; b=JMZdH8SHT03NHjo9wJ+67/zM4I8Z4f6EFVrQhJnXR/WhpVWgleNopnbqcu2r5H0XQG 5TlSne7Vh49bqBhoaumphpbgzbDhayaZx1LGRk8Rqmmr7guLpDskFj3ZBcNrppce+W7A VfxdGuOTL/cYg4h2spe03VrPIzqnmiuYlzuNIYcnQEQj3K2fzKfB0oud/gQ/2SpsQ49s /+Nnivajq13IUvAHB5bKPUSkF0nQmazAslJg0wUboiDbLlsV9s1YDZ8WIqASZ5NFGPi0 rt4fE3NTd9ZZhDUW+auSpsh/tDz5u3OksoSJBNyMvJB/jFgTmwUnZDg9MXL6pqhAgx/v 9eUg== 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=JOTIg5S1DeMBuAH67JxisCJzy5BZttNGDq/CqfUtoSE=; b=F+Tnrqz+w6+s3X4PFZ24PN7E191moR88fdQaD85guT5id2mvlJxcG4zsPJnVCLxLYj qYiQQ+0nfZ76QBGsGvPT3sEdddjmnUakF7Al3ukijIhqZfVmy4ED6MWs2my/E9Jy4dQs kS+FT75mYtax5a64mAJpcK2DPH0PljZp/cpUhDZgCc7zkkAbCTHdGxxVR+dQoYM9jeND lMbAvUqw41NW4mHdLgK4i3jkoEol6JYz+oyZcuJnkRXPq4t/FtGOoy8gdife54mmCGY8 Afqu5DNoOjzRSSpWLLg1t8HT87W+MAI06EaH7rAJJhQwkbCDTOQZmWyB564ylvUDS/5Y htXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LtuBwOa6; 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 z2-v6si1943535pfb.365.2018.07.17.16.59.04; Tue, 17 Jul 2018 16:59:19 -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=LtuBwOa6; 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 S1731344AbeGRAdd (ORCPT + 99 others); Tue, 17 Jul 2018 20:33:33 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:43731 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731096AbeGRAdd (ORCPT ); Tue, 17 Jul 2018 20:33:33 -0400 Received: by mail-pl0-f68.google.com with SMTP id o7-v6so1146411plk.10 for ; Tue, 17 Jul 2018 16:58:31 -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=JOTIg5S1DeMBuAH67JxisCJzy5BZttNGDq/CqfUtoSE=; b=LtuBwOa6vLmtebpU49IH86EvdCSg04Lkms+eMou7CqvLneiq9Yez1Lr73m9dRmcltY HbVlOpFLeVnCIRSmkcJRfm1AvbIz52jdW343S1soJKuBrCPpt0iBHChiduMVbALxmOrA obrD/jEasFdl7LEbkZaUEVqXuB2ZZXLjYILnA= 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=JOTIg5S1DeMBuAH67JxisCJzy5BZttNGDq/CqfUtoSE=; b=RlmFg8mNpVuS8k4SdsI6OlJ3J3H5QvAGj6IWOHfXwIabMqrWi8iao1jsL9ABB7Zl49 YsIoWAoEtLu72uS/IoK6QsurNiXu5JzattojZ0+CQNfTlddYSxgrURMftsEhFP4xsaES KGIj5GIrUgLWN6UZnh16sF1tUAZBk3HHaKFocBrPYOhdqZAz0wIg8eMlD0kpx/XdstKv DqIG4kKidGJDCFr7WPl8hOseZMSDYQPfSGK2vwz67cnKQPoB67l+NYk8eDsOLQ44ZD93 G8AW+aN0lGU5lhNFCMVuzNs094Jp/xxJt4ewt/Lk2DAYXKGmXSBrkB85lmkDYoMQCRSn f8eQ== X-Gm-Message-State: AOUpUlFPAB9FqJchiN2yjG0wkHzBcmxiCDTB8skC+Rnh/u5i5Y4tPEJA nBuWsLiAh5cAY8oqw949FeQu3A== X-Received: by 2002:a17:902:8f86:: with SMTP id z6-v6mr3592750plo.38.1531871910882; Tue, 17 Jul 2018 16:58:30 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id r16-v6sm5002449pfe.173.2018.07.17.16.58.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 16:58:30 -0700 (PDT) Date: Tue, 17 Jul 2018 16:58:29 -0700 From: Matthias Kaehlcke To: Doug Anderson 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 Subject: Re: [PATCH v7 3/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller Message-ID: <20180717235829.GF129942@google.com> References: <20180717234213.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 Tue, Jul 17, 2018 at 04:55:10PM -0700, Doug Anderson wrote: > 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. Thanks for the clarification, there is always something more to learn! Reviewed-by: Matthias Kaehlcke