From nobody Sun Sep 14 18:12:11 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF6B4C46467 for ; Fri, 20 Jan 2023 00:31:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjATAbl (ORCPT ); Thu, 19 Jan 2023 19:31:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjATAbV (ORCPT ); Thu, 19 Jan 2023 19:31:21 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB69A3150; Thu, 19 Jan 2023 16:31:19 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30K0V3CJ128881; Thu, 19 Jan 2023 18:31:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674174663; bh=wkXSLQGhAd5bDqbgGtKdURlGStuo/SEc+20hxb4hWGE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nqlO5vCSR8UNfNvkmfhHVlxLvOmPRvdF/Z8/iKDgcyp9fenOUTYxPFdp91q/Q5A3v 0lUWcDn74KIYAWp6+/xbE8AfHlX8/R+dXWmOf5DCQBh5jXaFwwt6ikQ1qq4jq3Ch7r hPqFKbIcFBm7YRlsO+bQ589/4HiTfCSZmT1lnKFA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30K0V3Vo089209 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Jan 2023 18:31:03 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Thu, 19 Jan 2023 18:31:02 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Thu, 19 Jan 2023 18:31:02 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30K0V2ox030624; Thu, 19 Jan 2023 18:31:02 -0600 From: Bryan Brattlof To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski CC: ARM Linux Mailing List , Device Tree Mailing List , Linux Kernel Mailing List , Keerthy , Bryan Brattlof Subject: [PATCH v2 3/6] arm64: dts: ti: k3-j721e-mcu-wakeup: add VTM node Date: Thu, 19 Jan 2023 18:30:48 -0600 Message-ID: <20230120003051.9100-4-bb@ti.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230120003051.9100-1-bb@ti.com> References: <20230120003051.9100-1-bb@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3856; i=bb@ti.com; h=from:subject; bh=s6+UArdBZKREnmzM0nnJurq9/CTqw7EakXacfj9uiSQ=; b=owNCWmg5MUFZJlNZ8HlxrwAAZH////bLw+37uP/i/fu/H3Gqs//75753/m/99f0/9/5Pv3+wARsW DEgAaAGQBoAAZAaADIAAAGgNGgAAAAyNAaA0aDQAHlHpNHlBo0e0ogAA00A0BkADQ0ABoyAAANA0DQ 9Q9TQ0aGgHqbJDIDT1Bo0AHqaB6gaAyNGm1EPUNAAeo9Q0DTTQaBoAANDQ0aaeptIAyAGgBoBkAA0y A0aaMgGRk0ZGh6hkNA0DBiJyLNhxrdXHoxAbH1Ja8G4bSG94TTDLBGhNAqtWB1n7aENLwGEayFoxXY VEXjSsclvzhgKuVCHY/eTswOMrhM186QgbIjxG6zA5AYhli103rKzvPktSq5Mwb7EVV5+LUyg+dX7I I93xgZm+L3G9L4F2NukUZ6CW6B1co9J/nHQVl74FYVu1IkhbwNYaIm44kuAGfoknbZqXIuMw0AL4Sg owq83rCpdH9QsDRzdQrJjLUu4yxflMnOJd/T5EZzi0QNiHgpfHiPzPKOovY4zRhawTSB1Lf3PkTcAW BeFSHuXjd0MQs9kzJjCECPxuXic6pSIL1OzaL66bCOq9AoXXahnVXyPiAMUbKk/IMyleBzvE7iLY5A 5fRACE6gJGOlAGiT1CxRVFK0XwBY4HyVtF+lyiCwDE+6ElBqQGxpT2TEbBSb/F3JFOFCQ8HlxrwA== X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The j721e supports a single Voltage and Thermal Management (VTM) module located in the wakeup domain with five associated temperature monitors located in various hot spots on the die. Signed-off-by: Bryan Brattlof --- .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 9 +++ arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi | 75 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 2 + 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/b= oot/dts/ti/k3-j721e-mcu-wakeup.dtsi index 8ac78034d5d6b..a6472a077a8cd 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi @@ -425,4 +425,13 @@ mcu_mcan1: can@40568000 { bosch,mram-cfg =3D <0x0 128 64 64 64 64 32 32>; status =3D "disabled"; }; + + wkup_vtm0: temperature-sensor@42040000 { + compatible =3D "ti,j721e-vtm"; + reg =3D <0x00 0x42040000 0x00 0x350>, + <0x00 0x42050000 0x00 0x350>, + <0x00 0x43000300 0x00 0x10>; + power-domains =3D <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; + #thermal-sensor-cells =3D <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 0000000000000..4db7185a6bd9d --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi @@ -0,0 +1,75 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include + +thermal_zones: thermal-zones { + wkup_thermal: wkup-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 0>; + + trips { + wkup_crit: wkup-crit { + temperature =3D <125000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; + + mpu_thermal: mpu-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 1>; + + trips { + mpu_crit: mpu-crit { + temperature =3D <125000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; + + c7x_thermal: c7x-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 2>; + + trips { + c7x_crit: c7x-crit { + temperature =3D <125000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; + + gpu_thermal: gpu-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 3>; + + trips { + gpu_crit: gpu-crit { + temperature =3D <125000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; + + r5f_thermal: r5f-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 4>; + + trips { + r5f_crit: r5f-crit { + temperature =3D <125000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/= k3-j721e.dtsi index 0e23886c9fd1d..934dffbc136f3 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi @@ -181,6 +181,8 @@ cbass_mcu_wakeup: bus@28380000 { <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; /* FSS OSPI1 data = region 3*/ }; }; + + #include "k3-j721e-thermal.dtsi" }; =20 /* Now include the peripherals for each bus segments */ --=20 2.39.0