18 Jan, 2021

1 commit


14 Dec, 2020

3 commits


13 Jun, 2020

1 commit

  • Pull thermal updates from Daniel Lezcano:

    - Add the hwmon support on the i.MX SC (Anson Huang)

    - Thermal framework cleanups (self-encapsulation, pointless stubs,
    private structures) (Daniel Lezcano)

    - Use the PM QoS frequency changes for the devfreq cooling device
    (Matthias Kaehlcke)

    - Remove duplicate error messages from platform_get_irq() error
    handling (Markus Elfring)

    - Add support for the bandgap sensors (Keerthy)

    - Statically initialize .get_mode/.set_mode ops (Andrzej Pietrasiewicz)

    - Add Renesas R-Car maintainer entry (Niklas Söderlund)

    - Fix error checking after calling ti_bandgap_get_sensor_data() for the
    TI SoC thermal (Sudip Mukherjee)

    - Add latency constraint for the idle injection, the DT binding and the
    change the registering function (Daniel Lezcano)

    - Convert the thermal framework binding to the Yaml schema (Amit
    Kucheria)

    - Replace zero-length array with flexible-array on i.MX 8MM (Gustavo A.
    R. Silva)

    - Thermal framework cleanups (alphabetic order for heads, replace
    module.h by export.h, make file naming consistent) (Amit Kucheria)

    - Merge tsens-common into the tsens driver (Amit Kucheria)

    - Fix platform dependency for the Qoriq driver (Geert Uytterhoeven)

    - Clean up the rcar_thermal_update_temp() function in the rcar thermal
    driver (Niklas Söderlund)

    - Fix the TMSAR register for the TMUv2 on the Qoriq platform (Yuantian
    Tang)

    - Export GDDV, OEM vendor variables, and don't require IDSP for the
    int340x thermal driver - trivial conflicts fixed (Matthew Garrett)

    * tag 'thermal-v5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (48 commits)
    thermal/int340x_thermal: Don't require IDSP to exist
    thermal/int340x_thermal: Export OEM vendor variables
    thermal/int340x_thermal: Export GDDV
    thermal: qoriq: Update the settings for TMUv2
    thermal: rcar_thermal: Clean up rcar_thermal_update_temp()
    thermal: qoriq: Add platform dependencies
    drivers: thermal: tsens: Merge tsens-common.c into tsens.c
    thermal/of: Rename of-thermal.c
    thermal/governors: Prefix all source files with gov_
    thermal/drivers/user_space: Sort headers alphabetically
    thermal/drivers/of-thermal: Sort headers alphabetically
    thermal/drivers/cpufreq_cooling: Replace module.h with export.h
    thermal/drivers/cpufreq_cooling: Sort headers alphabetically
    thermal/drivers/clock_cooling: Include export.h
    thermal/drivers/clock_cooling: Sort headers alphabetically
    thermal/drivers/thermal_hwmon: Include export.h
    thermal/drivers/thermal_hwmon: Sort headers alphabetically
    thermal/drivers/thermal_helpers: Include export.h
    thermal/drivers/thermal_helpers: Sort headers alphabetically
    thermal/core: Replace module.h with export.h
    ...

    Linus Torvalds
     

13 May, 2020

1 commit


14 Apr, 2020

1 commit


23 Mar, 2020

1 commit

  • The temperature value passed from SCU could be negative value,
    the data type should be signed instead of unsigned.

    Fixes: e20db70dba1c ("thermal: imx_sc: add i.MX system controller thermal support")
    Signed-off-by: Anson Huang
    Reviewed-by: Amit Kucheria
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/1584606380-9972-1-git-send-email-Anson.Huang@nxp.com

    Anson Huang
     

12 Mar, 2020

2 commits

  • The i.MX SCU API strongly assumes that messages are composed out
    of 4-bytes words but some of our message structs have odd sizeofs,
    use __packed __aligned(4) to avoid potential oopses.

    Signed-off-by: Anson Huang
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/1583117485-30922-1-git-send-email-Anson.Huang@nxp.com

    Anson Huang
     
  • i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller
    inside, the system controller is in charge of controlling power,
    clock and thermal sensors etc..

    This patch adds i.MX system controller thermal driver support,
    Linux kernel has to communicate with system controller via MU
    (message unit) IPC to get each thermal sensor's temperature,
    it supports multiple sensors which are passed from device tree,
    please see the binding doc for details.

    Signed-off-by: Anson Huang
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/1582330132-13461-3-git-send-email-Anson.Huang@nxp.com

    Anson Huang