From patchwork Fri Feb 6 16:59:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5793641 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@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 BFCE1BF440 for ; Fri, 6 Feb 2015 17:02:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2F29201B4 for ; Fri, 6 Feb 2015 17:02:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1543720154 for ; Fri, 6 Feb 2015 17:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757105AbbBFRBr (ORCPT ); Fri, 6 Feb 2015 12:01:47 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:28970 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758339AbbBFQ7p (ORCPT ); Fri, 6 Feb 2015 11:59:45 -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 <0NJD00KAT0JJGE40@mailout4.samsung.com>; Sat, 07 Feb 2015 01:59:43 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-9c-54d4f2ff06bb Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 94.61.20081.FF2F4D45; Sat, 07 Feb 2015 01:59:43 +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 <0NJD004390IME190@mmp1.samsung.com>; Sat, 07 Feb 2015 01:59:43 +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 v3 4/8] ARM: dts: Add pwm-fan node to the Odroid-U3 board Date: Fri, 06 Feb 2015 17:59:04 +0100 Message-id: <1423241948-31981-5-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1423241948-31981-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1423241948-31981-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t9jAd3/n66EGPxvN7B4vGYxk8X8I+dY LeZfucZqsfTuJzaLH68vsFms+atk0bvgKptF/+PXzBZvHnFbXN41h83ic+8RRosZ5/cxWTxZ eIbJ4s60vWwW04+/ZXXg9/j7/DqLx85Zd9k9Nq3qZPN4MHE3m8e6aW+ZPXZ+b2D36NuyitFj 8+lqj8+b5AI4o7hsUlJzMstSi/TtErgyLm1qZSzYyVtxad4mtgbGj1xdjJwcEgImEje797FD 2GISF+6tZ+ti5OIQEljEKLG9+ToLhNPFJLG3+QQzSBWbgJ7E57tPmUASIgLbGSVWzPsG1sIs sIpZ4u7nA0AZDg5hAU+JO1NKQBpYBFQlbj+6C9bMK+AmMWPifCaIdYoS3c8msIHYnALuEgfv 7WKH2NbMKLFw1xGmCYy8CxgZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIEB/MzqR2MKxss DjEKcDAq8fAm8F4JEWJNLCuuzD3EKMHBrCTC27MUKMSbklhZlVqUH19UmpNafIhRmoNFSZxX yb4tREggPbEkNTs1tSC1CCbLxMEp1cDYd9I4wT7wWnPAi7XShruXKb4ttHH8+PmOI5f/4RuT 9E/9e83N0XfNUKpTO7Xvb6XT/03/XjTGSrgXvTauX3zv2BSHQq/cZjbHwKiF89VNDpr/X3Tn jDv7mpSb1/Y9EphRspGr29r7kUDCxCBZianXeXjSQjwe/mMO5bn+cWVX4HvJ/K+KrmxKLMUZ iYZazEXFiQAbMpepYgIAAA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 {