From patchwork Fri Mar 29 10:12:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 161414 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1834917jan; Fri, 29 Mar 2019 03:13:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfM5YSeSdCPr/OydQJkLLKdk9kIPpnwJMcTbfPz8O0Xw5f20I7N9/kLGioFnciUZhtJ6yg X-Received: by 2002:aa7:9088:: with SMTP id i8mr45203217pfa.118.1553854398053; Fri, 29 Mar 2019 03:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553854398; cv=none; d=google.com; s=arc-20160816; b=OEm9X7wrAlg2N53mRprplX+M7ZKHqJugP8PWPEP6hyhG5ap+280/Ffsi/KjNtR5CWq WjZmKuxEfHMKTJl72o7/xKIpmGB2UNWSCcY7rVRytiZHr8hyeena0Fcbcu5AQ/RKdK3Q PEAdL7kFs4VxwVIn3JH/41DuaVqHD7mLr0Z8RsK2rDmSFKvjpmy0o3aRSC54vTpOHpNj /xEbtfksG0goVza1nrBR8zfwnhtYfclF/wF4ZDqVFEfXBfsovKl/3pwcI0tnX1ap3E+x bf08WMQ+8sfk1anKWNoHt8dn/ZK80fWXqDJTIAbtF0LWgOAJhtmoRxzJ5rsZBDE8NMv9 f1xg== 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=NNvC9n1z8PdtdpApwkNWkA8fQEaFhqvpx19ozcs0aPs=; b=awUbAY4fU7z1Fs9/HpLK8I9fAW7alKny0OiSADizZu1DSCUDuMGJGf+qhyaAhroon8 UIZiXEvZffPM3Ub/1vaMXkYdCeSkogtWYrYTIYrQMqHDR1rxe9aNKSJcN0gObw4QHWrK wXKh8d50PvdJ4BwD5qA29QB5rkPVs5zvIrkggtJ8ONzmsHEFMgm89k0kjbQ7cem819PD aAd5MrTrmELzvXQ+/P/zKZi1QrRkn1tLLimbaQ74bBpKZJwTHodMwO3X8vQKPSNC9Bt7 mXjFpZ//B39hI2H+A3oKdcZn47EGABHZX6hxviCAGR3rw721EqBhMBRSGOARRMVaamOf rKLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vHdkqr/m"; 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 e8si1578330pga.19.2019.03.29.03.13.17; Fri, 29 Mar 2019 03:13:18 -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="vHdkqr/m"; 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 S1729200AbfC2KNQ (ORCPT + 31 others); Fri, 29 Mar 2019 06:13:16 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52621 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729173AbfC2KNO (ORCPT ); Fri, 29 Mar 2019 06:13:14 -0400 Received: by mail-wm1-f65.google.com with SMTP id a184so1908299wma.2 for ; Fri, 29 Mar 2019 03:13:12 -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=NNvC9n1z8PdtdpApwkNWkA8fQEaFhqvpx19ozcs0aPs=; b=vHdkqr/mXHVgwz2jYU0rz/ISRvP7xzfrHDVcrzth1TTCpJ+lChaTFzhMD5HIouKLD0 N1r9W30df22N2U8lVsALu4ygogSwzZ0D9zJ6Bk71W5Rs0eTtYUsrHAmfQGegETYqnEJK qWKRuhqFwZhC/ACoM1e3FE6CDolu4y1+bnoGYZZH2oWs7x9knJOzS0efd12qaC4oWd/g XAtke53kyTq1TEQMEaYH5iaV2g/T7lG9sBmpQ25KCW6s13k/93Hszb1Z8FVtJoW4n1Pw yWgIdyWnzUt6O6a21jz6YliK4P+XzhPj46uTb1h1EI0aRnCyKO+rsi1gBobicrmz0JA+ yIJw== 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=NNvC9n1z8PdtdpApwkNWkA8fQEaFhqvpx19ozcs0aPs=; b=pi1IXV3+HJrbiYxHasQ/dFmfxDCjRcVD9Fr5FNLPxI7NRlJCAgYD418RUrkccgdHjR LDaadTdN1L6nyTBtUTVeBgdnDuU89wfRa100imTfxTfePsiEHgEWJ5xiBNK9tMOkKp4N BgzNg6jcxYTpyXIKfUiEZRIR2Og6WRlyp21T/WNpEZJmQ+CFBZ8XsucLMhKt4noY8oNk 4HaHudienThuaBZMe3oT07L8Uz+BRpLPYS9UQFjvjwv2aV+3t27cZ5203ZGl9HSgnbAE u2wTqWWZW7kp32jejkdO3DCqUGOIstTHiOuyb1rycworPdHAN0nPlllMPejxsBBI1K2z V+sw== X-Gm-Message-State: APjAAAU1/yCvTrJ+3VBXQP9edG8Uco1EJNHBDClvEzDWbcVtrL++IBDx wOfDigaleq+7wYzRUgvsQUp+14zQzPw= X-Received: by 2002:a1c:1d81:: with SMTP id d123mr2862060wmd.59.1553854391757; Fri, 29 Mar 2019 03:13:11 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id d7sm1648941wmf.31.2019.03.29.03.13.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:11 -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 07/13] arm64: dts: msm8998: thermal: GPU has two sensors, add the second Date: Fri, 29 Mar 2019 15:42:13 +0530 Message-Id: <7af19b6468b6e10f0a24c40b7a467a71ae9bee65.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 The first sensor is on top and the second sensor below the GPU Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 56ca9ecdb0bf..b368da235663 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -506,11 +506,34 @@ }; }; - gpu-thermal { + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 13>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; }; };