Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4042305ybb; Mon, 6 Apr 2020 22:52:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJXynmhyDHfdUmxURAQO9aAGDv1v2thkZHRITburXzVLZs8/IDYZ8PX1fs6a16V6dIgUKe2 X-Received: by 2002:a9d:23a6:: with SMTP id t35mr312214otb.154.1586238769245; Mon, 06 Apr 2020 22:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586238769; cv=none; d=google.com; s=arc-20160816; b=ujlzIUCM4SFhe0KG7uKYg/+OyVOnPFtAZXK0sEhvG8rJ2t9JscVwX6LcyDiRXqWaW5 9z5fCNP4/25PZMVoJJVbs9kP8dAcV2zDSdw+Xn0Sg+QmDDyR81XRMufCsePISfW7Zz9v xJ+1RX6XbQIxDKrXuTZLMZC62G6QK40xUxxbuhjTyos4jYFBVhx1Fn+iVXPhpMeUFYBC HqUCEi0QxrXKLyqdA0BTjCkUXpHUfCj+X045RR/TzJOBOJfcRHyORGaOngGxrCuwsl42 n528QVUzcy5+E1W7YSCCo9LplmSr6IdEwXnc5D1B7EOCypz1+/cmrKS3/Et0SUaifXRx /ASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=M2+4k8wmfwupbhN9ssnIg+wY4Ic8DPY+NyV+bVJoVFM=; b=ZnhHRq5k34w3qeyBiTHfbv3j5L2ayeTsf3qmEabBCf2rEN8B562usu0NG1hVfNib8c MSrCBJxDyCW8kKZhldVSA0XYF1QOqw0RiZCQ1rrtd1Br2M2idihpyp5UF33FdQWlQAc/ qAwGzLCxq1IgEdQy6sKnDagAUhQUdEipQbII/sjwzh7zhM+H8pJ5+ig+/TZm9duExYBe M56l+C8PGZW91merEToTK/E4P7PJzdG2/+l7RidXFyCltOQ5pEhq/xowo0HfeQ3swn3u eOgpxU9x5Tx3tqbIS2Xrfqrbl6PJhoNz4sLCM4GEooyTTxgnLvMNLWATv4o3UK+hRyvb hIBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qeHuIkvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d1si839864otq.225.2020.04.06.22.52.37; Mon, 06 Apr 2020 22:52:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qeHuIkvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726948AbgDGFvu (ORCPT + 99 others); Tue, 7 Apr 2020 01:51:50 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41538 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbgDGFvs (ORCPT ); Tue, 7 Apr 2020 01:51:48 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0375petX091483; Tue, 7 Apr 2020 00:51:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1586238700; bh=M2+4k8wmfwupbhN9ssnIg+wY4Ic8DPY+NyV+bVJoVFM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qeHuIkvm+kkMO+JvB9bifK5IEEAMDaXyhxc9ROGFV6HVmQ57OL3pcVnD0Vwkq5OQ9 g+R7S1GWNQRxjoww32erv6GjM6O4Jic083gaXAJ48U90h1iu6tzsRmKT/vGqBgCna3 2sGTTpqFAqTNg3iZcd6c1yUYt0qxZxFkkYniH8YA= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0375pdYL041571 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 Apr 2020 00:51:40 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 7 Apr 2020 00:51:39 -0500 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.1847.3 via Frontend Transport; Tue, 7 Apr 2020 00:51:40 -0500 Received: from a0393675ula.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0375pLdP017972; Tue, 7 Apr 2020 00:51:36 -0500 From: Keerthy To: , , CC: , , , , , , , Subject: [PATCH v6 4/4] arm64: dts: ti: am654: Add thermal zones Date: Tue, 7 Apr 2020 11:21:16 +0530 Message-ID: <20200407055116.16082-5-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200407055116.16082-1-j-keerthy@ti.com> References: <20200407055116.16082-1-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The am654 SoC has three thermal zones namely MPU0, MPU1 and MCU zones. Signed-off-by: Keerthy --- arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 4 ++ .../dts/ti/k3-am654-industrial-thermal.dtsi | 45 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am654-industrial-thermal.dtsi diff --git a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi index 98b89cf0ccdf..54a133fa1bf2 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi @@ -96,4 +96,8 @@ power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>; #thermal-sensor-cells = <1>; }; + + thermal_zones: thermal-zones { + #include "k3-am654-industrial-thermal.dtsi" + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am654-industrial-thermal.dtsi b/arch/arm64/boot/dts/ti/k3-am654-industrial-thermal.dtsi new file mode 100644 index 000000000000..cdc3d40c3f60 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am654-industrial-thermal.dtsi @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include + +mpu0_thermal: mpu0_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 0>; + + trips { + mpu0_crit: mpu0_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +mpu1_thermal: mpu1_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 1>; + + trips { + mpu1_crit: mpu1_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; + +mcu_thermal: mcu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&wkup_vtm0 2>; + + trips { + mcu_crit: mcu_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +}; -- 2.17.1