Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2802612imj; Mon, 18 Feb 2019 12:32:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IZyeZu+Hk1+3gVidaoc3bKLw4PfBe2uDLrRJ4U12sHPHTWHkIj0TtYz6f2dvvOUORq7louE X-Received: by 2002:a63:cf02:: with SMTP id j2mr20792718pgg.113.1550521968883; Mon, 18 Feb 2019 12:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550521968; cv=none; d=google.com; s=arc-20160816; b=i/b6ZjhxJyi3v1E30bcojJJ8XMEF6Pvwt2Ogxnl8s0FYkluEdzvU978OmDWP/CpRxP W4+2axgdp4pfjE9jDA3h0OO3HiLbMsgjYzhhslIujDntWZlo+o2f5obKbRmIYiXaZu4u FHXXbEcSA7hQSYC+Ky3AAblvihptzTNRPB72YROPl5glvyFRWv0I5h1Ff++c9IDrDHx8 Gp1ocdIjnfY5hITtbXKozhu11wnkw9GGFhQMmLZHHJY3s5nvFwD1+wwKs1d4n8KdX+hb xY98sJ5jIRAScCN2uIeFtuXid6cwV95PdYyLMWq9pyN0cxsa/peaK25WOehx9K/d1/7C ssBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lcazBCro//ekWvrvR7vRxsEB5SzfiQClZ2zm+6sEkZI=; b=dr/n48XmVmtYuXOCiTMDQp19h9grmkwH5bfoKjuve0ab9Kjs2ogWLRY9TU8pF/KVP3 LnOv4vovSzLs8/H9+BIZg0zvEd7xTnTW+wKVLCme3eA6oQrRpCm6ExutxfuC6fstkVhe mEKsHpVK7jLKaKPHy+qQEt8WZmYkaFohL+Z5JrNLJakps1U/5UDeLJZFXT+Mz1R4OHkz G2eZvxr4vSD3uCtyySSMsYzaCU8e1LGGzNYYSRQIqlMFagD25ebZ7gc4eKebccfPizUz WbVNTu4lLBeKMZAJ9HAkhHrMZ4lC9VpGa9wjSHV3RpT4MhidmqD6qpkjQ2XwQAhAHbvP sNbQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si13732071pgm.167.2019.02.18.12.32.33; Mon, 18 Feb 2019 12:32:48 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729246AbfBRUcI (ORCPT + 99 others); Mon, 18 Feb 2019 15:32:08 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37090 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728722AbfBRUcH (ORCPT ); Mon, 18 Feb 2019 15:32:07 -0500 Received: by mail-ot1-f65.google.com with SMTP id b3so30474192otp.4; Mon, 18 Feb 2019 12:32:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lcazBCro//ekWvrvR7vRxsEB5SzfiQClZ2zm+6sEkZI=; b=QLDJl09ECkgQKDNBRAcoYfaQf3uDJTQ3/LopTB9cgZNo8xxUyNDZnxraYfkhOZ11u2 mlAGhM4/2IPNDD3XViVc5IFZ/guF3MNydfL183yZ2Dw9LZ2pmHuE/Mmlg7PFmaBKjZzL gxS1UToVa/fwVYicn0ZUigaT0QAukVfN6D9OvbLnu1oRrbb57zCmfbsUt8IVla4f4HAp LPX8or19bLb+p0G4iTATl143aCad6/MzPDH5jjAh33bNJ+tLJs66/eHe0vwbJw6MLa69 JsseJvWo53sOT8TgE4dLOt3WU/2jr7rzn5fAWNpIWGrIDx6zb9CR70fOXc+SVsvhXpKx PozA== X-Gm-Message-State: AHQUAua6bzssTxUdet94bjpbmkS8nKxs/PlCc55Yw/qWhkWn3R9IGf6C 0EpeXNNE5KgNxXKebEzq6Q== X-Received: by 2002:a05:6830:1c9:: with SMTP id r9mr11178936ota.273.1550521926034; Mon, 18 Feb 2019 12:32:06 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s12sm4285192otk.0.2019.02.18.12.32.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 12:32:05 -0800 (PST) Date: Mon, 18 Feb 2019 14:32:04 -0600 From: Rob Herring To: Wei Ni Cc: thierry.reding@gmail.com, daniel.lezcano@linaro.org, edubezval@gmail.com, linux-tegra@vger.kernel.org, rui.zhang@intel.com, srikars@nvidia.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v1 11/12] of: Add bindings of OC hw throttle for Tegra soctherm Message-ID: <20190218203204.GA12911@bogus> References: <1545118484-23641-1-git-send-email-wni@nvidia.com> <1545118484-23641-13-git-send-email-wni@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545118484-23641-13-git-send-email-wni@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 03:34:43PM +0800, Wei Ni wrote: > Add OC HW throttle configuration for soctherm in DT. > It is used to describe the OCx throttle events. > > Signed-off-by: Wei Ni > --- > .../bindings/thermal/nvidia,tegra124-soctherm.txt | 26 ++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > index cf6d0be56b7a..d112a8e59ec3 100644 > --- a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > +++ b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > @@ -64,6 +64,21 @@ Required properties : > - #cooling-cells: Should be 1. This cooling device only support on/off state. > See ./thermal.txt for a description of this property. > > + Optional properties: The following properties are T210 specific and > + valid only for OCx throttle events. > + - nvidia,count-threshold: Specifies the number of OC events that are > + required for triggering an interrupt. Interrupts are not triggered if > + the property is missing. A value of 0 will interrupt on every OC alarm. > + - nvidia,polarity-active-low: Configures the polarity of the OC alaram > + signal. Accepted values are 1 for assert low and 0 for assert high. > + Default value is 0. Why not boolean? > + - nvidia,alarm-filter: Number of clocks to filter event. When the filter > + expires (which means the OC event has not occurred for a long time), > + the counter is cleared and filter is rearmed. Default value is 0. > + - nvidia,throttle-period: Specifies the number of uSec for which > + throttling is engaged after the OC event is deasserted. Default value > + is 0. Needs a unit suffix as defined in property-units.txt. > + > Optional properties: > - nvidia,thermtrips : When present, this property specifies the temperature at > which the soctherm hardware will assert the thermal trigger signal to the > @@ -134,6 +149,17 @@ Example : > * arbiter will select the highest priority as the final throttle > * settings to skip cpu pulse. > */ > + > + throttle_oc1: oc1 { > + nvidia,priority = <50>; > + nvidia,polarity-active-low = <1>; > + nvidia,count-threshold = <100>; > + nvidia,alarm-filter = <5100000>; > + nvidia,throttle-period = <0>; > + nvidia,cpu-throt-percent = <75>; > + nvidia,gpu-throt-level = > + ; > + }; > }; > }; > > -- > 2.7.4 >