From patchwork Fri Mar 29 10:12:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 161411 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1834556jan; Fri, 29 Mar 2019 03:12:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpH3byTezgN8jhVDrtIQtgS268RRc8hNqm2m/j+eg0Q6/YDUSrm+wSixiQTEglEuptx9pT X-Received: by 2002:a63:c145:: with SMTP id p5mr16594034pgi.339.1553854379524; Fri, 29 Mar 2019 03:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553854379; cv=none; d=google.com; s=arc-20160816; b=ganV8BeXfBa/JYuJ7k/1YGfHyZPWsiILzGuy10M5uIBWwGNhRJKSuBIPmlxql5D7/L utsFAFKBMPK4fXih1bHcZe6eh0f6WFulfUkpsaKYn3BDc3spSEP0FMp+wtbJEbx6O3py nkfqMBwaiOhI8fXhqu1y4vTracvDDVm9RF47lwOWR8uaFLPQSPJsXH/Nkn9xLWKcK+eF m2YeoGyllP0xKYtuMTsIWJ44wxs2SvToBITPtrFM0DKCUYTrLDAkV0SFNVmyenNqwdc6 CD4CHd5NQOXAsMas0vH2LuMk6zwx4woIg3HThR3ROnoidZrVP3Peag5gk0Y/7nM3Dq2N 07BQ== 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=F45uud4f8fCAV227MMD1FiQHOuaHoLclmOUA48d6Dsg=; b=EZFcwEQtf/nnh23RMK77IMKYbp5jxc1RnKZ3umY0EkOIi4obFKGQkgh2gBrhjNfcSW HCDkn9vLHw7AcXtowWCorcYU7qm9zf2k8ob8KosXv+m7Zkww5Cdvkmm6mmvqOsgS81NU B8enKckmG+bVRLD+A3SwPi+97UKiQlnVu2Pvc50J4WIC9yavc91/cs5QhRt/PxIB8RE4 IZ7TUGInYv3V8IpyFz1V5wAHR/hWmNcLUxz8adsE8u3oksziWKj1LIQwSgZgzKJFV4Dd lgqDXEtYNenJVhxCmlmA2EZEFnPQFUvoBwjlVXrzL4HbC2YcYcDJWOwWoCMr9FWjnSSA BDAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q4nMLi7W; 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 m8si1471348pgp.68.2019.03.29.03.12.59; Fri, 29 Mar 2019 03:12:59 -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=Q4nMLi7W; 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 S1729079AbfC2KM6 (ORCPT + 31 others); Fri, 29 Mar 2019 06:12:58 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36090 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729048AbfC2KM4 (ORCPT ); Fri, 29 Mar 2019 06:12:56 -0400 Received: by mail-wr1-f65.google.com with SMTP id y13so1882029wrd.3 for ; Fri, 29 Mar 2019 03:12:54 -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=F45uud4f8fCAV227MMD1FiQHOuaHoLclmOUA48d6Dsg=; b=Q4nMLi7WinqfW+e3zNC6pCmXvHOvzW+FEuU/N51o2fP/bgvyBuzOmHuzsRp18JDLmr QFCpV16GYJWzpgFiETFix0SblZeoqll96Ix0itKTWDxx4AUxVBLglY7Z1vHbPmrZfKH7 20cljgIWJlH5FzAKLw3tRe4wsd+3yAklz99DOyfsCqMUJP/A3gKqW4edb6C5g00Wdg3D ArGslNenT+9Dl3ogBDeqC82fVI68fPbTAuEZADMfFUlevcOtYXZ0aCyGpjLZcq3dSASs cwG7mGp3qzY3IxhJqyUX9eWLPJa1b2iAXtyAIXksHaTld8LMcofp10mFsz4UTtTdVWGy 1Xkw== 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=F45uud4f8fCAV227MMD1FiQHOuaHoLclmOUA48d6Dsg=; b=ZjIVL9N0/X/fa8q7LlKahUzmE1HM6YXnruz6683H+StFdYYhKq+b7+buqQ9zC9a5nx cvOfvzBQKvCnYMeNrpxpGMA26oWhYIMsJAn4Y4pcHUR5Wop73ymYGP00zn935WOiAVJY hwbWgPYZx+ugOxir7SBY5odcesCLflTCSPnNqFziuo5y1XHDMx4j97UGJ3fYW9iA+rY4 HrKWfBwcqfQhE/7mGu6kbydGLt0aix9zeBpgsC18GoVtDFrcRcxkidQH7KixRI+lvwvZ FRmR1ufuD50PgDdob6QwJF+RZBO93gkOvFL92oYvW1akP6tRhclfDPpQAq1ovIqFtkd5 lNmg== X-Gm-Message-State: APjAAAUBj8L3K1TBIJud589Ud7eL7yT+8XMeQkvCP2giQrj+3YwjIhZ/ /0B58IpZirC6eKzOL6+Sj6lQQyHucgA= X-Received: by 2002:a5d:4710:: with SMTP id y16mr29314802wrq.176.1553854373296; Fri, 29 Mar 2019 03:12:53 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id y8sm1720955wrm.8.2019.03.29.03.12.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:52 -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 04/13] arm64: dts: msm8996: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:10 +0530 Message-Id: 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 msm8996 has a total of 21 temperature sensors. Populate DT with information about them. There are 2 sensors on each of the cpus - one on the top, the other below (we only expose one on the top in DT for now). For the GPU, we expose both, the one on the top and the one below. Depending on the version of the silicon, sensor 2 is either placed near the L3 cache or the venus video decoder. It would've been nice to be able to be version-specific but we don't have DTs that differentiate the two versions of silicon yet. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 150 ++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c761269caf80..e2408ee91184 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -237,6 +237,156 @@ }; }; }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + m4m-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 1>; + + trips { + m4m_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + l3-or-venus-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 2>; + + trips { + l3_or_venus_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster0-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 7>; + + trips { + cluster0_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + cluster1_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + camera_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + + trips { + q6_dsp_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + + trips { + mem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + modemtx_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; timer {