01 Jul, 2014

1 commit

  • On latest i.MX6 SOC with thermal calibration data of 0x5A100000,
    the critical trip temperature will be an invalid value and
    cause system auto shutdown as below log:

    thermal thermal_zone0: critical temperature reached(42 C),shutting down

    So, with universal formula for thermal sensor, only room
    temperature point is calibrated, which means the calibration
    data read from fuse only has valid data of bit [31:20], others
    are all 0, the critical trip point temperature can NOT depend
    on the hot point calibration data, here we set it to 20 C higher
    than default passive temperature.

    Signed-off-by: Anson Huang
    Acked-by: Shawn Guo
    Signed-off-by: Zhang Rui

    Anson Huang
     

08 Apr, 2014

1 commit

  • Thermal sensor used to need two calibration points which are
    in fuse map to get a slope for converting thermal sensor's raw
    data to real temperature in degree C. Due to the chip calibration
    limitation, hardware team provides an universal formula to get
    real temperature from internal thermal sensor raw data:

    Slope = 0.4297157 - (0.0015976 * 25C fuse);

    Update the formula, as there will be no hot point calibration
    data in fuse map from now on.

    Signed-off-by: Anson Huang
    Acked-by: Shawn Guo
    Signed-off-by: Zhang Rui

    Anson Huang
     

06 Jan, 2014

2 commits


03 Jan, 2014

1 commit

  • Thermal sensor needs pll3_usb_otg when measuring temperature,
    otherwise the temperature read will be incorrect, so need to
    enable this clk before sensor working, for alarm function,
    as hardware will take measurement periodically, so we should
    keep this clk always on once alarm function is enabled.

    Signed-off-by: Anson Huang
    Acked-by: Shawn Guo
    Signed-off-by: Zhang Rui

    Anson Huang
     

02 Jan, 2014

2 commits

  • Add the module device table declaration so the module can be loaded
    automatically at boot time.

    Signed-off-by: Russell King
    Acked-by: Shawn Guo
    Acked-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Russell King
     
  • Fixes regression introduced by:

    commit 37713a1e8e4c1a1067ad4c99296f78d3c82ed9c4
    Author: Philipp Zabel
    Date: Thu Aug 1 18:33:12 2013 +0200

    thermal: imx: implement thermal alarm interrupt handling

    The commit 37713a1e8e4 makes imx thermal sensor always powered up as alarm
    function is enabled, but the suspend callback of imx thermal returns
    success only if thermal sensor is powered down, so it will always returns
    fail hence break system's suspend, this patch disables imx thermal sensor
    before suspend and re-enable it after resume.

    Signed-off-by: Anson Huang
    Acked-by: Shawn Guo
    Signed-off-by: Zhang Rui

    Anson Huang
     

15 Aug, 2013

2 commits


13 Aug, 2013

1 commit

  • This is based on the initial imx thermal work done by
    Rob Lee (Not sure if the email address is still
    valid). Since he is no longer interested in the work and I have
    rewritten a significant amount of the code, I just took the authorship
    over from him.

    It adds the imx thermal support using Temperature Monitor (TEMPMON)
    block found on some Freescale i.MX SoCs. The driver uses syscon regmap
    interface to access TEMPMON control registers and calibration data, and
    supports cpufreq as the cooling device.

    Signed-off-by: Shawn Guo
    Signed-off-by: Eduardo Valentin

    Shawn Guo