Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp332394imp; Thu, 21 Feb 2019 02:20:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IYGpd5Gp7SM3zye+KCMzPNExOi+CohsGYn3letVD8WDD8nRHXkFwWvYLdK16+9T490vygNl X-Received: by 2002:a17:902:6a3:: with SMTP id 32mr41732256plh.319.1550744428463; Thu, 21 Feb 2019 02:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550744428; cv=none; d=google.com; s=arc-20160816; b=Kd5grY3a0KdW+nPXbw0/E6erha5PMu8qWALClcbJh1Rxystf/7GMqJGEKHkYz8CTO/ wj0LBzKZXhtGlffT3hFZtwAn/ndyJMR5jDq4LZYozSPL7FgKCD90lt48AIApElrMWTDE XDdlW+eoCLew7fDr6gWXcVAmwYrIw4DasvQMzLaD4Ct2WPAryxmo6DLJns69NPsD+WGv CTGltM5O2xYuFPKpD1bSAd81k+H79Jbh5gQhzziXC58jubLk7kfMHlj8RpyEWml7DL22 S/SBVwUIZRQ5h7Nsftm3S/UaREHMqOeKrhWpd3uxb2SWDt6bGB7lOMzIvf6SwV8T24HU 6pvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=F9FD14V6kuNcXDhMxRFipwy+7yYwxOf3CKXdpbwkTps=; b=kebRIrB8n7gZ2sY0ICu8jLjRIiQsVm1JuJo03sWCC9LCJUvhmIig+qqB/Uj+CyJZPx yzZUF/FMvGnC4DBzX1+9riTxVn2fjGPW0NhnKUcmbZ3D/DsJJItGTf9wrnGkt5vAlaRD Sc0/LdVQ186LpAta024wJ4v99o1MDcUYretPARaVvNDef9zyV41ukOQFwDkIW9jPH1AN fxp8b3YGeuSNf3hvl8X1NLdi0UpP78RvUdNqKb/Yr+OxmJk5x7ft1Ri0jIFImjzaQqi5 zzfVGqZ8yChusI2wCH2X9KERh71UEI9kKS9hOeWVkIA2K3IYQ6hLRjtG0OhRalrHm++6 pemA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Rc/XMK1Q"; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d188si20356059pgc.97.2019.02.21.02.20.12; Thu, 21 Feb 2019 02:20:28 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Rc/XMK1Q"; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728131AbfBUKTY (ORCPT + 99 others); Thu, 21 Feb 2019 05:19:24 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11636 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbfBUKTW (ORCPT ); Thu, 21 Feb 2019 05:19:22 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 21 Feb 2019 02:19:20 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 21 Feb 2019 02:19:22 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 21 Feb 2019 02:19:22 -0800 Received: from HQMAIL106.nvidia.com (172.18.146.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Feb 2019 10:19:21 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL106.nvidia.com (172.18.146.12) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 21 Feb 2019 10:19:21 +0000 Received: from niwei-ubuntu.nvidia.com (Not Verified[10.19.225.182]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 21 Feb 2019 02:19:21 -0800 From: Wei Ni To: , , CC: , , , , , , , Wei Ni Subject: [PATCH v2 11/12] of: Add bindings of OC hw throttle for Tegra soctherm Date: Thu, 21 Feb 2019 18:18:46 +0800 Message-ID: <1550744327-4677-12-git-send-email-wni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550744327-4677-1-git-send-email-wni@nvidia.com> References: <1550744327-4677-1-git-send-email-wni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1550744360; bh=F9FD14V6kuNcXDhMxRFipwy+7yYwxOf3CKXdpbwkTps=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=Rc/XMK1QxMVqglU9YD1wu9GdNXso9amemreE2JZN7OM1lu2BPSPkQ0514c9fMT3gz 6l520DVusGCEFtm5olAbYZvfq3S330TdOf/7ChJwJV3Wml7hXXyqC+MB8uSALA028P UPgt7U9FHcJyZVMhn7rGywhI+KFcPvJG4zPux70PYkvubX8nzwFeNYpaWBJnB1IJ/X oMF53R69NrxjJzzyinbYzm1mp9+rEfv/SOraL9u8MRqhJMSKavFUGdwnbogXdARYaW bOxOQzrRAFA1mBxIm+AP5PbsLJ0uVdgKhGFJiYPqxgg7Be5kpAR4ZAtb+tatW66Fex BbbKDUOsbkp0w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt index cf6d0be56b7a..f02f38527a6b 100644 --- a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt +++ b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt @@ -64,6 +64,20 @@ 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. If present, this means assert low, otherwise assert high. + - 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-us: Specifies the number of uSec for which + throttling is engaged after the OC event is deasserted. Default value + is 0. + 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 +148,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; + nvidia,count-threshold = <100>; + nvidia,alarm-filter = <5100000>; + nvidia,throttle-period-us = <0>; + nvidia,cpu-throt-percent = <75>; + nvidia,gpu-throt-level = + ; + }; }; }; -- 2.7.4