Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752607AbbBRKKq (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 X-AuditID: cbfee61b-f79d76d0000024d6-3f-54e46520e7fc 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-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/