Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) Kernel driver ds620
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) ===================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) Supported chips:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)   * Dallas Semiconductor DS620
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)     Prefix: 'ds620'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)     Datasheet: Publicly available at the Dallas Semiconductor website
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	       http://www.dalsemi.com/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Authors:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	Roland Stigge <stigge@antcom.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	based on ds1621.c by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	Christian W. Zuckschwerdt <zany@triq.net>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) The DS620 is a (one instance) digital thermometer and thermostat. It has both
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) high and low temperature limits which can be user defined (i.e.  programmed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) into non-volatile on-chip registers). Temperature range is -55 degree Celsius
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) to +125. Between 0 and 70 degree Celsius, accuracy is 0.5 Kelvin. The value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) returned via sysfs displays post decimal positions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) The thermostat function works as follows: When configured via platform_data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) (struct ds620_platform_data) .pomode == 0 (default), the thermostat output pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) PO is always low. If .pomode == 1, the thermostat is in PO_LOW mode. I.e., the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) output pin PO becomes active when the temperature falls below temp1_min and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) stays active until the temperature goes above temp1_max.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Likewise, with .pomode == 2, the thermostat is in PO_HIGH mode. I.e., the PO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) output pin becomes active when the temperature goes above temp1_max and stays
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) active until the temperature falls below temp1_min.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) The PO output pin of the DS620 operates active-low.