Skip to content

Support and fixes the rk3228 SoCS for thermal

Caesar Wang linux-arm-kernel linux-clk linux-pm linux-rockchip lkml 2 versions – Applied

Status from this message: applied to my clk-branch with Mike's Ack

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/28 patches 9 repliesApplied
  2. v1 posting 1/28 patches 1 replySuperseded

Patches in v1 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/8clk: rockchip: add id of the tsadc clock found on rk3228 SoCsinclude/dt-bindings/clock/rk3228-cru.h+2 -02 replies
2/8clk: rockchip: add the tsadc clocks found on rk3228 SoCsdrivers/clk/rockchip/clk-rk3228.c+2 -22 replies
3/8thermal: rockchip: fix a impossible condition caused by the warningdrivers/thermal/rockchip_thermal.c+5 -60 replies
4/8thermal: rockchip: fix calculation error for code_to_tempdrivers/thermal/rockchip_thermal.c+1 -10 replies
5/8thermal: rockchip: the rename compatibles for rockchip SoCsdrivers/thermal/rockchip_thermal.c+28 -220 replies
6/8thermal: rockchip: fix the tsadc sequence output on rk3228/rk3399drivers/thermal/rockchip_thermal.c+102 -740 replies
7/8ARM: dts: rockchip: add the thermal main info found on rk3228arch/arm/boot/dts/rk3228.dtsi+69 -01 reply
8/8ARM: dts: rockchip: enable the tsadc for rk3228 evbarch/arm/boot/dts/rk3228-evb.dts+7 -01 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchMichael Turquette
1/8A-b
2/8A-b
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [RESEND PATCH 0/8] Support and fixes the rk3228 SoCS for thermal

Hello Eduardo, Heiko, Michael & Stephen:

This series pacthes to support the rk3228 SoCs thermal.

They have the following patches to work on rk3228 SoCs.

1a6f334 clk: rockchip: add id of the tsadc clock found on rk3228 SoCs 8cf2d1b clk: rockchip: add the tsadc clocks found on rk3228 SoCs bd2720c thermal: rockchip: fix a impossible condition caused by the warning df9c1bd thermal: rockchip: fix calculation error for code_to_temp fb11fbd thermal: rockchip: the rename compatibles for rockchip SoCs b907b75 thermal: rockchip: fix the tsadc sequence output on rk3228/rk3399 bdc79c0 ARM: dts: rockchip: add the thermal main info found on rk3228 22ea3c3 ARM: dts: rockchip: enable the tsadc for rk3228 evb

Verified on https://github.com/Caesar-github/rockchip/tree/rk3228-thermal-tests.
This series patches are based on
Linux version 4.5.0-rc4+ (wxt at ubuntu) (...) (GCC) ) #204 SMP Mon Feb 15 14:12:16 CST 6

Tests:

1) Get the temperature in every 500ms.

while true;do ls >/dev/null; done&
while true; do grep "" /sys/class/thermal/thermal_zone0/temp; sleep .5; done &

2) critical tests
**
/sys/devices/virtual/thermal/thermal_zone0 # cat temp
33000
/sys/devices/virtual/thermal/thermal_zone0 # echo 30000 > trip_point_2_temp

[  988.114192] thermal thermal_zone0: critical temperature reached(33 C),shutting down

...
shutdown
-
**via modify the dts over-temperature protectiong value to trigger otp pin.

Verified on rk3228/rk3288/rk3368 SoCs.
---

Hi Michael,Stephen
PATCH[1/8-2/8]:
Add the tsadc needed clocks for rk3228 SoCs

Hi Eduardo,
PATCH[3/8]:
To fix a build warning came from Dan Carpenter report smatch check, Thanks.
As the patch exists in https://patchwork.kernel.org/patch/7757311/

PATCH[4/8]:
fix calculation error for code_to_temp
That's a error since the copy causes.

PATCH[5/8]:
the rename compatibles for rockchip SoCs
As the more and more rockchip SOCs are supported in thermal driver. this pacth supposed to be compatible for better.

PATCH[6/8]:
fix the tsadc sequence output on rk3228/rk3399
Fixes the tsadc sequence output since the rk3228/rk3399 SoCs design.

Hi Heiko,
PATCH[7/8-8/8]: thermal DTS
1) add the thermal main info found on rk3228
2) enable the tsadc for rk3228 evb

I'd appreciate if someone have free time to review that. :)

Caesar Wang (7):
clk: rockchip: add id of the tsadc clock found on rk3228 SoCs
clk: rockchip: add the tsadc clocks found on rk3228 SoCs
thermal: rockchip: fix a impossible condition caused by the warning
thermal: rockchip: the rename compatibles for rockchip SoCs
thermal: rockchip: fix the tsadc sequence output on rk3228/rk3399
ARM: dts: rockchip: add the thermal main info found on rk3228
ARM: dts: rockchip: enable the tsadc for rk3228 evb

Elaine Zhang (1):
thermal: rockchip: fix calculation error for code_to_temp

 arch/arm/boot/dts/rk3228-evb.dts       |   7 +
 arch/arm/boot/dts/rk3228.dtsi          |  69 ++++++++++
 drivers/clk/rockchip/clk-rk3228.c      |   4 +-
 drivers/thermal/rockchip_thermal.c     | 239 +++++++++++++++++++--------------
 include/dt-bindings/clock/rk3228-cru.h |   2 +
 5 files changed, 216 insertions(+), 105 deletions(-)
Signature · 1 line
1.9.1