Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753774AbbBYPez (ORCPT ); Wed, 25 Feb 2015 10:34:55 -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 X-AuditID: cbfee61a-f79c06d000004e71-e9-54edeb95b15c 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2006 Lines: 67 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 { -- 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/