From patchwork Wed Nov 7 17:09:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672645 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 E3ED515E9 for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1F292CB9E for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C59CB2CBA2; Wed, 7 Nov 2018 17:10:44 +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 4918A2CB92 for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731539AbeKHCl6 (ORCPT ); Wed, 7 Nov 2018 21:41:58 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54862 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731527AbeKHCl5 (ORCPT ); Wed, 7 Nov 2018 21:41:57 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171040euoutp010a38e0f3ed4601b6b67b126715976937~k5rWhQN8J2204222042euoutp01z for ; Wed, 7 Nov 2018 17:10:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171040euoutp010a38e0f3ed4601b6b67b126715976937~k5rWhQN8J2204222042euoutp01z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610640; bh=BF9hoi/P6lu2L1mT8SlOWIzqeTeONOgqLJnUK9e/KhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CCuRQsm1xSq7BKr7QlZC0SWfErDz9esIRSZi7HwKMcJ+IexEIYxVD2eVqhbXiejqR A98of7BFkI10SQsLRkNg3TwqgLWIXN+jNGpSs2T0hn7Yik4uI2iKooK+sdzK5g41xl jfJm0SIpxf2B7FGIeQ3SCLShgPDKJVGEo7I9BXs0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171039eucas1p1f7da3604dfa56e36035b5192c1090cfb~k5rV4loGI2717527175eucas1p1o; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 1E.C9.04806.F8C13EB5; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171038eucas1p1eb5dce12a1f5f7a3587f82f8396fa075~k5rVNCsD63086130861eucas1p1T; Wed, 7 Nov 2018 17:10:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171038eusmtrp1a70f419c79491a1bc563b329f56f2a5f~k5rVBLpjv2472724727eusmtrp1j; Wed, 7 Nov 2018 17:10:38 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-0b-5be31c8f5cf6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0B.23.04128.E8C13EB5; Wed, 7 Nov 2018 17:10:38 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171038eusmtip232ba2cb2ca2ddcc4ff68e8e4b7bc662d~k5rUdVEtr0340803408eusmtip2S; Wed, 7 Nov 2018 17:10:37 +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, krzk@kernel.org, Lukasz Luba Subject: [PATCH v2 04/11] Doc: thermal: new irq-mode for trip point Date: Wed, 7 Nov 2018 18:09:46 +0100 Message-Id: <1541610593-28542-5-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541610593-28542-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0hTYRjHfXd2zo7L6WlqvngLBoJKabcPB4pICjpYUvilaB9y5cHb5mXH S5akRHlLrdTMtHmbYi1FndNseJ2WqDUVp8tL2nQQZovRFAoscp5J337/5/88/+fh5cURYSfq jcclptLyRIlUhPG53e9/6w8/8l0TH9l46kl2VLahpHkwD5A1Nj+ydkSPkrWGOZScnGznkQs5 vqR6bUfV5zZyyRntC4y0FY8Assk4zSEf9I3wSLOpBDvjSrXUtADqbdVnHqXsXedQalUBRi3N 9WJUZ2M2pSwpQ6mhH70cqkSjApRN7X+Zf41/KpqWxqXT8tDTUfzY70NmTvK28JZpcYmXAxRu hcAZh8QJaMmd5xYCPi4kXgI4+tOKsGITwM2GAcAKG4BrXSu8vZEegw1jjWYAh5+voHZjd0TR 7lIIcBwjQmCPKsXe40FUA2jrV/Ls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RYwMqxiFEktLc5Nzy020itOzC0uzUvXS87P3cQIjJRtx35u2cHY9S74EKMAB6MSD6/GjofR QqyJZcWVuYcYJTiYlUR4e1c/ihbiTUmsrEotyo8vKs1JLT7EaAp01ERmKdHkfGAU55XEG5oa mltYGpobmxubWSiJ8543qIwSEkhPLEnNTk0tSC2C6WPi4JRqYLThyfe9oTX568T9Kjk9HlV3 zbb8yjva8Dr2yOZG9kwW1p/n1lS8POgg5e/LZnisoPuzueDqBZm177c4/GwN9tj5N3aqrcqc E2+rl7xN57yc2WDG3VpfffxKlci5+PB71mKTFx42nVux+tOKLdqOe/wqGouX7msQbBXOcF06 TWHnmnD/KcG/A5VYijMSDbWYi4oTASUF5VOqAgAA X-CMS-MailID: 20181107171038eucas1p1eb5dce12a1f5f7a3587f82f8396fa075 X-Msg-Generator: CA X-RootMTR: 20181107171038eucas1p1eb5dce12a1f5f7a3587f82f8396fa075 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171038eucas1p1eb5dce12a1f5f7a3587f82f8396fa075 References: <1541610593-28542-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 to set polling for it). It is useful for 'passive' cooling trip point, which now will not be register for polling the temperature. Update documentation about irq-mode for trip points. The new sysfs file shows 1 if the trip point supports IRQ. Cc: Jonathan Corbet Cc: Zhang Rui Cc: linux-doc@vger.kernel.org Signed-off-by: Lukasz Luba --- Documentation/thermal/sysfs-api.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index 9113997..e405724 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt @@ -272,6 +272,7 @@ Thermal zone device sys I/F, created once it's registered: |---trip_point_[0-*]_temp: Trip point temperature |---trip_point_[0-*]_type: Trip point type |---trip_point_[0-*]_hyst: Hysteresis value for this trip point + |---trip_point_[0-*]_irq: Trip point supports triggering irq |---emul_temp: Emulated temperature set node |---sustainable_power: Sustainable dissipatable power |---k_po: Proportional term during temperature overshoot @@ -365,6 +366,10 @@ trip_point_[0-*]_type thermal zone. RO, Optional +trip_point_[0-*]_irq + Boolean which indicate that the trip point triggers irq. + RO, Optional + trip_point_[0-*]_hyst The hysteresis value for a trip point, represented as an integer Unit: Celsius @@ -544,12 +549,16 @@ method, the sys I/F structure will be built like this: |---available_policies: step_wise fair_share |---trip_point_0_temp: 100000 |---trip_point_0_type: critical + |---trip_point_0_irq: 1 |---trip_point_1_temp: 80000 |---trip_point_1_type: passive + |---trip_point_1_irq: 1 |---trip_point_2_temp: 70000 |---trip_point_2_type: active0 + |---trip_point_2_irq: 0 |---trip_point_3_temp: 60000 |---trip_point_3_type: active1 + |---trip_point_3_irq: 1 |---cdev0: --->/sys/class/thermal/cooling_device0 |---cdev0_trip_point: 1 /* cdev0 can be used for passive */ |---cdev0_weight: 1024