Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp333269imp; Thu, 21 Feb 2019 02:21:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IY5fMb6kaTxCje6LaVU7gMwOR03fT2aUKYAW9JvlHzjB+Px0kraX1AgEd5rADOnkuKAVPzr X-Received: by 2002:a63:4c18:: with SMTP id z24mr33939408pga.62.1550744504449; Thu, 21 Feb 2019 02:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550744504; cv=none; d=google.com; s=arc-20160816; b=OpQeRNDJu9U8TG4vWEejGSzuWJcmsa4rtGJCKUXYmSuAXziyHCmlBILL/55wJ+1ImP R505d1+XwWNsCAKGLsNTG4LoiZgpgX/28Xsn5mbmcijYhH8s6TskqA3gqCHfqV6WtD3o 3VWOh04QANRhSBmaIgtg+/vXdexDaADJtGt7InWxhuMCNl5TprLbLXBZelmrnuP47o/n OTgoaHkIke/X7hDZWWMjJ0tQoiz7DWj7JZS1h8KydZJcv6q5x6Dj3vlgwenz4jKXzqgR PIoRo+BPURTGlX9IwGkR2pPQnyUaQnPctYODFhecqz8FMsAsl7mJT8trEz+mE0QzAgmQ ATWA== 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=jtW2qTiS1SGMJDPSadJdC7W1hk/dspxrYiEDyj3CwFv3orCijOx59WDyJlDd88Q/SR MAWm6LIU3z1Fu3Wq+L3xbTXx7ukBqXRcKeOIFANouIEgd/Qna4J+cyPbcYKYTnooYP4A 1LvXU8nVZ7cgxEpY4q6e6Rnv7kjpDcDXo8Nsh2TojCdRRk08IUUK3QUlxSWzrrAOJ4nB 6UqvLNZlhx16o71vyVjxOCxpRofvjYMcvoGyAT88nV8up79gN3+CQFBh1tk4k6y7Fdbo mdYOe9lD0q3OkDBLuG1fdqsdcdLs3FbOl2UYRqwMaGRmyDJysHFUmOzcIWRhs66gq90v oKzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kqwV69ye; 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 k188si21879933pgc.246.2019.02.21.02.21.29; Thu, 21 Feb 2019 02:21:44 -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=kqwV69ye; 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 S1728008AbfBUKTG (ORCPT + 99 others); Thu, 21 Feb 2019 05:19:06 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11597 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbfBUKTF (ORCPT ); Thu, 21 Feb 2019 05:19:05 -0500 Received: from hqpgpgate101.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:03 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 21 Feb 2019 02:19:04 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 21 Feb 2019 02:19:04 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Feb 2019 10:18:55 +0000 Received: from HQMAIL104.nvidia.com (172.18.146.11) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Feb 2019 10:18:55 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 21 Feb 2019 10:18:55 +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:18:55 -0800 From: Wei Ni To: , , CC: , , , , , , , Wei Ni Subject: [PATCH v2 01/12] of: Add bindings of thermtrip for Tegra soctherm Date: Thu, 21 Feb 2019 18:18:36 +0800 Message-ID: <1550744327-4677-2-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=1550744343; 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=kqwV69yeeCTqXQatJ/YyaaaN77gdZGcU5dAHR+0ggzeDpeK/DNSuE676b5IpUTRCA N3mGwq2jvvgE5E4VXxhyqgPYDNxn/qDI+3VzIFq08PHAZa5ibcGBbcpAlAfQUwGkDm U+AEi1MHGnfYS3DcMTOhwMIqzrwv6pmwnlCX0mfiBg86htFqV5aPcrKuDa0J5U6m3u ltjomH8iRa96GDqXzr1c3k5Y3g5nI0D5sE16myb7GrEz2odvIOmOwP6ka1d4ljIxmP ySxM48YGrm8twkoT+sHpuZHfjAWaiYAq5b+2Z6Go+xRZLBFf8tbrTC2AuKKH9gR2Lh 73wx0ZhKoYjNQ== 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