Browse Source

ARM: dts: Add pwm-fan node for exynos4412-odroidu3

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 <k.debski@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Kamil Debski 10 years ago
parent
commit
ee6011f299
1 changed files with 12 additions and 0 deletions
  1. 12 0
      arch/arm/boot/dts/exynos4412-odroidu3.dts

+ 12 - 0
arch/arm/boot/dts/exynos4412-odroidu3.dts

@@ -32,6 +32,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 {