arm64: tegra: Add PWM fan support on Jetson Xavier
authorThierry Reding <treding@nvidia.com>
Fri, 21 Sep 2018 09:08:28 +0000 (11:08 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 15:44:04 +0000 (16:44 +0100)
Enable PWM4 in device tree and use it to drive the PWM fan on the Jetson
Xavier.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts

index 9ff3c18280c40831448eb22dd83a33a701eb6309..86f05504ca38f8d04b7fc267efe7f8366d0774bb 100644 (file)
                sdhci@3400000 {
                        status = "okay";
                };
+
+               pwm@c340000 {
+                       status = "okay";
+               };
+       };
+
+       fan {
+               compatible = "pwm-fan";
+               pwms = <&pwm4 0 45334>;
        };
 };