From patchwork Wed Sep 11 07:16:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 173593 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp374311ilq; Wed, 11 Sep 2019 00:17:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0MhkIpMwAw+5+A5KMcMXtP30AfNxLfRXFvapvTQXfHXV05xj2M/2tB4DvHxfmEEGiBQ9q X-Received: by 2002:a50:858a:: with SMTP id a10mr8011756edh.284.1568186221104; Wed, 11 Sep 2019 00:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568186221; cv=none; d=google.com; s=arc-20160816; b=03FER0l5k8H13FAbYYSWMvEFW4OsO97Y346KjIE8u1lJ/2BHiHJ8YiX26UkuNg12Mp 9Rd8NOkvjN7NTvK/i38iaDYpB5pdNGCoZ9QhqnFGy09E+vF4o3uXnmlHYwaBu7H7qebt 7mSvrR8MZXtL4x4LZyID3v7yOjuOpa9p7gtNls62z+CTQfH4lY0ye8tftRuvrCP7PeZG KDf2Ot6f3iFoRKcPo7MvSCfwJkSTAl0bXWc55BYSgwk1syCuSUdrvM8f/EosnlK0p8oZ SuAgPclfU3mLm7jL0XXDx6MJDGsXkJgl8i+obUTzkh1bRmZe9z25sBw7DjmNfN4mw2gg Cqpw== 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=GSstL9++8v2jfjaKtHregZZ+QyubdM5bUACzzsQ3BDU=; b=qfD4tWpXQvgqpeRPz+6Qe5GK8G7R3HgfU34qYcff1Rfttc5C7NajJuHfDHEl3EbWjp ZH2F1OGmgI0B4eCajYgyTk6vl5XP4rwR4XuiSPPjRIWwqjMfWOldjpsUqucO4n2Tn4tr u6ov6ThPD3Ty4ELy+a7EqRveVZRCnPxwL6opPeDkKXAtqRbZrLffH8mgbsG7jchsPQwG 25WoBCAgSmnzXvEhllTzQgeqP4xXpHnuO162wTctVFHvNFatpgRaSop4EFtAfaVifYj7 aByd3oKmdnWgVUVsRXhQc/4hH9NNAdQP8hMsqpM09uAJgf/m1Be3qfzGQRoSnMYW3WNe d1VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dznj/+/4"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 b15si13950401eda.152.2019.09.11.00.17.00; Wed, 11 Sep 2019 00:17:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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="dznj/+/4"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727111AbfIKHRA (ORCPT + 8 others); Wed, 11 Sep 2019 03:17:00 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38264 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727075AbfIKHQ7 (ORCPT ); Wed, 11 Sep 2019 03:16:59 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so13098294pfe.5 for ; Wed, 11 Sep 2019 00:16:59 -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=GSstL9++8v2jfjaKtHregZZ+QyubdM5bUACzzsQ3BDU=; b=dznj/+/40631Px0rjuDfWd+FuadRLuIPffDB1RmRlk/sVj3JSox3UllSeah4dGtzEv MrKGjQFd9uWG2PKoYzrDKQai7Ph1MdD/HhywKAPhxGgDHJrbkH9eeLehemSnaaXaloXe 7RmBWJEEnZm8nHbEou0x+xn59zG6RN5yasO6eY0BhoZnYFOj2NussqJD91NXhpq3BTpN zBu9WzR09y8TeYQPX0DyaaFfWiayAMw9E9TUgXOSmktBHIh6WeJXPV+s8BEmd5jm8TsC vfUtDGN1eHJHfpY83Gwkg8sJpYUt3Jcwp7NqCY2LiNPrecB8OmZceznN5HHA9VmbK6zl KQ+g== 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=GSstL9++8v2jfjaKtHregZZ+QyubdM5bUACzzsQ3BDU=; b=n10FHZSRG4y6K+vmFQ03zpy8ffkI+do32yhfzpq6bPwumHzv9lsZW6Yr2RFW5D8HFL RvHqjHUQlmHBz1myP60KeLkBycWPWCZ/9hzHjyBfMRspReygh3rUapGznQwzMa8umm2H txo4rhYsiq2LnMHQoLkxw7NcYjJ/RYWyOM1txlH41MZw7xl15qvoY/t7fWl8mI/rJ5kU OWJLUpxgnarTmYp+axOYl6Z7GU0X2fVZZO6D6OEyae+ZwI/JKiST+3hRoH4yxKSmoJN9 pDrMLqMFv8BllYzq4C19qay+SUde2gso097npQI9ueNN+kUdiliKyGKc2jKBYYN083it IaFA== X-Gm-Message-State: APjAAAWCPSd5rkfb7vsue3BzIkVoAzZlOLOCyEPvdzRyexwlg5g9AHJf i1aMMHU3qgr4nL8MdAG0qlKNPA== X-Received: by 2002:a65:644d:: with SMTP id s13mr562937pgv.47.1568186218838; Wed, 11 Sep 2019 00:16:58 -0700 (PDT) Received: from localhost ([49.248.201.118]) by smtp.gmail.com with ESMTPSA id h11sm17719876pgv.5.2019.09.11.00.16.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 00:16:58 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v3 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Wed, 11 Sep 2019 12:46:22 +0530 Message-Id: <6c3835cd92325b3f4ebc3885d9009b58d0cdf6b0.1568185732.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145..d32f639505f1 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -217,6 +217,96 @@ }; }; }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + q6_dsp_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + modemtx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens 4>; + + trips { + wlan_alert0: trip-point0 { + temperature = <105000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; cpu-pmu {