From patchwork Thu Feb 25 09:05:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 8420801 Return-Path: X-Original-To: patchwork-linux-arm@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 65EAE9F372 for ; Thu, 25 Feb 2016 09:07:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 910EC201F2 for ; Thu, 25 Feb 2016 09:06:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9275920263 for ; Thu, 25 Feb 2016 09:06:57 +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 1aYrrC-0008Lw-8D; Thu, 25 Feb 2016 09:05:10 +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 1aYrr8-0007Yx-Ad for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2016 09:05:08 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O3300DGEIJU4A50@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2016 18:04:43 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.134]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 4A.A5.04964.AA3CEC65; Thu, 25 Feb 2016 18:04:42 +0900 (KST) X-AuditID: cbfee68f-f793a6d000001364-6a-56cec3aae1fb Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id A6.B4.09068.AA3CEC65; Thu, 25 Feb 2016 18:04:42 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O330051WIJKQB60@mmp1.samsung.com>; Thu, 25 Feb 2016 18:04:42 +0900 (KST) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org Subject: [RESPIN/PATCH] arm64: dts: Add tmu node for exynos7 Date: Thu, 25 Feb 2016 14:35:16 +0530 Message-id: <1456391116-11553-1-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsWyRsSkTXfV4XNhBt1vrCzeL+thtJh/5Byr xesXhhZvHm5mtNj0+BqrxeVdc9gsZpzfx2Tx8uMJFgcOjzXz1jB6bF5S79G3ZRWjx+dNcgEs UVw2Kak5mWWpRfp2CVwZ37b8YC94plwx9/Rk1gbGCbJdjJwcEgImEpc2tLJB2GISF+6tB7K5 OIQEVjBKrF05gRGmaOq6mUwQiaWMEv+OnmKGcH4ySmz6fpcJpIpNQFvi7vQtYLaIgIbElK7H 7CBFzAKHGCV2resAGyUsYCOxZPtkZhCbRUBV4ujeu2A2r4C7xOK2rSwQ6xQlup9NALtDQqCZ XWLDv5csEA0CEt8mHwKyOYASshKbDjBD1EtKHFxxg2UCo+ACRoZVjKKpBckFxUnpRcZ6xYm5 xaV56XrJ+bmbGIFhe/rfs/4djHcPWB9iFOBgVOLhjfh9NkyINbGsuDL3EKMp0IaJzFKiyfnA 6MgriTc0NjOyMDUxNTYytzRTEuddKPUzWEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVANjiHxN avk+/oQKw5cXH0dP+fPf1kTt/fFjUx9vSGu4qVLi+6K9arXOoizV2in7E+/OD+39H51uLbZZ LMFLQmvv2wkTZ8nELFuaO3mOn95qk9fWF37LsU3k2N5uVijxbvd2V/6i9XtEr3Ac0HzT1syh UXw0+Ebi1h2RV/8tmdDNLZDT95tN9UCpEktxRqKhFnNRcSIASXjVB1YCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jAd1Vh8+FGbz6YWrxflkPo8X8I+dY LV6/MLR483Azo8Wmx9dYLS7vmsNmMeP8PiaLlx9PsDhweKyZt4bRY/OSeo++LasYPT5vkgtg iWpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wBukJJ oSwxpxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjHmPFtyw/2gmfKFXNPT2ZtYJwg 28XIySEhYCIxdd1MJghbTOLCvfVsXYxcHEICSxkl/h09xQzh/GSU2PT9LlgVm4C2xN3pW8Bs EQENiSldj9lBipgFDjFK7FrXwQiSEBawkViyfTIziM0ioCpxdO9dMJtXwF1icdtWFoh1ihLd zyawTWDkXsDIsIpRIrUguaA4KT3XKC+1XK84Mbe4NC9dLzk/dxMjODaeSe9gPLzL/RCjAAej Eg8vw8+zYUKsiWXFlblAizmYlUR4LfeeCxPiTUmsrEotyo8vKs1JLT7EaAp0wERmKdHkfGDc 5pXEGxqbmBlZGplZGJmYmyuJ8z7+vy5MSCA9sSQ1OzW1ILUIpo+Jg1OqgVFfNmr1G51wv/Pe jof52r8mPTf/FedXa9T36bnxPBMV+/J7yw1ua6tN71/dterIPWaFXd915RvmVJz6OeeYpqqA 7ovWts4XT1JT7A+fOfd/S4PdEf14hpLNJx5ciFrTuI713d7LM0xPNOq5XJ6WGGISr2g65+GH 79ee8XHPZG4Ss5oySXILp4gSS3FGoqEWc1FxIgB5ttEUowIAAA== 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-20160225_010506_584282_067DFBAE X-CRM114-Status: GOOD ( 17.09 ) X-Spam-Score: -6.9 (------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, k.kozlowski@samsung.com, linux-samsung-soc@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, l.majewski@samsung.com 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=-1.9 required=5.0 tests=BAYES_00, 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 tmu node, related temprature sensor and triping point data for Atlas cpu core found on exynos7 SoC. Signed-off-by: Alim Akhtar --- Change log: * no changes, just sending back from my email id. .../boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi | 25 +++++++++ .../arm64/boot/dts/exynos/exynos7-trip-points.dtsi | 55 ++++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos7.dtsi | 20 +++++++ 3 files changed, 100 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi b/arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi new file mode 100644 index 0000000..1d6dcf2 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi @@ -0,0 +1,25 @@ +/* + * Device tree sources for Exynos7 TMU sensor configuration + * + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * 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 = <9>; +samsung,tmu_reference_voltage = <17>; +samsung,tmu_noise_cancel_mode = <4>; +samsung,tmu_efuse_value = <75>; +samsung,tmu_min_efuse_value = <15>; +samsung,tmu_max_efuse_value = <100>; +samsung,tmu_first_point_trim = <25>; +samsung,tmu_second_point_trim = <85>; +samsung,tmu_default_temp_offset = <50>; +samsung,tmu_cal_type = ; diff --git a/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi new file mode 100644 index 0000000..3970545 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos7-trip-points.dtsi @@ -0,0 +1,55 @@ +/* + * Device tree sources for default Exynos7 thermal zone definition + * + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * 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. + * + */ + +trips { + cpu-alert-0 { + temperature = <75000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-1 { + temperature = <80000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-2 { + temperature = <85000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-3 { + temperature = <90000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-4 { + temperature = <95000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-5 { + temperature = <100000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + cpu-alert-6 { + temperature = <110000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "passive"; + }; + /* HW Trip point */ + cpu-crit-0 { + temperature = <115000>; /* millicelsius */ + hysteresis = <0>; /* millicelsius */ + type = "critical"; + }; +}; diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi index c662f98..fc9d130 100644 --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi @@ -27,6 +27,7 @@ pinctrl6 = &pinctrl_fsys0; pinctrl7 = &pinctrl_fsys1; pinctrl8 = &pinctrl_bus1; + tmuctrl0 = &tmuctrl_0; }; cpus { @@ -538,6 +539,25 @@ clocks = <&clock_peric0 PCLK_PWM>; clock-names = "timers"; }; + + tmuctrl_0: tmu@10060000 { + compatible = "samsung,exynos7-tmu"; + reg = <0x10060000 0x200>; + interrupts = <0 108 0>; + clocks = <&clock_peris PCLK_TMU>, + <&clock_peris SCLK_TMU>; + clock-names = "tmu_apbif", "tmu_sclk"; + #include "exynos7-tmu-sensor-conf.dtsi" + }; + + thermal-zones { + atlas_thermal: atlas-thermal { + polling-delay-passive = <0>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + thermal-sensors = <&tmuctrl_0>; + #include "exynos7-trip-points.dtsi" + }; + }; }; };