From patchwork Tue Oct 16 14:56:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10643723 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5337613AD for ; Tue, 16 Oct 2018 14:56:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 407D229EFF for ; Tue, 16 Oct 2018 14:56:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34A6E2A0C9; Tue, 16 Oct 2018 14:56:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6F7629F04 for ; Tue, 16 Oct 2018 14:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbeJPWrj (ORCPT ); Tue, 16 Oct 2018 18:47:39 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39273 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbeJPWri (ORCPT ); Tue, 16 Oct 2018 18:47:38 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181016145648euoutp02d266a5846082109c5c75c3d022226085~eHqL_ky1c0360503605euoutp02- for ; Tue, 16 Oct 2018 14:56:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181016145648euoutp02d266a5846082109c5c75c3d022226085~eHqL_ky1c0360503605euoutp02- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539701808; bh=BOkOCpgojR0VWlfu6jpqdT41Y6S6YdmRemCFrIlC7U0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSRawi0ProiH4rEIdcGdP8F27v1XMquMx/yCh/K8oEijCuEVq2ncziQvhtJ2MxOO6 BlSxQcMaxFkxWzLHJ34Gp7Vfj2uEjcNbg8/aJFS4kLs29dksriy6o0gClVPsfWvKHf rm1Ji2L1JqDmujlEvzTAnSknIivo5WPZ20TyjRmE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181016145647eucas1p29516ccf330c223a9e3e0da7c0db72f0c~eHqLHNCJ42490424904eucas1p20; Tue, 16 Oct 2018 14:56:47 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 55.C2.04441.E2CF5CB5; Tue, 16 Oct 2018 15:56:46 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181016145646eucas1p1bd4607c80258df10777ed111cf889fbc~eHqKU_F8K2225422254eucas1p1r; Tue, 16 Oct 2018 14:56:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181016145645eusmtrp291620498e8b72aa9116c2ef8e4093fff~eHqKGFXy33061930619eusmtrp2U; Tue, 16 Oct 2018 14:56:45 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-cc-5bc5fc2e30f7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 1E.AA.04128.D2CF5CB5; Tue, 16 Oct 2018 15:56:45 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181016145645eusmtip238f12a9a5ecdce31860e26142dd6e19b~eHqJkEmd72715427154eusmtip2U; Tue, 16 Oct 2018 14:56:45 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, b.zolnierkie@samsung.com, Lukasz Luba Subject: [PATCH 05/11] Doc: DT: thermal: new irq-mode for trip point Date: Tue, 16 Oct 2018 16:56:16 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539701782-26852-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0hTYRjG+3a2s+NwepqaL2YKo6KyZkLQkUyK/OOQBEGElHSZebyQzrmj phY6gryhy7LUVKYySx2KeEXFInUm4i0vqa0izZkZZeC8pZl52qz/fu/leZ6Pj5fAJNUCFyJc EcOoFPIIKS7iN736OXBE9qsr8Khx0IOqza8RUKaXqYjSmvdQxYYBAVU8OiagjGpXqm56C0pT yvjUSGsRTpmzDIh6Oj7Eo+49Nwgp05QGPyWmq7RViG4p+CCkdW1zPLpOn47T78facLq+LJnW aXIEdPt8G4/WNOgRba5zOy+6LPIJZiLC4xiVp+91UVilbhBTFtnHL81Hq9Ej2wxkQwB5DN50 ZeEZSERIyAoE0/f7hJZiEcFy4ZK1MCPoW//M25asDWj5lkE5gtnaH/g/yebsDMpABIGTMmjW R3N9R7IQgfmF7q8VRvYgMJY38bglB9IPVrMVnCuf3AcbG53WBDd4O5COcWxD+oNxogTjtEC2 CiFLvyHkBmIyDjZyJ6wCP3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TiYlUR40y8djRbiTUmsrEotyo8vKs1JLT7EaAp00kRmKdHkfGDM5pXEG5oamltYGpob mxubWSiJ8543qIwSEkhPLEnNTk0tSC2C6WPi4JRqYFwTFXW0Z0NrjMpfhXXf3Vdvb5iSd9mk cW/zCfM0P9MK1tMpK5QZ3ZjO7vLwebVL7h1D/Cfnz/M0tvBcao/4GWJZyFB+SHRGNG+soJfq nA/qmYGvD27vsz7qoW8kKn2nNf8Ky4X9ifuq99j6fRFKeXA5lYnJff6rXN0qzicWs56Ubkj1 zzpyQYmlOCPRUIu5qDgRAOro82yhAgAA Message-Id: <20181016145646eucas1p1bd4607c80258df10777ed111cf889fbc~eHqKU_F8K2225422254eucas1p1r@eucas1p1.samsung.com> X-CMS-MailID: 20181016145646eucas1p1bd4607c80258df10777ed111cf889fbc X-Msg-Generator: CA X-RootMTR: 20181016145646eucas1p1bd4607c80258df10777ed111cf889fbc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181016145646eucas1p1bd4607c80258df10777ed111cf889fbc References: <1539701782-26852-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Thermal trip point gets new flag in DT: irq-mode. Trip point may have a new explicit flag which indicate irq support when the temperature is met (so the thermal framework deos not need set polling for it). It is useful for 'passive' cooling trip point, which now will not register for polling the temperature. Update documentation about irq-mode for trip points. Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Lukasz Luba --- Documentation/devicetree/bindings/thermal/thermal.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index eb7ee91..c98a355 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -90,6 +90,10 @@ Required properties: "critical": Hardware not reliable. Type: string +- irq-mode: A flag indicating that trip rises irq, so there is no + Type: bool need of polling in thermal framework. + Size: one cell + * Cooling device maps The cooling device maps node is a node to describe how cooling devices @@ -256,16 +260,19 @@ thermal-zones { temperature = <90000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "active"; + irq-mode; }; cpu_alert1: cpu-alert1 { temperature = <100000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu_crit: cpu-crit { temperature = <125000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "critical"; + irq-mode; }; };