aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pwm-fan.c
diff options
context:
space:
mode:
authorNaresh Solanki <[email protected]>2025-04-04 11:56:45 +0000
committerGuenter Roeck <[email protected]>2025-04-23 14:18:27 +0000
commit6de6868df18728790eb4ffe764b49f356fea7397 (patch)
tree6c0ac375e974ea9449890ab5926168fba803e640 /drivers/hwmon/pwm-fan.c
parenthwmon: (pmbus) Do not set regulators_node for single-channel chips (diff)
downloadkernel-6de6868df18728790eb4ffe764b49f356fea7397.tar.gz
kernel-6de6868df18728790eb4ffe764b49f356fea7397.zip
hwmon: (max6639) Allow setting target RPM
Currently, during startup, the fan is set to its maximum RPM by default, which may not be suitable for all use cases. This patch introduces support for specifying a target RPM via the Device Tree property "target-rpm". Changes: - Added `target_rpm` field to `max6639_data` structure to store the target RPM for each fan channel. - Modified `max6639_probe_child_from_dt()` to read the `"target-rpm"` property from the Device Tree and set `target_rpm` accordingly. - Updated `max6639_init_client()` to use `target_rpm` to compute the initial PWM duty cycle instead of defaulting to full speed (120/120). Behavior: - If `"target-rpm"` is specified, the fan speed is set accordingly. - If `"target-rpm"` is not specified, the previous behavior (full speed at startup) is retained. This allows better control over fan speed during system initialization. Signed-off-by: Naresh Solanki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
0 files changed, 0 insertions, 0 deletions