Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp301480imm; Mon, 2 Jul 2018 11:46:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdr1Ljugsteq5ixIWFKA/zeZXsKOwbrdaDxfCmyM44B0ze0CG9R8zhemM6uU/A9pjxkqP+T X-Received: by 2002:a62:c0c4:: with SMTP id g65-v6mr20892351pfk.72.1530557195037; Mon, 02 Jul 2018 11:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530557195; cv=none; d=google.com; s=arc-20160816; b=jMp059Rp/tIkq5d3o87xysFOAyKepKwIWEPjhgLVgAInCC7RyS5d6Tw53Cs7v1nWV8 3hYSdSo+gCh8vAQXs6Xz2APDgfLKVIDzs1pAw0ZNwd+a3lKov6cDC2MHCjhVCXUoN7GK lcvF4Ts2fWqwg3VfPxhypfY2lEUUIYVzY8O4PQR8rAEX0/UPfpHFlf4JyTd9gtuCXmNB GdrLN8AB8JLNkUU+3Sywk8xyEpI/R0LSS5kRArO9eo7HUR6cz/rX9sIRx0SGWfHctqtM oOou2txwOtnjIRTd6tFdLbR4uWTKCKDe6DU8vkOxee4ldMTmMzx1utQNCiN7FroXMYmw 6U0g== 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=UWRQROmrjIciYLD3khEzuILTKLGlhBhHL79m00fYyg8=; b=HVTaLATOUeocoGsgjSl/YaXTZa19sBThuqNkVqZZFjLDEhjk1D2emVTPpwhXOAvdP5 k3OYZ/X8n89Cgi5HklelNWlB7vjl1reg+kaxLPpvuPfQf5I99yw+6ffF7bbxmZjhWWDL IYohqfoIquTQCHO/Zwkzk+sWwdRHp9hRlmOZp3lNYpuIXMoHQp8PAtwhLMCzShQTldB2 Hd8uFinr5daLzvQpWJ3gvvXj7Ixe7C8IoFXZNeJUR/aVQ+pktBKkvmeKjhAxQZBsWjUG WH24yqWd1Xpgz2o6IuSf55s8u3eJhXqpksm4MnWM2IZEJTRPWo5Hdy1IY8iMYGHcuxeM 3ajw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVM6Ydo0; 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 184-v6si6082489pgj.421.2018.07.02.11.46.20; Mon, 02 Jul 2018 11:46:34 -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=TVM6Ydo0; 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 S1753323AbeGBSpk (ORCPT + 99 others); Mon, 2 Jul 2018 14:45:40 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45500 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbeGBSpi (ORCPT ); Mon, 2 Jul 2018 14:45:38 -0400 Received: by mail-pl0-f66.google.com with SMTP id bi1-v6so8341791plb.12 for ; Mon, 02 Jul 2018 11:45:37 -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=UWRQROmrjIciYLD3khEzuILTKLGlhBhHL79m00fYyg8=; b=TVM6Ydo0GRGS/D/pwaKwpYJmgaUzU0u8I2LxXpvVv6lwiPb4/Yw5GB2jD6gQQP8QfT 4ZdINTnrV79FDs3GfqoFR2iR3pzhk2PdLP8EFNF/EGqxLEq2K1U/4yRbLO0IUY7swYzB rvv7ipDlYxjdSYNA8Q3NSmq1+TechBnx9BWQM= 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=UWRQROmrjIciYLD3khEzuILTKLGlhBhHL79m00fYyg8=; b=OqXdNVFsWlkviMvByXwQvxoiSkq3AP8MihUGBsuFG+/3gQZbtBBfvlBnXbAQwqCGWp xOKkpYb3EQsKqir+AZjL4b5sVWrrD7TD4Xz5Z1kSXpIO8Vn4jdFmfPv8FYxyhuvB6EuB GrAndZy8G6bnEzW3+0BerflRnbweE8eUqoYoNxgRcL/Y3aORZ1J51HJ8JRx6grmCMQp4 yMJEqf1gdtSxhAx2vZ5PX40JvxmouhdpmLNxqwxMheaIhQBTqvmRhLTlE9yzTuJ1UJZI AqdqGWkqgvJRq3WYwDEl/FBVOvcIX+Yty2xSXxg4LDt0Xjv386UZCiLKkZUemvbY+4sl uGwg== X-Gm-Message-State: APt69E1uU5B2exYN4wyvEo6aLLbrJUIq2Pb7tL1Sfq1k/Ohl/SolO3x3 6epKvETQi++is8qcdP/WxbgBOA== X-Received: by 2002:a17:902:a508:: with SMTP id s8-v6mr27346221plq.223.1530557137431; Mon, 02 Jul 2018 11:45:37 -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 z66-v6sm5242275pfi.150.2018.07.02.11.45.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 11:45:36 -0700 (PDT) Date: Mon, 2 Jul 2018 11:48:06 -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 v4 2/6] dt: qcom: 8996: thermal: Move to DT initialisation Message-ID: <20180702184806.GA2050@tuxbook-pro> References: <80e54ddfa672ae05db24a90c5f5463fc7fcbec46.1530533998.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80e54ddfa672ae05db24a90c5f5463fc7fcbec46.1530533998.git.amit.kucheria@linaro.org> 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 02 Jul 05:44 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 >