From patchwork Mon Feb 18 12:35:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 158610 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2440392jaa; Mon, 18 Feb 2019 04:36:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IYi3JxCOzndxrMlP2Tx3BFpyNnqynKOVHOOXQ0+LnW8Jw2MCBxzzhnVxQt/fr4xrYcLH+0L X-Received: by 2002:a62:bd17:: with SMTP id a23mr23701584pff.233.1550493394008; Mon, 18 Feb 2019 04:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550493394; cv=none; d=google.com; s=arc-20160816; b=ay949CTzIgOmCw9Bquv+WwKWPgsrhS1BPmIsGoiFBmCopujMu5XSKK+jITfwYgNrTs uz1IeGxsrcFT5EIMpjCwJ2xnIuShPuKgweZFamrwyH894lSSnIAs5cSDGTzI7qd47HgE L1gYnXwh6N9tulZMcxo/0qhVybrq6evC4XbHgs2IPnLs6bNu4krnJVOESLHIyyiRM6yo tNz6nMd8JKnziZsO1qP5XlH/Vr2uly8v1Tp+2fzFy+9CO3QIsQJNK/T+80y/EJGTi9wR XpQ3ZxAk2ywbkLcSbkWdBCr+IpjbMPiV6TKOQkSrK+JRxjMAjCa7XhZN3YAJEnPkjEFH yiWA== 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; bh=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=h/Dvi9fbG4OasORGurj3WA12W6qNd/ZUR0VA88lvVzy+PFEETZegxeA5CvpWiW382j 1N2t4IFc9+ZDisaKT89Kb3nLr1WSG7M9vKMckCXng1REMZANAhHOovoknpuCEgIK/tNk Wd9+vsNMwkX1faklSTpv2oV/E0XChb/f4+HMCeElV2zmBBvYLUQqSMra1lvuKwVs1POo 92wbAnNGQAqrSBjp+1PAeQd1MLQUITd6vSa6TyqJDYZeHnEW1+tzlfgSETtqeX9mcstp 4R4h5HAhDPIIbL6O0FwnDJ4D1JCU4U24Rj5VRFb3FwDs7/qwSbBq8iTRmQQtA/W6uQUX lUEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CdFBjGnM; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 x18si12195622plr.76.2019.02.18.04.36.33; Mon, 18 Feb 2019 04:36:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=CdFBjGnM; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1730990AbfBRMgc (ORCPT + 15 others); Mon, 18 Feb 2019 07:36:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46702 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729025AbfBRMgc (ORCPT ); Mon, 18 Feb 2019 07:36:32 -0500 Received: by mail-wr1-f65.google.com with SMTP id i16so9939138wrs.13 for ; Mon, 18 Feb 2019 04:36:31 -0800 (PST) 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=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=CdFBjGnMmIzlCGGIHIQdv1jeCRGmsYPp9cLii/fuQwY5FhzLYescGI4BKddG+UJa4Y tB7dsCeBce00eSCzfM40f95CVt47Bk2gTbk1Kpp0f3ne8q5e2XWYFKXFFUlW1K+qW/D6 0oXyJv0Ol8yFAkk3u+Z5NY5GsXK6SotAGsMRQWyvoXuYtAfqsssMtF3wcyC3YYSLBH+L vJpItXxaZJvAuqEj6Auy/APNEOReVD9ThTrG1inrWE4OwhP/lPgq6vtAdonTtga2AjQk Jk4dCaAzZFDIrmOueqQKqpbUOaewIPniqZvRsMh4Dwgy3HNfTSEWOauh8nmc0LcRPYub oleQ== 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=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=RztFlIzl4uUsSpAMSkYfuVOwxsvG8S/yZ3PnmK/ZrMq2/ct6pb31UVkDvU8vfCTPpd xl8fNnNeUfNL6vunc3SHiRb3pYWFP8gpyvXP0QZaUMeJN1bDpqXiaDFtCB5+XezdGzMr 4ef7czOe2Y/GZNtE+kCUXHW9uzxrqghVep6oGwZlceaNtzmtQWs+0Qu+MwihAfXBnOAd FVBEA8DV40PdGepP7VKsdTSg+JP6pjxnS7uLORPpehfHSgLfrO6Qx9KhpsRbuMeFQrYU Beb+v+9Hol0BqWL2vY0eCBDQJg1jsOx3XLgPWGxC7MK2AN26zw4mETlosh87xuMubAY/ hXVQ== X-Gm-Message-State: AHQUAuaqfz4CbyqSdXg7mhVRBRawsn9F06MBWxU5mT9QlCN7vqcZeLkY kAVMJZRLJXUngK0V9yd93ZUGWA== X-Received: by 2002:a5d:68c2:: with SMTP id p2mr15424289wrw.23.1550493390452; Mon, 18 Feb 2019 04:36:30 -0800 (PST) Received: from localhost ([49.248.190.152]) by smtp.gmail.com with ESMTPSA id p9sm7265051wmc.14.2019.02.18.04.36.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 04:36:29 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v1 09/12] arm64: dts: sdm845: thermal: Add temperature sensors near major peripherals Date: Mon, 18 Feb 2019 18:05:23 +0530 Message-Id: <1a57e10249dfb9d97b45d748338dbd188a6cf6d5.1550493113.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org sdm845 has a total of 21 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 91 ++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c27cbd3bcb0a..55c8f3f99add 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1851,5 +1851,96 @@ }; }; }; + + aoss0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 0>; + }; + + cluster0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + }; + + cluster1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + }; + + aoss1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 0>; + }; + + q6-modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + }; + + q6-hvx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + }; }; };