Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbbBYN2j (ORCPT ); Wed, 25 Feb 2015 08:28:39 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:10164 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588AbbBYN2h (ORCPT ); Wed, 25 Feb 2015 08:28:37 -0500 X-AuditID: cbfee61a-f79c06d000004e71-7c-54edcdfb6892 Date: Wed, 25 Feb 2015 14:28:15 +0100 From: Lukasz Majewski To: Eduardo Valentin Cc: Kamil Debski , Jean Delvare , Guenter Roeck , Kukjin Kim , lm-sensors@lm-sensors.org, Linux PM list , "linux-samsung-soc@vger.kernel.org" , devicetree@vger.kernel.org, Lukasz Majewski , Kukjin Kim , linux-kernel@vger.kernel.org, Sjoerd Simons , Abhilash Kesavan , Abhilash Kesavan Subject: Re: [PATCH v4 5/8] ARM: dts: Add properties to use pwm-fan device as a cooling device in Odroid U3 Message-id: <20150225142815.562fe22b@amdc2363> In-reply-to: <20150224193711.GA353@developer.amazonguestwifi.org> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424254056-5904-1-git-send-email-l.majewski@samsung.com> <1424254056-5904-6-git-send-email-l.majewski@samsung.com> <20150224193711.GA353@developer.amazonguestwifi.org> Organization: SPRC Poland X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jQd3fZ9+GGPS/sbZ4vGYxk8X8I+dY LeZfucZqsfTuJzaLH68vsFms+atk0bvgKptF/+PXzBZvHnFbXN41h83ic+8RRosZ5/cxWTxZ eIbJ4s60vWwW04+/ZXXg9/j7/DqLx85Zd9k9Nq3qZPN4MHE3m8e6aW+ZPXZ+b2D36NuyitFj 8+lqj8+b5AI4o7hsUlJzMstSi/TtErgyrp1pZSrYJlzx+fsrlgbGz7xdjBwcEgImEhuO23Qx cgKZYhIX7q1n62Lk4hASmM4ocWPCOnYI5xejxP+7n5lBqlgEVCX6Tv9mBbHZBPQkPt99ygRi iwhoSZy4tJ0JpIFZYDuLxPbJn9hBNggL5Eo8Wq8FUsMLVH/z+gx2EJtTwFFiSfspVogFXxkl Nm+bygiS4BeQlGj/94MZ4iQ7iXOfNrBDNAtK/Jh8jwXEZgZatnlbEyuELS+xec1b5gmMgrOQ lM1CUjYLSdkCRuZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMER90xqB+PKBotDjAIcjEo8 vAnCb0KEWBPLiitzDzFKcDArifD+2vo2RIg3JbGyKrUoP76oNCe1+BCjNAeLkjivkn1biJBA emJJanZqakFqEUyWiYNTqoGxRf94tueOluYuMXODg72rhbX6rsq9MNifejdTsH1zkPam/6cq ox7w+aty8V9/nljrP385I2tKtTD7D8mzG7ak3W3M1TSRuTt1RdVNRjZ3vsQDj+eKhmZk1DDY chf/Dq9nPuCVa1CrvuLA84qml15TvP5/frC6j2WfWoWT71KdNwJNYsJcfEosxRmJhlrMRcWJ ALOK/lq0AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2632 Lines: 104 Hi Eduardo, > On Wed, Feb 18, 2015 at 11:07:33AM +0100, Lukasz Majewski wrote: > > With those bindings it is possible to use pwm-fan device available > > in Odroid U3 as a cooling device. > > > > Signed-off-by: Lukasz Majewski > > --- > > Changes for v2: > > - Rename cooling-pwm-values property to cooling-levels > > Changes for v3: > > - Change patch's topic to "ARM dts" > > - Reduce maximal cooling-level to 230 from 255 > > Changes for v4: > > - None > > --- > > arch/arm/boot/dts/exynos4412-odroidu3.dts | 33 > > ++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 > > deletion(-) > > > > diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts > > b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 60bd1e4..3e5df3e > > 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts > > +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts > > @@ -32,11 +32,42 @@ > > }; > > }; > > > > - pwm-fan { > > + fan0: pwm-fan { > > compatible = "pwm-fan"; > > pwms = <&pwm 0 10000 0>; > > + cooling-min-state = <0>; > > + cooling-max-state = <3>; > > + #cooling-cells = <2>; > > + cooling-levels = <0 102 170 230>; > > status = "okay"; > > }; > > + > > + thermal-zones { > > + cpu_thermal: cpu-thermal { > > > This thermal zone misses the mandatory properties as per > Documentation/devicetree/bindings/thermal/thermal.txt Following mandatory properties: thermal-sensors = <&tmu 0>; polling-delay-passive = <0>; polling-delay = <0>; trips { } are defined in exynos4-cpu-thermal.dtsi included by this file. In this patch only device dependent changes are stated. > > > + cooling-maps { > > + map0 { > > + trip = <&cpu_alert1>; > > + cooling-device = <&cpu0 7 7>; > > + }; > > + map1 { > > + trip = <&cpu_alert2>; > > + cooling-device = <&cpu0 13 > > 13>; > > + }; > > + map2 { > > + trip = <&cpu_alert0>; > > + cooling-device = <&fan0 0 1>; > > + }; > > + map3 { > > + trip = <&cpu_alert1>; > > + cooling-device = <&fan0 1 2>; > > + }; > > + map4 { > > + trip = <&cpu_alert2>; > > + cooling-device = <&fan0 2 3>; > > + }; > > + }; > > + }; > > + }; > > }; > > > > &pwm { > > -- > > 2.0.0.rc2 > > -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/