Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758407AbbBFRBs (ORCPT ); Fri, 6 Feb 2015 12:01:48 -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 X-AuditID: cbfee61a-f79c06d000004e71-9c-54d4f2ff06bb 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1906 Lines: 65 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 { -- 2.0.0.rc2 -- 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/