Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5281826imm; Tue, 16 Oct 2018 07:58:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62vJRf0xJrSfEqJOUiPuNR7RShRk4lES4ewaFsojK9tRMWuwvOf2XQ37OqC8z7LTF4mls+l X-Received: by 2002:a17:902:b78c:: with SMTP id e12-v6mr21666834pls.67.1539701916850; Tue, 16 Oct 2018 07:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539701916; cv=none; d=google.com; s=arc-20160816; b=lgI55Nb2OxRTER9sw6wcmMYFQ9vFNenub737mLOADwyuorZPOfHfJdZKeiSXGxVjNh TdSVKwLXvP17SbEBh4IP/Dht3ZJNJbwPkI5ishWbnmbZTZbZjyAR28Il8Kn/qj05nQXL 0H5yh9EIKnV05HSpSzo4orA8u4xoI5jL6K4KCutfw0EVk7k5M5+AbqicDo60sEof69qA qkWy/L1B95gIYFjlJ54xWjmD7OYFsqPJDfXjhJw34unkCMfhSNd1xBpuBTc+vmnynJ5Y rzuOdMyh2ysqCxWcQCwR5nzPgt72SVe5TLEtujB6bjMSldsYOgGfrnriCLSPSMAv+1TB da7w== 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=jg7rb3XNh+fTjaJXSjAFMxa0KmfItCcYC/IdO2jxbJ4=; b=HQM2r84ZhS99a64CLLlfZA4/0rQgH2J3lnNEuOrpc4JixOd8oHpGkzMslPYMFSAVi3 ww1VcqtLQGVJPCkNpj6gp2bZynQqFRG0c5u6VXTgK36agYhJsNEFOjxJm7eKIv542j+n JBxGjX8h8GFxHQeRfK3kX/D1Gflud5m5XokHxooHl136eL3vmTehSpuvQvqGzV+40zuv WxDx90MeNQgPXyIk4bxcxdNVIYGwP575ooA4k9AOQ01MTb4noNc17gZfVy3c8fxweAbQ 4pLsm5PwlylU7H5miQYRIH71N7bH5a+WmI4rShPF5y/sudsCWK6izbzM+lSopIcpUhs2 ValQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hDa0FhZV; 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 v14-v6si13575733plo.208.2018.10.16.07.58.21; Tue, 16 Oct 2018 07:58:36 -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=hDa0FhZV; 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 S1727336AbeJPWrm (ORCPT + 99 others); Tue, 16 Oct 2018 18:47:42 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39274 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeJPWrk (ORCPT ); Tue, 16 Oct 2018 18:47:40 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181016145650euoutp026b8c345b8df599b64695eb35a18c3ecf~eHqOdJ0hq0414504145euoutp02r for ; Tue, 16 Oct 2018 14:56:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181016145650euoutp026b8c345b8df599b64695eb35a18c3ecf~eHqOdJ0hq0414504145euoutp02r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539701810; bh=jg7rb3XNh+fTjaJXSjAFMxa0KmfItCcYC/IdO2jxbJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hDa0FhZVPjAaIZnaG8mkF4bQisX9TTDMJetmcjSVskysE2JWP4avFukvsIpWyxxPl Fq9d0SheoaE5OQlS33j/4Bq5hAp1+B/05dTIndtuG+DiStP2EGFFlb3kY7DjAtap8q wTHpZNlIfn17xz8MHkom6iY6FgbtyxvcuN5br2Kg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181016145649eucas1p29698529ae8a7276dc10b5895f8a6e277~eHqNpUFoa0771607716eucas1p28; Tue, 16 Oct 2018 14:56:49 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C9.C2.04441.13CF5CB5; Tue, 16 Oct 2018 15:56:49 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181016145648eucas1p275ad5f845a04e40e5b9d0bbea624f34a~eHqM4Yhz82489624896eucas1p25; Tue, 16 Oct 2018 14:56:48 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181016145648eusmtrp2cb8887df6ae686cb254f92c921622252~eHqMpGoOS3061930619eusmtrp2Z; Tue, 16 Oct 2018 14:56:48 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-d5-5bc5fc310c88 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 01.BA.04128.03CF5CB5; Tue, 16 Oct 2018 15:56:48 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181016145647eusmtip2e1866afa6b261e9062fb6e64152f8bd5~eHqL6ygI22715427154eusmtip2W; Tue, 16 Oct 2018 14:56:47 +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 07/11] DT: arm64: exynos7: add support for thermal trip irq-mode Date: Tue, 16 Oct 2018 16:56:18 +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: H4sIAAAAAAAAA0WSa0hTYRjHec/ZOTtOl8cp7cVbNIhupK2CDmil0IeTUZgUUftQKw9ectN2 vGQEGXjPlppmaE1LU1vSdJpNMavlFMu7ppuXKLTARBOXZpDZ5pn17fc87///fx4eXgIVGTBP IkoZz6iU8hgJLuA1tv/q2SX9bZLtnu72oeru6TBq6nUGoDRWH6q0rQejSoeGMer25AxK9fbW 8qnRFG9KP2lrPUyv4FGDzfdxynqrDVCPR/oRKu1lG5+a+qzGg1zpGk0NoJuKJ/h0ecs0Quu1 WTg9PtyC0/UV1+ly9R2MfjPXgtDqBi2grXrfUMFZQWA4ExOVyKj8D54XROomK5E4jduVpdZ5 LAWYhdnAiYDkPliSr8OygYAQkdUAfjRWo1zxA8CU/gXErhKRVgDHh86sO7otY4ATVQFomjfj /xxPSpdsWQSBk37QoL1s73uQJQBaW8v59gIl8xCYV/UVs0e5k2HwhrYO2JlHboE58w0IN8IX WnqyUDs7kUfhqLlsbSdIvuPD1vL2NYOQTITLRdk4ZzgMX6Wa+By7w28dDQ72hqtNpY5QFnZn ah36azCj0+DQBMC3Hf1rW6Pk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iw8xmgKdNJFZSjQ5HxjL eSXxhqaG5haWhubG5sZmFkrivOcNKqOEBNITS1KzU1MLUotg+pg4OKUaGMudshSq4ha7bVH/ fFkj87xm86KeEw9Sao0iNHi9nKRC077yzZcN5DOQciq5Epv71P508Y2JU4RDD23UK7ksKlTb vrDg29kcORebo9P2uO4pqJBiWLll1cQF66R0Vdbv5zJbxce+Yiq/RGRA6qzCxF8GFp2ca75P ZvrwLjWN41KDz528FZ6WSizFGYmGWsxFxYkAXpkFOa0CAAA= Message-Id: <20181016145648eucas1p275ad5f845a04e40e5b9d0bbea624f34a~eHqM4Yhz82489624896eucas1p25@eucas1p2.samsung.com> X-CMS-MailID: 20181016145648eucas1p275ad5f845a04e40e5b9d0bbea624f34a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181016145648eucas1p275ad5f845a04e40e5b9d0bbea624f34a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181016145648eucas1p275ad5f845a04e40e5b9d0bbea624f34a 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/arm64/boot/dts/exynos/exynos7-trip-points.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi index d3301b8..39185af 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi @@ -11,40 +11,48 @@ trips { temperature = <75000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-1 { temperature = <80000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-2 { temperature = <85000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-3 { temperature = <90000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-4 { temperature = <95000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-5 { temperature = <100000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-alert-6 { temperature = <110000>; /* millicelsius */ hysteresis = <10000>; /* millicelsius */ type = "passive"; + irq-mode; }; cpu-crit-0 { temperature = <115000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; + irq-mode; }; }; -- 2.7.4