From patchwork Thu Jul 12 08:39:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10521325 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 91ADF601C2 for ; Thu, 12 Jul 2018 08:40:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7138A29486 for ; Thu, 12 Jul 2018 08:40:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F60529620; Thu, 12 Jul 2018 08:40:54 +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 3B5EE29486 for ; Thu, 12 Jul 2018 08:40:53 +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=3vUM3o5ULLUpUrJto5w8kSVsn5PMFTTho6mWGlcWGXc=; b=CICnpk0/Fcxm/k7gkEFdDJvDKX 0gDRUZydVTOqYGdyOdoAlO8thdWH24gY7ukIPet9QPJDCj45u7O7ESuzRMEkJ+QoRZV2nAYIy9+9T Y5O85kVJL8QJyaRp+qD760hdfT5r3K2Ab7vtXyZgNnaPOlZxxk6qLjPoXZFOYvbVO0MN6ATiI9lmC +yEi5flEGJ8few3USFMW3jCI5GSd4I1u12MpL7cCHtyEps8A4r/UN/w59Orgzb7sREaNMHll5z8CT gshS0+5ARPr0NG56JE4cAHjuhBt9w+SWVOTTh8ImozRSoYivRN5o94Np8bYkuhvnrc/zi8NAjMocx qnV8QuMQ==; 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 1fdX9c-0005r8-MW; Thu, 12 Jul 2018 08:40:48 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdX9Z-0005mQ-35 for linux-arm-kernel@lists.infradead.org; Thu, 12 Jul 2018 08:40:46 +0000 Received: by mail-wm0-f67.google.com with SMTP id s14-v6so5147540wmc.1 for ; Thu, 12 Jul 2018 01:40:34 -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=gaOY9NRaeiUkrGltnYCPQSkt3TOSQxN5osLFYQfxr7M=; b=TGYTKa3Aoi2HhgmODW8Qq1+XRJjUTd0lpRR0I1O0YajhSECFoKaYA6kSrbupgKTbZC +3rDlvWL1X8iWwsi3pin+BEQHW0XF6ftghqLHvsPJlYNEMeNmj4OQJVlEAKWKFRgbXF6 DeicoWZ1irBQH06MhWNV7a+H1Y7tjvmWXZrKI= 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=gaOY9NRaeiUkrGltnYCPQSkt3TOSQxN5osLFYQfxr7M=; b=FQmf34bwfRaxnGnfrXyHVOzyySTQ/xxnHFSw8FPBzxctAiwlFCzMz95gozquHnBymA OSkU8JpMSj5t+thFZuyiGNXGYfwLzg5C2ukVVlHjAJPv27k+xCVBtW1dG1NKBDKt68Cb YuroVKtH4LEZb2nwUBXTOyPMpqdqd5OBWvcO7g5dALaX99AFwn3/u4CJQpecas34BLrN us8L893S0Mhx2d7x7ep/I2l3dgzj9p6pD0wja1OpLxE0cGdr2SkNeZ0i0tLpbA0qs1jQ a7qX10AGpd4eJS21dCo69yEmtOy6k6ikXuL7AoSs9ro/vgwkoIMrayELc7khDjY31HM6 O8Kw== X-Gm-Message-State: AOUpUlFvpb1tNL97ld6LYhaXwiIU738Bkg+3AoVi6f4WcgD9hSy14PYK Xpv6ZpChhY0tfbw0nXhjMEDqmw== X-Google-Smtp-Source: AAOMgpcwgVC2JcKu1KPIYKG6V4Ik1hPcTU2l3UrjvqqvSObhcX0OvD7CwRbpquEeM77BhfGUkg442w== X-Received: by 2002:a1c:cc08:: with SMTP id h8-v6mr698144wmb.82.1531384832987; Thu, 12 Jul 2018 01:40:32 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id n8-v6sm20484249wrn.69.2018.07.12.01.40.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 01:40:32 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Subject: [PATCH v7 7/7] arm64: dts: sdm845: Add tsens nodes Date: Thu, 12 Jul 2018 14:09:08 +0530 Message-Id: <0dfdbfa82edced85ea5be02e1d74d73d232c7a08.1531384019.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-20180712_014045_226811_ACF8F887 X-CRM114-Status: GOOD ( 12.49 ) 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 SDM845 has two tsens blocks, one with 13 sensors and the other with 8 sensors. It uses version 2 of the TSENS IP, so use the fallback property to allow more common code. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Tested-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cdaabeb..01ff146 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -221,6 +221,22 @@ #interrupt-cells = <2>; }; + tsens0: thermal-sensor@c263000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@c265000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc265000 0x1ff>, /* TM */ + <0xc223000 0x1ff>; /* SROT */ + #qcom,sensors = <8>; + #thermal-sensor-cells = <1>; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0xc440000 0x1100>,