Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1858874rwb; Thu, 19 Jan 2023 16:52:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXsgWvZsNpu1geaUIkNdSvW3dZpLweG73rpN4nGGOA2gQnEZ3W5J6+NBjWPE4bODk/63AHPH X-Received: by 2002:aa7:cb01:0:b0:495:fa3d:1d72 with SMTP id s1-20020aa7cb01000000b00495fa3d1d72mr13343566edt.8.1674175949090; Thu, 19 Jan 2023 16:52:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674175949; cv=none; d=google.com; s=arc-20160816; b=hXQedyoNxQW7T+jMTzSxpBjCjOwijgBf/r98vZBCIZvlLrBE6wr9w2hdBTiOug7rVu +AzLml9arTuMplRjWUVRzm4bGFAHGd9KQOS8ssnggzltwP77Z+jdR6ZJedijiOl+q+ee xS2kwJ6Z1+bxwl4NUK2Nb20ntjfJpbLvexkYprTkjsvyyY/BcRA7dc7s/UMzSfkUJp2P VTjPDb9QzbC7R0KQS7gCAo3SYazj86WL9UCLNuGYWCHFtyvBuF7lhildzFLyFeeb1yGf Sa3Jyv4efMZVNaUmkMinydZSek1uTB+uClqrLW1vHohKC6Iwn+En8fa5oZd1uwnPq7c9 54/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wkXSLQGhAd5bDqbgGtKdURlGStuo/SEc+20hxb4hWGE=; b=D4IOOKLGli2tQDxojaip+L6kHQr82Shv5GtrnKG8iucXI/RpVLglZgvmwFyDsElSgd g51cUU4XQJd/WHEz2boB6Czqisxk3COXI40VcXuuvG77+idS6pZnoUOU8FEiGrJ5TXbT cv96w3AsH3CtIkQl8ullVCdFu4SV+I4lGjHMxFw7XlCBqC59XU7T6EWRypVORQKiu6+g UIk1V/j4KGfLl2qJhQlMLcJ1hkbjluxpNPrCIE4mMBC2WcYwAeV/n3s9omyQr2crS5JS 3mGSzaShX1U2yE3H/+xEWVOJSjlU7mwEqGe9CK4jL0jeRhSLwTWOWaV5i020VK5JuH6o Z4GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nqlO5vCS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a056402355000b0049e45a5581csi9303578edd.297.2023.01.19.16.52.17; Thu, 19 Jan 2023 16:52:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nqlO5vCS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229687AbjATAbk (ORCPT + 48 others); Thu, 19 Jan 2023 19:31:40 -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: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/boot/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 = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + wkup_vtm0: temperature-sensor@42040000 { + compatible = "ti,j721e-vtm"; + reg = <0x00 0x42040000 0x00 0x350>, + <0x00 0x42050000 0x00 0x350>, + <0x00 0x43000300 0x00 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 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 = <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 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" }; /* Now include the peripherals for each bus segments */ -- 2.39.0