Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3365311imu; Wed, 7 Nov 2018 09:12:08 -0800 (PST) X-Google-Smtp-Source: AJdET5ciUSEH/vzCVOMnkF5Vk3gz4AL39AlLBr9EhMiWTttxuaZCLrQ5Av7A1Y/Ju1lNbJ13r+uu X-Received: by 2002:a62:8a0d:: with SMTP id y13-v6mr1031215pfd.142.1541610728768; Wed, 07 Nov 2018 09:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541610728; cv=none; d=google.com; s=arc-20160816; b=0aPwk56ct7i5Hm1ZZZmOWSSzzvq/5PGmuis6jyusiCJreGcdqbPr9ohb/IHc6odEIk tNvrDefWdxXW2mfzswj+grpoED21fHgQqZEjq7QgSifnDVFoAFoAnGZW49nOh37lOrX5 PdWchnilbz0cXaRZp8Ms5zpgoF6Et8FAf1gyRZVHU7eN6pMgYP7SVXplP7MStPEtuLqQ pxjJjtU/yYFwTfmDdDVH46VeOZZt7+wV2L3DllozgQBnSZFyVwTeTpPr/7eSnLhhhKWx ZCtL7gLkeE26LEiQaNBjt0x5aqoU/lZ1toKZ1CXvuwFz6h1izMJ8OGCD/Nb0SOSXFQ2A 0wnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=DQrr2G8nCrd45JW06oy8w1vdeAOBojDxdwLvk9eFqw0=; b=xvV0Mv5qtNbKDUiAYGbH1w7biS6iTqG9iNtwWN5mh7sZJ/2bECEsW6T78xEci1wOd6 G42E2qdiU0nJDtbS647Lbp6GextorsvL7zcYK9xIHyyzZCU85OMxigXhbDHZlE+dFS3r bAOp0Z88dt+UWDjBDdQgZU7WI52kb71lZACO58L+3prTyV8AqPwuLvfjgu/nMlKmw63n UhqoSKIaEX4Qcmwb7zM6VEVnMO9lP/yIQbn+5MpvBeB6DJDve6pUI1YGnkPsxRMY8zT+ 8d8niEKY4C0oWqdd8fpZXVoOmacMJCUYALEFyVi95USnUNHyvwTTV9upNOQcARKKccJo YGHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="shmz/IMI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34-v6si1190659pla.33.2018.11.07.09.11.53; Wed, 07 Nov 2018 09:12:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="shmz/IMI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387933AbeKHCmG (ORCPT + 99 others); Wed, 7 Nov 2018 21:42:06 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54962 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387556AbeKHCmE (ORCPT ); Wed, 7 Nov 2018 21:42:04 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107171047euoutp01457f7ac71fa89744279fadb646802423~k5rdF8j5Q2287822878euoutp01W for ; Wed, 7 Nov 2018 17:10:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107171047euoutp01457f7ac71fa89744279fadb646802423~k5rdF8j5Q2287822878euoutp01W 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+Kjo3neyGM8IRdygSrdyCqADT31e6FEKKGA03bLZa2fNyeuA0HZ0r2CrjECdiuyrRqIXEN NrW0ACtDwg1+HpUjVuZbvGLKuNcHEgYezG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Px0sbg 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 Content-Type: text/plain; charset="utf-8" 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 2.7.4