Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp869433imm; Wed, 11 Jul 2018 12:24:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdM8flpm5suotK7c6IZadcMahdL+AKZeET6w1yuN+RqvdvhiQK+Mk4fDlhbfB8B20vqgJxA X-Received: by 2002:a63:2803:: with SMTP id o3-v6mr2619033pgo.158.1531337041273; Wed, 11 Jul 2018 12:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531337041; cv=none; d=google.com; s=arc-20160816; b=gmXAIpQMFkUEqUnxfnWwBiGMyYSitCrfWhtJ1zGFLo0LCW2JBsJ46RmrQWQk/aDojT xfZ8/T6MEyDXp14GkTFKPYq7+7GJSRt17ftxKGYZPaLv0EsxspmVgIH3OfSUGu2eA0DT CKpSpGaxREcKZF2ZG0vDdOIlQ5hcuJnkISir1B1TTtl/Gx3slnxMkD+MxWO0dvBFjeIb ACqxAMargGbHE9+cxoT0dlDWB4kPBg1HGzyrKCQpyiEIaPgY4hEL/+XRtyRD31J1GKFI OfG3mr8Hthmww1SgihdXPzRjBPd1ZvR8OCSTar/wtGdEAN6oSLr8tLS86xjGH8vh/Ix7 k4XQ== 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=sin8EWAzhOYsIykJ3xN4LzPke6ob3fmYaAjtx9DEaHA=; b=Omkn/9LqniE8sWzhHN63fYpPLQ9NuOD3x8NNz3FWPjzVkDP00o8LwZDHU2TszpSBH3 z2DmR/q1k/QIxvKMf1vi7oOp/1xbs5cGX0zF1Zs0spikeA1qQPIT8TdfKBW/o4STFyUB hgExgwBi5BH8orKMj5kf0Tv7BpSkkZktY4ImAlOICEJX1In28JenBoNe3bSeFe/VCeDz YuWcmfv1tHp+CFwPKmrLO14AO093wldy4VMCJBTGt0ewUBsVulwJGFG0qACJFbwubHiw k3Myj/Y4UI05ANGaOmVsGQRlI7OFGPF7MlPXo6p/VfsCaAzLZ+StQPP84HRgxs5gqXRT qhhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXcIkM1N; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l190-v6si18304028pgd.626.2018.07.11.12.23.45; Wed, 11 Jul 2018 12:24:01 -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=@linaro.org header.s=google header.b=SXcIkM1N; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389744AbeGKQj4 (ORCPT + 99 others); Wed, 11 Jul 2018 12:39:56 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:34416 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388018AbeGKQj4 (ORCPT ); Wed, 11 Jul 2018 12:39:56 -0400 Received: by mail-pl0-f67.google.com with SMTP id z9-v6so9386408plo.1 for ; Wed, 11 Jul 2018 09:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sin8EWAzhOYsIykJ3xN4LzPke6ob3fmYaAjtx9DEaHA=; b=SXcIkM1Ne37VsPcD66UZkfJ3Cb1/NDt4NQNK20D+harHG/+jG/vMPl0Jht9V+VadrO GPMcb8q9PT35n4EHUu/kcYHfjbCPjWZibgAYkHJQSmWe/Z2WdUwLeNFvT+pZjLv2RzqJ 75CXPpRAIgY5EuDXUrdaD6EI0PffXr4iZ4f8o= 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=sin8EWAzhOYsIykJ3xN4LzPke6ob3fmYaAjtx9DEaHA=; b=BqsDJm5uV5wenYIJaARPmO3rr2ET6qP3nHzy0xk847XQRrEMSX4LLhej3Rciy6jMd3 d8hvQh+F0PZ0A3Wb9NyL8s7y619tShSpaoq9xZdO5mfCboajMfazOrr8G1R2mwc8CLvD b1PVuhfJlpNWRVmUlPZCQXNTYCI7Tun6U7cKb0HeItMUfCYMC/vqivKQgwFowGRLxnnP bOqBHWCLABDGR4vbmzXgzQ9mm/aoYbiIWZeEDkOyEYi3PbFtef/7MQn3OL+GdeJzVSI5 MD6W4zxdk1pxrhvikJ5X+3X6RBcZdt9PnsQUGHSOSE6/uRwaXzMgffcQNtq7cICQ41sA QhDg== X-Gm-Message-State: APt69E1n/d6asX1Z4Qc2cPkcyducRgLLggpbuKpOgptqFxuLXTM8qArl y9ljzxGD7duUJMl3GJ0Y440xcg== X-Received: by 2002:a17:902:205:: with SMTP id 5-v6mr29092139plc.301.1531326888624; Wed, 11 Jul 2018 09:34:48 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id h8-v6sm28053974pgq.35.2018.07.11.09.34.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 09:34:47 -0700 (PDT) Date: Wed, 11 Jul 2018 09:37:29 -0700 From: Bjorn Andersson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.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 Subject: Re: [PATCH v6 3/7] dt: qcom: 8996: thermal: Move to DT initialisation Message-ID: <20180711163729.GB545@tuxbook-pro> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 09 Jul 04:43 PDT 2018, Amit Kucheria wrote: > We also split up the regmap address space into two, one for the TM > registers, the other for the SROT registers. This was required to deal with > different address offsets for the TM and SROT registers across different > SoC families. > > 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 Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index 8c7f9ca..6c8a857 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -461,7 +461,17 @@ > > tsens0: thermal-sensor@4a8000 { > compatible = "qcom,msm8996-tsens"; > - reg = <0x4a8000 0x2000>; > + reg = <0x4a9000 0x1000>, /* TM */ > + <0x4a8000 0x1000>; /* SROT */ > + #qcom,sensors = <13>; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens1: thermal-sensor@4ac000 { > + compatible = "qcom,msm8996-tsens"; > + reg = <0x4ad000 0x1000>, /* TM */ > + <0x4ac000 0x1000>; /* SROT */ > + #qcom,sensors = <8>; > #thermal-sensor-cells = <1>; > }; > > -- > 2.7.4 >