mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
hwmon: Add tc654 driver
Add support for the tc654 and tc655 fan controllers from Microchip. http://ww1.microchip.com/downloads/en/DeviceDoc/20001734C.pdf Signed-off-by: Chris Packham <[email protected]> Acked-by: Rob Herring <[email protected]> [groeck: Fixed continuation line alignments] Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
4538bfbf2d
commit
aaf6fabf1b
5 changed files with 559 additions and 0 deletions
31
Documentation/hwmon/tc654
Normal file
31
Documentation/hwmon/tc654
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
Kernel driver tc654
|
||||
===================
|
||||
|
||||
Supported chips:
|
||||
* Microship TC654 and TC655
|
||||
Prefix: 'tc654'
|
||||
Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/20001734C.pdf
|
||||
|
||||
Authors:
|
||||
Chris Packham <[email protected]>
|
||||
Masahiko Iwamoto <[email protected]>
|
||||
|
||||
Description
|
||||
-----------
|
||||
This driver implements support for the Microchip TC654 and TC655.
|
||||
|
||||
The TC654 uses the 2-wire interface compatible with the SMBUS 2.0
|
||||
specification. The TC654 has two (2) inputs for measuring fan RPM and
|
||||
one (1) PWM output which can be used for fan control.
|
||||
|
||||
Configuration Notes
|
||||
-------------------
|
||||
Ordinarily the pwm1_mode ABI is used for controlling the pwm output
|
||||
mode. However, for this chip the output is always pwm, and the
|
||||
pwm1_mode determines if the pwm output is controlled via the pwm1 value
|
||||
or via the Vin analog input.
|
||||
|
||||
|
||||
Setting pwm1_mode to 1 will cause the pwm output to be driven based on
|
||||
the pwm1 value. Setting pwm1_mode to 0 will cause the pwm output to be
|
||||
driven based on the Vin input.
|
||||
Loading…
Reference in a new issue