From patchwork Tue Oct 16 14:56:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10643731 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 784C317D4 for ; Tue, 16 Oct 2018 14:57:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64D2F29119 for ; Tue, 16 Oct 2018 14:57:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58BF629EFF; Tue, 16 Oct 2018 14:57:26 +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 CCEF129119 for ; Tue, 16 Oct 2018 14:57:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727051AbeJPWsN (ORCPT ); Tue, 16 Oct 2018 18:48:13 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57225 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727213AbeJPWrm (ORCPT ); Tue, 16 Oct 2018 18:47:42 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181016145652euoutp01e9b56dfd2653f7beb18c81247ff29209~eHqPzlNkW0465204652euoutp01Y for ; Tue, 16 Oct 2018 14:56:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181016145652euoutp01e9b56dfd2653f7beb18c81247ff29209~eHqPzlNkW0465204652euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539701812; bh=y7MF9kAG/z4G8E42/Z3AEQeoUsGLouZid29J2XiBp+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PFQ0Vjt0WhKD3sxtO4KCaWuOHhQd7eGmHMYtdUKThlXD4P3s6iWJqSZzTD+KnMn6k 4qlmusR5OQEUJi0LXWTlfN3BXydPM79N003enmtjFpf+yAbFRWheSVuBfQBVOBvV5L VwDrrvKAQCNng6qzUFl3bgMpW62x8H7S6V+Ur/l8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181016145651eucas1p1d65fd75ab153f72c55aed77baf105318~eHqPHWgua2005420054eucas1p1g; Tue, 16 Oct 2018 14:56:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id B3.31.04806.23CF5CB5; Tue, 16 Oct 2018 15:56:51 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181016145650eucas1p2330e8d680b70acffaea223a5a8c51ca0~eHqOSKKqJ2135421354eucas1p2J; Tue, 16 Oct 2018 14:56:50 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181016145650eusmtrp264e52f5fdb23d28255e0c19e252e3dd6~eHqODLtlz3061930619eusmtrp2c; Tue, 16 Oct 2018 14:56:50 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-95-5bc5fc326091 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 92.BA.04128.13CF5CB5; Tue, 16 Oct 2018 15:56:49 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181016145649eusmtip2c629b262ada1726386114c335e522aa0~eHqNR6rL92834528345eusmtip2G; Tue, 16 Oct 2018 14:56:49 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, b.zolnierkie@samsung.com, Lukasz Luba , Kukjin Kim , Krzysztof Kozlowski Subject: [PATCH 08/11] DT: arm: exynos4: add support for thermal trip irq-mode Date: Tue, 16 Oct 2018 16:56:19 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539701782-26852-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSfSyUcRzv9zz3PPe4dXkc049U27U22iKj9mzJWP3xTLXpz7o/dPIMyx3d g7AW2nCMk2pe607JS5eSIzviEofKvEXI0AsuoVYdW+Yij+eq/z7fz8v389t3PwKVGDF3IloZ z6iU8hgpLhI0da/2H/SzdckOlS4hVH1xHUbNtmcBSmvdTenM/RilGxnFqPyZRZQaGHgipCbS PCjDzCZ1N/O+gBpuuY1T1jwzoCrHhhAqo80spGY/avAgR7pWWwvo5tIpIV3R+gWhDfpsnJ4c bcXphvupdIXmJka/+NaK0JpGPaCthj2honOigAgmJjqRUfkEnhdFLY8Exv0WJ90zO6SBDVEO cCAg6Q/nF6cEOUBESMgaANeaLfZhGcBb08UYP1gBfJjOKXxkoWJSyAvVANoW1MJ/kcXn35Ec QBA46Q2N+ksc70KWAWg1VWyZULIAgQXVFoxb5UyGwrmlMZzDAnI/NKebhHzFHviuPxvlsAN5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XFuem6xkV5xYm5xaV66XnJ+7iZGYKxsO/Zzyw7GrnfBhxgFOBiV eHh/XD8SLcSaWFZcmXuIUYKDWUmEN/3S0Wgh3pTEyqrUovz4otKc1OJDjKZAN01klhJNzgfG cV5JvKGpobmFpaG5sbmxmYWSOO95g8ooIYH0xJLU7NTUgtQimD4mDk6pBsaWbSKLeHjZQ3om ltbN1ImbrtT+atUKgWh+x311ZziXa+ckHtfNvMZzWu9m0rqg2utvO2xWByzcqxdvt2JG9qJ/ kizFGUxyTU8ufNNdFS2meLFwy653xZL8pTo6Ew4F/q5Q8X4sfe3/h1UTZQycnCp/6PvU7Dvk ctzoqFDR/qe/bk9NPqNzJ1QJaESioRZzUXEiANFOkrCrAgAA Message-Id: <20181016145650eucas1p2330e8d680b70acffaea223a5a8c51ca0~eHqOSKKqJ2135421354eucas1p2J@eucas1p2.samsung.com> X-CMS-MailID: 20181016145650eucas1p2330e8d680b70acffaea223a5a8c51ca0 X-Msg-Generator: CA X-RootMTR: 20181016145650eucas1p2330e8d680b70acffaea223a5a8c51ca0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181016145650eucas1p2330e8d680b70acffaea223a5a8c51ca0 References: <1539701782-26852-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support for new flash 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. That will force the thermal framework to start polling the temperature sensor under configured conditions and handle the trip point. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.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 {