Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbbBYSt1 (ORCPT ); Wed, 25 Feb 2015 13:49:27 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:41992 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895AbbBYStY (ORCPT ); Wed, 25 Feb 2015 13:49:24 -0500 Date: Wed, 25 Feb 2015 14:49:17 -0400 From: Eduardo Valentin To: Lukasz Majewski 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 v5 3/6] ARM: dts: Add properties to use pwm-fan device as a cooling device in Odroid U3 Message-ID: <20150225184914.GF2306@developer.amazonguestwifi.org> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424878462-15511-1-git-send-email-l.majewski@samsung.com> <1424878462-15511-4-git-send-email-l.majewski@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ni93GHxFvA+th69W" Content-Disposition: inline In-Reply-To: <1424878462-15511-4-git-send-email-l.majewski@samsung.com> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2843 Lines: 102 --ni93GHxFvA+th69W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 25, 2015 at 04:34:19PM +0100, Lukasz Majewski wrote: > With those bindings it is possible to use pwm-fan device available in > Odroid U3 as a cooling device. >=20 > Signed-off-by: Lukasz Majewski Acked-by: Eduardo Valentin > --- > 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 > Changes for v5: > - None > --- > arch/arm/boot/dts/exynos4412-odroidu3.dts | 33 +++++++++++++++++++++++++= +++++- > 1 file changed, 32 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dt= s/exynos4412-odroidu3.dts > index 4c04837..abcfa3c 100644 > --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts > +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts > @@ -32,9 +32,40 @@ > }; > }; > =20 > - pwm-fan { > + fan0: pwm-fan { > compatible =3D "pwm-fan"; > pwms =3D <&pwm 0 10000 0>; > + cooling-min-state =3D <0>; > + cooling-max-state =3D <3>; > + #cooling-cells =3D <2>; > + cooling-levels =3D <0 102 170 230>; > + }; > + > + thermal-zones { > + cpu_thermal: cpu-thermal { > + cooling-maps { > + map0 { > + trip =3D <&cpu_alert1>; > + cooling-device =3D <&cpu0 7 7>; > + }; > + map1 { > + trip =3D <&cpu_alert2>; > + cooling-device =3D <&cpu0 13 13>; > + }; > + map2 { > + trip =3D <&cpu_alert0>; > + cooling-device =3D <&fan0 0 1>; > + }; > + map3 { > + trip =3D <&cpu_alert1>; > + cooling-device =3D <&fan0 1 2>; > + }; > + map4 { > + trip =3D <&cpu_alert2>; > + cooling-device =3D <&fan0 2 3>; > + }; > + }; > + }; > }; > }; > =20 > --=20 > 2.0.0.rc2 >=20 --ni93GHxFvA+th69W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJU7hkjAAoJEMLUO4d9pOJWiKMIAJjWBv/CyV5+Zi5W8+cbna4P kqlNOKLVit8KArv7/oIsd1A546GmHjlr9e+Si+VrIoaTy6VR2bmb7xnbne2iBjxM npc/iy93Fm4kFgtrhE2AkArR62pVVBRln8OcxVRtJSgUWdzNWORmIgTiu20iF96U F1i+9Evy7z9+qsUwS8+e5WvAI/+82upbwwb7yKjQg6KbHOfEk4idDQHzm/nNJJR/ BXARxmzpUlPW68tyn1M6sMt6l6P8qW7O+T5HwAaSXLhYs3F6aXB1/vRmGVSkTWJP ufMNpraa+MtLkM/Z2aQt1lKHSqIborsiZ96nPDdbfSqsdLWO+SNNVNyqxUA0bKs= =JciM -----END PGP SIGNATURE----- --ni93GHxFvA+th69W-- -- 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/