Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4042066ybb; Mon, 6 Apr 2020 22:52:25 -0700 (PDT) X-Google-Smtp-Source: APiQypLHOJgvhzw9pcWWq653A/bnZ05yf9O9JUZIK8hEOVM/av7BdNGDrEeuSfnFyQMIum1aGHtu X-Received: by 2002:aca:61d4:: with SMTP id v203mr514979oib.72.1586238744962; Mon, 06 Apr 2020 22:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586238744; cv=none; d=google.com; s=arc-20160816; b=0mPXq26wgG3DbS6PQSzVVWBjMqzmxvmR5mdpoSAkgN6gn5MZ3r3nb6fdB/aLgujBgr WjfbGrw1+01l3/dRT675K77JwHf3WG2yRxWs9zA0t+TAj2mppbNr8QsQRr6rzWKVBj2D P/uATSzLlq52DtUczPtnzEiaK4FB6cS3MtCqBRT+nBCWBZOEXS0SIX4bMYSYC4dt5e6C BFNVBWvD4Rlz/cYrLfhKizIrypANuTVIkxtOgoMdqbdU8OOdK24vnkG/j0tUitiIlmtl yTVZ/t3B05Izmwps7J6Zr+LjaTxoKN6dDn9uzuyguofG0RybqTWO9sJIpUf0K1Xo7YDc 2rkQ== 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=FaY0LBRIW3kR+1f3BE+oL9YG/XxgPaOxP6c07wXgYFE=; b=xhQMi2m/motwp7N+jk72Hztv9cT64XNHT6F8l4ctnK8cvZGdcZpZpojaTqCq5DlUYx gJox1jeD7heecYtoVtVDECI8gLn5+kOhQwGdoZF0DSImVPYJqLZQhoe6vQakX+ulkek4 h+WSSC72M3YlYsxHHMcMI3zN94Wftl8Ktyppnq1heQhBshMADFAaUW9mGiUa/j1EYI12 9dhmgUURM0uyTZe2w1zgFlWl2Q4Z3uTfcytNH4LQH8MvreAdodBz9mCQd7Hea3k+LMfC o9mLaMMTyZ5Ha7Ssi2o4RVBntkUUiOb7kPZubRSALImJ+Q5aiaOeKncgAyq2rFypTZVq C7pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=c5jxfveG; 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 j18si794283otk.166.2020.04.06.22.52.13; Mon, 06 Apr 2020 22:52:24 -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=c5jxfveG; 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 S1726841AbgDGFvm (ORCPT + 99 others); Tue, 7 Apr 2020 01:51:42 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40110 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbgDGFvl (ORCPT ); Tue, 7 Apr 2020 01:51:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0375pTp5057034; Tue, 7 Apr 2020 00:51:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1586238689; bh=FaY0LBRIW3kR+1f3BE+oL9YG/XxgPaOxP6c07wXgYFE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=c5jxfveG4QFWbhd0icifpvHolKGGfhPfK+R8WL76La89B9u9fiQDAGZQIM4G/U5S+ 8fjAAe/69HS+135BkjY2EFRuW06atQHTGqBKNSFLgENMIx5q8s4eG1TWyRbid8B06k IroFU8nEd3DNR5IaAMApwZNlWuGI+NMudEZ8BsX4= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0375pTpB041484 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 Apr 2020 00:51:29 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) 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:28 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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, 7 Apr 2020 00:51:29 -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 0375pLdM017972; Tue, 7 Apr 2020 00:51:25 -0500 From: Keerthy To: , , CC: , , , , , , , Subject: [PATCH v6 1/4] dt-bindings: thermal: k3: Add VTM bindings documentation Date: Tue, 7 Apr 2020 11:21:13 +0530 Message-ID: <20200407055116.16082-2-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 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 v6: * Reordered the properties to match the order of definition. .../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..25b9209c2e5d --- /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: + - compatible + - reg + - power-domains + - "#thermal-sensor-cells" + +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