[PATCH 0/4] Add OF support for Microchip emc2305 fan controller

florin.leotescu at oss.nxp.com florin.leotescu at oss.nxp.com
Tue Jun 3 04:31:21 PDT 2025


From: Florin Leotescu <florin.leotescu at nxp.com>

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@oss.nxp.com/ 

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




More information about the linux-arm-kernel mailing list