[RFC] ARM: shmobile: r8a7790: add thermal driver support

Simon Horman horms at verge.net.au
Wed Jun 26 04:27:45 EDT 2013


On Wed, Jun 26, 2013 at 01:15:32AM -0700, Kuninori Morimoto wrote:
> 
> 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 ?

No, thanks. I will fix that.



More information about the linux-arm-kernel mailing list