From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66F49C6FD1C for ; Fri, 10 Mar 2023 08:21:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4RCUsRcmui4+oJt1q7hNxIGhAcX2OUBB6GS9Y8BoWxI=; b=xJc7iK6aKqaUOS 89ZhsXR9HhZRZY9wzV3q1Ma2yatjmaIOkZsYtIeiyd2Q5sYTlISI1K6xtRGfxWAv/HTcMiCOnWFMT wNTNJ1a+i2M8UCVGbt2r450mjs69FdGTvPPV90W/tbxBRNMDf6h/4ullnROg9s9QEtsFxUFVIzKlS PF0WQ3xHlM/byb8V+xSUAVBNIDacmNeTicGUndMomfr2eOp63Yov7JAKEXkZoKDmgsA1kVDlQ4Uq5 8DW9RMN3BO/r/8MtnstOSm/HISrqPIkcIOaskabNbsdpAp6Ofc7cWchlXlLTyEXwFEqR8dm/R6Cyg Jfgwsh/7tVtEU4ND8IAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paXzB-00DcGI-Dd; Fri, 10 Mar 2023 08:20:21 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paXz6-00DcDV-G7 for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 08:20:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678436416; x=1709972416; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=y8oqli5ELwyYuRk8iiNob0FAh7UhCXeB2HZSbIH+mCQ=; b=THOtUyexuD+3MbeRSYciBiFd4eCMd6/Wo5pHQKUSg/0tZ+9zJPekus0y sGkAhznCAruCItvtwOknymut6Cv81zaIJPh6Q1K/Wo6tqp2BNwJqExwlF 5OEfpEBhFV7js2XhHfCFRAiVcVy04IUFNVcEdArzWG/rryAVA4eFckpyt dbjT2YbHMtsefqRXva0gCZ17DGE6vhoI+78UQANcFWiLtVyEHsZ1KVJo/ uSsdcMHtF9eEMvgJyvvw4NGLxKbNrdvx1HjW8Fvet3LuR1qi5QyTr3o/4 o3qSC+mcxorc6Bfw25MpoC23w56LRYZpzNlw39DB0UMxqBJxuyvFmD9QU g==; X-IronPort-AV: E=Sophos;i="5.98,249,1673910000"; d="scan'208";a="29598345" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 10 Mar 2023 09:20:16 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 10 Mar 2023 09:20:15 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 10 Mar 2023 09:20:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678436416; x=1709972416; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=y8oqli5ELwyYuRk8iiNob0FAh7UhCXeB2HZSbIH+mCQ=; b=THOtUyexuD+3MbeRSYciBiFd4eCMd6/Wo5pHQKUSg/0tZ+9zJPekus0y sGkAhznCAruCItvtwOknymut6Cv81zaIJPh6Q1K/Wo6tqp2BNwJqExwlF 5OEfpEBhFV7js2XhHfCFRAiVcVy04IUFNVcEdArzWG/rryAVA4eFckpyt dbjT2YbHMtsefqRXva0gCZ17DGE6vhoI+78UQANcFWiLtVyEHsZ1KVJo/ uSsdcMHtF9eEMvgJyvvw4NGLxKbNrdvx1HjW8Fvet3LuR1qi5QyTr3o/4 o3qSC+mcxorc6Bfw25MpoC23w56LRYZpzNlw39DB0UMxqBJxuyvFmD9QU g==; X-IronPort-AV: E=Sophos;i="5.98,249,1673910000"; d="scan'208";a="29598344" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 10 Mar 2023 09:20:16 +0100 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 872F8280056; Fri, 10 Mar 2023 09:20:15 +0100 (CET) From: Alexander Stein To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com, "Alice Guo (OSS)" Subject: Re: [PATCH v1 4/4] arm64: dts: imx93: Add CPU thermal zone Date: Fri, 10 Mar 2023 09:20:11 +0100 Message-ID: <112132134.nniJfEyVGO@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20230105101748.6714-5-alice.guo@oss.nxp.com> References: <20230105101748.6714-1-alice.guo@oss.nxp.com> <20230105101748.6714-5-alice.guo@oss.nxp.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_002017_027951_0797E88A X-CRM114-Status: GOOD ( 14.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Am Donnerstag, 5. Januar 2023, 11:17:48 CET schrieb Alice Guo (OSS): > From: Alice Guo > = > Add CPU thermal zone and attach it to the TMU which monitors the CPU > temperature. > = > Signed-off-by: Alice Guo > Reviewed-by: Jacky Bai > Reviewed-by: Ye Li > Signed-off-by: Dong Aisheng > --- > arch/arm64/boot/dts/freescale/imx93.dtsi | 48 ++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > = > diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi > b/arch/arm64/boot/dts/freescale/imx93.dtsi index 6808321ed809..60306f3c5e= 7f > 100644 > --- a/arch/arm64/boot/dts/freescale/imx93.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > = > #include "imx93-pinfunc.h" > = > @@ -116,6 +117,38 @@ > interrupt-parent =3D <&gic>; > }; > = > + thermal-zones { > + cpu-thermal { > + polling-delay-passive =3D <250>; > + polling-delay =3D <2000>; > + > + thermal-sensors =3D <&tmu 0>; > + > + trips { > + cpu_alert: cpu-alert { > + temperature =3D <80000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + cpu_crit: cpu-crit { > + temperature =3D <90000>; > + hysteresis =3D <2000>; > + type =3D "critical"; > + }; > + }; This brace needs an additional indent. Best regards, Alexander > + > + cooling-maps { > + map0 { > + trip =3D <&cpu_alert>; > + cooling-device =3D > + <&A55_0 = THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A55_1 = THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > soc@0 { > compatible =3D "simple-bus"; > #address-cells =3D <1>; > @@ -280,6 +313,21 @@ > compatible =3D "fsl,imx93-anatop", = "syscon"; > reg =3D <0x44480000 0x10000>; > }; > + > + tmu: tmu@44482000 { > + compatible =3D "fsl,imx93-tmu"; > + reg =3D <0x44482000 0x1000>; > + clocks =3D <&clk IMX93_CLK_TMC_GATE>; > + little-endian; > + fsl,tmu-calibration =3D <0x0000000e = 0x800000da > + 0x00000029 = 0x800000e9 > + 0x00000056 = 0x80000102 > + 0x000000a2 = 0x8000012a > + 0x00000116 = 0x80000166 > + 0x00000195 = 0x800001a7 > + 0x000001b2 = 0x800001b6>; > + #thermal-sensor-cells =3D <1>; > + }; > }; > = > aips2: bus@42000000 { -- = TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel