Skip to contentSkip to conversation

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

PATCH New Kamil Debski 1 participant 1 message Nov 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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. In addition, add the "pwm" label to the pwm@139D0000 node in the exynos4412.dtsi.

---
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 |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
arch/arm/boot/dts/exynos4.dtsi +1 -1
index e0278ec..2843b1a 100644
@@ -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>;
arch/arm/boot/dts/exynos4412-odroidu3.dts +14 -0
index c8a64be..973349b 100644
@@ -31,8 +31,22 @@
 			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 {
 	clock-names = "refclk";
 	clocks = <&pmu_system_controller 0>;
Signature · 1 line
1.7.9.5