From patchwork Mon Jul 2 12:44:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 140745 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3952210ljj; Mon, 2 Jul 2018 05:44:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDBUalcjt/xbQtH7ErzCfZIkfWXKRjTVZ0xBOJUG9nzZI7Wu9b79K7pIyonXqpGTYfuBmu X-Received: by 2002:a17:902:1e6:: with SMTP id b93-v6mr13387454plb.149.1530535488321; Mon, 02 Jul 2018 05:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535488; cv=none; d=google.com; s=arc-20160816; b=QocjTld0PwhuozlU5deE36Hw3tpFEdML+NiWu806axgemJnsleHJGs/7ld6jHtpckj Nvm/Eg7k03byEHGa3wudLVZyxTO6NmTtLBe2jkTuRlgkKCleLCpZGxf/TBmt5mz34Uab QcAf9ukNV3vKATnuq/X8OGTe2WFWl6SAPMnj/OJ+6Mx7ddPcx1/ztpxKku1QDClKyHdv 0yoygpryeUC11KM0YVaMa+tta9++1Gp6IXPGA7PSUXfKRMShuOGW6izNu8PpigaxN41l QPhhZ72tzybPOaNUKprRO4WAVvb/W08V+Z0zIa+kyWkc4qJ3ULdTDVYcL2PVGz4BpyUz p18g== 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=CNIu3Q5qWXf9xhuT+dx4CCKcJ18pKAG/rdVg2h7kHg0=; b=LuGRrRhseHSQjoyT7B1rwZAFXyzp/DYQaA0qPzStyrajxG+WIJVBzwq852rbMCBWWw 1jqaE6ySRP6nrTEqgh6s/NaM9wU8NxMmPxmRekYdia3JP8Pm11scGLbfSPbAAcQg06t1 fIx2NM7HrOxkYI5adOkMP1oBBYQUoF9/xeBl61B0jH3RsUBUwUs3fIiZXXGdg0KJIqF4 XMpGuaC11mV9xw1eKUCGKgVyOtigQqKziCl5E4p74jWV7SHvV8c5dUsad7AkDkJt+8A4 TGT3S84rKJfSgB9n8iwhOIkTOk6Rtc+X80E+SqPn8Mr+F1Gj2ubd8eZxH1A081xaPkVu juyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A9bUS5oL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 e62-v6si5692430pfe.327.2018.07.02.05.44.48; Mon, 02 Jul 2018 05:44:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=A9bUS5oL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1752958AbeGBMop (ORCPT + 13 others); Mon, 2 Jul 2018 08:44:45 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35871 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbeGBMoh (ORCPT ); Mon, 2 Jul 2018 08:44:37 -0400 Received: by mail-pl0-f67.google.com with SMTP id a7-v6so7911602plp.3 for ; Mon, 02 Jul 2018 05:44:37 -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=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=A9bUS5oLTtxNgUSE6dn+mKeLHV9rp/OQZhO+/XOqgzQICw7pdUHDfaiKUx8KkXQIqR HnC8+FMkpHVulcwHTj7FZTih/GT1Ln1yLdMFAHZ/dBVyNqHOxe8FTNn7Lk3y/OABjA/4 Jf8HcYhZFHdWaqxFQPy3qOdRq+MPzWLhNgO9k= 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=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=m6dHyfTxmNhVnibljwDxAdVTlm2crJE3utAOY0ATwwR2ihR6IvLhhmrVM47M4KtUNv bLptEBHnQY1rD3CodVik2cqrN77er7MEqcwC8dbGYy8B1wQ0YNRMM6pV8eCcgQtPtUWg 6Uyyeun9ncwOxOfitWkob+M+Rt4OWbEWE76MNkn9AhBhuNkHfHeMdSuOHtvMk2INq+FK KYh0nf6VHXM7Sdalef70MWuSJXXoe+I71qPJkLMBk+A4c/+Z6cW0ULkpf91AGG9eo2rq L+1iFmDSoxdif4NDcpRmUuGQ5GGIkjOEIHymGl3YCDSB6yO9ngadYnXAbRLfCo6mC7nA u5TQ== X-Gm-Message-State: APt69E3yGdOnhfbUR9AmJvcZZTauda9EUTaRr/LBIQ+t3/go4EITuLYP 0qjiJcO5dQn/VsFWbHmRFriImg== X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr26243957pla.145.1530535477316; Mon, 02 Jul 2018 05:44:37 -0700 (PDT) Received: from localhost ([49.248.63.129]) by smtp.gmail.com with ESMTPSA id n18-v6sm8913718pge.37.2018.07.02.05.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 05:44:36 -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, 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 v4 2/6] dt: qcom: 8996: thermal: Move to DT initialisation Date: Mon, 2 Jul 2018 18:14:05 +0530 Message-Id: <80e54ddfa672ae05db24a90c5f5463fc7fcbec46.1530533998.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Bjorn Andersson 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>; };