From patchwork Thu Nov 22 18:32: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: 10694691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5415F13B5 for ; Thu, 22 Nov 2018 18:32:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E3742CD36 for ; Thu, 22 Nov 2018 18:32:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41FE52CDC2; Thu, 22 Nov 2018 18:32:17 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF2302CD39 for ; Thu, 22 Nov 2018 18:32:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726412AbeKWFMt (ORCPT ); Fri, 23 Nov 2018 00:12:49 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46651 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725737AbeKWFMt (ORCPT ); Fri, 23 Nov 2018 00:12:49 -0500 Received: by mail-wr1-f66.google.com with SMTP id l9so10126248wrt.13 for ; Thu, 22 Nov 2018 10:32:14 -0800 (PST) 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; bh=uiT7mql3LrIBSapvTsOqHQS+ZJhwkLcsbyLxK1A1yks=; b=VvA7xev20L3m+TpF2gwnYyh3BlgayVedZzAVjvWYZxBDpgNWpTIkBbZtnIaKFIZ3jS e/2mzDiU4QMqFKDqXzzCWm0Xu00JVbRJiKLvUYYC5vZh/2b+zVTm3NfZQOlAQjXIAAi4 5wsm8hbExqTe5z0Q53yNqzXJaH/W9Rg+KvJfk= 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; bh=uiT7mql3LrIBSapvTsOqHQS+ZJhwkLcsbyLxK1A1yks=; b=Tc0swV65ps/XeW1zuC58sWGnGvjlXuol07Q6EWdHSWxjbFnf49MmKABosHiZHr226n FHGiS9g/ep1yBrIF5KWhrqgAwyMFFasutA58tap6u+fleIKyH+VJtAsYzb96N0zFYEsi Ory0bKgS7Ij/Hf4m3aS5DUbjndOJ0le9XCU0uhUDXgbsK32ZuIWXRTsVJJ3zeKvJ83UZ pRZ6u6xacKSceY6QJokVK3YZ2jKLEpu12EA2Vc2c7soqsiANzvDVZ7ErkNkVtY+p0lSH XzIE3R/SSrtn7pbB6xKioXqOXxq0nKMKoFHsr8F305U/tj6p2tl7KSpYDeBJ26Sp3KS1 6wOA== X-Gm-Message-State: AA+aEWYULbD37j71jwl1KkCiakFAkVCx0yow9IoVAVmmGa9WVqCiI+ek THFTk2gMT8smIwakhnjI/Ci7DQ== X-Google-Smtp-Source: AFSGD/V+QI8VoxQ+e1iN4UXGb7hqzVbzBfu2Irm+gdhfdMZ09qDxBvFeBYaIS/MGLY5j8xqg4LqCoQ== X-Received: by 2002:adf:f984:: with SMTP id f4mr10916793wrr.234.1542911533683; Thu, 22 Nov 2018 10:32:13 -0800 (PST) Received: from localhost ([103.8.150.191]) by smtp.gmail.com with ESMTPSA id f2sm8562778wru.14.2018.11.22.10.32.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Nov 2018 10:32:13 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland Subject: [PATCH v1] arm64: dts: msm8998: thermal: split address space into two Date: Fri, 23 Nov 2018 00:02:04 +0530 Message-Id: <565873e4dd152df24c86d091327687f4aa3505e2.1542911304.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 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 X-Virus-Scanned: ClamAV using ClamSMTP We added support to split the register address space for tsens into TM and SROT regions in 'Commit 5b1283984fa3 ("thermal: tsens: Add support to split up register address space into two")'. Split up the tsens address space for msm8998 since it has a similar register layout to other versions of the IP to allow for better code sharing. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson --- (Compile-tested only, since I don't have the hardware) arch/arm64/boot/dts/qcom/msm8998.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 78227cce16db..eb4f6f77969f 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -577,17 +577,18 @@ cell-index = <0>; }; - tsens0: thermal@10aa000 { + tsens0: thermal@10ab000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10aa000 0x2000>; - + reg = <0x10ab000 0x1000>, /* TM */ + <0x10aa000 0x1000>; /* SROT */ #qcom,sensors = <12>; #thermal-sensor-cells = <1>; }; - tsens1: thermal@10ad000 { + tsens1: thermal@10ae000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10ad000 0x2000>; + reg = <0x10ae000 0x1000>, /* TM */ + <0x10ad000 0x1000>; /* SROT */ #qcom,sensors = <8>; #thermal-sensor-cells = <1>;