xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/tc654.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver tc654
2*4882a593Smuzhiyun===================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun  * Microchip TC654 and TC655
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun    Prefix: 'tc654'
9*4882a593Smuzhiyun    Datasheet: http://ww1.m
10*4882a593Smuzhiyun    icrochip.com/downloads/en/DeviceDoc/20001734C.pdf
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunAuthors:
13*4882a593Smuzhiyun      - Chris Packham <chris.packham@alliedtelesis.co.nz>
14*4882a593Smuzhiyun      - Masahiko Iwamoto <iwamoto@allied-telesis.co.jp>
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunDescription
17*4882a593Smuzhiyun-----------
18*4882a593SmuzhiyunThis driver implements support for the Microchip TC654 and TC655.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunThe TC654 uses the 2-wire interface compatible with the SMBUS 2.0
21*4882a593Smuzhiyunspecification. The TC654 has two (2) inputs for measuring fan RPM and
22*4882a593Smuzhiyunone (1) PWM output which can be used for fan control.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunConfiguration Notes
25*4882a593Smuzhiyun-------------------
26*4882a593SmuzhiyunOrdinarily the pwm1_mode ABI is used for controlling the pwm output
27*4882a593Smuzhiyunmode.  However, for this chip the output is always pwm, and the
28*4882a593Smuzhiyunpwm1_mode determines if the pwm output is controlled via the pwm1 value
29*4882a593Smuzhiyunor via the Vin analog input.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunSetting pwm1_mode to 1 will cause the pwm output to be driven based on
33*4882a593Smuzhiyunthe pwm1 value. Setting pwm1_mode to 0 will cause the pwm output to be
34*4882a593Smuzhiyundriven based on the Vin input.
35