From patchwork Wed Nov 7 17:09:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672641 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 2D03D17D4 for ; Wed, 7 Nov 2018 17:10:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CA392CB58 for ; Wed, 7 Nov 2018 17:10:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DC002CB92; Wed, 7 Nov 2018 17:10:34 +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 9D4832CB58 for ; Wed, 7 Nov 2018 17:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbeKHClr (ORCPT ); Wed, 7 Nov 2018 21:41:47 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54756 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731364AbeKHCll (ORCPT ); Wed, 7 Nov 2018 21:41:41 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171023euoutp013066fdb903a2142b467efb8bf479bb2e~k5rHUk13Z2287822878euoutp01B for ; Wed, 7 Nov 2018 17:10:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171023euoutp013066fdb903a2142b467efb8bf479bb2e~k5rHUk13Z2287822878euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610623; bh=2Tl0v8vgsqcXWABbqtUZLHvnuhXk5TvAkw69FGiEAx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IhLNADSLmnKSS25qDx344zLpTZkkl4ttN64971mrLFbui70oEQ/UiSKNLUknYCy0+ rl3Khze1aK1R/hE2yPhhmzkAyzXF8D8bfUseW1enPu1v/MtyQSsR2Abmcov/IvN4ha JQtZD7aaFQt1a9GA0rpiLXV80xe/rf5fi1JLW9o4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107171023eucas1p293080dfae19c271a1748c8e22337a83b~k5rGlNAqo2800128001eucas1p2E; Wed, 7 Nov 2018 17:10:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 9C.54.04294.E7C13EB5; Wed, 7 Nov 2018 17:10:22 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171022eucas1p1c2431f0561d9b1357ab569ab77deca34~k5rFs8C421069210692eucas1p1Z; Wed, 7 Nov 2018 17:10:22 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171021eusmtrp1a8b28f2c742779585f4cd72f7ba758b6~k5rFhCzhn2472724727eusmtrp1X; Wed, 7 Nov 2018 17:10:21 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-99-5be31c7eeb5a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 71.23.04128.D7C13EB5; Wed, 7 Nov 2018 17:10:21 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171021eusmtip2597dad7f16cad0654585ff41af166db2~k5rE_fk-I0120301203eusmtip2d; Wed, 7 Nov 2018 17:10:21 +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 01/11] thermal: remove unused function parameter Date: Wed, 7 Nov 2018 18:09:43 +0100 Message-Id: <1541610593-28542-2-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: H4sIAAAAAAAAA0WSWUwTURSGuZ1OO1SLYyFyRJakEYMkLBowE1GDyMNENOFBX+gDVpmwyNph V6FEyxYgIgYQlYqFALUEqGURgbAFAihLMKAsCZsRNQVNiZFEQMqAvn3/f875z8nNJTBJE25H hEfHM4poeaRUIOI392+MuqXZL8k8l7fcqMbSepxa7spCVLnJgVL3jeCU+sMkTo2ONgipaaU9 pV/aURWZlXxqou2ZgDLl9yGqamqcR6k6+oTU8kKBwNeK1pXrEP2mbE5Ia9q/8mi9NkdAz062 C+jXlem0pqAIp7tX23l0gUGLaJPeMVAUJDoXwkSGJzIKjws3RGHv1EZh7GdR8mBzhVCJHljm IksCSC8orKrDcpGIkJA1CIZ1K0JOrCOYN2p4nDAhMGhasP2RmSIj4grVCNStI+jfyGLnxs48 QQhId2jVxpl9G/IpAlOnZjcXI2cRDD3W7EZZk5eg5nsJMjOfdIYvszO4mc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6RUn5haX5qXrJefnbmIExsm2Yz+37GDsehd8iFGAg1GJh1dj x8NoIdbEsuLK3EOMEhzMSiK8vasfRQvxpiRWVqUW5ccXleakFh9iNAU6aiKzlGhyPjCG80ri DU0NzS0sDc2NzY3NLJTEec8bVEYJCaQnlqRmp6YWpBbB9DFxcEo1MHowTz2Z11Gz73nh/bmG VYaTcvI6LqksSF5u3HOl89Hz5iSmenuXp+o+jYkyRoyRV9ieCnGZRBzaGa9Une7KtzQppXjh uh3v7x/7WL5S3HruF5uFWh28D8ysnv+rTN1il7H4ve/idbkT+nlcmF/GBy0/4pSgVnk2+ZzP SwZh9po/f6Kb9lyMUmIpzkg01GIuKk4EAKU767OpAgAA X-CMS-MailID: 20181107171022eucas1p1c2431f0561d9b1357ab569ab77deca34 X-Msg-Generator: CA X-RootMTR: 20181107171022eucas1p1c2431f0561d9b1357ab569ab77deca34 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171022eucas1p1c2431f0561d9b1357ab569ab77deca34 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 Clean unused parameter from internal framework function. Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Signed-off-by: Lukasz Luba --- drivers/thermal/thermal_core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index d6ebc1c..39fc812 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -315,9 +315,7 @@ static void monitor_thermal_zone(struct thermal_zone_device *tz) mutex_unlock(&tz->lock); } -static void handle_non_critical_trips(struct thermal_zone_device *tz, - int trip, - enum thermal_trip_type trip_type) +static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) { tz->governor ? tz->governor->throttle(tz, trip) : def_governor->throttle(tz, trip); @@ -418,7 +416,7 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) if (type == THERMAL_TRIP_CRITICAL || type == THERMAL_TRIP_HOT) handle_critical_trips(tz, trip, type); else - handle_non_critical_trips(tz, trip, type); + handle_non_critical_trips(tz, trip); /* * Alright, we handled this trip successfully. * So, start monitoring again. From patchwork Wed Nov 7 17:09:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672681 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 058E613BF for ; Wed, 7 Nov 2018 17:11:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8ACE2BFF2 for ; Wed, 7 Nov 2018 17:11:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCCBC2CC36; Wed, 7 Nov 2018 17:11:47 +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=unavailable 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 5846D2BFF2 for ; Wed, 7 Nov 2018 17:11:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731461AbeKHCnC (ORCPT ); Wed, 7 Nov 2018 21:43:02 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54831 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbeKHClz (ORCPT ); Wed, 7 Nov 2018 21:41:55 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171037euoutp01c06772414be8310d6c39cd3c9211e057~k5rUSHWtE2287822878euoutp01I for ; Wed, 7 Nov 2018 17:10:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171037euoutp01c06772414be8310d6c39cd3c9211e057~k5rUSHWtE2287822878euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610637; bh=u3OQdIwMyDulwJrM1Yhs34QsfCPeLNuMuxOJylx/rhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QwkMHfh7E8o/rT/KNf5gCPjlVLquhIZXsSd1EN9tnZg26uzOrA1RYkojlGQI4+q8/ naRVj2hUaObvqmZAKLWHQhZ20Qst/cUkt2tRP5Dz1zb54xtRVJKE62Qg+CQp3VZjdb Uo+pb/qsHDNPOYL4kma+OUESt+M0dHZcWAx2swrY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107171037eucas1p2a19a258c027e4f024cef2b47e5bc14de~k5rTnaiyh2801828018eucas1p2I; Wed, 7 Nov 2018 17:10:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 7A.E9.04441.C8C13EB5; Wed, 7 Nov 2018 17:10:36 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171036eucas1p13253d56b463c8f888ab8f8e418635297~k5rSx-a-s3085730857eucas1p1S; Wed, 7 Nov 2018 17:10:36 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171036eusmtrp19c67006b1d472036080cd065805b8d20~k5rSmJCax2472724727eusmtrp1g; Wed, 7 Nov 2018 17:10:36 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-69-5be31c8ce940 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 08.23.04128.B8C13EB5; Wed, 7 Nov 2018 17:10:35 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171035eusmtip25b9724e8357b9e5dedf609decfb222dd~k5rSCDuMI0120301203eusmtip2k; Wed, 7 Nov 2018 17:10:35 +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 02/11] thermal: add irq-mode configuration for trip point Date: Wed, 7 Nov 2018 18:09:44 +0100 Message-Id: <1541610593-28542-3-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: H4sIAAAAAAAAA+NgFtrKKsWRmVeSWpSXmKPExsWy7djPc7o9Mo+jDS7PM7LYOGM9q8WTA+2M FvM+y1rMP3KO1WL+lWusFufPb2C3uNUgY7HpMZC3sG0Ji8XlXXPYLD73HmG0WHr9IpNF694j 7BZPHvaxOfB5rJm3htFj56y77B6L97xk8ti0qpPN4861PWwem5fUeyzum8zqcfDdHiaPvi2r GD0+b5IL4IrisklJzcksSy3St0vgytjf+J+pYK9KRdvPZawNjNPluhg5OSQETCQOXTnK1MXI xSEksIJRYt2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RYumKXWwQCTGJSfu2 s0PYwhJ/rnVBFX1ilFj9vB8owcHBJqAnsWNVIUhcRGA+o8TRTZfBipgFnjFKrJz+kgmkW1jA R6Lnym1GEJtFQFXi9pu1YBt4Bbwk5q77ALVBTuLmuU5mEJtTwFti3uW3YHEhoJrvs9azTWDk W8DIsIpRJLW0ODc9t9hIrzgxt7g0L10vOT93EyMwUrYd+7llB2PXu+BDjAIcjEo8vBo7HkYL sSaWFVfmHmKU4GBWEuHtXf0oWog3JbGyKrUoP76oNCe1+BCjKdBRE5mlRJPzgVGcVxJvaGpo bmFpaG5sbmxmoSTOe96gMkpIID2xJDU7NbUgtQimj4mDU6qBMWf7gVkex46a1lU+NfotvH/G mfL6kx9/3ZnL6MO1/vXq6yUtN70SIg5WKRssz55x+L5EU1TKzH8n129x/NOo92ojp36wJy/v K0GjCp3wOeU8lUt8/C98LHjHdGzRxN0n2ybYH7x3M9mg/oXtFQ+FzFI1wZMdsuVhh9nDtZKL bmfcChNQEZ0bocRSnJFoqMVcVJwIANf16OmqAgAA X-CMS-MailID: 20181107171036eucas1p13253d56b463c8f888ab8f8e418635297 X-Msg-Generator: CA X-RootMTR: 20181107171036eucas1p13253d56b463c8f888ab8f8e418635297 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171036eucas1p13253d56b463c8f888ab8f8e418635297 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 This patch adds support irq mode in trip point. When that flag is set in DT, there is no need for polling in thermal framework. Crossing the trip point will rise an IRQ. The naming convention for tip point 'type' can be confussing and 'passive' (whic is passive cooling) might be interpretted wrongly. This mechanism prevents from missue and adds explicit setting for hardware which support interrupts for pre-configured temperature threshold. Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Signed-off-by: Lukasz Luba --- drivers/thermal/of-thermal.c | 17 +++++++++++++++++ drivers/thermal/thermal_core.c | 10 ++++++++-- include/linux/thermal.h | 5 +++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a..1a75946a 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -312,6 +312,20 @@ static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, return 0; } +static int +of_thermal_get_trip_irq_mode(struct thermal_zone_device *tz, int trip, + bool *mode) +{ + struct __thermal_zone *data = tz->devdata; + + if (trip >= data->ntrips || trip < 0) + return -EDOM; + + *mode = data->trips[trip].irq_mode; + + return 0; +} + static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, int *temp) { @@ -394,6 +408,7 @@ static struct thermal_zone_device_ops of_thermal_ops = { .set_mode = of_thermal_set_mode, .get_trip_type = of_thermal_get_trip_type, + .get_trip_irq_mode = of_thermal_get_trip_irq_mode, .get_trip_temp = of_thermal_get_trip_temp, .set_trip_temp = of_thermal_set_trip_temp, .get_trip_hyst = of_thermal_get_trip_hyst, @@ -827,6 +842,8 @@ static int thermal_of_populate_trip(struct device_node *np, return ret; } + trip->irq_mode = of_property_read_bool(np, "irq-mode"); + /* Required for cooling map matching */ trip->np = np; of_node_get(np); diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 39fc812..6d41e08 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -406,6 +406,7 @@ static void handle_critical_trips(struct thermal_zone_device *tz, static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) { enum thermal_trip_type type; + bool irq_mode = false; /* Ignore disabled trip points */ if (test_bit(trip, &tz->trips_disabled)) @@ -419,9 +420,14 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) handle_non_critical_trips(tz, trip); /* * Alright, we handled this trip successfully. - * So, start monitoring again. + * So, start monitoring in polling mode if + * trip is not using irq HW support. */ - monitor_thermal_zone(tz); + if (tz->ops->get_trip_irq_mode) + tz->ops->get_trip_irq_mode(tz, trip, &irq_mode); + + if (!irq_mode) + monitor_thermal_zone(tz); } static void update_temperature(struct thermal_zone_device *tz) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 5f4705f..b064565 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -103,6 +103,7 @@ struct thermal_zone_device_ops { enum thermal_device_mode); int (*get_trip_type) (struct thermal_zone_device *, int, enum thermal_trip_type *); + int (*get_trip_irq_mode) (struct thermal_zone_device *, int, bool *); int (*get_trip_temp) (struct thermal_zone_device *, int, int *); int (*set_trip_temp) (struct thermal_zone_device *, int, int); int (*get_trip_hyst) (struct thermal_zone_device *, int, int *); @@ -196,6 +197,7 @@ struct thermal_zone_device { struct thermal_attr *trip_temp_attrs; struct thermal_attr *trip_type_attrs; struct thermal_attr *trip_hyst_attrs; + struct thermal_attr *trip_irq_mode_attrs; void *devdata; int trips; unsigned long trips_disabled; /* bitmap for disabled trips */ @@ -364,6 +366,8 @@ struct thermal_zone_of_device_ops { * @temperature: temperature value in miliCelsius * @hysteresis: relative hysteresis in miliCelsius * @type: trip point type + * @irq_mode: to not use polling in framework set support of HW irq (which will + * be triggered when temperature reaches this level). */ struct thermal_trip { @@ -371,6 +375,7 @@ struct thermal_trip { int temperature; int hysteresis; enum thermal_trip_type type; + bool irq_mode; }; /* Function declarations */ From patchwork Wed Nov 7 17:09:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672643 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 3475B15E9 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 2069B2CB92 for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1227F2CB9E; 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 DCF812CB92 for ; Wed, 7 Nov 2018 17:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731529AbeKHCl4 (ORCPT ); Wed, 7 Nov 2018 21:41:56 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57232 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731523AbeKHCl4 (ORCPT ); Wed, 7 Nov 2018 21:41:56 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171039euoutp024971ec2ae09a47804d5174286275ba6d~k5rVpmd7N0522705227euoutp02o for ; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107171039euoutp024971ec2ae09a47804d5174286275ba6d~k5rVpmd7N0522705227euoutp02o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610639; bh=YL3IJQwlo5YNFrxIFkhGqiDAirUyPIfzICP0/e+gE7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHqHAyTmvwvpTjRB2d9fNzoB2bGyZujVoBduhem9BTmpOgmw7KVYRyMgQBInYUziX 7CKRDs3NAhpqPxF6uXhaQC5kJ6RkuvMGFbmuNlyns+4HOpwlWiEf6JmA0cdVR+3oAZ ctI65kLxexHGHFzGIiV4hAMIHUJkqDseh8hTAreA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107171038eucas1p292430d46f08d158b7215189ae6ca9dce~k5rU3DtQp2736727367eucas1p2P; Wed, 7 Nov 2018 17:10:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0D.C9.04806.E8C13EB5; Wed, 7 Nov 2018 17:10:38 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171037eucas1p1b475d186830d4401b50fcd2c16781f92~k5rUKMp8M2722727227eucas1p1o; Wed, 7 Nov 2018 17:10:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171037eusmtrp1849f58adcee14907f134c1a1feeb8e5f~k5rT_RLFE2472724727eusmtrp1i; Wed, 7 Nov 2018 17:10:37 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-07-5be31c8ee8ce Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D9.23.04128.D8C13EB5; Wed, 7 Nov 2018 17:10:37 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171036eusmtip2ca02211d4f808bc8c04f2b37a104af99~k5rTXwDg70341103411eusmtip2G; Wed, 7 Nov 2018 17:10:36 +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 03/11] thermal: add new sysfs file for irq-mode Date: Wed, 7 Nov 2018 18:09:45 +0100 Message-Id: <1541610593-28542-4-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: H4sIAAAAAAAAA0VSa0hTYRju29k5OxtOTrP0zcxgIVSQdvHHiaKLRJwSIoIIXFCnOqk0p+44 u0KD0qnpWiraRbdiWbnWxWVistTMtBlumqaWi24GZVjEKnWV5jyr/j3P+z6Xj5ePxBQ1eCSZ qsnitBpWrSRk4rq2cc8SY9Q71dLyfildc/YWTg81GxBt9s2jLa1unLb09uG0x3NbQr/QR9GO d1PsUu5lMd3TUEHQvqJWRFf1d4vonPutEnrojZFYF8rYzXbE3Dv/UsJYnR9FjMOWTzDePifB 3Ll8nLEaS3DmwWeniDHW2hDjc0RvlSXJVu/j1KnZnDZuzW5ZStlvRcaV6EMDr0pxPfoJBYgk gYoH1+mkAiQjFdQ1BCdv5IoE8g2BodBJCMSHwHH7q6QASacdlU3u4OIqgseDVuyfpehLuSiQ S1CxUG/LDMxnURcQ+BqtkgDBKC+CjtKAQ0qGUQnwbKwYD2AxFQMm1zgRMMupzXDBD0JbNDx3 50/LpVQimHtGpnOAapOAydxMCKINYLp7VizgMBhurw0+NQqelBQG5zx05tmC+mNgcNUHNavg YXs3HujFqEVwqyFOuMt6sFWpBRgKAyMzA2JsChbXlWPCWA55uQohYyHUFnaJBBwOV+1lwWwG Ks9M4MJ1zAg++drEJjT//P+uiwjZUASn49OSOX6FhjsYy7NpvE6THLs3Pc2Bpj7Sk4n27/Wo 8deeFkSRSBki77r7RqXA2Wz+cFoLAhJTzpIXXX+rUsj3sYePcNr0XVq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TxqfVMzvE7ZI/rZa4VO3Mu+fhzE3VP1Jc607yb/U1 WTB1/+flYstMdiixFGckGmoxFxUnAgDx6PwnqAIAAA== X-CMS-MailID: 20181107171037eucas1p1b475d186830d4401b50fcd2c16781f92 X-Msg-Generator: CA X-RootMTR: 20181107171037eucas1p1b475d186830d4401b50fcd2c16781f92 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171037eucas1p1b475d186830d4401b50fcd2c16781f92 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 Patch adds show functions for irq-mode feature. It allocates new attributes and extends the old list. Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Signed-off-by: Lukasz Luba --- drivers/thermal/thermal_sysfs.c | 53 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c index 2241cea..372b439 100644 --- a/drivers/thermal/thermal_sysfs.c +++ b/drivers/thermal/thermal_sysfs.c @@ -21,6 +21,8 @@ #include "thermal_core.h" +#define TRIP_ATTR_NUM 4 + /* sys I/F for thermal zone */ static ssize_t @@ -167,6 +169,28 @@ trip_point_temp_show(struct device *dev, struct device_attribute *attr, } static ssize_t +trip_point_irq_mode_show(struct device *dev, struct device_attribute *attr, + char *buf) +{ + struct thermal_zone_device *tz = to_thermal_zone(dev); + int trip, ret; + bool mode; + + if (!tz->ops->get_trip_irq_mode) + return -EPERM; + + if (sscanf(attr->attr.name, "trip_point_%d_irq", &trip) != 1) + return -EINVAL; + + ret = tz->ops->get_trip_irq_mode(tz, trip, &mode); + + if (ret) + return ret; + + return sprintf(buf, "%d\n", mode); +} + +static ssize_t trip_point_hyst_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { @@ -520,10 +544,19 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int mask) if (!tz->trip_type_attrs) return -ENOMEM; + tz->trip_irq_mode_attrs = kcalloc(tz->trips, + sizeof(*tz->trip_irq_mode_attrs), + GFP_KERNEL); + if (!tz->trip_irq_mode_attrs) { + kfree(tz->trip_type_attrs); + return -ENOMEM; + } + tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), GFP_KERNEL); if (!tz->trip_temp_attrs) { kfree(tz->trip_type_attrs); + kfree(tz->trip_irq_mode_attrs); return -ENOMEM; } @@ -533,14 +566,17 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int mask) GFP_KERNEL); if (!tz->trip_hyst_attrs) { kfree(tz->trip_type_attrs); + kfree(tz->trip_irq_mode_attrs); kfree(tz->trip_temp_attrs); return -ENOMEM; } } - attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); + attrs = kcalloc(tz->trips * TRIP_ATTR_NUM + 1, sizeof(*attrs), + GFP_KERNEL); if (!attrs) { kfree(tz->trip_type_attrs); + kfree(tz->trip_irq_mode_attrs); kfree(tz->trip_temp_attrs); if (tz->ops->get_trip_hyst) kfree(tz->trip_hyst_attrs); @@ -559,6 +595,19 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int mask) tz->trip_type_attrs[indx].attr.show = trip_point_type_show; attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; + /* create trip irq_mode attribute */ + snprintf(tz->trip_irq_mode_attrs[indx].name, + THERMAL_NAME_LENGTH, "trip_point_%d_irq", indx); + + sysfs_attr_init(&tz->trip_irq_mode_attrs[indx].attr.attr); + tz->trip_irq_mode_attrs[indx].attr.attr.name = + tz->trip_irq_mode_attrs[indx].name; + tz->trip_irq_mode_attrs[indx].attr.attr.mode = S_IRUGO; + tz->trip_irq_mode_attrs[indx].attr.show = + trip_point_irq_mode_show; + attrs[indx + tz->trips * 3] = + &tz->trip_irq_mode_attrs[indx].attr.attr; + /* create trip temp attribute */ snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, "trip_point_%d_temp", indx); @@ -595,7 +644,7 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int mask) attrs[indx + tz->trips * 2] = &tz->trip_hyst_attrs[indx].attr.attr; } - attrs[tz->trips * 3] = NULL; + attrs[tz->trips * TRIP_ATTR_NUM] = NULL; tz->trips_attribute_group.attrs = attrs; 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 vqR6bUfV5zZyyRntC4y0FY8Assk4zSEf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Sy3S t0vQy3hz8AlTwR+hioe377A3MM7l72Lk5JAQMJHYceUzWxcjF4eQwFJGiR/XfrNBJMQkJu3b zg5hC0v8udYFVfSJUeJn813mLkYODjYBPYkdqwpB4iIC8xkljm66DFbELPCMUWLl9JdMIN3C As4Su67vApvEIqAqsXbtObA4r4CXxP69k5ghNshJ3DzXCWZzCnhLzLv8FqxeCKjm+6z1bBMY +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 From patchwork Wed Nov 7 17:09:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672647 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 0823B18FD for ; Wed, 7 Nov 2018 17:10:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECD5A2CB92 for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E061A2CBC0; 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 745792CB99 for ; Wed, 7 Nov 2018 17:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731545AbeKHCl7 (ORCPT ); Wed, 7 Nov 2018 21:41:59 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54878 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731502AbeKHCl6 (ORCPT ); Wed, 7 Nov 2018 21:41:58 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171041euoutp015ea0b905ddf9d7c014ee0d847b656a34~k5rXoekAu2287822878euoutp01O for ; Wed, 7 Nov 2018 17:10:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171041euoutp015ea0b905ddf9d7c014ee0d847b656a34~k5rXoekAu2287822878euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610641; bh=ieA62//icH3sN534y4WduRONZ7BGyV+dTJD6+lsC1Uc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S3xgE38VaLT9mH49bY8KyabDY4LV2IVgQ2gah7S0d4I3oMygELYEJnXeipBwdZzwn U17ChQa1RJ0jcMQhntLBwOF/FqxMDjhD+fBdjsGL7sO6YykMXY0jqqt87AFKAdkeT6 BeD0lflZoqBR9R/6wXNwbZM6wZ6WhiIQubV/z+a0= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171040eucas1p171b453f64b6e663696bb8ff4e5977ab3~k5rW3lNU72722727227eucas1p1p; Wed, 7 Nov 2018 17:10:40 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E5.64.04294.09C13EB5; Wed, 7 Nov 2018 17:10:40 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181107171039eucas1p2227bd4bc573fd0d2a3a97986004be16b~k5rWOnvg82796227962eucas1p2X; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171039eusmtrp1d7c5234efc852adb3c4ecf14d2089a98~k5rWCyZnf2472724727eusmtrp1k; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-c0-5be31c907189 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9C.23.04128.F8C13EB5; Wed, 7 Nov 2018 17:10:39 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171039eusmtip2f98159ddfb4c2381755683c5e71b98c6~k5rVe8tOq0341103411eusmtip2I; Wed, 7 Nov 2018 17:10:39 +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 05/11] Doc: DT: thermal: new irq-mode for trip point Date: Wed, 7 Nov 2018 18:09:47 +0100 Message-Id: <1541610593-28542-6-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: H4sIAAAAAAAAA+NgFtrEKsWRmVeSWpSXmKPExsWy7djPc7oTZB5HG5x4LGSxccZ6VosnB9oZ LeZ9lrWYf+Qcq8X8K9dYLc6f38BucatBxmLTYyBvYdsSFovLu+awWXzuPcJosfT6RSaL1r1H 2C2ePOxjc+DzWDNvDaPHzll32T0W73nJ5LFpVSebx51re9g8Ni+p91jcN5nV4+C7PUwefVtW MXp83iQXwBXFZZOSmpNZllqkb5fAlTGz8SNzwXz+igfPDzI1ME7j6WLk4JAQMJE4sTKui5GL Q0hgBaPElf9r2CGcL4wSm97sYYRwPjNKPP31nQ2mY8YkBYj4ckaJOa+2M8N1XLy3nhWkiE1A T2LHqkKQuIjAbEaJz/sWg41lFrjDKHFqymJmkCJhAXeJM3PDuxg5OVgEVCXuP33CAmLzCnhJ HFn1lhnElhCQk7h5rhPM5hTwlph3+S3YHAmBY+wSD3qb2CGKXCRenIVolhAQlnh1fAtUXEbi 9OQeqHixxNmOVWwQdo1E+8kdUDXWEoePXwQ7mllAU2L9Ln2IsKPEya1/WCEe5pO48VYQJMwM ZE7aNp0ZIswr0dEmBFGtIbGl5wIThC0msXzNNKjhHhLt/yZDw3AeMAynbmWdwCg/C2HZAkbG VYziqaXFuempxUZ5qeV6xYm5xaV56XrJ+bmbGIEp6fS/4192MO76k3SIUY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Qe6HOMOf7ny73WO7XTgmfXBvhZF6tsn6Opc272 EgNL/gWn1Bma372bvaT7kH8ry/sHU2NPHI/1b/Fn3Ghoe3vlQdatex1X6l1k5fh/KPLo4eoq yeZVvz6t2Sm50rtIiaU4I9FQi7moOBEAZusvNKgCAAA= X-CMS-MailID: 20181107171039eucas1p2227bd4bc573fd0d2a3a97986004be16b X-Msg-Generator: CA X-RootMTR: 20181107171039eucas1p2227bd4bc573fd0d2a3a97986004be16b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171039eucas1p2227bd4bc573fd0d2a3a97986004be16b 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 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 ca14ba9..bee21e3 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; }; }; From patchwork Wed Nov 7 17:09:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672673 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 9D26F175A for ; Wed, 7 Nov 2018 17:11:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CDDC2CBC0 for ; Wed, 7 Nov 2018 17:11:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8053D2CBD0; Wed, 7 Nov 2018 17:11:24 +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 C45472CBC0 for ; Wed, 7 Nov 2018 17:11:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731597AbeKHCmB (ORCPT ); Wed, 7 Nov 2018 21:42:01 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57241 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731541AbeKHCmA (ORCPT ); Wed, 7 Nov 2018 21:42:00 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171042euoutp02d2bf9cef8e69f25794b08fbe4f8eafac~k5rZF3E9y0448104481euoutp02N for ; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107171042euoutp02d2bf9cef8e69f25794b08fbe4f8eafac~k5rZF3E9y0448104481euoutp02N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610643; bh=Z1YsDuDqKlskrg/CVSgaixZZ2C4GhBivvX7W7GWawhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iaR/6Prhby05Xtjm0Xzpy5416HFMMmWrYrSMdKIik1ybQGX1gIu3cd4pGkokM0PqZ mcSUUCNqnxVEoXbyYbaYtRl0TIMsXnOjVy6nJasuKp8L1Og9uQ1lHJ4+vYs4pk6GnZ tkgL05Luuu0AKevvOialvZly68mYjzuO0oL2Vvbk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171041eucas1p14cba150376baadc063cb4ee342ef9b53~k5rX8Zqdr2713827138eucas1p1q; Wed, 7 Nov 2018 17:10:41 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id CF.C9.04806.19C13EB5; Wed, 7 Nov 2018 17:10:41 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f~k5rXWV08_2713827138eucas1p1p; Wed, 7 Nov 2018 17:10:41 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171040eusmtrp18347a2a9b53b3ccd524d5130b02f1b4f~k5rXKbIYu2472624726eusmtrp1o; Wed, 7 Nov 2018 17:10:40 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-10-5be31c91258b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8D.23.04128.09C13EB5; Wed, 7 Nov 2018 17:10:40 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171040eusmtip25bb9ca8d55565755f260653b2aba3b50~k5rWfCR-V0340803408eusmtip2T; Wed, 7 Nov 2018 17:10:40 +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 , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 06/11] arm64: dts: exynos5433: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:48 +0100 Message-Id: <1541610593-28542-7-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: H4sIAAAAAAAAA0WSa0hTYRjHe8/ZubicHOftzdRoUFiQFgqeMNIi4lB90MAgR+XMg0re2nGW lXfylpdSTNGaioq2FHNeUJlDbTREU5fhDUXN+SFvJbPQSmnzGH37Pf/n//yfh5eXRMXdmDMZ GRPPymNkURJcKOj4sD186oXLovT01s+jdEtZM0Ybe7MArTS50pW6YYyu/DyO0YWLKyg9MvKO oKdTXWj1olmqzqwV0GPdr3DalK8DdNmIFqHrJgwI/bRHR9DGhQLcn2IalY2A6SqfJZgazVeE UatycGZm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TA2MzXpdjBwcEgImEp3NUV2MXBxCAksZJf6t PM7UxcgJFBeTmLRvOzuELSzx51oXG0TRJ0aJk22H2UGa2QT0JHasKgSJiwjMZ5Q4uukyWBGz wBomia2HzjOCFAkLhEscf1QNMohFQFWisfcJK4jNK+AlsfnuQmaIBXISN891gtmcAt4S8y6/ BVssBFTzfdZ6tgmMfAsYGVYxiqSWFuem5xYb6RUn5haX5qXrJefnbmIERs62Yz+37GDsehd8 iFGAg1GJh1djx8NoIdbEsuLK3EOMEhzMSiK8vasfRQvxpiRWVqUW5ccXleakFh9iNAU6aiKz lGhyPjCq80riDU0NzS0sDc2NzY3NLJTEec8bVEYJCaQnlqRmp6YWpBbB9DFxcEo1MCrXT4/X jct7wfXz7bmZU2/nvGOL87DPCmAqPfBrWlXGek7WC/uNNr9QilV741PJLyP5+cv7qm+1nC1l j5muTJ0XkjBztqrc2e9axuZMzM8qVjhP3jf5yH03f9vjs7Zk+bRMPH5Fpm31d+5dUROElyh9 uqMv5Sjd0SRu2vvSbq6+xr/5Hi9u/1FiKc5INNRiLipOBABCgnoHsgIAAA== X-CMS-MailID: 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f X-Msg-Generator: CA X-RootMTR: 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Exynos5433 supports 8 trip point which will trigger IRQ. Above that number other trip points should be registered without 'irq-mode' flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi | 105 ++++++++++++++++--------- 1 file changed, 70 insertions(+), 35 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi index fe3a0b1..c4330f6 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi @@ -17,37 +17,44 @@ thermal-zones { atlas0_alert_0: atlas0-alert-0 { temperature = <65000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_1: atlas0-alert-1 { temperature = <70000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_2: atlas0-alert-2 { temperature = <75000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_3: atlas0-alert-3 { temperature = <80000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_4: atlas0-alert-4 { temperature = <85000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_5: atlas0-alert-5 { temperature = <90000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas0_alert_6: atlas0-alert-6 { temperature = <95000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; }; @@ -98,37 +105,44 @@ thermal-zones { atlas1_alert_0: atlas1-alert-0 { temperature = <65000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_1: atlas1-alert-1 { temperature = <70000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_2: atlas1-alert-2 { temperature = <75000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_3: atlas1-alert-3 { temperature = <80000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_4: atlas1-alert-4 { temperature = <85000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_5: atlas1-alert-5 { temperature = <90000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; atlas1_alert_6: atlas1-alert-6 { temperature = <95000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; }; }; @@ -141,37 +155,44 @@ thermal-zones { g3d_alert_0: g3d-alert-0 { temperature = <70000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_1: g3d-alert-1 { temperature = <75000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_2: g3d-alert-2 { temperature = <80000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_3: g3d-alert-3 { temperature = <85000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_4: g3d-alert-4 { temperature = <90000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_5: g3d-alert-5 { temperature = <95000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; g3d_alert_6: g3d-alert-6 { temperature = <100000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; }; }; @@ -184,37 +205,44 @@ thermal-zones { apollo_alert_0: apollo-alert-0 { temperature = <65000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_1: apollo-alert-1 { temperature = <70000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_2: apollo-alert-2 { temperature = <75000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_3: apollo-alert-3 { temperature = <80000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_4: apollo-alert-4 { temperature = <85000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_5: apollo-alert-5 { temperature = <90000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; apollo_alert_6: apollo-alert-6 { temperature = <95000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; }; @@ -255,37 +283,44 @@ thermal-zones { isp_alert_0: isp-alert-0 { temperature = <80000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_1: isp-alert-1 { temperature = <85000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_2: isp-alert-2 { temperature = <90000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_3: isp-alert-3 { temperature = <95000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_4: isp-alert-4 { temperature = <100000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_5: isp-alert-5 { temperature = <105000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; isp_alert_6: isp-alert-6 { temperature = <110000>; /* millicelsius */ hysteresis = <1000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; }; }; From patchwork Wed Nov 7 17:09:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672649 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 408D51751 for ; Wed, 7 Nov 2018 17:10:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30DC32CB92 for ; Wed, 7 Nov 2018 17:10:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24BDC2CB9E; Wed, 7 Nov 2018 17:10:48 +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 99F172CB92 for ; Wed, 7 Nov 2018 17:10:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731527AbeKHCmC (ORCPT ); Wed, 7 Nov 2018 21:42:02 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57282 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731570AbeKHCmA (ORCPT ); Wed, 7 Nov 2018 21:42:00 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171043euoutp02e10f2a2604b4ccf4155971cf7a5c6b3e~k5rZzQu4h0448104481euoutp02O for ; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107171043euoutp02e10f2a2604b4ccf4155971cf7a5c6b3e~k5rZzQu4h0448104481euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610643; bh=1sKQQ9HBtyWBDeRJiaiW2nZDp0IwV4UD2ezll2nOdGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kVg2jShAzwjxhsQSk25F9sTYR8TgI/GaOQkBvyAqE2XZdVKDmdcmcK/zm3eUFUvON z+FwQNw5GWEb6FKo67NufN1KiPyhCZTsDvkSMCxrSZ363BG6B1yqkBYRGkIsffAKir qtcUmzRLVB8qLWPMkH2zMmsnyXgs64zsXt1VBbhw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171042eucas1p136cdbcdf2c359f023001c204ea5b49e3~k5rZFMa2p3085730857eucas1p1b; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id F6.64.04294.29C13EB5; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171042eucas1p1675eb589f3951e516461a0a775ee87da~k5rYd5JFx2717527175eucas1p1t; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171042eusmtrp1672314366d4e9e59191de155c267e49f~k5rYR_3Bs2472624726eusmtrp1p; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-c5-5be31c928371 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BE.23.04128.19C13EB5; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171041eusmtip22e1c5fbf86568bf0ce72853ac8a2b8e8~k5rXmmKT90341503415eusmtip2B; Wed, 7 Nov 2018 17:10:41 +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 , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 07/11] arm64: dts: exynos7: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:49 +0100 Message-Id: <1541610593-28542-8-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: H4sIAAAAAAAAA0WSe0hTYRjG+3Z2tuNy+TWlXtSMFqEGzcwuJ5UwEDqVf0hQRIK28qSSTt1R ywySvF8rjSYaU1FTlpdaZipT0rwg3i9ZmYKlmBkGOSvEajnPrP9+7/M+7/O+fHwUIWsh7akw VQyrVinD5SKJsKFrZXBfnuNMwP7X0wr6aUEdSc++TEO01riDLu4YIOnisXGSvjPzhaAHB5+I 6YlER1o/syaVppYL6dHmhyLamNOB6ILBVgFd8WZYQKe0dIj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daGZkq 6dvZpKTmZJalFunbJehlbP+8nLHgK3/FurYVbA2M53i6GDk5JARMJF6097B0MXJxCAksZZRY u7afESIhJjFp33Z2CFtY4s+1LjaIok+MEo/eXgMq4uBgE9CT2LGqECQuIjCfUeLopstgRcwC a5gkth46DzZJWCBEYsb0fcwgNouAqsSzbR0sIDavgJfEo3lvmSE2yEncPNcJZnMKeEvMu/wW bLMQUM33WevZJjDyLWBkWMUoklpanJueW2ykV5yYW1yal66XnJ+7iREYPduO/dyyg7HrXfAh RgEORiUeXo0dD6OFWBPLiitzDzFKcDArifD2rn4ULcSbklhZlVqUH19UmpNafIjRFOioicxS osn5wMjOK4k3NDU0t7A0NDc2NzazUBLnPW9QGSUkkJ5YkpqdmlqQWgTTx8TBKdXAmLNvpiJ/ yP8dneJTl725uslocdyDhZ8rcg3CFjG+vZ3Hu6Uv79rFkgv3sqfdOBZ5tWTxbKN/DV03N9be vlHvdNVA8ZbbQQk78Q1sp99mJxwT67F5qDFzmUL5eaM5lStMOn0V9ujIm6bcvSz6VV05TY1X o4l54lWGzYHBVU0yN+yDSsQPVNW5KLEUZyQaajEXFScCAI54qLO0AgAA X-CMS-MailID: 20181107171042eucas1p1675eb589f3951e516461a0a775ee87da X-Msg-Generator: CA X-RootMTR: 20181107171042eucas1p1675eb589f3951e516461a0a775ee87da X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171042eucas1p1675eb589f3951e516461a0a775ee87da 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Change existing trip points to be expicitly marked with the new flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi index d3301b8..39185af 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi @@ -11,40 +11,48 @@ trips { temperature = <75000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-1 { temperature = <80000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-2 { temperature = <85000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-3 { temperature = <90000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-4 { temperature = <95000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-5 { temperature = <100000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-6 { temperature = <110000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-crit-0 { temperature = <115000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; }; From patchwork Wed Nov 7 17:09:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672667 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 2396D1751 for ; Wed, 7 Nov 2018 17:11:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 132F82CBC0 for ; Wed, 7 Nov 2018 17:11:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07C142CBF2; Wed, 7 Nov 2018 17:11:19 +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=unavailable 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 E394B2CBCB for ; Wed, 7 Nov 2018 17:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731626AbeKHCmC (ORCPT ); Wed, 7 Nov 2018 21:42:02 -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 S1731573AbeKHCmC (ORCPT ); Wed, 7 Nov 2018 21:42:02 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171045euoutp01dfd42af6e46e50a10c87a0d58aec50a6~k5rbCLWQT2205222052euoutp014 for ; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171045euoutp01dfd42af6e46e50a10c87a0d58aec50a6~k5rbCLWQT2205222052euoutp014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610645; bh=0WFLEzAw2aavBK3I3OCjzkbVzKlMAaSYdb55506bcLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHDKlaYFutykon+xuEEHvsJiXgW30bvazqNpKWALFkyIMVveyYuEUrBWG1DfQ+l/F YGXN4BDLjKbcTnYl51OaaRSrunHCOvZQmCnoIKiEuw+T3FRPSzu0bb0qq8nd7b3Acj KQd4vvTYJKUajhQnnn2TCa7abSLiRfyUY6PdaoJg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171044eucas1p13ae4deff325bdfcc14ed4cf1c1fea211~k5raMvwvk2318323183eucas1p1H; Wed, 7 Nov 2018 17:10:44 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 38.64.04294.39C13EB5; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171043eucas1p16be3fa901c7bceb129c70fc81dba6e48~k5rZfeL-_3085730857eucas1p1d; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171043eusmtrp1c9acb4456537ee03616de44eccab9dca~k5rZTgZXz2472624726eusmtrp1q; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-c8-5be31c930bb9 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id EF.23.04128.39C13EB5; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171042eusmtip25b8b49cf290ae30058e6ad32c6256fe7~k5rYrNGek0340803408eusmtip2U; Wed, 7 Nov 2018 17:10:42 +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 , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 08/11] arm: dts: exynos4: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:50 +0100 Message-Id: <1541610593-28542-9-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: H4sIAAAAAAAAA0WSWUwTQRzGnd3udluoWQqRCSKYRlFMBETBTTAGDSYbfPHBxCgPWmE5lAJ2 AS2aiCFyVECUoICmYDhba4CKiBxFCpEgSiEQbg9u1ECEIoI1KstWfft933z/YyZDoFIj5kJE xcQzyhh5tAwXC+perXXvzXWdDPF5v+hH1eRXYdTUyzRAaSzbqKL2bowq6h/AqNuTX1DKbK4W UiPJrpRhct16lFoqoPoaHuKUJasdUPlmI0KVDfYi1M3mdiE1NZ6NB5K0XqMH9IvCd0K6pOkT Qht0GTg9NtCE009Lr9Ml2bkY3brQhNDZtTpAWwxuJ8RnxIfCmOioREbpfficOPJHZzUe129/ pVU/iyWDbyI1EBGQPACT89eAGogJKVkJYMHEkE0sA7i0MGUTFgBzWqwCNSA2SobHdvB+BYDp GXPYv4pOaxHgQjjpBet1lzjfiXwAoMVYIuQEShYjcNH6RMANdyRPwlvlRoRjAbkTjva9wTmW kMFwenQU4xd0g8PdGSjHIvI41PTNbzSC5IAQTq80CvlQEDQ/L0N5doSfO2ptvivsys0U8MzC t+k6nOdrMK2z3pYJgG0dvRi3NUp6wqoGb94+AlfvZCL8jTfDoXkHzkbX8W7dfZS3JTA9Vcqn d8PazB6E5y2wQn/P1pyGKx9SUf59NAB+XygHOcC98P+wYgB0wJlJYBURDOsbw1z2YuUKNiEm wis0VmEA67+q61fHcj1o+HneBE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65zEgm50PO2m5jT52b ObEdVx97T8yxd970iP/4XrYb0+92RWzTib20d6bD+U+Fh0N3rLJvm/A7+fIVtysm5QuCV1Tb rWVRWJF7Q2Cft0LnZLY6qxtJx4U8TEyVWIozEg21mIuKEwFk1ewKswIAAA== X-CMS-MailID: 20181107171043eucas1p16be3fa901c7bceb129c70fc81dba6e48 X-Msg-Generator: CA X-RootMTR: 20181107171043eucas1p16be3fa901c7bceb129c70fc81dba6e48 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171043eucas1p16be3fa901c7bceb129c70fc81dba6e48 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Change existing trip points to be expicitly marked with the new flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos4-cpu-thermal.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi b/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi index 021d9fc..5e07289 100644 --- a/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi +++ b/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi @@ -17,22 +17,26 @@ thermal-zones { cpu_alert0: cpu-alert-0 { temperature = <70000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_alert1: cpu-alert-1 { temperature = <95000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_alert2: cpu-alert-2 { temperature = <110000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_crit0: cpu-crit-0 { temperature = <120000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; }; cooling-maps { From patchwork Wed Nov 7 17:09:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672665 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 00E0913BF for ; Wed, 7 Nov 2018 17:11:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E50962CBA4 for ; Wed, 7 Nov 2018 17:11:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8F492CBCB; Wed, 7 Nov 2018 17:11:10 +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=unavailable 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 E985D2CBA4 for ; Wed, 7 Nov 2018 17:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbeKHCmW (ORCPT ); Wed, 7 Nov 2018 21:42:22 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54946 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731570AbeKHCmC (ORCPT ); Wed, 7 Nov 2018 21:42:02 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171046euoutp016be7aebbd0df42049e54b0487228399c~k5rb81Hqu2205222052euoutp016 for ; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171046euoutp016be7aebbd0df42049e54b0487228399c~k5rb81Hqu2205222052euoutp016 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610646; bh=7wpBMAvXa5tM9FimGk9u449eww/CHKCAsVOJ9u7rXVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KOkNLO6oTv1v1T9weJCHKvsvJilNNgZwS6JY/n3EfT9H0CQGMAACPm979yozKrZBM IGr0KRMF5vxi/7oroezUmNrvNm14Bue42ktTz0wADRAoI1ytpJHRIn5SL95punBtp1 cvoiF0utgWVBNojGIYwEJL07xQE3BKutI0o8Jcrw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107171045eucas1p2095285d9bc3eb48dfcccb75a45883f64~k5rbUXkRQ2800528005eucas1p2R; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 49.64.04294.59C13EB5; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171044eucas1p198434e21cf21ee754302615a6a8f3c20~k5rahNs_f2903729037eucas1p1h; Wed, 7 Nov 2018 17:10:44 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107171044eusmtrp1b841c5c4c0a7094f01931a88ad14016e~k5raVGZNv2472724727eusmtrp1n; Wed, 7 Nov 2018 17:10:44 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-ca-5be31c9552e5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F0.33.04128.49C13EB5; Wed, 7 Nov 2018 17:10:44 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171043eusmtip2645b143696bfc3435d82bcf4f59368da~k5rZtA12x0341503415eusmtip2C; Wed, 7 Nov 2018 17:10:43 +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 , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 09/11] arm: dts: exynos5420: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:51 +0100 Message-Id: <1541610593-28542-10-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: H4sIAAAAAAAAA0WSe0hTYRjG+85lO04Xpyn54S1ZhF3IS0geKCJJ4kB0sYIgoVp5UMup7ehq KmR4X2p5F8u5UHPMiZeWzGupw1GS97xmaDPISq1mf4QmbZ6J//2+532e54WXj0BFnbgbERUT z8hiJNFingBr6fs7cLjYwxzmPzxKUE1lDTi18CYTUCqLJ1VpHMCpyrFxnHps/o5Sg4ONfGo6 xYNqNlul5xnVGDXa9oxHWXKNgCob7EKomolhhErvNPKphfk83kmS1ql0gG4tn+XTVR2LCN2s zebRH8c7ePTL6gd0VV4hTncvdyB0nl4LaEuz1wXBVcHxcCY6Ss7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JMYlJ+7azQ9jCEn+udbFBFH1ilGh538zSxcjBwSagJ7FjVSFIXERgPqPE0U2XwYqY BdYwSWw9dJ4RpFtYIFTi0qKlYFNZBFQlJi9YzQ7SzCvgLdG5wg1igZzEzXOdYCWcQOF5l9+C LRYS8JL4Pms92wRGvgWMDKsYRVJLi3PTc4uN9IoTc4tL89L1kvNzNzECY2fbsZ9bdjB2vQs+ xCjAwajEw6ux42G0EGtiWXFl7iFGCQ5mJRHe3tWPooV4UxIrq1KL8uOLSnNSiw8xmgLdNJFZ SjQ5HxjXeSXxhqaG5haWhubG5sZmFkrivOcNKqOEBNITS1KzU1MLUotg+pg4OKUaGPt3NP0P m8Ds6h/J99mh0TiijGuTYsfEGpPtWsf27Uur25gis0xxf59W5WnzBg6v15NeFW88ox70V/0t Q7/1uS8LH+3ev/xFrILKgpx2R4uI/RXzvjAkOy+qUli1Pi+Ml/HOl+QFEnNf2q9a/nFL94V7 B59/XMp2t9zpWtxr/dM5Og12dkYGJ5VYijMSDbWYi4oTAV7BuY2zAgAA X-CMS-MailID: 20181107171044eucas1p198434e21cf21ee754302615a6a8f3c20 X-Msg-Generator: CA X-RootMTR: 20181107171044eucas1p198434e21cf21ee754302615a6a8f3c20 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171044eucas1p198434e21cf21ee754302615a6a8f3c20 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Change existing trip points to be expicitly marked with the new flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5420-trip-points.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420-trip-points.dtsi b/arch/arm/boot/dts/exynos5420-trip-points.dtsi index a67a3807..9e16970 100644 --- a/arch/arm/boot/dts/exynos5420-trip-points.dtsi +++ b/arch/arm/boot/dts/exynos5420-trip-points.dtsi @@ -11,21 +11,25 @@ trips { cpu-alert-0 { temperature = <85000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu-alert-1 { temperature = <103000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu-alert-2 { temperature = <110000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu-crit-0 { temperature = <120000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; }; From patchwork Wed Nov 7 17:09:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672657 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 9569113BF for ; Wed, 7 Nov 2018 17:10:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 812D42CB9E for ; Wed, 7 Nov 2018 17:10:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7591D2CBCB; Wed, 7 Nov 2018 17:10:57 +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 ECC762CB9E for ; Wed, 7 Nov 2018 17:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387890AbeKHCmG (ORCPT ); Wed, 7 Nov 2018 21:42:06 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57233 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387517AbeKHCmE (ORCPT ); Wed, 7 Nov 2018 21:42:04 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171047euoutp020b544843b154d721766f337d8b645c7a~k5rdF7qke0487204872euoutp02E for ; Wed, 7 Nov 2018 17:10:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107171047euoutp020b544843b154d721766f337d8b645c7a~k5rdF7qke0487204872euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610647; bh=DQrr2G8nCrd45JW06oy8w1vdeAOBojDxdwLvk9eFqw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=shmz/IMIVzFt7A6d9lkerZ4um62iamcNKnraQuPh9uNOPqQAEG4qp/8YLgKNo0CTv 7wzG4k4OWGQKpQu1aRPNfvTdgUOCsoFtkCfTXfhuG15htTufNyjPDor3KpJEm4t7wG jX/m1DncDZEhx0Gc7oXajtE7Ru1/qyhbhB2p+PIs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107171046eucas1p2e9b48d585eac0485fa44985e201bbef0~k5rcQCAed2796627966eucas1p2W; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 7A.64.04294.69C13EB5; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181107171045eucas1p26ec5feb1b2a397971c919592f6d87b40~k5rbkWmy42801828018eucas1p2S; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181107171045eusmtrp23cfae2884156db7bea33d77a5cde3d6d~k5rbYKcRR0545505455eusmtrp2l; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-cd-5be31c965326 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 34.8F.04284.59C13EB5; Wed, 7 Nov 2018 17:10:45 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171044eusmtip272a1ff6fa730a0b1b829c17aeec342ae~k5rawO5DW0340803408eusmtip2V; Wed, 7 Nov 2018 17:10:44 +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 , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 10/11] arm: dts: exynos5422: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:52 +0100 Message-Id: <1541610593-28542-11-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.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AAA+NgFprHIsWRmVeSWpSXmKPExsVy+t/xe7pTZR5HG2xbKWmxccZ6VosnB9oZ LeZ9lrWYf+Qcq8X8K9dYLfofv2a2OH9+A7vFrQYZi02PgUIL25awWFzeNYfN4nPvEUaLGef3 MVksvX6RyaJ17xF2iycP+9gcBDzWzFvD6LFz1l12j8V7XjJ5bFrVyeZx59oeNo/NS+o9FvdN ZvU4+G4Pk0ffllWMHp83yQVwRenZFOWXlqQqZOQXl9gqRRtaGOkZWlroGZlY6hkam8daGZkq 6dvZpKTmZJalFunbJehlPDz0lr3guVzF16V7WBsYL4t2MXJwSAiYSHzs0+hi5OIQEljKKDHv /irGLkZOoLiYxKR929khbGGJP9e62EBsIYFPjBIfbnqA9LIJ6EnsWFUI0isiMJ9R4uimy2wg DrPAGiaJrYfOgw0SFgiV+Hv6NBNIA4uAqsTmNfUgYV4Bb4mVa9dC7ZKTuHmukxnE5gSKz7v8 lh1il5fE91nr2SYw8i1gZFjFKJJaWpybnltsqFecmFtcmpeul5yfu4kRGDfbjv3cvIPx0sbg Q4wCHIxKPLwaOx5GC7EmlhVX5h5ilOBgVhLh7V39KFqINyWxsiq1KD++qDQntfgQoynQTROZ pUST84ExnVcSb2hqaG5haWhubG5sZqEkznveoDJKSCA9sSQ1OzW1ILUIpo+Jg1OqgTGvR/OI 0R33K9KqPE83d0VM+7HpTP8Mlzd7m3nMXsw/s7/mpuifrZ+63jNsqtxe+WmqvWjnbvNZkzMX 2T19eLLySbqjwnO5RRuep9zzVrjO/qvsueRfnXO1WWeOenjufKHcrTXVYZf7+44W38c9q/nm 5EvFp++WEeU2cHKZ8Ujmzee1Ka8E61YosRRnJBpqMRcVJwIAbyrVfLECAAA= X-CMS-MailID: 20181107171045eucas1p26ec5feb1b2a397971c919592f6d87b40 X-Msg-Generator: CA X-RootMTR: 20181107171045eucas1p26ec5feb1b2a397971c919592f6d87b40 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171045eucas1p26ec5feb1b2a397971c919592f6d87b40 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Exynos5422 supports 4 trip points which will trigger IRQ. Additional trip points should be registered without 'irq-mode' flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 40 +++++++++++++++------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index e522edb..389548f 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -59,22 +59,26 @@ cpu0_alert0: cpu-alert-0 { temperature = <50000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu0_alert1: cpu-alert-1 { temperature = <60000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu0_alert2: cpu-alert-2 { temperature = <70000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu0_crit0: cpu-crit-0 { temperature = <120000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; /* * Exynos542x supports only 4 trip-points @@ -142,22 +146,26 @@ cpu1_alert0: cpu-alert-0 { temperature = <50000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu1_alert1: cpu-alert-1 { temperature = <60000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu1_alert2: cpu-alert-2 { temperature = <70000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu1_crit0: cpu-crit-0 { temperature = <120000>; hysteresis = <0>; type = "critical"; + irq-mode; }; cpu1_alert3: cpu-alert-3 { temperature = <70000>; @@ -209,22 +217,26 @@ cpu2_alert0: cpu-alert-0 { temperature = <50000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu2_alert1: cpu-alert-1 { temperature = <60000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu2_alert2: cpu-alert-2 { temperature = <70000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu2_crit0: cpu-crit-0 { temperature = <120000>; hysteresis = <0>; type = "critical"; + irq-mode; }; cpu2_alert3: cpu-alert-3 { temperature = <70000>; @@ -276,22 +288,26 @@ cpu3_alert0: cpu-alert-0 { temperature = <50000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu3_alert1: cpu-alert-1 { temperature = <60000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu3_alert2: cpu-alert-2 { temperature = <70000>; hysteresis = <5000>; - type = "active"; + type = "passive"; + irq-mode; }; cpu3_crit0: cpu-crit-0 { temperature = <120000>; hysteresis = <0>; type = "critical"; + irq-mode; }; cpu3_alert3: cpu-alert-3 { temperature = <70000>; From patchwork Wed Nov 7 17:09:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10672663 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 3F464175A for ; Wed, 7 Nov 2018 17:11:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 309F02CB9E for ; Wed, 7 Nov 2018 17:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 242F52CBC0; Wed, 7 Nov 2018 17:11:00 +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=unavailable 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 CA44B2CBA4 for ; Wed, 7 Nov 2018 17:10:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387782AbeKHCmN (ORCPT ); Wed, 7 Nov 2018 21:42:13 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54970 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387774AbeKHCmG (ORCPT ); Wed, 7 Nov 2018 21:42:06 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171048euoutp0121255400ffabcadad237964dce507a58~k5reMjRBx2205222052euoutp019 for ; Wed, 7 Nov 2018 17:10:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171048euoutp0121255400ffabcadad237964dce507a58~k5reMjRBx2205222052euoutp019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541610648; bh=j2GktXyQbjXJYo/9DZqWr6nunDcw0w3TtES28PEn4n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A8UKzSEcsW+CXBacrKjXXa9BOLD791qG8NHs5CpxRxhGJ9qlhO5J46jgZsXZ/LSn7 QPrTEa4POyYvlzURBgE0ZnttEvkfQhRzWYhECb+qgqYA5ndLbTv8wuiGgTvvTG4rdl QmxEPG+6/flVL3nssCNgOhvlWMOMvv5i+pu0r+pc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107171047eucas1p11341124036157577ee4258431daa8dea~k5rdRrNsa2905829058eucas1p1t; Wed, 7 Nov 2018 17:10:47 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8B.64.04294.79C13EB5; Wed, 7 Nov 2018 17:10:47 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181107171046eucas1p1649bcf14a88ef9dd183724dde3a98f8c~k5rcmCZCe2318323183eucas1p1L; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181107171046eusmtrp2d86b72f3c56e5455a1cbf811218cfc0b~k5rcZx1or0545505455eusmtrp2n; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-cf-5be31c9779a5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 85.8F.04284.69C13EB5; Wed, 7 Nov 2018 17:10:46 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181107171045eusmtip2fab1dd73faf596046862e328f3716137~k5rbzAmhG0340803408eusmtip2W; Wed, 7 Nov 2018 17:10: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, krzk@kernel.org, Lukasz Luba , Kukjin Kim , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 11/11] arm: dts: exynos5410: add support for thermal trip irq-mode Date: Wed, 7 Nov 2018 18:09:53 +0100 Message-Id: <1541610593-28542-12-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: H4sIAAAAAAAAA+NgFtrPKsWRmVeSWpSXmKPExsWy7djP87rTZR5HG7T947PYOGM9q8WTA+2M FvM+y1rMP3KO1WL+lWusFv2PXzNbnD+/gd3iVoOMxabHQKGFbUtYLC7vmsNm8bn3CKPFjPP7 mCyWXr/IZNG69wi7xZOHfWwOAh5r5q1h9Ng56y67x+I9L5k8Nq3qZPO4c20Pm8fmJfUei/sm s3ocfLeHyaNvyypGj8+b5AK4orhsUlJzMstSi/TtErgyNs39wVwwkadi+c1nTA2Mlzm7GDk5 JARMJOY0TWHpYuTiEBJYwShx+uhMNgjnC6PE1oOXoDKfGSXmLm5kg2mZeGkDE0RiOaPE49ON zHAtz1sPAzkcHGwCehI7VhWCxEUEZjNKfN63mB3EYRZYwCTx8fdaFpBRwgLhEtubDjCB2CwC qhInP/wEs3kFvCXu/f/ICLFOTuLmuU5mEJsTKD7v8luwQRIC19glJn+eyA5R5CKx+2oT1H3C Eq+Ob4GKy0j83zmfCcIuljjbsQqqpkai/eQOqBpricPHL7KCXM0soCmxfpc+RNhRYs+Dr2Bh CQE+iRtvBUHCzEDmpG3TmSHCvBIdbUIQ1RoSW3ouQC0Sk1i+ZhrUcA+Jb+v3s0LCZx6jxJLe w6wTGOVnISxbwMi4ilE8tbQ4Nz212CgvtVyvODG3uDQvXS85P3cTIzBZnf53/MsOxl1/kg4x CnAwKvHwXtj6MFqINbGsuDL3EKMEB7OSCG/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u 2M3qd+Ko6KFnT0z3KBS1hdz4k3AhL/VW/jnLZN/sANNaRhHGFTdX7npbe3BWWubyFguDPr13 p96+bTqflMO72H9NydeLWdWHTBJn6vbMVmIpzkg01GIuKk4EAEHuFfG0AgAA X-CMS-MailID: 20181107171046eucas1p1649bcf14a88ef9dd183724dde3a98f8c X-Msg-Generator: CA X-RootMTR: 20181107171046eucas1p1649bcf14a88ef9dd183724dde3a98f8c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171046eucas1p1649bcf14a88ef9dd183724dde3a98f8c 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 This patch adds support for new flag which indicates that trip point triggers IRQ when temperature is met. Change existing trip points to be expicitly marked with the new flag. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5410-odroidxu.dts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos5410-odroidxu.dts b/arch/arm/boot/dts/exynos5410-odroidxu.dts index 434a759..e85a5d6 100644 --- a/arch/arm/boot/dts/exynos5410-odroidxu.dts +++ b/arch/arm/boot/dts/exynos5410-odroidxu.dts @@ -121,22 +121,26 @@ cpu_alert0: cpu-alert-0 { temperature = <50000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_alert1: cpu-alert-1 { temperature = <60000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_alert2: cpu-alert-2 { temperature = <70000>; /* millicelsius */ hysteresis = <5000>; /* millicelsius */ - type = "active"; + type = "passive"; + irq-mode; }; cpu_crit0: cpu-crit-0 { temperature = <120000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; };