[PATCH v5 0/2] hwmon: add support for MC33XS2410 hardware

Dimitri Fedrau via B4 Relay posted 2 patches 2 months, 2 weeks ago
Documentation/hwmon/index.rst            |   1 +
Documentation/hwmon/mc33xs2410_hwmon.rst |  34 ++++++
drivers/hwmon/Kconfig                    |  10 ++
drivers/hwmon/Makefile                   |   1 +
drivers/hwmon/mc33xs2410_hwmon.c         | 178 +++++++++++++++++++++++++++++++
drivers/pwm/Kconfig                      |   1 +
drivers/pwm/pwm-mc33xs2410.c             |  20 +++-
include/linux/mc33xs2410.h               |  16 +++
8 files changed, 259 insertions(+), 2 deletions(-)
[PATCH v5 0/2] hwmon: add support for MC33XS2410 hardware
Posted by Dimitri Fedrau via B4 Relay 2 months, 2 weeks ago
The device is able to monitor temperature, voltage and current of each of
the four outputs. Add basic support for monitoring the temperature of the
four outputs and the die temperature.

Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
---
Changes in v5:
- Define DEFAULT_SYMBOL_NAMESPACE
- Replace mc33xs2410_hwmon_register with devm_auxiliary_device_create
- Add MODULE_IMPORT_NS("PWM_MC33XS2410") to mc33xs2410.h
- Add documentation for HWMON driver
- Link to v4: https://lore.kernel.org/r/20250708-mc33xs2410-hwmon-v4-0-95b9e3ea5f5c@liebherr.com

Changes in v4:
- Move hwmon functionality into separate driver residing in hwmon subsystem
  (auxiliary device)
- Link to v3: https://lore.kernel.org/r/20250619-mc33xs2410-hwmon-v3-1-301731e49f8f@liebherr.com

Changes in v3:
- Add changes suggested by Uwe Kleine-König.
  Remove "#if IS_ENABLED(CONFIG_HWMON)" and add
  "if (IS_REACHABLE(CONFIG_HWMON))" in mc33xs2410_hwmon_probe.
- Link to v2: https://lore.kernel.org/r/20250515-mc33xs2410-hwmon-v2-1-8d2e78f7e30d@liebherr.com

Changes in v2:
- Remove helper mc33xs2410_hwmon_read_out_status and report the last
  latched status.
- Link to v1: https://lore.kernel.org/r/20250512-mc33xs2410-hwmon-v1-1-addba77c78f9@liebherr.com

---
Dimitri Fedrau (2):
      pwm: mc33xs2410: add hwmon support
      hwmon: add support for MC33XS2410 hardware monitoring

 Documentation/hwmon/index.rst            |   1 +
 Documentation/hwmon/mc33xs2410_hwmon.rst |  34 ++++++
 drivers/hwmon/Kconfig                    |  10 ++
 drivers/hwmon/Makefile                   |   1 +
 drivers/hwmon/mc33xs2410_hwmon.c         | 178 +++++++++++++++++++++++++++++++
 drivers/pwm/Kconfig                      |   1 +
 drivers/pwm/pwm-mc33xs2410.c             |  20 +++-
 include/linux/mc33xs2410.h               |  16 +++
 8 files changed, 259 insertions(+), 2 deletions(-)
---
base-commit: 3b85883a9a7751ab198696f33f94afa428b43722
change-id: 20250507-mc33xs2410-hwmon-a5ff9efec005

Best regards,
-- 
Dimitri Fedrau <dimitri.fedrau@liebherr.com>