From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753127AbcBZAiy (ORCPT ); Thu, 25 Feb 2016 19:38:54 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:44935 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbcBZAiv (ORCPT ); Thu, 25 Feb 2016 19:38:51 -0500 X-AuditID: cbfec7f4-f79026d00000418a-36-56cf9e985ea1 Subject: Re: [RESPIN/PATCH] arm64: dts: Add tmu node for exynos7 To: Alim Akhtar , linux-arm-kernel@lists.infradead.org References: <1456391116-11553-1-git-send-email-alim.akhtar@samsung.com> Cc: catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, l.majewski@samsung.com From: Krzysztof Kozlowski Message-id: <56CF9E93.9090905@samsung.com> Date: Fri, 26 Feb 2016 09:38:43 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-version: 1.0 In-reply-to: <1456391116-11553-1-git-send-email-alim.akhtar@samsung.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t/xq7oz5p0PM7hxns3iwbxtbBbvl/Uw Wsw/co7V4vULQ4s3DzczWmx6fI3V4vKuOWwWM87vY7J4+fEEiwOnx5p5axg9Ni+p9+jbsorR 4/MmuQCWKC6blNSczLLUIn27BK6M5kk2Bc3qFVf/hTYwNsl3MXJySAiYSDRu2McEYYtJXLi3 nq2LkYtDSGApo8SMEwsYIZynjBJLT01iAakSFnCQOHd7BpDNwSEi4C9x6UENSFhIwF3iedcq VpB6ZoGVjBI3r7xmBkmwCRhLbF6+hA3E5hXQkph0pZkdxGYRUJWY+2ozK4gtKhAhcbizix2i RlDix+R7YLs4BTwkOt/3sILsYhbQk7h/UQskzCwgL7F5zVvmCYwCs5B0zEKomoWkagEj8ypG 0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkCD/soNx8TGrQ4wCHIxKPLwRv8+GCbEmlhVX5h5i lOBgVhLhvVx2PkyINyWxsiq1KD++qDQntfgQozQHi5I479xd70OEBNITS1KzU1MLUotgskwc nFINjB039+qffry+6eY0Z4mcT4vqVbKZPe5J3raOstomPjMlXP7OIt49l2z2f5eWcXsV/StT Z+Ga4owZ7XfcvdqT/erUar7Ocun/cn3DMiE1pvd6U7/Yrgv0ruSSXuW3+u83rQOL2PbeOvj6 h6B/SpWJc8FxR/vjl7yfHniguNP5n2YVz5LWl7YuB5VYijMSDbWYi4oTAf2k5C1uAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.02.2016 18:05, Alim Akhtar wrote: > 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. All my comments from previous submission are still valid... Best regards, Krzysztof > > .../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" > + }; > + }; > }; > }; > >