[PATCH V2 6/9] arm64: tegra: Add pwm based fan support on Tegra186
From: Rajkumar Rampelli
Date: Wed Mar 21 2018 - 00:47:13 EST
Add pwm fan driver support on Tegra186 SoC.
Signed-off-by: Rajkumar Rampelli <rrajk@xxxxxxxxxx>
---
V2: Removed generic-pwm-tachometer driver dt node and using pwm-fan driver
for reading fan speed.
arch/arm64/boot/dts/nvidia/tegra186.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
index 19e1afc..27ae73e 100644
--- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
@@ -1053,4 +1053,10 @@
reset-names = "tachometer";
status = "disabled";
};
+
+ pwm_fan {
+ compatible = "pwm-fan";
+ pwms = <&tegra_tachometer 0 1000000>;
+ status = "disabled";
+ };
};
--
2.1.4