Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7673797imu; Fri, 28 Dec 2018 02:52:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN6R7jBkuJnURQkf18SktjgjkFuDsN67vXoyjFyroItxC8qS4ikGW9hZGN4bdh1/2BHUjAwC X-Received: by 2002:a63:504d:: with SMTP id q13mr26272129pgl.319.1545994361154; Fri, 28 Dec 2018 02:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545994361; cv=none; d=google.com; s=arc-20160816; b=zl85QwjyqyZqVbcsO+x8f5LbfGVbqiJ9hy3jcoJb7jD9z7Nwu7Y3QIJnFyKYf0d62p 052mo3Ou5GxKzp7L9epZAAEcQlw/9o5bTe9u/Q4TOPW5tbBWEG2q87a+E2UHhpx/BGKV zhHg02gTwGz3a+FldQ7fnpAy25DiIwOeYu1RBZcLgE4+KkmNRgJbVkrZuYUBoIddcueH qw1fZhfai0ZQcV2CMdWhAIh9Vxtv61jNtLWy2B3n9H+6nZPn+DnyPvLT/duwxejNJGAC Aww44+Sp/DuaP0OpmiwXsJW0YKltRR8jJp02MppSwbyvRgZ7pnqIbpPjb7mJ9FYc7H5M uSVw== 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=V5RA6P2tf+WDctJjZgcq2sZXdKwr8ipG35lTjMUE2/Q=; b=RZcnrnbFesKRLJecvTnuYeqdmyq4bEhkCGr1TsXRei/TpQg9PABTry2iRFiFjfdcsC Ihm5kBw7OymfCnH0mGS/H8YRyWeb3nCLeZfi+bnrEzaiQAU5tEKJQHnwRCfNw5jAHJaw 4Cq7BrRW2vWrJsFFo9pK97xJ6Iqdj2jJE0X9VuJ8SqP81sooWE2GZAB7qNiU+EzWwy8C yYUZZrADQOxJ62stJ0fOS1MKFhAY84gqYzYYizjQzXuzRGRnV7+Dg3uVT3DC1KNcYTdr RcmA6D1EugnjSn9ZzYYOKk3KuF1wcBW5eA7fTGKbGxNLHDS8zvg9oxBn+ctz3jOigtnO EIGA== 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 14si35584407pgx.178.2018.12.28.02.52.26; Fri, 28 Dec 2018 02:52:41 -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 S1733167AbeL0XGd (ORCPT + 99 others); Thu, 27 Dec 2018 18:06:33 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:51941 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730402AbeL0XGd (ORCPT ); Thu, 27 Dec 2018 18:06:33 -0500 Received: by mail-it1-f196.google.com with SMTP id w18so26379409ite.1; Thu, 27 Dec 2018 15:06:33 -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=V5RA6P2tf+WDctJjZgcq2sZXdKwr8ipG35lTjMUE2/Q=; b=RdHsWshuphqo9RY+k/11rn9u4qajiAGEI92XI6B5bhjj4UqAiH+wLhOofmAU36Joqv lYFxd1Eu6Vw+PmE4GmglNDkLawPLv1wmpRRjGvtWJfFwGSRsfm0GADmXopDl+HsN4DzU XqiQ4IoAAuBK/xbamXU6p7D30mPZxZ7yig6vEnI5aaxq26XzdjwQfe94BdROBD55gUxj DEQZe3VQ1cYmspF8o4jyqH5F8dDzIK7FXYMDltlhHTobb9lJET15a5Vg4CUPpmqKzp7f uNmDGjUm+WIc7TiKwVBal6FddGSw6/dwUk5gHKOQm5gWaFB+VISjBci2anUj1lVW8w76 Aeiw== X-Gm-Message-State: AJcUukdz2FkCoFXwbsxQYntr485TRcdm0T3gTtqxxEtNEWTceXgOjhMT Tw3oYsyy3osyxPV3nTXo0xPERaY= X-Received: by 2002:a24:750f:: with SMTP id y15mr14754079itc.177.1545951992585; Thu, 27 Dec 2018 15:06:32 -0800 (PST) Received: from localhost ([24.51.61.172]) by smtp.gmail.com with ESMTPSA id w26sm17683101iol.60.2018.12.27.15.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Dec 2018 15:06:31 -0800 (PST) Date: Thu, 27 Dec 2018 17:06:30 -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 01/12] of: Add bindings of thermtrip for Tegra soctherm Message-ID: <20181227230630.GA3659@bogus> References: <1545118484-23641-1-git-send-email-wni@nvidia.com> <1545118484-23641-3-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-3-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:33PM +0800, Wei Ni wrote: > Add optional property "nvidia,thermtrips". > If present, these trips will be used as HW shutdown trips, > and critical trips will be used as SW shutdown trips. > > Signed-off-by: Wei Ni > --- > .../bindings/thermal/nvidia,tegra124-soctherm.txt | 20 +++++++++++++++++--- > 1 file changed, 17 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > index b6c0ae53d4dc..ab66d6feab4b 100644 > --- a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > +++ b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt > @@ -55,10 +55,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: > +- nvidia,thermtrips : When present, this property specifies the temperature at > + which the soctherm hardware will assert the thermal trigger signal to the > + Power Management IC, which can be configured to reset or shutdown the device. > + It is an array of pairs where each pair represents a tsensor id followed by a > + temperature in milli Celcius. In the absence of this property the critical > + trip point will be used for thermtrip temperature. > + > Note: > -- the "critical" type trip points will be set to SOC_THERM hardware as the > -shut down temperature. Once the temperature of this thermal zone is higher > -than it, the system will be shutdown or reset by hardware. > +- the "critical" type trip points will be used to set the temperature at which > +the SOC_THERM hardware will assert a thermal trigger if the "nvidia,thermtrips" > +property is missing. When the thermtrips property is present, the breach of a > +critical trip point is reported back to the thermal framework to implement > +software shutdown. This hardly seems like a NVidia specific concept. A h/w shutdown temperature... Come up with something common. Also, we already have a temperature table. Why do we need temperatures in 2 places. > + > - the "hot" type trip points will be set to SOC_THERM hardware as the throttle > temperature. Once the the temperature of this thermal zone is higher > than it, it will trigger the HW throttle event. > @@ -79,6 +90,9 @@ Example : > > #thermal-sensor-cells = <1>; > > + nvidia,thermtrips = + TEGRA124_SOCTHERM_SENSOR_GPU 103000>; > + > throttle-cfgs { > /* > * When the "heavy" cooling device triggered, > -- > 2.7.4 >