Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3239813ybb; Tue, 31 Mar 2020 00:55:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtkoAOzspaKb1fLn9WPiCFZxrp6F+lE/PhDKSC4P5cU+03Mzyj42YVMVX6h3aNdoFXDiftA X-Received: by 2002:a05:6808:8:: with SMTP id u8mr1187676oic.37.1585641355636; Tue, 31 Mar 2020 00:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585641355; cv=none; d=google.com; s=arc-20160816; b=u63uhxBDXQdzNFLQN8xYcebqv9k212HL0jR9ygPnqsNPQ2H5FHb9uG0LOr3Io4vS5I jwfbiK8BLZmvvS0VYcobZyMKPZlTvhsQ4YqGtaJzik1lPfVM5Qj2rshmNM2ZUMF0oqIv ZZ1n4Z4LLa7WwjOfBoPY/1yQNik1Gz7OcFpybId8J3WGYqtbmyRGxoIkIdqdwXQbINJ+ nAZw3nP+8yeF4SDWRzq86gUfs6FLiMJPyNPx+Xijr/frF6DvKuIMdxbrbWbu3p+qwe/m SHjy2bJthSrfXv4c2yqE4eu4wiK9CwYwnu6LOJgaoHX2+q27KA/iPovZKwu71s7QKgrD XJzA== 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=vuJ1LtoNo/1Xe+ARbakZrfo5qAgQNCNmGD1MsvYuBTk=; b=mSNO4ZpXn9hTsNqT65rLn2rRBoIx4U5mrb0Lds62rrAY3h5Vk3SSEmM4mCOmvJlG+2 MjHfOmYjTfsKJGE+JtRDDGGtr0PLPgBBR2PHMRids0Mt3IIAKvD416/TuQzmqYKDpCPm R+0Fhd7sJgdHi0ppus7LAp0ZdkSo0tl2SM/pBMcdZeaDyCBsIfKMMEzXRGVElwIBbu4m RL0+rwZLKdjpnAg4C1xUFJBd5I0FRzLnV24i4dbY2Es/1isIFC0MJnu7jHdmWjrsCpfa HQexp/nFNp/aygIHmSPd/zvA1Yp/+4vN5qNMyaAy4pAWyQ+fKzge3lyR7avHHg0tkdLk lYyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DnROpdfE; 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 l6si6782561otn.219.2020.03.31.00.55.43; Tue, 31 Mar 2020 00:55:55 -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=DnROpdfE; 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 S1730232AbgCaHyr (ORCPT + 99 others); Tue, 31 Mar 2020 03:54:47 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:48010 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729958AbgCaHyr (ORCPT ); Tue, 31 Mar 2020 03:54:47 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02V7sAJU073931; Tue, 31 Mar 2020 02:54:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585641250; bh=vuJ1LtoNo/1Xe+ARbakZrfo5qAgQNCNmGD1MsvYuBTk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DnROpdfElOhCcj2LjanOlw7/tTto7gjztbH9mgihddHp2z+JM7xQyN7LjiUON9u76 /KGMlgVE1fERgpO5IMyb8/Ncr6dBg1CUOaaheaQzGcc6Mu6WpqJUwRye7sFkq4uCA8 XbxrxYrmaoUcHdQexmRuJaE8oiM/w4ozPL79O9js= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02V7sAHM069702; Tue, 31 Mar 2020 02:54:10 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 31 Mar 2020 02:54:10 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.1847.3 via Frontend Transport; Tue, 31 Mar 2020 02:54:10 -0500 Received: from a0393675ula.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02V7s2gg009443; Tue, 31 Mar 2020 02:54:07 -0500 From: Keerthy To: , , CC: , , , , , , , Subject: [PATCH v5 1/4] dt-bindings: thermal: k3: Add VTM bindings documentation Date: Tue, 31 Mar 2020 13:23:53 +0530 Message-ID: <20200331075356.19171-2-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331075356.19171-1-j-keerthy@ti.com> References: <20200331075356.19171-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 Add VTM bindings documentation. In the Voltage Thermal Management Module(VTM), K3 AM654 supplies a voltage reference and a temperature sensor feature that are gathered in the band gap voltage and temperature sensor (VBGAPTS) module. The band gap provides current and voltage reference for its internal circuits and other analog IP blocks. The analog-to-digital converter (ADC) produces an output value that is proportional to the silicon temperature. Signed-off-by: Keerthy Reviewed-by: Rob Herring --- Changes in v5: * Added Reviewed-by: Rob Herring .../bindings/thermal/ti,am654-thermal.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml b/Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml new file mode 100644 index 000000000000..d241b65d6072 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/ti,am654-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments AM654 VTM (DTS) binding + +maintainers: + - Keerthy + +properties: + compatible: + const: ti,am654-vtm + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - "#thermal-sensor-cells" + - compatible + - reg + - power-domains + +additionalProperties: false + +examples: + - | + #include + vtm: thermal@42050000 { + compatible = "ti,am654-vtm"; + reg = <0x0 0x42050000 0x0 0x25c>; + power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>; + #thermal-sensor-cells = <1>; + }; + + mpu0_thermal: mpu0_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + thermal-sensors = <&vtm0 0>; + + trips { + mpu0_crit: mpu0_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; + }; +... -- 2.17.1