Hi, On 06/16/2014 05:22 PM, Tong Zhang wrote: > OH! > > sorry, I made a typo > > that should be : ((raw_data_from_a10_tp_register-1447)/20) Celsius
Thanks I'm currently preparing a patch-set to change the kernel to use 50 milli degree / step resolution on the A10, instead of the 100 milli degrees it currently uses (it will keep using the 100 milli degrees for all the later SoC versions). I'll put you in the CC of the posting of the patch-set. Regards, Hans > > > > On Monday, June 16, 2014 11:18:02 PM UTC+8, Hans de Goede wrote: >> >> Hi, >> >> On 06/16/2014 03:03 PM, Tong Zhang wrote: >>> Hi Siarhei, >>> >>> Thank you for your reply. >>> >>> I attached a ds18b20 thermal sensor on top of a10 to measure the >>> temperature. >>> >>> And I drew a graph using following formula (temp_data-1447)*/20. It >> seems >> >> Seems you lost something there, I'm quite interested in getting the actual >> formula you used so that we can update the driver to do the right thing >> on the A10 (it seems the current formula is correct for sun5i and sun7i, >> but not >> for sun4i / the A10). >> >>> that the two line correlate well on the right(minutes after attached) >>> rather than the left(not long after attached). >>> >>> < >> https://lh3.googleusercontent.com/-VX9j3c6EWnk/U57oUI6gB-I/AAAAAAAABxM/7FfvvskqmzQ/s1600/sensor.png> >> >> >> >> This seems quite good actually, as the rtp sensor code measures die >> temperature, and >> the ds18b20 is attached to the casing of the die it is logically for it to >> lag behind. >> >> Regards, >> >> Hans >> >>> >>> >>> On Monday, June 16, 2014 4:51:02 PM UTC+8, Siarhei Siamashka wrote: >>>> >>>> On Sun, 15 Jun 2014 22:26:17 -0700 (PDT) >>>> Tong Zhang <[email protected] <javascript:>> wrote: >>>> >>>>> Hello, >>>>> >>>>> I am having trouble with a10 temperature sensor. I have read a10 user >>>>> manual[1] throughly and noticed conflict description about TP >> registers. >>>>> >>>>> I also followed the routine[2]. The read is around 99C when cpu >> governor >>>> is >>>>> performance and room temperature is 27C. I doubt whether the >> temperature >>>>> sensor is calibrated or am I interpreting the data >>>>> correctly[(reg_read-1447)/10]. Or is it possible that the sensor is >>>>> defective? >>>>> >>>>> Anyone has a10 can verify? >>>> >>>> The SoC (TP) temperature sensor was never properly calibrated. And yes, >>>> it's pretty obvious in the case of the A10: >>>> >>>> http://irclog.whitequark.org/linux-sunxi/2014-04-04#7013946; >>>> >>>> We can't be sure about the temperature sensor in A20 either. It could >>>> be also showing wrong temperature (but in a somewhat more believable >>>> range). >>>> >>>> -- >>>> Best regards, >>>> Siarhei Siamashka >>>> >>> >> > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
