From nobody Sun Sep 14 18:12:09 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 22F9FC46467 for ; Fri, 20 Jan 2023 00:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjATAb3 (ORCPT ); Thu, 19 Jan 2023 19:31:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjATAbU (ORCPT ); Thu, 19 Jan 2023 19:31:20 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4320BA297E; Thu, 19 Jan 2023 16:31:19 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30K0V3mZ069176; 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=cEXQJWdqSirqdsfWjVaeijGRWaufQgDbMEkTdpTW4r8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sEhEjL2B+Mmv/94HNxXf5VPKHtwirJRflOuRLWtrkuvdyfLDmOo6dtz3kOc7vZxjQ mW9HRv/hUQY+otXOqg6chStRMXu1LF6DdQsM2+ugTN0WiYZ7NK2w4zX/BB0fOjOjyH yhiz/HE2H3mbcm7JooGDxfqZFi7qZLX/BQoG/ALg= 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 30K0V3Vp089209 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Jan 2023 18:31:03 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) 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 fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) 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 fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30K0V2af016876; 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 2/6] arm64: dts: ti: k3-am62-wakeup: add VTM node Date: Thu, 19 Jan 2023 18:30:47 -0600 Message-ID: <20230120003051.9100-3-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=3326; i=bb@ti.com; h=from:subject; bh=W31s4HWtI6oPxVN7LZbcq2NBLgzbe0T/4XYkAdrsJro=; b=owNCWmg5MUFZJlNZisCfIgAAaH///3/Z1uv7irz7/Okff7c//0363vbo3u+/62tq/1ZX//6wARsx oygAaAGj1AAAAZMgAAAAaADIYg00HqAAPUNDEaD1APSHoj0h6QPUNNPU9T1EAAaNGgHqDagaAMIAGh oDQ0AGh6jE9IA9RoZGg9JoD1ANNM0mEyNGgAHqDQAxE9TRkZojQ0NDT0h6mjQMgyepoAADRoMgMgNA PUGQABoAaDQADRoAAaPUZAgtAtOFilqhcQ3UzZDoey9xoIrbUz7iwIZgYR8eAB9vlAgChML1oaiLj0 veLuzXY4pNLUnOvLGvwQFJ8oAZ0c4PGbfozRbUoqvI4fBkdEDya1RM3VMpHc/tOGnIPjJQdpH1DxxQ IdfsCltBEJtw0hgmZe3p4VyTfy7ZksRiQvaAi4AgUEBvipKlVxLrVT2C+gXadYKz+58HxFiHe5k7g8 V6ga/CxAJg3G6EOMOt1mrFYkDT1Bqvzv3VkWClJ+VYEd1VDPgWb/LrkMV61hZEVaikbOszv/fHByy2 gdAnkmd9OiP70EX9qjaD8AZXi9TIijsvcOXxkuoG2/WkuOFElFBwtaIUMAC7GHLqEBLJlhWrgZygfE j7FBqhGQjtVxzekbADAtaW3D+vwiehq67bshXkc0sIOmG1eA7g1LcGWZDcjyY5f4u5IpwoSEVgT5EA 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 am62x supports a single Voltage and Thermal Management (VTM) module located in the wakeup domain with two associated temperature monitors located in hot spots of the die. Signed-off-by: Bryan Brattlof --- arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi | 33 +++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 8 +++++ arch/arm64/boot/dts/ti/k3-am62.dtsi | 6 +++- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi diff --git a/arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi b/arch/arm64/boot/= dts/ti/k3-am62-thermal.dtsi new file mode 100644 index 0000000000000..a358757e26f07 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include + +thermal_zones: thermal-zones { + main0_thermal: main0-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 0>; + + trips { + main0_crit: main0-crit { + temperature =3D <105000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; + + main1_thermal: main1-thermal { + polling-delay-passive =3D <250>; /* milliSeconds */ + polling-delay =3D <500>; /* milliSeconds */ + thermal-sensors =3D <&wkup_vtm0 1>; + + trips { + main1_crit: main1-crit { + temperature =3D <105000>; /* milliCelsius */ + hysteresis =3D <2000>; /* milliCelsius */ + type =3D "critical"; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/d= ts/ti/k3-am62-wakeup.dtsi index 38dced6b4fef9..91ec9887ac6d1 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -40,4 +40,12 @@ wkup_i2c0: i2c@2b200000 { clock-names =3D "fck"; status =3D "disabled"; }; + + wkup_vtm0: temperature-sensor@b00000 { + compatible =3D "ti,j7200-vtm"; + reg =3D <0x00 0xb00000 0x00 0x400>, + <0x00 0xb01000 0x00 0x400>; + power-domains =3D <&k3_pds 95 TI_SCI_PD_EXCLUSIVE>; + #thermal-sensor-cells =3D <1>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62.dtsi b/arch/arm64/boot/dts/ti/k= 3-am62.dtsi index 37fcbe7a3c336..74cf1b4d7a6ad 100644 --- a/arch/arm64/boot/dts/ti/k3-am62.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62.dtsi @@ -80,6 +80,7 @@ cbass_main: bus@f0000 { <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, =20 /* Wakeup Domain Range */ + <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>; =20 @@ -94,10 +95,13 @@ cbass_wakeup: bus@2b000000 { compatible =3D "simple-bus"; #address-cells =3D <2>; #size-cells =3D <2>; - ranges =3D <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Periph= eral Window */ + ranges =3D <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Wind= ow */ <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>; }; }; + + #include "k3-am62-thermal.dtsi" }; =20 /* Now include the peripherals for each bus segments */ --=20 2.39.0