Skip to contentSkip to conversation

ARM: dts: Add pwm-fan node to the Odroid-U3 board

PATCH Superseded Kamil Debski 2 participants 2 messages Nov 3, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: Add pwm-fan node to the Odroid-U3 board

Add pwm-fan node to the Odroid-U3 board file to enable PWM control of the cooling fan.

---
 arch/arm/boot/dts/exynos4412-odroidu3.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/exynos4412-odroidu3.dts +13 -0
index c8a64be..764bda4 100644
@@ -31,6 +31,19 @@
 			linux,default-trigger = "heartbeat";
 		};
 	};
+
+	pwm: pwm@139D0000 {
+		pinctrl-0 = <&pwm0_out>;
+		pinctrl-names = "default";
+		samsung,pwm-outputs = <0>;
+		status = "okay";
+	};
+
+	pwm-fan {
+		compatible = "pwm-fan";
+		status = "okay";
+		pwms = <&pwm 0 10000 0>;
+	};
 };
 
 &usb3503 {
Signature · 1 line
1.7.9.5
#1 lore raw

Hi,

Am 03.11.2014 um 15:43 schrieb Kamil Debski:

Quoted 13 lines

Add pwm-fan node to the Odroid-U3 board file to enable PWM control of the cooling fan.

---
 arch/arm/boot/dts/exynos4412-odroidu3.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/exynos4412-odroidu3.dts +0 -0
index c8a64be..764bda4 100644

arch/arm/boot/dts/exynos4412-odroidu3.dts line 40

Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +7 -0
@@ -31,6 +31,19 @@
 			linux,default-trigger = "heartbeat";
 		};
 	};
+
+	pwm: pwm@139D0000 {
+		pinctrl-0 = <&pwm0_out>;
+		pinctrl-names = "default";
+		samsung,pwm-outputs = <0>;
+		status = "okay";
+	};

Please add the pwm label in the .dtsi if necessary and then just do &pwm {...}; before &usb3503 below.

arch/arm/boot/dts/exynos4412-odroidu3.dts line 49

Quoted 9 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +6 -0
+
+	pwm-fan {
+		compatible = "pwm-fan";
+		status = "okay";
+		pwms = <&pwm 0 10000 0>;
+	};
 };
 
 &usb3503 {

Regards,
Andreas

Signature · 2 lines
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg