Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp680494img; Mon, 18 Mar 2019 11:48:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9W4EnT5Bf54EcSX/9XGsQYKuS6I5irdtt+1zX0/YbDo4YfgZ0ox67BNkW3I5UPnDPIB94 X-Received: by 2002:a17:902:2f:: with SMTP id 44mr21274621pla.139.1552934908323; Mon, 18 Mar 2019 11:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552934908; cv=none; d=google.com; s=arc-20160816; b=hlrJnjVJgjlP15c7YNtJ+Go++kwbdiRhecFB51QsGBEPimtxzuEYHxL2UuP7cido/I QWE3Ir6ZR7h0tvwj5dBhqX/jiqIbrmoLXeeaHjToFiZKUV8kh9+nXkSf/7IWdjbNKgAF LrDFX7El8yes+A2wzBbHaJcFFsYDDH9HU/T0DTLnRm9Uy0JTGNZ4oa48OK7m6SVirMPw 4o/zLr3kBwDvecID+8xa2VrU21JyxDpMr+Qf7wPgnMOb1QNWLJ8SQje1h2u2bg1Ad4he FHQsIm4+qwRKD6+TtVLbLHgElUyoDX6DwOtetJk2NNFo0+wvYA3rzodAa4YJjbCpHyUU X2hQ== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature; bh=n/9P/y+dIu+efAEQgY+NTh1tVLfSflGd6jLh8VZw7rs=; b=Fd/tn9xsay8W+fBeKJDyiRdGXlQ3Jk0teI2hnxIf/eHX28+d1qlIdhji37iRJfPCvQ kxPaWPEWlP+AtJBjipEAXyhWSKDRWXBQINvsfA6eudxrzostR0YNW4exu58rlhkgaL+6 X7be834IM81ZxN7cXy/cDzUFmClgmIVipPp08N1Sgdcs8OA1OdbiawvuIopgySSyTfsd e68p1E++vi70t1L0uZ0f1HLG8BhzabTaJ/jV86Eeiua76mY9Bl4eXozqlRh1u1F8Se3z AUkeqAZeX+4EGdoj3MVkTPpJntBc9QVkZJvxhu3jUc0Y1jStvk52okmd4Ku7u73SKCGH O9Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@akkea.ca header.s=mail header.b=kLgMs4UX; dkim=pass header.i=@akkea.ca header.s=mail header.b=WURY45AR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si9492755pgp.513.2019.03.18.11.48.12; Mon, 18 Mar 2019 11:48:28 -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=@akkea.ca header.s=mail header.b=kLgMs4UX; dkim=pass header.i=@akkea.ca header.s=mail header.b=WURY45AR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbfCRSrS (ORCPT + 99 others); Mon, 18 Mar 2019 14:47:18 -0400 Received: from node.akkea.ca ([192.155.83.177]:45020 "EHLO node.akkea.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfCRSrR (ORCPT ); Mon, 18 Mar 2019 14:47:17 -0400 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 2BEED4E204E; Mon, 18 Mar 2019 18:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1552934837; bh=n/9P/y+dIu+efAEQgY+NTh1tVLfSflGd6jLh8VZw7rs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kLgMs4UXxM+Y/OoP9t00A6TKVJtfwvIQVT93b1mh/3g7jCslgmHc4JHSvmVyoekXy dHcdpIVFaH1ABvk2BDcXnli2/CRBWc9pn+OGleF51lovmNkVoAtnXylhiwlXEFHmlC 0Sxyw2D/mDt9FhsGoUJsCTZY6smfNGez172NB4So= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VKRmZgVaAanJ; Mon, 18 Mar 2019 18:47:16 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.86.75]) by node.akkea.ca (Postfix) with ESMTPSA id 017F74E204B; Mon, 18 Mar 2019 18:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1552934836; bh=n/9P/y+dIu+efAEQgY+NTh1tVLfSflGd6jLh8VZw7rs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WURY45ARuDhRk80Pq80ohiofQZunPst/JWB8vDo4Bf2pLc1jS7norx7fhDqm4s3zv 2TTF3h2UnqywbL0YTH63e3rGyRhRIwqOZQF/Lh64CL1o3uHcFlcL46VApJ8TWz+uTp pw+0iTJl3H/Jx6RKth1gbUF2mtW4eMuetA1MF+P4= From: "Angus Ainslie (Purism)" To: andrew.smirnov@gmail.com Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Carlo Caione , Abel Vesa , "Angus Ainslie (Purism)" , Baruch Siach , =?UTF-8?q?Guido=20G=C3=BCnther?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: fsl: imx8mq: enable the multi sensor TMU Date: Mon, 18 Mar 2019 11:46:43 -0700 Message-Id: <20190318184643.24025-1-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190311213124.29325-1-angus@akkea.ca> References: <20190311213124.29325-1-angus@akkea.ca> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the imx8mq TMU (Thermal mannagement unit) nodes for CPU, GPU, and VPU. Changes since v1: Removed references to multi sensor patch. Signed-off-by: Angus Ainslie (Purism) --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 118 ++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9155bd4784eb..885395e74452 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include "imx8mq-pinfunc.h" / { @@ -89,6 +90,7 @@ reg = <0x0>; enable-method = "psci"; next-level-cache = <&A53_L2>; + #cooling-cells = <2>; }; A53_1: cpu@1 { @@ -97,6 +99,7 @@ reg = <0x1>; enable-method = "psci"; next-level-cache = <&A53_L2>; + #cooling-cells = <2>; }; A53_2: cpu@2 { @@ -105,6 +108,7 @@ reg = <0x2>; enable-method = "psci"; next-level-cache = <&A53_L2>; + #cooling-cells = <2>; }; A53_3: cpu@3 { @@ -113,6 +117,7 @@ reg = <0x3>; enable-method = "psci"; next-level-cache = <&A53_L2>; + #cooling-cells = <2>; }; A53_L2: l2-cache0 { @@ -210,6 +215,119 @@ #interrupt-cells = <2>; }; + tmu: tmu@30260000 { + compatible = "fsl,imx8mq-tmu"; + reg = <0x30260000 0x10000>; + interrupt = ; + little-endian; + fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x70061>; + fsl,tmu-calibration = <0x00000000 0x00000023 + 0x00000001 0x00000029 + 0x00000002 0x0000002f + 0x00000003 0x00000035 + 0x00000004 0x0000003d + 0x00000005 0x00000043 + 0x00000006 0x0000004b + 0x00000007 0x00000051 + 0x00000008 0x00000057 + 0x00000009 0x0000005f + 0x0000000a 0x00000067 + 0x0000000b 0x0000006f + + 0x00010000 0x0000001b + 0x00010001 0x00000023 + 0x00010002 0x0000002b + 0x00010003 0x00000033 + 0x00010004 0x0000003b + 0x00010005 0x00000043 + 0x00010006 0x0000004b + 0x00010007 0x00000055 + 0x00010008 0x0000005d + 0x00010009 0x00000067 + 0x0001000a 0x00000070 + + 0x00020000 0x00000017 + 0x00020001 0x00000023 + 0x00020002 0x0000002d + 0x00020003 0x00000037 + 0x00020004 0x00000041 + 0x00020005 0x0000004b + 0x00020006 0x00000057 + 0x00020007 0x00000063 + 0x00020008 0x0000006f + + 0x00030000 0x00000015 + 0x00030001 0x00000021 + 0x00030002 0x0000002d + 0x00030003 0x00000039 + 0x00030004 0x00000045 + 0x00030005 0x00000053 + 0x00030006 0x0000005f + 0x00030007 0x00000071>; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tmu 0>; + + trips { + cpu_alert: cpu-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert>; + cooling-device = + <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + gpu-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tmu 1>; + + trips { + cpu-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + vpu-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tmu 2>; + + trips { + cpu-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + wdog1: watchdog@30280000 { compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt"; reg = <0x30280000 0x10000>; -- 2.17.1