Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3547786imu; Mon, 17 Dec 2018 23:38:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WoB5MyHqhWxM77azViEfQGyBub20xfCUalyR6TdVp0HZbQ1WbCImz3k6HXvN7BYp8/AJWL X-Received: by 2002:a62:7a8b:: with SMTP id v133mr16085119pfc.159.1545118686250; Mon, 17 Dec 2018 23:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545118686; cv=none; d=google.com; s=arc-20160816; b=WDI6xiYXS2S2pEK3tM6Bf7leXhGGeFTYVDCE4+cihLmYdIWSXSG9ifDjGxKTKCSM66 Ue24oU505vdIoYsg1W1cVjZ42EKMVEw/GjBR3SN1vBslTa82ECyupSXQn/pbRllaqQ+C DjJ4F8tLTkxKAhO9yEzbIku1jB6FEAh6rzPGP8D22CPyJVafPFgN5C54RgLLCa8bPl0l XJiHKxU8tsn63ssdYnA3RVrAmuEI1dNzfr3KGI/AQmClcRiE1PF8wHdiukpleAftL7FX pNEBWcCKnDiWnP1tWtbSm9rMy2+aVueHWiwhmqL+3AI//wz6ST6vuNTM601uWYK2wfxQ w3Ow== 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=Cm4VACSaxNOf7eTIHz/90HpXG+BrUy7qZ4XTj/EQlWl8rHymxd/Yg5WkQLIC1d5pyT 1BXNUMollNsAhFw95lRLmUHbrjq7mZ6l+NKJR/JSTzrhef7cLE5bF9nTtH2XcKz17iRN Hia2KyUh2LrxYMPHDF0WGz0zDzRvh5dkDZIRpzElAOnJzxxkgDkRPPvTshj/Ao/PsujI xOvUD8/5LsXAjPEXVt/mwFDVDLpkaTqHLK464mWbJq6n0vhzINM40iEZBdepwlHM9ovT kC+siKiIXs7rhO4yE4d9MU5fHaGNnSy+p4Qe5/tDlxOAYJt3MVfepiYBuHwVaxVwdcvW Tb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=PwZXEUFi; 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 e2si4677553pgj.316.2018.12.17.23.37.51; Mon, 17 Dec 2018 23:38:06 -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=PwZXEUFi; 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 S1726806AbeLRHgY (ORCPT + 99 others); Tue, 18 Dec 2018 02:36:24 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18433 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbeLRHfL (ORCPT ); Tue, 18 Dec 2018 02:35:11 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 17 Dec 2018 23:35:05 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 17 Dec 2018 23:35:11 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 17 Dec 2018 23:35:11 -0800 Received: from HQMAIL102.nvidia.com (172.18.146.10) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 18 Dec 2018 07:35:10 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL102.nvidia.com (172.18.146.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Tue, 18 Dec 2018 07:35:10 +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 ; Mon, 17 Dec 2018 23:35:10 -0800 From: Wei Ni To: , , , CC: , , , , Wei Ni Subject: [PATCH v1 01/12] of: Add bindings of thermtrip for Tegra soctherm Date: Tue, 18 Dec 2018 15:34:33 +0800 Message-ID: <1545118484-23641-3-git-send-email-wni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545118484-23641-1-git-send-email-wni@nvidia.com> References: <1545118484-23641-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=1545118505; 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=PwZXEUFi3/3yczS22EJ9v2U7vUySZQhYdnHnLnSvxRlU8hpkqxucRWMQTw286+RZO swUiHmdhaVcW2bngyG2eNUczBxhXxuOGilMSRN9d3IKHX117GKtmbT3bbb3dWF61Qu Axtx6K6/tAW2l4rsS6JvW5FBECEDvmjZDgBYY2JlaTCMFdxxWfiaFwVpE5q+uO32Tu oUqJKvtLxPxPUzbSufpo4bjPF07BgtNy5P/s1l9FQ+WaqB9aEpqAv80lo0/bZMb0pI s2iOrKuKFPphLAamAKR40EZe702s+9cTd2EYzcHS1L4XZPqvPCTjvKE2n69yjzab5B lZxp9S/O2+3uQ== 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