Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932474AbbBZOAM (ORCPT ); Thu, 26 Feb 2015 09:00:12 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:45213 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932368AbbBZOAI (ORCPT ); Thu, 26 Feb 2015 09:00:08 -0500 X-AuditID: cbfee61a-f79c06d000004e71-12-54ef26e66016 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 v6 2/6] ARM: dts: Add pwm-fan node to the Odroid-U3 board Date: Thu, 26 Feb 2015 14:59:33 +0100 Message-id: <1424959177-28739-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1424959177-28739-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424959177-28739-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsVy+t9jQd1nau9DDCYdF7F4vGYxk8X8I+dY LeZfucZqsfTuJzaLH68vsFms+atk0bvgKptF/+PXzBZvHnFbvHm4mdHi8q45bBafe48wWsw4 v4/J4snCM0wWd6btZbOYfvwtq4OAx9/n11k8ds66y+6xaVUnm8eDibvZPNZNe8vssfN7A7tH 35ZVjB6bT1d7fN4kF8AZxWWTkpqTWZZapG+XwJVxeYpjwQ6+ikNbG1kbGO9xdzFyckgImEjc evKLCcIWk7hwbz1bFyMXh5DAdEaJ5i0TmCCcLiaJKftamUGq2AT0JD7ffQqWEBHYziixYt43 sBZmgWvMEvs2HwWbJSzgKTHr5GU2EJtFQFWi7/cUsDivgJvEkbP3mSH2KUp0P5sAVsMp4C7x tOEe1O5mRolJlxczTmDkXcDIsIpRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjOKyfSe1gXNlg cYhRgINRiYc3IftdiBBrYllxZe4hRgkOZiURXjal9yFCvCmJlVWpRfnxRaU5qcWHGKU5WJTE eZXs20KEBNITS1KzU1MLUotgskwcnFINjJekAqZ3PdJjWVW3b9MCG3f/u/+7ws8b7TnRKJpW LR/l/uRG/w5RsdTIl72NDfLnbb9/Fj8itaHlu3TNud/t4slJk5o156ZbPVt1/unBY107xM+t fysZuc3X6luHsomC9IqijA1Nf5r6TTrUV8938HM89PCLw10vHt6s/A06gc9PND5yOHlhvRJL cUaioRZzUXEiADOubxRnAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2029 Lines: 69 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 Changes for v6: - None --- 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/