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: 10672675 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 22FDC13BF for ; Wed, 7 Nov 2018 17:11:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 128FD2C932 for ; Wed, 7 Nov 2018 17:11:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 039A72CBF2; Wed, 7 Nov 2018 17:11:30 +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 496542CBCB for ; Wed, 7 Nov 2018 17:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731574AbeKHCmA (ORCPT ); Wed, 7 Nov 2018 21:42:00 -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 S1731542AbeKHCl7 (ORCPT ); Wed, 7 Nov 2018 21:41:59 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171043euoutp010ddebd03a0a8fdd118f8c0165691a729~k5rZGaqnp2205222052euoutp010 for ; Wed, 7 Nov 2018 17:10:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171043euoutp010ddebd03a0a8fdd118f8c0165691a729~k5rZGaqnp2205222052euoutp010 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 UatycGZmXIMzrbUpTE1BMcb0rWsQpqBNBRiT2i1AGCw8F8ZGRSawcs/zIcKIUWM7Ebfp9/BZ 2SySCjI8coEVCSlvWJA6gFhYTDUA2GPw53kTwLwN61wgNLMJwN2mISIXkHsDORnBvF4PYMZA Os4X5oGZNwuYxYRTHrBTdd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891gtmcAt4S8y6/ 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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; }; }; };