Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1436222imm; Thu, 12 Jul 2018 01:42:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeerlmkPr8PMJpGSw6I55q8xiEYV/UEcC3/nhQe5QWOiXO4as0q7AOfo1Dc8NXS7jtsvCKs X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr1274262plg.135.1531384922154; Thu, 12 Jul 2018 01:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531384922; cv=none; d=google.com; s=arc-20160816; b=quvl9yIJMMucRM8ia3X4pXLgIQVlpQbTVkPHcphq5q+tCOhl22bnbWrNCBNeqY00z7 cGLPrCNzALio/Bf/G/5PWVVmhdW8hpOK2Iguuo0pSEm0uPY7ZvX9r5k46tsvzo7+G+Hk EWtQ34dR8wA3pMSIAuByUDbMMmkud6phH0liySzBxjYAilHocJTibhF1qQQ+Xi/BdD8j 621XYHpk6Qcut2Yc++Blt/XXbSLeCmWw5cMi0E1X6vODBEy1bji5rhjdgbB2s1IJ3yO6 7eHXBPfawCtcgaGbJnZ6rfWOgekwAdqg0bVxCidRKwmXsC3rQOIhvJCsYx8GccouQ2T5 7HPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=gaOY9NRaeiUkrGltnYCPQSkt3TOSQxN5osLFYQfxr7M=; b=fafVgtWB+c0zyGSvJZ6N+2Crr8IifIFyJrr4HvTmZLCthlgjDm2P50buH0dHu3AZtX 0zoHczlezNWuZv7hRt8NHWTjERNXFnI8LCRCpJM2vAw/Hz1LJfQZw3cCXE5gors8YLw4 RUqRUmixC1W3xKCx5hSEyoLr8uypzuqNYuHLnTDQUj0fL66gA7dDEJ2DkedMNvh0BroD LXHWOB+cDjbSEa5gtDO0n1J+wIvTGAWHa9V3yUzNz96Mo4H/REG6I8pnKpx1wVGcunzB 9ADNMUK7ukWiHE9vwQFaevhXRl+7vdPv0khQSJrPmjlyB13ZDkERsVvG209BOcQ20gpF oxlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TGYTKa3A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si20807066pga.168.2018.07.12.01.41.46; Thu, 12 Jul 2018 01:42:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TGYTKa3A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732557AbeGLItK (ORCPT + 99 others); Thu, 12 Jul 2018 04:49:10 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39325 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732546AbeGLItJ (ORCPT ); Thu, 12 Jul 2018 04:49:09 -0400 Received: by mail-wm0-f68.google.com with SMTP id h20-v6so5081982wmb.4 for ; Thu, 12 Jul 2018 01:40:33 -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=WDKiqVf1oYtLR5mba6Ter/s5WjhDQSPz3c7N0vnacQnrBDDelA5Ogrn+NnHQbzvcil auyK/AjUtfudjFrURc1bloGYCMeYnFB0cc425ahmrB+SBhLHqYrj14jlLG1ImhggxjtU dkMcdePwuoetIh3Zwe58BmiGVOnUTNNxpOTti4O6R9BrvUW9bIpRhJjGF3Trm9FWheNk /UYQVKc8j64h+NqRsuvLXaGzR3xZ6+2f+j0jJl7ZWFc4OE5KFIJXtqnQu6Q6U1+/9kNT L2EvD2p/A1HpNpRIRcmCJXFjYp5qCz0R0bGrI4Al6Omw8OoptyE/ksoLq/R3hjY+B0Hk jCdA== X-Gm-Message-State: AOUpUlGs5zLMTvsxjgsGE5JdV6vGN+1+ze/seMLKASgsg7RO6U4Z1Dj2 PECxu8KXADJB8RVltCIEV9OB5wcUdBQ= 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 Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.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: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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>, -- 2.7.4