arm64: jetson: enable fan control for Jetson.
Hayden Du [Wed, 24 Dec 2014 06:49:53 +0000 (06:49 +0000)]
bug 200067572

Change-Id: I4397e96205a3ec3d5a09cbec85aea66a69843c1c
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/667516
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm64/boot/dts/tegra210-jetson-e-p2595-0000-a00-00.dts
drivers/misc/therm_fan_est.c
drivers/thermal/pwm_fan.c

index 7dd712c..cb1753e 100644 (file)
        };
 
        thermal-fan-est {
-               compatible = "jetson-thermal-est";
+               compatible = "thermal-fan-est";
                active_trip_temps = <0 63000 74000 85000 120000
                                140000 150000 160000 170000 180000>;
                active_hysteresis = <0 15000 11000 6000 4000
        };
 
        pwm-fan {
-               compatible = "jetson-pwm-fan";
+               compatible = "pwm-fan";
                shared_data = <&pwm_fan_shared_data>;
                active_pwm = <0 70 115 135 135 240 245 250 252 255>;
        };
index 4e7dfae..d867fe3 100644 (file)
@@ -661,6 +661,7 @@ static int therm_fan_est_resume(struct platform_device *pdev)
 static const struct of_device_id of_thermal_est_match[] = {
        { .compatible = "loki-thermal-est", },
        { .compatible = "foster-thermal-est", },
+       { .compatible = "thermal-fan-est", },
        {},
 };
 MODULE_DEVICE_TABLE(of, of_thermal_est_match);
index dc32f82..e2ded64 100644 (file)
@@ -1031,7 +1031,7 @@ static const struct of_device_id of_pwm_fan_match[] = {
        { .compatible = "loki-pwm-fan", },
        { .compatible = "ers-pwm-fan", },
        { .compatible = "foster-pwm-fan", },
-       { .compatible = "jetson-pwm-fan", },
+       { .compatible = "pwm-fan", },
        {},
 };
 MODULE_DEVICE_TABLE(of, of_pwm_fan_match);