From patchwork Thu Jul 12 08:39:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 141803 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1242040ljj; Thu, 12 Jul 2018 01:40:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcsD/7k1dqc4DGfAAoJ9oO1qgEisgixUXCWl6SKNr7oxhZ6RWXKCEkaTxXLrrt7r38LX/xI X-Received: by 2002:a63:4703:: with SMTP id u3-v6mr1191110pga.405.1531384801585; Thu, 12 Jul 2018 01:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531384801; cv=none; d=google.com; s=arc-20160816; b=Z7e8rrZHzL2kR9t/NhD0gkouO9JZ5tCCgUDhDmFtm2+KnA2HAJTjDunqOFlHYwuyxu +ZkOUZnbLDXuiQkai/a8b3eAlW01hc/mTF+RUjZTiyM2LNiDdK36ck+AVUu1e6LulXf+ FhNZntWGX3xl+HH4zqBQLR1QAhcbZWfE9yNlcrGuzfARr8ZOJPsG8PMtYDE/DUsnRtbv zRCKFeR3DDTAu0O1tHJYVDhnA04AVZuB2U028L609YiANx96EnnXfJ2bswuTcHjP3/57 1cTxFCT0t6M51RCE6VZT3J8CelHXFp9Jom2+7QINpsA4CgOniqvkUw+5RXQABnGeRWBP p+rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=T56DOk4t6MA3aVsh1ztTj0C1H6bFReCEzXQgGVPNYrI=; b=Kue7AANgqERSPyFQf+9d5yJJygnVSbhY49cywYPpY9RPlINPOjDxAp5msDDGZd6EKq kEL9NuKOry1xTVqoAeXxZ1fbGoxnsAKQ3wotAa9Rxsd/4CFE3sazgo/Uy5ChGErySpQf yahOuFfKup6fzTDl7Kz6oUoxcyQhLkSqpnIu9ih1oOaALVPEwGMoaGdLkYXMj+HIy+GW tspRs/abZ1h+cDJjPpD2Kb8eAfzxcBbimlwpTQ7FRp3JI6TQFQexJwvZViXyMvhO1row a5IAteoKn1Qndnul5hn1R7HAf9km1jGsoA+SNjjGuss71hJ9o4TYvm/uje8x2rGjEHlr 3rmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Dt25UugJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 s22-v6si20930307plr.498.2018.07.12.01.40.01; Thu, 12 Jul 2018 01:40:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Dt25UugJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732452AbeGLIse (ORCPT + 5 others); Thu, 12 Jul 2018 04:48:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42620 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbeGLIse (ORCPT ); Thu, 12 Jul 2018 04:48:34 -0400 Received: by mail-wr1-f66.google.com with SMTP id e7-v6so1231478wrs.9 for ; Thu, 12 Jul 2018 01:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ZzpPOX6HBv8psnc5B12jO2LM/pMBPBiDKEZDZJj29Fs=; b=Dt25UugJfUcDrC8jI0eto6dR1LNDIhQU3TA9bAiyOL9fLyHjtMTeJ0BTqMhcu2bQIa 0xf1PldJugHUqSZElVHVrHEsSAQ5SrPrFmLl9zW9hXPpAb+f5e1nv9EMgHpRhyCuS8u7 3RG7Lum2+YdkpqQ4rm9yhUCSqgvbN1GvkwKT8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ZzpPOX6HBv8psnc5B12jO2LM/pMBPBiDKEZDZJj29Fs=; b=TnE2wXndtDsMsINwZTjKPB9Ov6XqHZ6y8aMNHCAb/Wi+D+hWoyg7biAsteHhFfON0Q n18AaFEcolOSNIrC4cILDA8FzlS7SeXdYqD/T7ta7/YT5pT4q8gTbYBUSsMgkAoqGCGl JmcM4eBuMmclJngXp9Pc/I3+8qV8RFb0R50k3ETjIPHAQPoDWWXagCfMLDZYBx3OolxR 57G1wh7io6wes+A+04iHs+TF/tQPTu+Na6zfncAbCx6fuptAUQnFg19PjIJiqhU9g9kA quR1vqM68AU9DnLkZlUS1tvDmUgVsWSXGsE3/qX+ZhHYIS1LxaYwZkrWefdeKt0GFmcT LAJg== X-Gm-Message-State: AOUpUlHd13m2HhxIymwu5DmxVAvrZI4qj04Umi7OOizsXMA02wfGD5FF x9iPjK6bkiznAp8zolUb7mOOMA== X-Received: by 2002:adf:d142:: with SMTP id b2-v6mr961799wri.17.1531384798662; Thu, 12 Jul 2018 01:39:58 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id r194-v6sm4336410wmd.36.2018.07.12.01.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 01:39:57 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: 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, mka@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: [PATCH v7 3/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller Date: Thu, 12 Jul 2018 14:09:04 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Douglas Anderson 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 { 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>; };