Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp186578imm; Tue, 17 Jul 2018 16:44:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNaJKjXQ3Vno4DtK6zSEu5jwsnjWNH5jdrZex4nYc2rs0KNs0ABlcb+tBY3Q3wjQye461Q X-Received: by 2002:a65:62d8:: with SMTP id m24-v6mr3513911pgv.307.1531871057121; Tue, 17 Jul 2018 16:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531871057; cv=none; d=google.com; s=arc-20160816; b=Y/o0NkUc+XRdxRhkdFv2pmmkdyimzOMFQahr5KhxQW+z98jKPxoH3EFqA7Ei50x9kd yumf6FsVx542YiP+iwvlOirJTTHCEwl1hCKympowWvt4PVTTzvMNFXRa+7RG7fLPeDNN X7bYEq0s/+7kZKO2gO2VM0/xyWHwSY3qLFbNVx9Q8QJzqb2+b3/+zCuNfXcYWELG5tu6 Y4LclGbvGBLHfNmFSSOLooJBYwexVfa3+rByPF/z7raS7g3LZSaEowr6vDk9u9O1R/g3 eehw661hK4uW6xi3hUsIMf/I/N+aJ3PY1XurzUJT7b5pA5L8OGZK2H9rdNHIjc5fmgVx fqeg== 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=1ossnfxNO76KpNJAZWlPCQmCFQCGcJKrZaYlGJLonGQ=; b=TqyX9N+Witsq6UQ6MX12xYU1MxxZjC1T89KiTGDUJ7HqZdsHnyWBT5z0bG+TSQQGhm v2vBs2a2BoMbftx3prrbs1WdCx50TdIyLQfBZc26szllmCBelyERwdxHcT+Rv+Fh12J+ kfWJInzfraWRL3dr3kEyDHbqsx2qhj0v7LirjwM8N4rfLsrUDGzgNCdFL5CrcoHElQOk ybcIolMonhjTdZ88K4xiRjEN6NVivMlKT/t6x/pPc1a/zRLoDRj5lFZb/mziShB8X1jE dSNqe4XcQ8G8Y2TMSXP8r6MUKkjJ2oDtGMetfgzTz3iAe+xfdrVcwwXHOZC3ptptnNOD LHzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LF94ZDYr; 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 a194-v6si2071184pfa.18.2018.07.17.16.43.37; Tue, 17 Jul 2018 16:44:17 -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=LF94ZDYr; 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 S1731035AbeGRARO (ORCPT + 99 others); Tue, 17 Jul 2018 20:17:14 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34279 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729714AbeGRARO (ORCPT ); Tue, 17 Jul 2018 20:17:14 -0400 Received: by mail-pg1-f194.google.com with SMTP id y5-v6so1120593pgv.1 for ; Tue, 17 Jul 2018 16:42:15 -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=1ossnfxNO76KpNJAZWlPCQmCFQCGcJKrZaYlGJLonGQ=; b=LF94ZDYrnfyrD0rEt4O/EonjbLLMm8qa4TEccnL4RmGKLjYNlu4GM7hQSzXR9UYLLQ mAYGMJ+oCNy7RWAa0SIj6b/r2RsoBGGFWxavuRfJk8KNTEzeL9ODp6/qZ14vh6xU1fI1 cVDm+/7GMBnP8S6smlt5BAW6cp7oF3lbWSHC8= 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=1ossnfxNO76KpNJAZWlPCQmCFQCGcJKrZaYlGJLonGQ=; b=cg3tWFbfWLnaK3UEZLqR7fkxJAWKuCOVPY6e7D7T+Zb9+eqnC/fu61azuPRxkywbEg Vs2/V+A4YvesQ2kUAD6q9/l8yGaUcw4Vz6fov7HZJoOMYVzEEfCL3jwotkl8s89ENeJu F4kynSFUc57QmLccIsIusebVUG84VSSkoE8SvSqCHxVUmXdjqt6cSTwKHPozZ9KUhKfI KRReMPgTALX7F4rX7ORIockEgV49hcLXXfh9Ty26YA7oVVSCYVj8R5Ycehx70DqNVk1a OVYGznDsQbGPor/Ju6yc8KWBVXSeUzLyt5vBL7wxiImE+/KZiyfXv6vaADj5/VuCV9jy a8hg== X-Gm-Message-State: AOUpUlGZBwb3ewjqM11gvGe7LgTiHMXCWx2R4Vx8fe/Jx5iqkeSspGui DICzLJinyB8LaeLO31MBJqRA9A== X-Received: by 2002:a65:560a:: with SMTP id l10-v6mr3578790pgs.130.1531870934736; Tue, 17 Jul 2018 16:42:14 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id g14-v6sm3250623pfj.175.2018.07.17.16.42.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 16:42:14 -0700 (PDT) Date: Tue, 17 Jul 2018 16:42:13 -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, dianders@chromium.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 Subject: Re: [PATCH v7 3/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller Message-ID: <20180717234213.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 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? > compatible = "qcom,msm8996-tsens"; > - reg = <0x4a8000 0x2000>; > + reg = <0x4a9000 0x1000>, /* TM */ > + <0x4a8000 0x1000>; /* SROT */ > + #qcom,sensors = <13>; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens1: thermal-sensor@4ad000 { > + compatible = "qcom,msm8996-tsens"; > + reg = <0x4ad000 0x1000>, /* TM */ > + <0x4ac000 0x1000>; /* SROT */ > + #qcom,sensors = <8>; > #thermal-sensor-cells = <1>; > };