From patchwork Wed Jul 18 06:43:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10531375 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 C8F0760547 for ; Wed, 18 Jul 2018 06:44:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6A8220499 for ; Wed, 18 Jul 2018 06:44:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9F352623D; Wed, 18 Jul 2018 06:44:27 +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 934A320499 for ; Wed, 18 Jul 2018 06:44:26 +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=Pj+Q3GWVYIU+wl+lmbsH1Zq2VFIiEcKAOAnrFi2fdwU=; b=jinRISjCSBqN1EUE4fEpdYdp63 9fzMW1r9ZRIW8y6ugD4Jz8A7CSOZ7klUar01XOFHArZJ6SHB7jrVcmd52/EbiXUJPt5K7kyVuooDt FeHFs/XO3NnmDQwqpf05702Iz1zrIVPPRGNf+O8XaSCc6uFBmjap9VsnlihOgrf4ZGVFIYKq7bKCC qY43KoZJvX8RTPU3Txl01CS405eu99mFVD+sjmo+7tDHdW7KYmB0nMVkbVmIW0dfE6H5YJAY4b56a MlzRY65wtmfb0WFV4IPrL1ZRdnGddzHIqVetPkKhrB8WCSP5N3zuD77o2DrV+8weYQTnHTPC7hUzZ DqHNJRfw==; 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 1ffgCF-0000XO-Ps; Wed, 18 Jul 2018 06:44:23 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffgCA-0000TY-My for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2018 06:44:21 +0000 Received: by mail-wm0-x243.google.com with SMTP id a19-v6so1604844wmb.2 for ; Tue, 17 Jul 2018 23:44:06 -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=oUO1jTYttP/QLbWHGOr2MUnHUZOUMjTQ0O4rLImfJII=; b=YQ1zB8U6wZg3c8D198e2AHWegXFdKLfD26VsNN19w2TRMNlzoNglwKxp48ZG8r9H1k Qy+mD4vuIEf2hEkJpvCUBCd8lCRC1FRKhA8OLmaLk8hdjXQAns56q0cItd/DN/oik5Z7 Kb8a8/3R8fHP0ggd+pHRAK/nQa28FKsQ30TXE= 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=oUO1jTYttP/QLbWHGOr2MUnHUZOUMjTQ0O4rLImfJII=; b=gn+IPK+xvMOiINvAJ5fd8KpoQSSxp3ClidQyMhmhA0fvMkjSSck01vAbETBH5IM5hD 1HPJMSt0JRgRWNLym4bGVOrE6o9pTdb04bqIm18YHdDex9Dk+ls8zRDG8LyJPJleGSTS aGTxvGEq1nZ7iAz8W27FVGV4UMNnPb4GQXyUzT5/sulXCYNb5EOwfE5nG1jYJf38xyT6 wR9/9FQYLBUMemV9I2KZLBVoGBU4YmZNym9/7SfzDeU+t/mxbbZfy3efumkffnF/EFs8 e+XF7Mtgn1A9xH3GZYPe4srKv+YqgjJWUwbDkW1AulmMWZFXB7nqzSki9XRpK9gvwotR 8MHA== X-Gm-Message-State: AOUpUlE5ttn/A8/kJA8L00ilcVB4JCPLROCEx8gmxJTY3OpYKxOWBUGw dGNmYSesGNnHw86Hg5wNQwU7qg== X-Google-Smtp-Source: AAOMgpflDB1OKMOVa1pGl3wojpBItzjygrfP6MVo/pr+DFsGYxqQR2ZbWrNjH7sSc3WVsBmFKbl53A== X-Received: by 2002:a1c:2396:: with SMTP id j144-v6mr725114wmj.26.1531896245241; Tue, 17 Jul 2018 23:44:05 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id 35-v6sm2161913wrh.52.2018.07.17.23.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:04 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Subject: [PATCH v8 4/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller Date: Wed, 18 Jul 2018 12:13:10 +0530 Message-Id: <540bcdb06d3e032de903748545076327ebc04026.1531895128.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-20180717_234418_822561_768C16A6 X-CRM114-Status: GOOD ( 14.15 ) 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, dianders@chromium.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , smohanad@codeaurora.org, Rob Herring , bjorn.andersson@linaro.org, edubezval@gmail.com, David Brown , mka@chromium.org, 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, 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 Reviewed-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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>; };