From patchwork Sun Aug 30 13:51:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11745101 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87CB7138A for ; Sun, 30 Aug 2020 14:08:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6EC12206FA for ; Sun, 30 Aug 2020 14:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598796487; bh=p8LmWweSMI5BYVBRe4Iv2P0KvrQz7VZ1Le+ZnJ3hJjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Cc9h6lCtp2AGKxxSbMWwDo1gxnmpfBTDZUTimBrOhCgDw1s8wOlAYkMmstq1JZbaH 1xkalUXhRxUoGweiSxkxJHKRiJPtAuqDIYR11acRUB+RBDKdnvGNBmGJ8dF8X80D+o +UnEm1vzo9wu5x8XYGoT12/ER7rIzzkNqP/WJNLQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbgH3OHq (ORCPT ); Sun, 30 Aug 2020 10:07:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:56152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728948AbgH3Ny6 (ORCPT ); Sun, 30 Aug 2020 09:54:58 -0400 Received: from localhost.localdomain (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 06B832151B; Sun, 30 Aug 2020 13:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598795698; bh=p8LmWweSMI5BYVBRe4Iv2P0KvrQz7VZ1Le+ZnJ3hJjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LwPGousW7eBgChyeKkvctqma2xGtR9doUnlK5/Z9VCrH7YjnXG+YFfBLiOjDe1gHR Snx9TwyN6NzqbwUZhmekoyOplQjC2A9Ag1+jViZWbrOzPGwRW/FLfgkEC4EuKE301q WYvD5v+KFdHijOME18iNnAhY7JLbRIh8jhZRu544= From: Krzysztof Kozlowski To: Rob Herring , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, "Denis GNUtoo Carikli" , Simon Shields Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Sylwester Nawrocki Subject: [PATCH 21/33] ARM: dts: exynos: Add CPU cooling in Universal C210 Date: Sun, 30 Aug 2020 15:51:48 +0200 Message-Id: <20200830135200.24304-21-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830135200.24304-1-krzk@kernel.org> References: <20200830135200.24304-1-krzk@kernel.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add missing cooling devices for CPU thermal zones in Exynos4210 Universal C310 board. This allows to scale down CPU frequency (and voltage) in case of thermal pressure. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-universal_c210.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts index 279f0f8f86ed..546d84fe4599 100644 --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts @@ -196,6 +196,19 @@ cpu0-supply = <&vdd_arm_reg>; }; +&cpu_thermal { + cooling-maps { + map0 { + /* Corresponds to 800MHz */ + cooling-device = <&cpu0 2 2>; + }; + map1 { + /* Corresponds to 200MHz */ + cooling-device = <&cpu0 4 4>; + }; + }; +}; + &ehci { status = "okay"; phys = <&exynos_usbphy 1>;