Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3663486pxb; Mon, 4 Oct 2021 07:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRtlkZoAl8p+HZ6kXNLaV0YvVoncOvMQGCKxZshHOacponiQsvXoZX27FQdJonaiK3aXEv X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr3277650ejb.79.1633356530564; Mon, 04 Oct 2021 07:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633356530; cv=none; d=google.com; s=arc-20160816; b=ncQT3n8oq7lcXi8mnDb8r4VSncLXidC75vm6WkB7+3GcPRtJHw/foz8uD6tQWZe7kL yZIKRnp6pU0y52h33av+ZCqyq0uVo+wlNQWq2z6QGu61lxknqPfVaN8Kq3tNjxl9NZm/ oqO4ZM2+wST8CU0NVYejuZ0WLyFM7DVTE9hFYwR1wUcjmN+9a584li+OKdBvK2XaqayF 0B8IsjPKrmEO7XOWgP1J2Q7XGjFyancaR8JEG90lg7efRxm0Y8gJgsCGxIASiferFva2 J+7CctjrLUk/9CNzT4trtOgLS4HRKgjjdKfxK3897V52pHvePYqqQDDE7T5eQebt1MLn 3FhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mS8BVLRlIi7fwktbrsMtNlnR3R2mN79nOjRs1Jeh88s=; b=Qmvxb2oczX2mC93lwu9pSd6s5yu1rO3cyR85akxKHR/AlsU7MoSrDiVo6xAG5/YoiV MNHjsx1s28iQy3Wd3bCIHGbjdaueKpTNh3oWTXfdwyaBy0RypjmJz1qmLw1iQTGsfThi 6nxrM6gNDuwKnqCzO9ZsKO2/sS9cll3NJrpEWPtre2qbPPkOEH7XV7fpcsYo9MmmrQ9P LEIgLYwxKWpWozgW0CzfGia+qDCbrkYo6X/tdv9F2LK3AFnRY+DlBmX9ziEb1qcEBPBk etHX+AbqWQ2+KhCofb/YlOY2GJ2D1QWyeDCAqKWE+uEohtJ7ylQYUH7A6pZ6l8RGtjJc 9g7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=l6rc9hti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de45si17874601ejc.697.2021.10.04.07.08.06; Mon, 04 Oct 2021 07:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=l6rc9hti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232999AbhJDMdm (ORCPT + 99 others); Mon, 4 Oct 2021 08:33:42 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:56238 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbhJDMdk (ORCPT ); Mon, 4 Oct 2021 08:33:40 -0400 X-Greylist: delayed 3934 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Oct 2021 08:33:38 EDT Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 194BQDV3045283; Mon, 4 Oct 2021 06:26:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1633346773; bh=mS8BVLRlIi7fwktbrsMtNlnR3R2mN79nOjRs1Jeh88s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=l6rc9htiG5CU7DElFUMCZ+GaAKd8OYVNkMMi9z4IEqGiGJ5F9OuLdYl5yI7MrbVZ+ Wz5OJuErbP4PtUVK04f/GfISforsXswWRgBGtitV8Zhqvm4RTR7aqjpQGgr5gbyKyH RdnBpRagY3zTOTHa0XXayD2m3OlCtTFWkXi0PpI8= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 194BQD8K034416 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Oct 2021 06:26:13 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 4 Oct 2021 06:26:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.2308.14 via Frontend Transport; Mon, 4 Oct 2021 06:26:12 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 194BQ383065426; Mon, 4 Oct 2021 06:26:10 -0500 From: Keerthy To: , , , , CC: , , , Subject: [PATCH 2/4] arm64: dts: ti: j721e: Add VTM node Date: Mon, 4 Oct 2021 16:55:48 +0530 Message-ID: <20211004112550.27546-3-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211004112550.27546-1-j-keerthy@ti.com> References: <20211004112550.27546-1-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VTM stands for Voltage Thermal Management Signed-off-by: Keerthy --- .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 9 +++ arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi | 73 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 4 + 3 files changed, 86 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi index d2dceda72fe9..fafc07848f86 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi @@ -390,4 +390,13 @@ ti,loczrama = <1>; }; }; + + wkup_vtm0: wkup_vtm0@42040000 { + compatible = "ti,j721e-vtm"; + reg = <0x0 0x42040000 0x0 0x350>, + <0x0 0x42050000 0x0 0x350>, + <0x0 0x43000300 0x0 0x10>; + power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; + #thermal-sensor-cells = <1>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi new file mode 100644 index 000000000000..e922042f356f --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include + +wkup_thermal: wkup_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 0>; + + trips { + wkup_crit: wkup_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +mpu_thermal: mpu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 1>; + + trips { + mpu_crit: mpu_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +c7x_thermal: c7x_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 2>; + + trips { + c7x_crit: c7x_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +gpu_thermal: gpu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 3>; + + trips { + gpu_crit: gpu_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +r5f_thermal: r5f_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 4>; + + trips { + r5f_crit: r5f_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi index f0587fde147e..20e26a359aaf 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi @@ -177,6 +177,10 @@ <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; /* FSS OSPI1 data region 3*/ }; }; + + thermal_zones: thermal-zones { + #include "k3-j721e-thermal.dtsi" + }; }; /* Now include the peripherals for each bus segments */ -- 2.17.1