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: 5973691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C29CF9F39D for ; Tue, 10 Mar 2015 01:58:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD9D12035B for ; Tue, 10 Mar 2015 01:58:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2863A20416 for ; Tue, 10 Mar 2015 01:58:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752707AbbCJB6H (ORCPT ); Mon, 9 Mar 2015 21:58:07 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54041 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752678AbbCJB5w (ORCPT ); Mon, 9 Mar 2015 21:57:52 -0400 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>; Tue, 10 Mar 2015 10:57:44 +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 Cc: mark.rutland@arm.com, marc.zyngier@arm.com, arnd@arndb.de, olof@lixom.net, catalin.marinas@arm.com, will.deacon@arm.com, inki.dae@samsung.com, chanho61.park@samsung.com, sw0312.kim@samsung.com, jh80.chung@samsung.com, ideal.song@samsung.com, cw00.choi@samsung.com, a.kesavan@samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.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 tCT2v7jBBjJUREBEYvYFLpAaZoH1zBJ3np9k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TC5ILipPScw31 ihNzi0vz0vWS83M3MYKj+JnUDsaVDRaHGAU4GJV4eBlM/oUIsSaWFVfmHmKU4GBWEuGV0AIK 8aYkVlalFuXHF5XmpBYfYjQFumois5Rocj4wweSVxBsam5gZWRqZG1oYGZsrifMq2beFCAmk 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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>;