From patchwork Wed Feb 18 10:07:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5843181 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 34553BF6C3 for ; Wed, 18 Feb 2015 10:10:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 611FB2024C for ; Wed, 18 Feb 2015 10:10:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10A9B2024F for ; Wed, 18 Feb 2015 10:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752486AbbBRKKq (ORCPT ); Wed, 18 Feb 2015 05:10:46 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:60239 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055AbbBRKKm (ORCPT ); Wed, 18 Feb 2015 05:10:42 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJY001TTPLSJ180@mailout1.samsung.com>; Wed, 18 Feb 2015 19:10:40 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-3f-54e46520e7fc Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FC.9B.09430.02564E45; Wed, 18 Feb 2015 19:10:40 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NJY00IQ4PGTKC50@mmp1.samsung.com>; Wed, 18 Feb 2015 19:10:40 +0900 (KST) From: Lukasz Majewski To: Eduardo Valentin , Kamil Debski , Jean Delvare , Guenter Roeck , Kukjin Kim Cc: 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: [PATCH v4 4/8] ARM: dts: Add pwm-fan node to the Odroid-U3 board Date: Wed, 18 Feb 2015 11:07:32 +0100 Message-id: <1424254056-5904-5-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1424254056-5904-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424254056-5904-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t9jAV2F1CchBlMOi1o8XrOYyWL+kXOs FvOvXGO1WHr3E5vFj9cX2CzW/FWy6F1wlc2i//FrZos3j7gtLu+aw2bxufcIo8WM8/uYLJ4s PMNkcWfaXjaL6cffsjrwe/x9fp3FY+esu+wem1Z1snk8mLibzWPdtLfMHju/N7B79G1Zxeix +XS1x+dNcgGcUVw2Kak5mWWpRfp2CVwZlza1Mhbs5K24NG8TWwPjR64uRk4OCQETiUWt09kg bDGJC/fWA9lcHEICixglptzdxQ7hdDFJXL66EKyKTUBP4vPdp0wgCRGB7YwSK+Z9A2thFljF LHH38wGgDAeHsICnxJTzeSANLAKqEvfmTWAEsXkFXCXmftnJDrFOUaL72QSwoZwCbhJb9yyD 2tbEKDFv6U/mCYy8CxgZVjGKphYkFxQnpeca6RUn5haX5qXrJefnbmIEB/Mz6R2MqxosDjEK cDAq8fA2/H4cIsSaWFZcmXuIUYKDWUmENz7+SYgQb0piZVVqUX58UWlOavEhRmkOFiVxXiX7 thAhgfTEktTs1NSC1CKYLBMHp1QDo6WUi3nl7gm1K888ObHfW+vXEiu/0qZ/W5e38H6o3c30 tXujidncJM35UTNO19ovD9QLut/LlNa725Jvp1HpHGHFEtZdkpfb5+fvMXs0fVp+k+ed5LYn zqsif8YKfWu4PJtrvkrpBpMlgqrL996cMvfXa8EA3tvbThkZLpYzf/7JULXjTcaRj0osxRmJ hlrMRcWJACJGg5BiAgAA 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 From: Kamil Debski Add pwm-fan node to the Odroid-U3 board file to enable PWM control of the cooling fan. In addition, add the "pwm" label to the pwm@139D0000 node in the exynos4412.dtsi. Signed-off-by: Kamil Debski [Rebased on the newest mainline by l.majewski@samsung.com] --- Changes since v1: - added pwm label to the pwm@139D0000 node in exynos4.dtsi - use the pwm label in the exynos4412-odroidu3.dts - change order or properties in the pwn-fan node, to be sorted in alphabetical order --- arch/arm/boot/dts/exynos4.dtsi | 2 +- arch/arm/boot/dts/exynos4412-odroidu3.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index f18d746..75266e3 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -582,7 +582,7 @@ status = "disabled"; }; - pwm@139D0000 { + pwm: pwm@139D0000 { compatible = "samsung,exynos4210-pwm"; reg = <0x139D0000 0x1000>; interrupts = <0 37 0>, <0 38 0>, <0 39 0>, <0 40 0>, <0 41 0>; diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index c8a64be..60bd1e4 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -31,6 +31,19 @@ linux,default-trigger = "heartbeat"; }; }; + + pwm-fan { + compatible = "pwm-fan"; + pwms = <&pwm 0 10000 0>; + status = "okay"; + }; +}; + +&pwm { + pinctrl-0 = <&pwm0_out>; + pinctrl-names = "default"; + samsung,pwm-outputs = <0>; + status = "okay"; }; &usb3503 {