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: 10501301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 28E496035E for ; Mon, 2 Jul 2018 12:45:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15C381FF81 for ; Mon, 2 Jul 2018 12:45:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0911B1FFF9; Mon, 2 Jul 2018 12:45:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9730C1FF81 for ; Mon, 2 Jul 2018 12:45:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hb7uWo9Olc3c9bZ9rmyoZp33oUr7MHAfaGUbNTuVevE=; b=uzbGpqIehoErgZbvIup420ve8B nEGLhay6ia3JFhKTPuQAdpeS9K5wyEu9LJ3K5mZG/veSmgKNYgqqFHw9nCATSVDYY6/UkZt5vt8t2 dJfTWH9cvEgeaJAmCy7LjpDGpfRIsmwimv1Yfc1mYjbU6b7rAdo0qQ5djAeL0T+jGt5BtO/Gy8M3V oErG5cI7Jo6I/J+cQQF+fcwyy/+GwCqLJPzdGIb7da/uagU53yLHBQEMsRd6fi7wzwAsyVvmKGeqS 0qe+VvIFwkiyHxjxRG2/Jj1sD/PLgYGDNX6/jPhfhbqa9yw14lBjvOQ5IHkMYwfkQ1mn2oc6o0FNz ts2YJ+gA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZyD3-0003Y0-J6; Mon, 02 Jul 2018 12:45:37 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZyCF-0002jM-Sr for linux-arm-kernel@lists.infradead.org; Mon, 02 Jul 2018 12:44:54 +0000 Received: by mail-pl0-x243.google.com with SMTP id d10-v6so7911257plo.5 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=LxPTh5EtWP+x9PxAUyvlA1gt9ciYlK1y/KI8JijApVNabzAC0U1/x+avIykwAFdtUV pfKm6ImyERG4jQuCMQIHMK4uqA1rWBgZtsoW1xDwkymMeK7q1VUdJs4ZNPIrzNqLRd9N zCad9WONEg2UTBqzC6ybSEUDw0QrY/6A/9rGl2sDUhUBs8B/8Tx/B2kyPYcLwnG/mUrC u8wgnwfZPMF8TmM0EdqME8DXJ7Dw07YNqXGlY3R4ua0eCCjkQqcNbkMObbgVDusRwN4+ HIh2uD7ZhbuWZeAwN6ld6epTKlXvlMH1Iem9Llllq5ftAQMGa6Z+PAxKeR53Tc8W3jhr 5ueQ== X-Gm-Message-State: APt69E1a855uk/fh01bdX+yI3xVaSUB+WjivRsqsryvoq57TUytgoYYq 6WtnpfntMcagXTvJN2mPJH6Iew== X-Google-Smtp-Source: ADUXVKKzXCqoqkQIW+zEhG8iyt6Qw3FfuYEKQvCmO7pihGqN9CLtnGVMb6pNxYANo9Xh7Sm2SuSujw== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180702_054448_692390_506C3997 X-CRM114-Status: GOOD ( 13.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , smohanad@codeaurora.org, bjorn.andersson@linaro.org, edubezval@gmail.com, David Brown , Rob Herring , vivek.gautam@codeaurora.org, Catalin Marinas , andy.gross@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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>; };