17ebd8b66SMauro Carvalho ChehabKernel driver adt7410 27ebd8b66SMauro Carvalho Chehab===================== 37ebd8b66SMauro Carvalho Chehab 47ebd8b66SMauro Carvalho ChehabSupported chips: 57ebd8b66SMauro Carvalho Chehab 67ebd8b66SMauro Carvalho Chehab * Analog Devices ADT7410 77ebd8b66SMauro Carvalho Chehab 87ebd8b66SMauro Carvalho Chehab Prefix: 'adt7410' 97ebd8b66SMauro Carvalho Chehab 107ebd8b66SMauro Carvalho Chehab Addresses scanned: None 117ebd8b66SMauro Carvalho Chehab 127ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the Analog Devices website 137ebd8b66SMauro Carvalho Chehab 14*ad736c1aSAlexander A. Klimov https://www.analog.com/static/imported-files/data_sheets/ADT7410.pdf 157ebd8b66SMauro Carvalho Chehab * Analog Devices ADT7420 167ebd8b66SMauro Carvalho Chehab 177ebd8b66SMauro Carvalho Chehab Prefix: 'adt7420' 187ebd8b66SMauro Carvalho Chehab 197ebd8b66SMauro Carvalho Chehab Addresses scanned: None 207ebd8b66SMauro Carvalho Chehab 217ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the Analog Devices website 227ebd8b66SMauro Carvalho Chehab 23*ad736c1aSAlexander A. Klimov https://www.analog.com/static/imported-files/data_sheets/ADT7420.pdf 247ebd8b66SMauro Carvalho Chehab 257ebd8b66SMauro Carvalho Chehab * Analog Devices ADT7310 267ebd8b66SMauro Carvalho Chehab 277ebd8b66SMauro Carvalho Chehab Prefix: 'adt7310' 287ebd8b66SMauro Carvalho Chehab 297ebd8b66SMauro Carvalho Chehab Addresses scanned: None 307ebd8b66SMauro Carvalho Chehab 317ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the Analog Devices website 327ebd8b66SMauro Carvalho Chehab 33*ad736c1aSAlexander A. Klimov https://www.analog.com/static/imported-files/data_sheets/ADT7310.pdf 347ebd8b66SMauro Carvalho Chehab 357ebd8b66SMauro Carvalho Chehab * Analog Devices ADT7320 367ebd8b66SMauro Carvalho Chehab 377ebd8b66SMauro Carvalho Chehab Prefix: 'adt7320' 387ebd8b66SMauro Carvalho Chehab 397ebd8b66SMauro Carvalho Chehab Addresses scanned: None 407ebd8b66SMauro Carvalho Chehab 417ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the Analog Devices website 427ebd8b66SMauro Carvalho Chehab 43*ad736c1aSAlexander A. Klimov https://www.analog.com/static/imported-files/data_sheets/ADT7320.pdf 447ebd8b66SMauro Carvalho Chehab 457ebd8b66SMauro Carvalho ChehabAuthor: Hartmut Knaack <knaack.h@gmx.de> 467ebd8b66SMauro Carvalho Chehab 477ebd8b66SMauro Carvalho ChehabDescription 487ebd8b66SMauro Carvalho Chehab----------- 497ebd8b66SMauro Carvalho Chehab 507ebd8b66SMauro Carvalho ChehabThe ADT7310/ADT7410 is a temperature sensor with rated temperature range of 517ebd8b66SMauro Carvalho Chehab-55°C to +150°C. It has a high accuracy of +/-0.5°C and can be operated at a 527ebd8b66SMauro Carvalho Chehabresolution of 13 bits (0.0625°C) or 16 bits (0.0078°C). The sensor provides an 537ebd8b66SMauro Carvalho ChehabINT pin to indicate that a minimum or maximum temperature set point has been 547ebd8b66SMauro Carvalho Chehabexceeded, as well as a critical temperature (CT) pin to indicate that the 557ebd8b66SMauro Carvalho Chehabcritical temperature set point has been exceeded. Both pins can be set up with a 567ebd8b66SMauro Carvalho Chehabcommon hysteresis of 0°C - 15°C and a fault queue, ranging from 1 to 4 events. 577ebd8b66SMauro Carvalho ChehabBoth pins can individually set to be active-low or active-high, while the whole 587ebd8b66SMauro Carvalho Chehabdevice can either run in comparator mode or interrupt mode. The ADT7410 supports 597ebd8b66SMauro Carvalho Chehabcontinuous temperature sampling, as well as sampling one temperature value per 607ebd8b66SMauro Carvalho Chehabsecond or even just get one sample on demand for power saving. Besides, it can 617ebd8b66SMauro Carvalho Chehabcompletely power down its ADC, if power management is required. 627ebd8b66SMauro Carvalho Chehab 637ebd8b66SMauro Carvalho ChehabThe ADT7320/ADT7420 is register compatible, the only differences being the 647ebd8b66SMauro Carvalho Chehabpackage, a slightly narrower operating temperature range (-40°C to +150°C), and 657ebd8b66SMauro Carvalho Chehaba better accuracy (0.25°C instead of 0.50°C.) 667ebd8b66SMauro Carvalho Chehab 677ebd8b66SMauro Carvalho ChehabThe difference between the ADT7310/ADT7320 and ADT7410/ADT7420 is the control 687ebd8b66SMauro Carvalho Chehabinterface, the ADT7310 and ADT7320 use SPI while the ADT7410 and ADT7420 use 697ebd8b66SMauro Carvalho ChehabI2C. 707ebd8b66SMauro Carvalho Chehab 717ebd8b66SMauro Carvalho ChehabConfiguration Notes 727ebd8b66SMauro Carvalho Chehab------------------- 737ebd8b66SMauro Carvalho Chehab 747ebd8b66SMauro Carvalho ChehabSince the device uses one hysteresis value, which is an offset to minimum, 757ebd8b66SMauro Carvalho Chehabmaximum and critical temperature, it can only be set for temp#_max_hyst. 767ebd8b66SMauro Carvalho ChehabHowever, temp#_min_hyst and temp#_crit_hyst show their corresponding 777ebd8b66SMauro Carvalho Chehabhysteresis. 787ebd8b66SMauro Carvalho ChehabThe device is set to 16 bit resolution and comparator mode. 797ebd8b66SMauro Carvalho Chehab 807ebd8b66SMauro Carvalho Chehabsysfs-Interface 817ebd8b66SMauro Carvalho Chehab--------------- 827ebd8b66SMauro Carvalho Chehab 837ebd8b66SMauro Carvalho Chehab======================== ==================================================== 847ebd8b66SMauro Carvalho Chehabtemp#_input temperature input 857ebd8b66SMauro Carvalho Chehabtemp#_min temperature minimum setpoint 867ebd8b66SMauro Carvalho Chehabtemp#_max temperature maximum setpoint 877ebd8b66SMauro Carvalho Chehabtemp#_crit critical temperature setpoint 887ebd8b66SMauro Carvalho Chehabtemp#_min_hyst hysteresis for temperature minimum (read-only) 897ebd8b66SMauro Carvalho Chehabtemp#_max_hyst hysteresis for temperature maximum (read/write) 907ebd8b66SMauro Carvalho Chehabtemp#_crit_hyst hysteresis for critical temperature (read-only) 917ebd8b66SMauro Carvalho Chehabtemp#_min_alarm temperature minimum alarm flag 927ebd8b66SMauro Carvalho Chehabtemp#_max_alarm temperature maximum alarm flag 937ebd8b66SMauro Carvalho Chehabtemp#_crit_alarm critical temperature alarm flag 947ebd8b66SMauro Carvalho Chehab======================== ==================================================== 95