Skip to content

Rockchip soc thermal driver

Caesar Wang linux-arm-kernel linux-devicetree linux-pm lkml 19 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v19 Latest5 patches 3 repliesIn review
  2. v185 patches 2 repliesSuperseded
  3. v175 patches 4 repliesSuperseded
Earlier versions · 16
VersionPostedPatchesRepliesStatus
v165 patches2 repliesSuperseded
v155 patches4 repliesSuperseded
v145 patches8 repliesSuperseded
v135 patches12 repliesSuperseded
v125 patches0 repliesSuperseded
v115 patches4 repliesSuperseded
v105 patches2 repliesSuperseded
v95 patches2 repliesSuperseded
v85 patches3 repliesSuperseded
v75 patches5 repliesSuperseded
v63 patches0 repliesSuperseded
v54 patches10 repliesSuperseded
v44 patches24 repliesSuperseded
v33 of 4 patches10 repliesSuperseded
v22 patches6 repliesSuperseded
v12 patches5 repliesSuperseded

Changes in v19 from the cover letter

	- update driver to fit Eduardo new API design.
	https://patchwork.kernel.org/patch/5329801/

Patches in v19 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: document Rockchip thermalDocumentation/devicetree/bindings/thermal/rockchip-thermal.txt+68 -00 replies
2/5thermal: rockchip: add driver for thermaldrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/rockchip_thermal.c+704 -00 replies
3/5ARM: dts: add RK3288 Thermal dataarch/arm/boot/dts/rk3288-thermal.dtsi+78 -00 replies
4/5ARM: dts: add main Thermal info to rk3288arch/arm/boot/dts/rk3288.dtsi+27 -00 replies
5/5ARM: dts: enable Thermal on rk3288-evb boardarch/arm/boot/dts/rk3288-evb.dtsi+6 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDmitry TorokhovEduardo Valentin
SeriesA-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v19 thread

Cover letter [PATCH v19 0/5] Rockchip soc thermal driver

This series patchs tested on rk3288 SDK board and pinky-v1,v2 board. I believe the driver can be used on the rk3288-evb board.

Add this driver, The system will shutdown when
the thermal temperture over 100C.If for some reason we are unable to shut it down in orderly fashion (kernel is stuck holding a lock or similar) then hardware will reset it.

The patchs 1/5,2/5 can applay Eduardo's Branch
git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git
[branch "next-kernel"]
remote = origin
merge = refs/heads/next

The patchs 3/5,4/5,5/5 can apply Heiko's Branch
https://github.com/mmind/linux-rockchip.git
[branch "3.19-armsoc/dts"]

	remote = origin
	merge = refs/heads/wip/v3.19-armsoc/dts

Changes in v19:

	- update driver to fit Eduardo new API design.
	https://patchwork.kernel.org/patch/5329801/

Changes in v18:
* address comments from Eduardo Valentin and Dmitry Torokhov.
- we need reset tsadc-controller before enable tsadc auto mode,
when we add the thermal function in coreboot,we always enable tsadc controller. So we need reset tsadc-controller to avoid the TSADC is abnormal.
- put the document behind the driver.
- Tested on pinky1,2,jeffy board,we will fix cooling-map temperature from 80C to 70C, critical temperature from 100C to 90C.

Changes in v17:
* address comments from Heiko Stubner and .
- rename the tshut property
- the critiacal temperature only indeed 100C when add the cooling map, it's for the more secure,fix the temperature from 120C to 100C.

Changes in v16:
* address comments from Dmitry Torokhov.
- add thermal->chip->control(thermal->regs, false) in remove()
- adjust TSHUT in resume().

Changes in v15:
* address comments from Dmitry Torokhov.
- enable TSHUT move into rk_tsadcv2_tshut_temp().
- drop the id argument in rk_tsadcv2_control().

Changes in v14:
* address comments from Dmitry Torokhov.
- adjust-alarm-rate-depending-on-clock.
- 0001-rockchip-thermal-do-not-register-cpufreq-cooling-dev.

Changes in v13:
- add cooling-maps for cpu-thermal.
- put tshut polarity in device tree.

Changes in v12:
* address comments from Dmitry Torokhov and Vladimir Zapolskiy.
- split-sensor-handling.
- rename-rockchip_tsadc_platform_data.

Changes in v11:
* address comments from Vladimir Zapolskiy.
- fix cpufreq_cooling_unregister() to put in correct position.
- fix "data->chn",at least can get valid Tsensor temp.

Changes in v10:
* address comments from Doug Anderson.
- fix TSHUT polarity,ensure support TSHUT.
- add the decription for rk_tsadcv2_initialize().

Changes in v9:
* address comments from Dmitry Torokhov.
- fix some style be defined
- remove some unused code.
- clk_disable_unprepare->clk_disable in suspend()

Changes in v8:
* address comments from Dmitry Torokhov and Doug Anderson.
- add three Teperture Sensors.
- support CRU and GPIO reset chip.
- rename rk3xxx-cpu-thermal.dtsi as rk3288-thermal.dtsi
- alarm-temp via set_trips() callback
- remove "reset-gpios"

Changes in v7:
- fix get data->clk=0 when in probe() function.
- fix some style code.
- modify dts,main add rk3xxx-cpu-thermal.dtsi

Changes in v6:
* address comments from Tomeu Vizoso.
- use thermal's generic framework.

Changes in v5:
* address comments from Eduardo Valentin,rui.zhang and Heiko Stubner:
- with BIT() macro
- manage clocks in suspend/resume.
- license is fixed as GPLv2.
- #include "thermal_core.h"->#include <linux/thermal.h>
- use the generic trip-points.the hw-shut-temp isn't generic trip-points.
- The method of binding and unbinding be fixed.
- The pin-name tsadc->otp_out

Changes in v4:
* address comments from Jonathan Cameron,huangtao and zhaoyifeng:
- this series thermal driver still be put in driver/thermal/
- modify the thermal driver description.

Changes in v3:(add dts configure)
* address comments from Dmitry Torokhov and Arnd Bergmann:
- fix clock-names in rockchip-thermal.txt
- remove rockchip_thermal_control() in rockchip_set_mode()
- fix some code style.
- add dts configure.

Changes in v2:
* address comments from Heiko Stubner:
- fix dt-bindings in rockchip-thermal.txt
- remove Author mark
- rename TSADC_XXX->TSADCV2_XXX,it eill ready to merge compatible other SoCs.
- fix a identation
- remove clk_set_rate(),it's no necessary.
- fix the SIMPLE_DEV_PM_OPS() function style.

Caesar Wang (5):
thermal: rockchip: add driver for thermal
dt-bindings: document Rockchip thermal
ARM: dts: add RK3288 Thermal data
ARM: dts: add main Thermal info to rk3288
ARM: dts: enable Thermal on rk3288-evb board

 .../bindings/thermal/rockchip-thermal.txt          |  45 ++
 arch/arm/boot/dts/rk3288-evb.dtsi                  |   5 +
 arch/arm/boot/dts/rk3288-thermal.dtsi              |  58 ++
 arch/arm/boot/dts/rk3288.dtsi                      |  23 +
 drivers/thermal/Kconfig                            |   9 +
 drivers/thermal/Makefile                           |   1 +
 drivers/thermal/rockchip_thermal.c                 | 628 +++++++++++++++++++++
 7 files changed, 769 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/rockchip-thermal.txt
 create mode 100644 arch/arm/boot/dts/rk3288-thermal.dtsi
 create mode 100644 drivers/thermal/rockchip_thermal.c
Signature · 1 line
1.9.1