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: 10672689 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 9F6D91751 for ; Wed, 7 Nov 2018 17:13:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D2092CC08 for ; Wed, 7 Nov 2018 17:13:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8064B2CC44; Wed, 7 Nov 2018 17:13:08 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF9372CC36 for ; Wed, 7 Nov 2018 17:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pDJjhg2y00SDi7LXjelUWARqnIZsXbzs6zHw3SmVV1Y=; b=FT6Y9OOPlRHUnL4w5T1ep9jUXv bTjH1JT8f4T697dIOpT/UqW3sRRAg4xpkl7gNPyCMoB0UWRKym5+RMasxRKpcLRvUkL60/O01LcwG 8wH3GS7FxiYrxrGzuKzZSYTP6Nq3ctITYjH00NFO9+H1q4tHGIvd4dw0S25hFaJDh2KjU4AojYLgy bxCXqtgcxItfgWrSD4XWZr29KZvett6xQWf5iPZx/gRGY3ZlFrLbVVWuus0Gdpgd43lt82UmOon+7 UxGCKgkn45966DSTaXCrZrgeKfTvlfKFKd2f13ukeDT2p7Bzy3o8KINg3GSDe3bTkciiwZw02VXsM zMsZDniw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKRNv-0004vv-Fb; Wed, 07 Nov 2018 17:12:55 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKRM0-00035i-M3 for linux-arm-kernel@bombadil.infradead.org; Wed, 07 Nov 2018 17:10:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:Content-Type:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z1YsDuDqKlskrg/CVSgaixZZ2C4GhBivvX7W7GWawhI=; b=qQKhkfnhygnj+GGye+bjknWS1 xVF//xegVKGggLS94xQeIOYIDCio7HzdT2ctlZhivvx6Jdo2wB3NK0alu7M3gU5oUBLWLrZqPJlWZ pzGbMwWmW8iErq3s/v12PInxEsS4GwVV9+09D1NRj0UFUrx5sFL+rr24xJzhpj6HtS0k/vDLUkT8C ldW/POJnCFrwWiarM9guM5WOGF4ZDfz6qZUeJVxVrJVoB+QXw2X8LnrsXkhW5jw/I5+RsU3luSxm2 8xwY2RKVPJ96sr2/Dc9GoCqB0Nl5kFIDUA3eUpQwtJfNIKmMFzZnRVnDmw/O4G/VKmKnA+9CKap+o uVjhkVFbA==; Received: from mailout1.w1.samsung.com ([210.118.77.11]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKRLv-0002Yf-0S for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2018 17:10:55 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171042euoutp01f9cc111300298471f0695fb4dc85fe1d~k5rZFjts42252222522euoutp01Z for ; Wed, 7 Nov 2018 17:10:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171042euoutp01f9cc111300298471f0695fb4dc85fe1d~k5rZFjts42252222522euoutp01Z 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 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 GRPPymNkURJcKOj4sD186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bFrVyeZx59oeNo/NS+o9FvdN ZvU4+G4Pk0ffllWMHp83yQVwRenZFOWXlqQqZOQXl9gqRRtaGOkZWlroGZlY6hkam8daGZkq 6dvZpKTmZJalFunbJehlXHiylb3gi31F94y7TA2MzXpdjBwcEgImEp3NUV2MXBxCAksZJf6t 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_171051_102578_9C59668C X-CRM114-Status: GOOD ( 16.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-samsung-soc@vger.kernel.org, corbet@lwn.net, daniel.lezcano@linaro.org, krzk@kernel.org, Lukasz Luba , edubezval@gmail.com, b.zolnierkie@samsung.com, robh+dt@kernel.org, Kukjin Kim , rui.zhang@intel.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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; }; }; };