From patchwork Wed Jul 18 06:43:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10531383 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 9BCDA6020A for ; Wed, 18 Jul 2018 06:44:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89038205F6 for ; Wed, 18 Jul 2018 06:44:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CF6C27C05; Wed, 18 Jul 2018 06:44:47 +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 235C9205F6 for ; Wed, 18 Jul 2018 06:44:47 +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=/OFIA3UsqkXDjqtj9GKlQzIbeCHDZEUL72wCrjDOohQ=; b=H/EwtnoUBBGp5j4UpYZV7EjN3f ssp8u/sPtx/FnXmgf+oxFo5wm03f9TonhPOFsQdLAXja08ENPU50h1qMDl+ococKA5dpwHCy9Qchy b7nNxB+dFRN8VEObd0uK+l3wF0F3m6/N8PVM8y2bhaQgMivZxJykarBXkWvUXh3kwE47jixoShfP+ RaUrMcy8t5LDUJATGFi7ACOX0UfV6jSOv1qsmxnc7DXpZu7aNFVXKmAZrP0uIYxqyKWeSZcjr3nwi 0bS+GzzYtbxJzqNBpBOS4Ohnatri1U0x0rVnF920PfZD1wHzeLcQTNZl0odZ5MIoGQgI00NqNXzFK Ekas7/dw==; 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 1ffgCZ-0000o6-BW; Wed, 18 Jul 2018 06:44:43 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffgCV-0000cu-5D for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2018 06:44:41 +0000 Received: by mail-pg1-x542.google.com with SMTP id y4-v6so1550691pgp.9 for ; Tue, 17 Jul 2018 23:44:29 -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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=F0/20GA0BuCtCFnXTUAf9mmSlKh30DiHD3lYza665pIBMLkxHlgQxFC5dpB8HBTsPM WhLKrYWfVCFZ9NDZvRdBB9Hchbvg2y2+pyV0BU7MrEWW7CfAZ9T902gET4U/dkwXowXz lNUu6D9p3hUTtYY2zbqOm0D0BGEJ26FtkqDLM= 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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=FcsZsRwem+0oi0Og2lueFxgkcKLhCcJVIGpwan2jCou5rydHEZKPWFLWWele1sye6H Jbg21RRdpqhOoot4sqTo547tQdt4KXizH+miLA+ofqd+1KCCkxnNjis6cYpNBssOkV7Q /jHRGiewKf5eQpWz4ndF0tVf5lZz90tUWpCBsRPaVYvC94BmIi4IqDrqxFlfiX5LJk8w 8D5+5Pp6Cc+p+GNxsCkBQgVv81enj8nES0BfcE3+vitoIaXSmGrpzttj96XVqIvsUA+w OvkW7105ztxV+jGhLQaKZv2LGcoCjaCdRPJTjax2+WCVYRXx8V8F1gjrrWfYuHx9GzD1 wrwA== X-Gm-Message-State: AOUpUlFzMYJEYRJvrSgroBIA7vrPtHTInA9web8vfHXD5V8BfTRFp68Y /g50SQ2/NlxAU70VZ71pN6uy5Q== X-Google-Smtp-Source: AAOMgpfZKgNfmlb9HiniAnzUmmWJ00RHR2CLVkgEE3JdcIy8xB4zK1JDHo2ABujNrdAdnGxGWtSYLw== X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr3853543pfe.207.1531896268411; Tue, 17 Jul 2018 23:44:28 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id d132-v6sm4905676pgc.93.2018.07.17.23.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:27 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Subject: [PATCH v8 7/7] arm64: dts: sdm845: Add tsens nodes Date: Wed, 18 Jul 2018 12:13:13 +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-20180717_234439_291096_9781FCFF X-CRM114-Status: GOOD ( 11.70 ) 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: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- 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>,