Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp362176imu; Fri, 7 Dec 2018 02:15:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/UeaqSAVZJrt1UK0kLyZU9MCalgTdqLcqI9CaM11YENywkTGyOoBxysQSef75CCQAUNEpbC X-Received: by 2002:a63:6445:: with SMTP id y66mr1461542pgb.250.1544177751258; Fri, 07 Dec 2018 02:15:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544177751; cv=none; d=google.com; s=arc-20160816; b=BqxC7GssH8rYpi4eW4+8sVtQoP9CYNlhvJZmSJ4OPOowEPAc7YVOPM9mZ63OK/RVom RImGDrxgXFymbhdWAeB7bWGx1BLTDnyHu8S3Z5qpbtsxJOeacrdkTO6QyzZdK/cpG5mC hlCFfSfOrk36QEM92RuAhv7/Fzpaf4FhYyIm+J4hCMnOoNwE4A1iQaHTrWz72KysHme1 XjAIlYnK5zqz/Ip8vdoMGXwGNxRKTJo16tBlCdrNmqECqkaxstrhFFdfQahMzD7UW48C 8+i6PU3LnG1SRwFzZjRHkqsrsBhKvhG0bCdbYzlXidrGfOK282gPY4bQCF76xhxtEKPE 8CCg== 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=nNHCTHyDZVdi5MybDDVW0/CDd/jc8GMicoETAORekNE=; b=wyHfDNlwEC9AI0pz6hYpWNs7Opf74ee6heb1xHMmxpOa0VBIgAQI9w3mod08+wqp91 ZGoFV+YdPAfexZqnw5VXXNNf/g+BRZXcbsDXALkEaG9h99PloAMUSxCpPpBEfREglJlV Lj5DMZt5hyl+cptpdtS7Qs1vC1O4LcwpIw4+SBKJd/qiz+oo8VHGXJVTVH1UsucT/ftg H+tGGSJZdiArZjEzikRZ5T2sB2Dhv3bbc9DVbiTG22jR7YB4w+Ecp7y5r6PT2uC3R+7n uIz+CN86xaXcR7yFyE/J4EONScm6HW/SiJ51A4NO/fOYDpVNCf9IQWcsYfRqk5nVE2hs /0hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=odfVR+0L; 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 g11si2615082pgn.32.2018.12.07.02.15.11; Fri, 07 Dec 2018 02:15:51 -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=odfVR+0L; 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 S1726060AbeLGKO2 (ORCPT + 99 others); Fri, 7 Dec 2018 05:14:28 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:7394 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbeLGKOZ (ORCPT ); Fri, 7 Dec 2018 05:14:25 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 07 Dec 2018 02:14:23 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 07 Dec 2018 02:14:25 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 07 Dec 2018 02:14:25 -0800 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Dec 2018 10:14:24 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Fri, 7 Dec 2018 10:14:24 +0000 Received: from niwei-ubuntu.nvidia.com (Not Verified[10.19.225.182]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 07 Dec 2018 02:14:24 -0800 From: Wei Ni To: , , CC: , , , , Wei Ni Subject: [PATCH v1 1/3] of: add nvidia,thermtrips property Date: Fri, 7 Dec 2018 18:10:05 +0800 Message-ID: <1544177407-20203-2-git-send-email-wni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544177407-20203-1-git-send-email-wni@nvidia.com> References: <1544177407-20203-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=1544177663; bh=nNHCTHyDZVdi5MybDDVW0/CDd/jc8GMicoETAORekNE=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=odfVR+0L6cv1aL8eUAvSUEwqL4FwVQsXGK5GkJfPI6JPN4sYa6jVn3tWA7c/acTHu FAFW0b4SyZa1wX3LLjE93z4XtdozO/eT8r93UytT6PGoyYqTjahNjFCLe4BaMjgwzV IhC0vdmwTH2Y6nMumvlmh+yEHnlcLIDnKzQ/wIS98rZswDW+Zi0y3GhbNFwwNGSFdk l2xwJjPBLT1Xcw2FH/iQnrecqbgN8fo6obaCNdEKDmnPjejqyGTeoGL8maZFV7a+Sm M+87F9+dsrSyIuYz2wHyOolUDX7dkAIFSn/3ZjBGmEGnDDC2YpeTb68ILl+iVXvhii frZLIj8pVUbew== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + - 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 = ; + throttle-cfgs { /* * When the "heavy" cooling device triggered, -- 2.7.4