mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
hwmon: (adt7470) Expose PWM frequency to sysfs
The ADT7470 supports a variety of PWM frequencies. This patch allows the frequency to be configured and viewed through the sysfs entry pwm1_freq. Signed-off-by: Joshua Scott <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
30fe976fe7
commit
aa18cc911a
2 changed files with 91 additions and 0 deletions
|
|
@ -65,6 +65,23 @@ from 0 (off) to 255 (full speed). Fan speed will be set to maximum when the
|
|||
temperature sensor associated with the PWM control exceeds
|
||||
pwm#_auto_point2_temp.
|
||||
|
||||
The driver also allows control of the PWM frequency:
|
||||
|
||||
* pwm1_freq
|
||||
|
||||
The PWM frequency is rounded to the nearest one of:
|
||||
|
||||
* 11.0 Hz
|
||||
* 14.7 Hz
|
||||
* 22.1 Hz
|
||||
* 29.4 Hz
|
||||
* 35.3 Hz
|
||||
* 44.1 Hz
|
||||
* 58.8 Hz
|
||||
* 88.2 Hz
|
||||
* 1.4 kHz
|
||||
* 22.5 kHz
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue