Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1288767
| From | Andreas Werner <andreas.werner@men.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: LM90 driver and ti tmp461 detection |
| Date | 2015-12-10 19:10 +0100 |
| Message-ID | <qEdPd-1ez-15@gated-at.bofh.it> (permalink) |
| References | <qE8mt-63V-1@gated-at.bofh.it> <qEczM-gM-7@gated-at.bofh.it> <qEd2O-GC-15@gated-at.bofh.it> <qEdvQ-Ss-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
... > On Thu, Dec 10, 2015 at 09:43:53AM -0800, Guenter Roeck wrote: > > > >There is one difference. The temperature ranges differ: > > > >TMP451: > >Standard Mode: 0 to +127 > >Extended Mode: -64 to +191 > > > >TMP461: > >Standard Mode: -40 to +127 > >Extended Mode: -64 to +191 > > > >Therefore the calcualtion is different then the tmp451 one. > > > Not really. The tmp451 will return 0 for negative temperatures in standard mode, > the tmp461 will return negative (signed) values. Temperatures are stored > as signed values, so the code should be ok as is. Am I missing something ? > It will work to read the local and external temperature yes, but not for setting the temperatur. If setting in standard mode, the tmp451 part fix the value to 0-127 but for the tmp461 we have -40 to 127. I'v currently no chip here in the office to test it, hopefully I will get one next week. > >I also aggree with you with the magical ID register. I hate such > >kind of register with are not documented and may have a value. > > > >I have a DT based board yes, but i have also planed to submit my changes > >and also wanted to implement the autodetection of the chip. > > I don't think auto-detection (other than handling the chip as tmp451) > will be possible, but I am looking forward to seeing your patch(es). > Yes, i think autodetection makes it very crapy. May be i will find another solution. > > > >I have also planned (or need) to implement the "n-Factor Correction" for the > >CPU diodes. There is a register to set this value in the tmp451 and tmp461. > >Would that make sense to add a DT property for the driver to be able > >to set this value? What do you think? > > > Yes, since this is a board (hardware) property. Other chips have similar > registers. We'll just have to find a good set of property names and descriptions. > Ok, I will find a way to do it :-) > Thanks, > Guenter > Regards Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
LM90 driver and ti tmp461 detection Andreas Werner <andreas.werner@men.de> - 2015-12-10 13:20 +0100
Re: LM90 driver and ti tmp461 detection Guenter Roeck <linux@roeck-us.net> - 2015-12-10 17:50 +0100
Re: LM90 driver and ti tmp461 detection Andreas Werner <andreas.werner@men.de> - 2015-12-10 18:20 +0100
Re: LM90 driver and ti tmp461 detection Guenter Roeck <linux@roeck-us.net> - 2015-12-10 18:50 +0100
Re: LM90 driver and ti tmp461 detection Andreas Werner <andreas.werner@men.de> - 2015-12-10 19:10 +0100
Re: LM90 driver and ti tmp461 detection Guenter Roeck <linux@roeck-us.net> - 2015-12-10 18:50 +0100
Re: LM90 driver and ti tmp461 detection Andreas Werner <andreas.werner@men.de> - 2015-12-10 19:20 +0100
csiph-web