|
|
Subscribe / Log in / New account

hwmon: add support for MC33XS2410 hardware

From:  Dimitri Fedrau via B4 Relay <devnull+dimitri.fedrau.liebherr.com-AT-kernel.org>
To:  Uwe Kleine-König <ukleinek-AT-kernel.org>, Jean Delvare <jdelvare-AT-suse.com>, Guenter Roeck <linux-AT-roeck-us.net>, Jonathan Corbet <corbet-AT-lwn.net>
Subject:  [PATCH v5 0/2] hwmon: add support for MC33XS2410 hardware
Date:  Wed, 23 Jul 2025 19:34:55 +0200
Message-ID:  <20250723-mc33xs2410-hwmon-v5-0-f62aab71cd59@liebherr.com>
Cc:  linux-pwm-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-hwmon-AT-vger.kernel.org, linux-doc-AT-vger.kernel.org, Dimitri Fedrau <dimitri.fedrau-AT-liebherr.com>, Dimitri Fedrau <dima.fedrau-AT-gmail.com>
Archive-link:  Article

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-...

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-...

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-...

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-...

---
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>





Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds