From patchwork Tue Mar 10 01:57:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 5973891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9610CBF440 for ; Tue, 10 Mar 2015 02:04:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 955F5203DF for ; Tue, 10 Mar 2015 02:04:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC91A203C1 for ; Tue, 10 Mar 2015 02:04:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV9To-0007Mj-F9; Tue, 10 Mar 2015 02:01:08 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV9R1-0004G4-RG for linux-arm-kernel@lists.infradead.org; Tue, 10 Mar 2015 01:58:16 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKZ00DFX4476530@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 10 Mar 2015 10:57:43 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 7D.FD.19034.79F4EF45; Tue, 10 Mar 2015 10:57:43 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-b9-54fe4f97754f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E4.36.20081.79F4EF45; Tue, 10 Mar 2015 10:57:43 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NKZ00ETZ446UH20@mmp2.samsung.com>; Tue, 10 Mar 2015 10:57:42 +0900 (KST) From: Chanwoo Choi To: kgene@kernel.org Subject: [PATCH v6 8/9] arm64: dts: exynos: Add TMU sensor dt node for Exynos5433 SoC Date: Tue, 10 Mar 2015 10:57:34 +0900 Message-id: <1425952655-21654-9-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 In-reply-to: <1425952655-21654-1-git-send-email-cw00.choi@samsung.com> References: <1425952655-21654-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWyRsSkWHe6/78Qg70zjC0er1nMZPF30jF2 i/fLehgtLu/Xtrj+5Tmrxfwj51gtdv29z2gx6f4EFosbv9pYLfofv2a22PT4GqvF5V1z2Cxm nN8H1HrnH5vF0usXmSxOXf8MFJv8ks3i5ccTLA5CHmvmrWH0+P1rEqPHplWdbB6bl9R7XDnR xOrRt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGTu/LGMsWCxf8e7odNYGxneSXYwcHBICJhKz 53N3MXICmWISF+6tZwOxhQSWMkps3soHETeRmPp3B1CcCyg+nVHi39OzUE4Tk8Ts5f/AOtgE tCT2v7jBBjJUREBEYvYFLpAaZoH1zBJ3np9kBKkRFgiX+PXgNDOIzSKgKnH8wmN2EJtXwFXi /a8/TBDbFCSWLZ/JCmJzCrhJLNjzkRniIleJlctngS2WEPjKLvF5wXUWiEECEt8mH2KB+EZW YtMBZog5khIHV9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SVxBsam5gZWRqZG1oYGZsrifMq2beFCAmk J5akZqemFqQWwfQxcXBKNTDu/vFZx8jZaK3ITOH95y99/DfBb7dMubnLOofM2F/LWMs2t/j/ OPGOpXaK/z6jR5uOxl22jCqP/xlwtnl9rLjvobojCepczH78jPuuKT0/yxE2+VFpdoY5+/fL cjKcIUtW7jc6+Xf2vRNiP6/bmi0zCpv79cVX9g+dq+MXdb+4aT//3em0rCI5JZbijERDLeai 4kQAkJs9r/gCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150309_185816_126385_9BA9BB4B X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: mark.rutland@arm.com, jh80.chung@samsung.com, linux-samsung-soc@vger.kernel.org, arnd@arndb.de, cw00.choi@samsung.com, marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, a.kesavan@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, devicetree@vger.kernel.org, olof@lixom.net, chanho61.park@samsung.com, linux-arm-kernel@lists.infradead.org, ideal.song@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the TMU (Thermal Management Unit) sensor devicetree node for Exynos5433. The Exynos5433 includes the five temperature sensors as following: - two temperature sensor for Cortex-A57 (ATLAS) - one temperature sensor for Cortex-A53 (APOLLO) - one temperature sensor for G3D IP - one temperature sensor for ISP IP Cc: Kukjin Kim Signed-off-by: Chanwoo Choi Acked-by: Inki Dae Reviewed-by: Lukasz Majewski --- .../dts/exynos/exynos5433-tmu-sensor-conf.dtsi | 22 +++++++++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 55 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi new file mode 100644 index 0000000..396e60f --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi @@ -0,0 +1,22 @@ +/* + * Device tree sources for Exynos5433 TMU sensor configuration + * + * Copyright (c) 2015 Chanwoo Choi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include + +#thermal-sensor-cells = <0>; +samsung,tmu_gain = <8>; +samsung,tmu_reference_voltage = <16>; +samsung,tmu_noise_cancel_mode = <4>; +samsung,tmu_efuse_value = <75>; +samsung,tmu_min_efuse_value = <40>; +samsung,tmu_max_efuse_value = <150>; +samsung,tmu_first_point_trim = <25>; +samsung,tmu_second_point_trim = <85>; +samsung,tmu_default_temp_offset = <50>; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index fea4e32..22f36f5 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -836,6 +836,61 @@ status = "disabled"; }; + tmu_atlas0: tmu@10060000 { + compatible = "samsung,exynos5433-tmu"; + reg = <0x10060000 0x200>; + interrupts = <0 95 0>; + clocks = <&cmu_peris CLK_PCLK_TMU0_APBIF>, + <&cmu_peris CLK_SCLK_TMU0>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos5433-tmu-sensor-conf.dtsi" + status = "disabled"; + }; + + tmu_atlas1: tmu@10068000 { + compatible = "samsung,exynos5433-tmu"; + reg = <0x10068000 0x200>; + interrupts = <0 96 0>; + clocks = <&cmu_peris CLK_PCLK_TMU0_APBIF>, + <&cmu_peris CLK_SCLK_TMU0>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos5433-tmu-sensor-conf.dtsi" + status = "disabled"; + }; + + tmu_g3d: tmu@10070000 { + compatible = "samsung,exynos5433-tmu"; + reg = <0x10070000 0x200>; + interrupts = <0 99 0>; + clocks = <&cmu_peris CLK_PCLK_TMU1_APBIF>, + <&cmu_peris CLK_SCLK_TMU1>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos5433-tmu-sensor-conf.dtsi" + status = "disabled"; + }; + + tmu_apollo: tmu@10078000 { + compatible = "samsung,exynos5433-tmu"; + reg = <0x10078000 0x200>; + interrupts = <0 115 0>; + clocks = <&cmu_peris CLK_PCLK_TMU1_APBIF>, + <&cmu_peris CLK_SCLK_TMU1>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos5433-tmu-sensor-conf.dtsi" + status = "disabled"; + }; + + tmu_isp: tmu@1007c000 { + compatible = "samsung,exynos5433-tmu"; + reg = <0x1007c000 0x200>; + interrupts = <0 94 0>; + clocks = <&cmu_peris CLK_PCLK_TMU1_APBIF>, + <&cmu_peris CLK_SCLK_TMU1>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos5433-tmu-sensor-conf.dtsi" + status = "disabled"; + }; + pmu_system_controller: system-controller@105c0000 { compatible = "samsung,exynos5433-pmu", "syscon"; reg = <0x105c0000 0x5008>;