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 wm831x-hwmon
^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)   * Wolfson Microelectronics WM831x PMICs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)     Prefix: 'wm831x'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)     Datasheet:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	- http://www.wolfsonmicro.com/products/WM8310
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	- http://www.wolfsonmicro.com/products/WM8311
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	- http://www.wolfsonmicro.com/products/WM8312
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Authors: Mark Brown <broonie@opensource.wolfsonmicro.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) The WM831x series of PMICs include an AUXADC which can be used to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) monitor a range of system operating parameters, including the voltages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) of the major supplies within the system.  Currently the driver provides
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) reporting of all the input values but does not provide any alarms.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Voltage Monitoring
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) Voltages are sampled by a 12 bit ADC.  Voltages in millivolts are 1.465
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) times the ADC value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Temperature Monitoring
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) ----------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Temperatures are sampled by a 12 bit ADC.  Chip and battery temperatures
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) are available.  The chip temperature is calculated as:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	Degrees celsius = (512.18 - data) / 1.0983
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) while the battery temperature calculation will depend on the NTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) thermistor component.