[RFC] ARM: shmobile: r8a7790: add thermal driver support
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Wed Jun 26 04:15:32 EDT 2013
Hi Simon
> You can get current thermal by
> > cat /sys/class/thermal/thermal_zone?/temp
>
> Based on similar work for the r8a73a4 by Kuninori Morimoto.
>
> Cc: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
> ---
> arch/arm/mach-shmobile/setup-r8a7790.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> This patch is based on renesas-next-20130620
>
>
> Hi Morimoto-san,
>
> with this patch applied I see that the thermal driver is initialised,
> but there seems to be some problem:
>
> # dmesg | grep thermal
> rcar_thermal rcar_thermal: thermal sensor was broken
> rcar_thermal rcar_thermal: 1 sensor proved
>
> Furthermore I see a negative temperature reading.
>
> # cat /sys/devices/virtual/thermal/thermal_zone0/temp
> -65000
>
> I am wondering if you have any insight into this.
Hmm...
Does your clock-r8a7790 has MSTP522 for thermal driver ?
Best regards
---
Kuninori Morimoto
More information about the linux-arm-kernel
mailing list