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.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTURjHO7u7d3fDxW1qntQMRoEGaUkfLhVSEnUhAosw0A868/o+X3Z9 ydQUwZeZb2SYaUxLTZ0zc05Tm+KWqSX53rRSzBS0ZMaYfjAl27yzvv3O7/yf5znncHBEpEWd 8cjYRFoWK4kRYwJu5+DW6Kly16XA0+9mMbKtohUll/vzAKkwHyWrB0ZRsnragJIlS2sIOTb2 ikd+yXIl1UsW9Sy3jktO9TzFSHPRACArxvo4ZP3MBIfM6R3gkcuLxdhFglIpVIDqrpznUbXa HxxKrZRj1JxBi1HtdZlUbXEZSunWtRyqWKMElFnt5icIEFwIpWMik2mZl0+wIGJRb+TFr7jd 3azXollgyrEA4DgkzkKdPKAACHAR0Qhg2bIRYxcbAL4pknPZhRnA5nkD2K8wFbuzvgHAvoVh 3r+Kjo3neyGM8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4mVa9dC7ZKTuHmukxnE5gSKz7v8 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>;