Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5282312imm; Tue, 16 Oct 2018 07:59:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VDhFblzzwVL2lrsOTpLP8LCpEoz86hLS3B//nptpveYKoDrODNtkNouY+FFcpxg19Ch/A X-Received: by 2002:a63:6946:: with SMTP id e67-v6mr20402627pgc.119.1539701947737; Tue, 16 Oct 2018 07:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539701947; cv=none; d=google.com; s=arc-20160816; b=u5lOuXJ3ch1ROGCsJdRcOpORFC8fx2j3UuMiWn2LyFfa4YHnlPM667QbXmzJo3ruOU DLrcdF3pCPQC6ZAjz/w/+/i11BT7XSBrvANjUIg9r5kDOgc4bBXxnUW8e4MrLi4kCLDI uL6fbIQFNb3SujuPKR+3LtbrC5sgpFBPc52OI0dvwTGN079saLF0u/ETUGnLAuXc7qYN fGMtyY2JVfII8eknRBF3A2LMssPEU+xA7tlDkd4hxnbO3eEgddFNA4Cu45+qcEwwPem8 mDlc2s6TLkGaf2P5yGqV7srt5WqoHwatDyQCOGjoLKp7yQ8mCjDxso7uG0NHlmkzfMOM bGeA== 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:message-id :in-reply-to:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=U2hOpge9VBmw0XxT1DkaNEnI2no8yszC5mdL/pwknms=; b=Y75O4bz5GIMdyVEGz4TSHeHhiBZ/8pBABg7UON/vy3/2Dxz8KLzE5AgWkiJWM+DisQ 5915Dc+p5tQUOTZT4DcdMZoIRxUlTZlYnPU30W16y+VBzOJQP3z0LuzPgPOLgVXDckfk ZFqMu9hf/xPgNh5FVlUe6QbvAwuYgRL0xZDrSo2OvS/zhVPGfKmNF8hO6D8UrGJwcmb0 rcH1CT37uQGLhkY3eLzXP6PIiFJ7vEK+zsxy+GMPeUKp2K32mWw0d13JSTEX4XYP3cOi yLgcx1RH6fweQ7+yD3cflE7Yqgo40I5veEUvtv7Q27f67JJxqz+zCKdY0/LLwc1zSLLO KoSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WUZz3Jwt; 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 e39-v6si14315623plg.188.2018.10.16.07.58.51; Tue, 16 Oct 2018 07:59:07 -0700 (PDT) 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=WUZz3Jwt; 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 S1727481AbeJPWrp (ORCPT + 99 others); Tue, 16 Oct 2018 18:47:45 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39373 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727437AbeJPWro (ORCPT ); Tue, 16 Oct 2018 18:47:44 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181016145654euoutp02cb1ca36bbea9e0342d0e26ff98b2b556~eHqSItET40472304723euoutp02H for ; Tue, 16 Oct 2018 14:56:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181016145654euoutp02cb1ca36bbea9e0342d0e26ff98b2b556~eHqSItET40472304723euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539701814; bh=U2hOpge9VBmw0XxT1DkaNEnI2no8yszC5mdL/pwknms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WUZz3JwtzMdxBIuOMWcvT6VaDCkwaPaTpx8lMxG2gtopReyK29jYdIpgmcASE6ysd X6pI9IrSCQt6cFFZIQ8Q0TjQETPH/KtUsMvgEhOWmHkkIwPP89DRLZrG0l71+xcg6S AW/GBn64uKk7p1NUxmp/7PAe/yU99uyRpRdoVn00= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181016145653eucas1p2cdd545dbf80ded7f565759167f084f43~eHqQ-S_vk2134621346eucas1p2_; Tue, 16 Oct 2018 14:56:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 50.70.04294.53CF5CB5; Tue, 16 Oct 2018 15:56:53 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181016145652eucas1p2939c6aa628ba099c9609a8cbc17db1a4~eHqQRcy8z2133821338eucas1p2W; Tue, 16 Oct 2018 14:56:52 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181016145652eusmtrp257236b9fc92a96606b332ab925f474d0~eHqP-x5Gf3061930619eusmtrp2h; Tue, 16 Oct 2018 14:56:52 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-e9-5bc5fc359087 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 26.BA.04128.43CF5CB5; Tue, 16 Oct 2018 15:56:52 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181016145651eusmtip2d94a58a1b23656f33f3e06b734c11ab2~eHqPazsgO2834828348eusmtip2E; Tue, 16 Oct 2018 14:56:51 +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 10/11] DT: arm: exynos: add support for thermal trip irq-mode Date: Tue, 16 Oct 2018 16:56:21 +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: H4sIAAAAAAAAA01Sa0hTYRju29m5OJwdp+SLqdEiqUAtMTpgZVLhgX5k/0IpXXmY4jZrR60k aFnehmkrynDlDC1tTMo5TGWazalZqa2LmTeQIsjo5grKLubxTOrfc3mf93n5+ChM0YGHUlm6 XE6vU2mUhEza2vdjOGrzr97Ujddu4Uzzlds486a7BDE13nDG4h7CGcvzEZypfP0eY4aH75DM mCGMsb9ekK4X10uZZx1XCcZ7zo2YGy89Eqao000yb6YriB3LWVuNDbHt1ZMkW+d8J2Ht1jKC nRhxEmxL/Sm2ruIizt7/6JSwFQ4rYr32iGRZimxrBqfJyuf0MdvTZZlN9ib8yOiq4+7KWdKA bCuMyI8COg7aWr4RRiSjFHQjgp5yk0QkXxEUto74iBdB0+NSyVKk0zKNiUYDgjlT4X+RLgNu RBRF0NHQZj0q6MG0GYG3q44UCEabJGBqeIsLq4LovTBfWoYELKXXwp05KyFWRMCroTJMwH70 HhgbrV2sA3qIhM+WRqlgyOl8OGOuwsXALmicPY1EHAQz/Q5SxGEw327x3c3DYOlSwUkoGWjz zcRDT79n8WqMXg+3O2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ZinR5Hxg NOeVxBuaGppbWBqaG5sbm1koifOeN6iMEhJITyxJzU5NLUgtgulj4uCUamDcFPk5VW7L7AsK u08cF1noJZL3quycc4rii/67O5nCXrvXXpKNS1whf+/u2z6tOfyq9b1W6tPyOYscvqWzCHqv eRBdfSjHraZCYXez/OHNmWVnyi+XrnPwWt3ezqTAzvRXo2a7dV297NQTfqx7fZ+J+Sluqqrb NbP1vsjVubvVpp1ke8VU+1CJpTgj0VCLuag4EQBG3YLSrgIAAA== Message-Id: <20181016145652eucas1p2939c6aa628ba099c9609a8cbc17db1a4~eHqQRcy8z2133821338eucas1p2W@eucas1p2.samsung.com> X-CMS-MailID: 20181016145652eucas1p2939c6aa628ba099c9609a8cbc17db1a4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181016145652eucas1p2939c6aa628ba099c9609a8cbc17db1a4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181016145652eucas1p2939c6aa628ba099c9609a8cbc17db1a4 References: <1539701782-26852-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 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/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 96e281c..dbce706ed 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