From patchwork Fri Mar 29 10:12:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 161410 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1834434jan; Fri, 29 Mar 2019 03:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUuZfSwJpYO2i631DebrRaUmfI76ypkxCV3W94jQNtt2kQI5csZ9TXVQIlaZLFk4fhpRD9 X-Received: by 2002:a62:3047:: with SMTP id w68mr45904723pfw.17.1553854371845; Fri, 29 Mar 2019 03:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553854371; cv=none; d=google.com; s=arc-20160816; b=Q1JHRG9ErPUvQcWtdhzzU1eSTgVQ/NIZcIB9MdUlTAtpr4x5FQ5tYRQcSdElRxgq/Q TvoqWMGj65zGd6m3EInuvmxzFPciO+ZEg3gFX0LHf45+b5kmCIM4yPC/DJ7Sz9n/1QVn NV5R+KKyb2ReANDqMSde8n52Fu8WOUZd5qWqqQXWtWZr/xB0vPZQHNQ7/sDCKkBthMME w7G/TBHWapUIv5bIIXt+JF7yb53H2F8WZDu9PBZSNyuyHeEFOxV/5WkWdgGlsPgf0ZBS WypcObw1Eyzy3t1KUNMrA4aHWPdB7Zuy4ua30FCQGgZPjHQY3vku8LgWUACi+97uVi79 Ngmw== 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=/lEw2WJIQYdMZsFOVD8QtaZ94Qz62D3Eglt9Vc/R/YE=; b=dMMAVdVP0QjlSv3MQlJSjQsZOFno+ZrhnCXllBuIqz3XE5jT/PmaCDCeqsVPhzxoW+ tCu5SGU5BgRMJw8b5r7i7g7N3q7/JVtQUZFEwf74h359onS6DuVTpv+hyHKCnSsLQF94 wENPtqFUQK+yFEXgdeAorUiKTKMyoRSTXkepveCW1CrcghAM3KUXy3zVAJFjdvkuBYaU NHvQxMfWkrd8HaPWUisqoyX32nGu3/GC+fhVNIgGDzXrfgPRT16WiowW3VJOh1vYFbf9 SXoHSivJ57eOHkjDOxrd/JZ9vdExMNR4XHx1G9UCJUzWhoTUxgy86o7zYwEWkUJ3SC8G AI1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KkLs4yE4; 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 f4si1494540pfc.96.2019.03.29.03.12.51; Fri, 29 Mar 2019 03:12:51 -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=KkLs4yE4; 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 S1729033AbfC2KMu (ORCPT + 31 others); Fri, 29 Mar 2019 06:12:50 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38987 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfC2KMt (ORCPT ); Fri, 29 Mar 2019 06:12:49 -0400 Received: by mail-wr1-f66.google.com with SMTP id j9so1870317wrn.6 for ; Fri, 29 Mar 2019 03:12:47 -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=/lEw2WJIQYdMZsFOVD8QtaZ94Qz62D3Eglt9Vc/R/YE=; b=KkLs4yE4PyAr+Yl1regGK7dtXQO096QUH7ZsFUL/hY034MN4bhzXJlWdS+nA2ZD2R6 XGhjd5+Ak3r17le6xL59ByNnqVO0czpMJMlma2BaKZQ5ALm+C5KlAFsx3eEXCV+vjjh8 4G8P/GtqMAq368GPHCzUmuzUcPikcQS0/+ndm0OxZYNGgR+d7FYDHTxwuDfR832rJk+b s5CvoCGf9zm8wyLtravwWTre6C50nunJnLcpQh/WEkiYyLW46gedIf+yrG9W5GwJDbUM H5OcHfcleHY11r2iFkROF1cyPicEenEHNL9E0vLYXlWJOTWhk78urdhZYRoDcgSNhDAQ Au+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=/lEw2WJIQYdMZsFOVD8QtaZ94Qz62D3Eglt9Vc/R/YE=; b=EDhDZVHKjTGPXn8nwrOjgoeE8SsZhcyVW7Xoj0NoGJiicGGUKXm9EOxOgVdJzj3ONK aeUjm2CMXZ7KAKtg25rWs+CXOUtcfmB0WtTYdxmI7WHVIiT9gT0NoMMJiz/UgNCaz33U 9hOa0dMggZTimGgaYsXhxdTLy/m8IO67fg5eOi3eXYAUmbC3pSMx/eAF4/6ma3zfIAfo +14Wj09PfI8u14MSJEOA/i67inKZkJel+a+uSC2SdZL/qPukajbqDrkDVw8tTBjFSQLB A3OhalluoVLGwt1zLVtZZTOpsBESJCJeW6klc+pPhz2rPdgq4qc8gtcvigQ1lr5qPmDe jIHA== X-Gm-Message-State: APjAAAXfUtQp5amcbQ0Iu5bEkrZq0zfLyW+KCrtD5RJccX/5CB1z3Q0U 50AQWAMjTE+76iyJ2yGz40piGuIwT/I= X-Received: by 2002:a5d:4081:: with SMTP id o1mr5840015wrp.241.1553854366992; Fri, 29 Mar 2019 03:12:46 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id z14sm2072519wrv.78.2019.03.29.03.12.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:46 -0700 (PDT) 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 v2 03/13] arm64: dts: msm8916: thermal: Add sensor for modem Date: Fri, 29 Mar 2019 15:42:09 +0530 Message-Id: <0f5d5623be3c60efde8a98b45b2e5808190d3675.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 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 On platforms that have a modem, sensor 0 monitors the modem. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 0803ca8c02da..c8aa9a0986d2 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -278,7 +278,21 @@ type = "critical"; }; }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 0>; + trips { + modem_alert0: trip-point@0 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + }; }; };