From patchwork Wed Aug 9 17:39:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Apurva Nandan X-Patchwork-Id: 13348263 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 EE3F1C001E0 for ; Wed, 9 Aug 2023 17:40:01 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uuUCTfUmRgMY+fYTOgryW+IpNkFUA7wBTb66QgdykIc=; b=YRJrr477sVYrGd ucElcNIlq+svBZjFaGcaulqlNfpPJa3QZHD1nc7grZ/eQbLwwzmD6qJrO0+Y3Q8IIB3uwRxGCT9GF OiG4646sYcTD5SpWmIcGi9g6mbcp7IeXjED1Hgzlyy1ACyAPJqQtBCe/fiF5tjsYgtUZ/Zjor7iXI MT/Wq1zOVBnZzVzLFDRl4ECPSoCGHdubkIbYl058eM/zi77ZYTQX4cQtkh0Y7Nl/R5Wl7RmcsW6WL HC9FN77sKFKDtUVKTSWRsC6umKCEuVrVbrXzYJbHPqxkuhLFifUhNfcfYhsBMD9PnO9bcRl4c9ldS n3WJnFTrBvLuuPlqVpag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTn9n-005XqX-2t; Wed, 09 Aug 2023 17:39:39 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTn9i-005XnT-0a for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 17:39:35 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379HdP6o044737; Wed, 9 Aug 2023 12:39:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691602765; bh=bPJNJeQUgy0aF+J1sZlxi9L3YvHWdEofe+SYa/mf4fk=; h=From:To:Subject:Date:In-Reply-To:References; b=pdzmApGr09OPwlRMQLcIl9ulvvIu8/BxJ0MF0yZ7rLMKHF8YUM4i/7c9e0w7X+iN2 VkZUtLFwSUqxsOKjnWgP8nz0QXWsKEjloB791GjECYHPdpOQ8P+jEpvyEOBczPHIx2 r9Ul9nR0XiBrir7Bl0XUjolwyRIAWVwC5dtcOkxc= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379HdPAB097175 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 12:39:25 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 9 Aug 2023 12:39:24 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 9 Aug 2023 12:39:24 -0500 Received: from TI.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379Hd6gd077353; Wed, 9 Aug 2023 12:39:20 -0500 From: Apurva Nandan To: Apurva Nandan , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rafael J Wysocki , Daniel Lezcano , Amit Kucheria , Zhang Rui , , , , , Udit Kumar , Keerthy J Subject: [PATCH 3/3] arm64: dts: ti: k3-j7200-thermal: Add cooling maps and cpu_alert trip at 75C Date: Wed, 9 Aug 2023 23:09:05 +0530 Message-ID: <20230809173905.1844132-4-a-nandan@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230809173905.1844132-1-a-nandan@ti.com> References: <20230809173905.1844132-1-a-nandan@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_103934_293395_F9B17D4D X-CRM114-Status: GOOD ( 12.51 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Keerthy Add cooling maps and mpu_alert trip at 75C Note: mpu_alert trip value should adjusted based on the system load and performance needs. Signed-off-by: Keerthy Signed-off-by: Apurva Nandan --- arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi index e7e3a643a6f0..eeb596727d48 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi @@ -28,6 +28,20 @@ mpu_crit: mpu-crit { hysteresis = <2000>; /* milliCelsius */ type = "critical"; }; + + mpu_alert0: mpu_alert { + temperature = <75000>; /* millicelsius */ + hysteresis = <5000>; /* millicelsius */ + type = "passive"; + }; + }; + + cpu_cooling_maps: cooling-maps { + map0 { + trip = <&mpu_alert0>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; }; };