From patchwork Wed Feb 25 15:34:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5880991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 062F79F269 for ; Wed, 25 Feb 2015 15:36:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28D4920381 for ; Wed, 25 Feb 2015 15:36:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E686A2037E for ; Wed, 25 Feb 2015 15:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753682AbbBYPey (ORCPT ); Wed, 25 Feb 2015 10:34:54 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:63913 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753573AbbBYPes (ORCPT ); Wed, 25 Feb 2015 10:34:48 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKC00CKQ39YJVA0@mailout4.samsung.com>; Thu, 26 Feb 2015 00:34:46 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-e9-54edeb95b15c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D4.24.20081.59BEDE45; Thu, 26 Feb 2015 00:34:46 +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 <0NKC00MHG39D86A0@mmp1.samsung.com>; Thu, 26 Feb 2015 00:34:45 +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 , Lukasz Majewski Subject: [PATCH v5 2/6] ARM: dts: Add pwm-fan node to the Odroid-U3 board Date: Wed, 25 Feb 2015 16:34:18 +0100 Message-id: <1424878462-15511-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1424878462-15511-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424878462-15511-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jAd1pr9+GGEy5wGbxeM1iJov5R86x Wsy/co3VYundT2wWP14DJdb8VbLoXXCVzaL/8WtmizePuC3ePNzMaHF51xw2i8+9RxgtZpzf x2TxZOEZJos70/ayWUw//pbVQcDj7/PrLB47Z91l99i0qpPN48HE3Wwe66a9ZfbY+b2B3aNv yypGj82nqz0+b5IL4IzisklJzcksSy3St0vgyjjQ4F8wn6/iw6/njA2MZ7i7GDk5JARMJL5e OcsCYYtJXLi3nq2LkYtDSGARo8StjsNQTheTxKspcxlBqtgE9CQ+333KBJIQEdjOKLFi3jew KmaBa8wS+zYfZQKpEhbwlNjxYyNrFyMHB4uAqsTFZwogYV4BN4n1d5qg1ilKdD+bwAZicwq4 S8x985wdYlsz0OqL05gnMPIuYGRYxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREc1M+kdjCu bLA4xCjAwajEw5sg/CZEiDWxrLgy9xCjBAezkghv69m3IUK8KYmVValF+fFFpTmpxYcYpTlY lMR5lezbQoQE0hNLUrNTUwtSi2CyTBycUg2Mbc+nXtn7ou5z196zIXc6zZOy3B//Xz/96tT/ BxY0ud6L+BRyzmn9dJOq8CQjvr+zbu9LmXzec+WNM93PFRyjBFY2pKRXWR/el6zU6sMT/sbA qvFQcWSixnQZz3Le1KjA14uNDVp5FpzZtcj59SP+51z6advWSMlz/XqrGFtUq21wvqcjwGu3 EktxRqKhFnNRcSIAzQWgfWYCAAA= 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 Signed-off-by: Lukasz Majewski --- 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 Changes for v5: - Adding Signed-off-by: Lukasz Majewski - status = "okay"; dropped from the patch --- arch/arm/boot/dts/exynos4.dtsi | 2 +- arch/arm/boot/dts/exynos4412-odroidu3.dts | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 690f56c..a93f5ca5 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -599,7 +599,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 44684e5..4c04837 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -31,6 +31,18 @@ linux,default-trigger = "heartbeat"; }; }; + + pwm-fan { + compatible = "pwm-fan"; + pwms = <&pwm 0 10000 0>; + }; +}; + +&pwm { + pinctrl-0 = <&pwm0_out>; + pinctrl-names = "default"; + samsung,pwm-outputs = <0>; + status = "okay"; }; &usb3503 {