From patchwork Mon Jul 9 11:43:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10514389 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 C5E60600CA for ; Mon, 9 Jul 2018 11:44:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B084D28ABE for ; Mon, 9 Jul 2018 11:44:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A462828AC3; Mon, 9 Jul 2018 11:44:29 +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 58ED628ABE for ; Mon, 9 Jul 2018 11:44:29 +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=Bz4d1+lO9XyAr1aOt1QB4KeJ1+ JF92yPe/46hjuZTC6whMFQAwMpzPJ/cLFx/KfvzekZyjM3nVvZ53zCAbFWsZ965fPTpxVwPMDtYvh XrpeKFxz5kIQMfrvFlLlr34jFDj7pP9L85AH1TotbeeEOMQrL9mdMLJ4qkb2xA3AgCB0ih0gdt6hG 29bHvSfKVm00f9lh2/RG5dUF8vbERGBLdAUGqFcBQbPH6AFj5+01egMwO10jWlDz4ER+yJoCagyHb Qrt3isT12N5doGxwMEm8y4EsuFqMnZkp1Q3HSblH55rtSsQVv68aqRL6cHdYraXOglV/bVs41jGiR U8/VKuUg==; 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 1fcUad-0004Cb-KF; Mon, 09 Jul 2018 11:44:23 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcUaa-000408-RS for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2018 11:44:22 +0000 Received: by mail-pl0-x242.google.com with SMTP id a7-v6so5932310plp.3 for ; Mon, 09 Jul 2018 04:44:10 -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=V7gEpZZm0OGwpFFvpwBpwBmb9UDv7dab6XKaeNfVwWvuULotqtXmUVnd6Cx1QJb14L KFf2iT8oeypZjV0SDMx8Ni9OkfXQgylDhsN6ci/nkTFJbnoUs7C3Mt5j5d5mg/arfpbx 6Ez+8u+PUijBrREBbLITH9OkmcCZNgNX1p1Tc= 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=GM9053xtJ/mN3g7+13I8OKGelNdV0Lub4ZYIM93+w/p/C0Pv4QqCIl5nNW9F0R7NPu FetLjmD8TtEFrAeZlW8a1gQ27H7ghReRWHRCvy68i0WiN244/1Z2gASiwU+BLr22SPCe KB5a5FqZ9+mFhJVDbOz3tPt0XyHFEMElxhSl2AHxEKBPsMFJWyHFJwbzXzkO5+rHDDlB ZL10PLIVIWuNyJcBxIyedz/bcp46r1tOTr6hLr1+qWcqeMikjWA7mBNKOr280AkPCQ9i Mgi4GFGk8DU6Rr2MVoadzSMTS1Ff0KTOeWbe5peNZ4pNfb+Zov/0RGyNqCB/Bhz9562Q jWrQ== X-Gm-Message-State: APt69E2vENlaEpXgI7IkcCtUWhBK1g91a8YkkSQRh4bhYLCrfhOY2RuS UWCrsmo8Sbx6TglnSqDlY6CyMg== X-Google-Smtp-Source: AAOMgpdHdVITWIssY0m8587gQ1hWhDyrsgy2ATd9xO5dBey9r8MLGF82iIfT91sx9mP5uzcIlusYOQ== X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr20713741pll.165.1531136650294; Mon, 09 Jul 2018 04:44:10 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id g124-v6sm24269175pfb.5.2018.07.09.04.44.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:44:09 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Subject: [PATCH v6 3/7] dt: qcom: 8996: thermal: Move to DT initialisation Date: Mon, 9 Jul 2018 17:13:25 +0530 Message-Id: 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-20180709_044420_923717_2ABA568E X-CRM114-Status: GOOD ( 13.71 ) 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>; };