[PATCH 0/4] Add OF support for Microchip emc2305 fan controller
From: florin . leotescu
Date: Tue Jun 03 2025 - 07:26:51 EST
From: Florin Leotescu <florin.leotescu@xxxxxxx>
This patch series is a complementary follow-up to the previously accepted
patch series that added initial Device Tree (OF) support for the Microchip
EMC2305 fan controller.
https://lore.kernel.org/all/20250321143308.4008623-1-florin.leotescu@xxxxxxxxxxx/
This series builds on that foundation and introduces the actual implementation
of PWM channel configuration based on DT properties:
- Adds three new attributes to the driver data structures to support
PWM frequency, polarity and output configuration.
- Implements parsing of child nodes and 'pwms' phandle arguments from the
Device Tree and applies the corresponding per-channel configuration.
- Prevents the PWM value from being set to a thermal-state-based minimum
during driver probe when the temperature exceeds trip points.
Florin Leotescu (4):
hwmon: emc2305: Add support for PWM frequency, polarity and output
hwmon: emc2305: Configure PWM channels based on DT properties
hwmon: emc2305: Enable PWM polarity and output configuration
hwmon: emc2305: Set initial PWM minimum value during probe based on
thermal state
drivers/hwmon/emc2305.c | 181 ++++++++++++++++++++++----
include/linux/platform_data/emc2305.h | 6 +
2 files changed, 163 insertions(+), 24 deletions(-)
--
2.34.1