This series implements a set of drivers allowing to support the
Advantech EIO-2xx series of devices.
This includes GPIO, hwmon, I2C bus, backlight controller, watchdog,
thermal and a fan driver.
This series of patches targets several different subsystems, but the MFD
subsystem is the main target.
Changes in v2:
- Rebased on v7.2
MFD
- code cleanup
- Remove timeout from sysfs
- Propagate errors
- Remove version.h
GPIO
- Code cleanup
- Move gpio_chip to probe
- Remove timeout from sysfs
HWMON
- Code cleanup
- Refactor to use hwmon register with info
- Remove tacho, same interfaces as fan
I2C
- Remove timeout from sysfs
Backlight
- Code cleanup, remove ununsed max parameter
- Remove timeout sysfs
- Use helper functions instead of direct calls
- Correct return value in bl_init
- Initializing scal ein backlight_properties
- Return correct value when no backlight is enabled
- Remove log on successful probe
Watchdog
- Remove timeout and IRQ from sysfs
- Remove unnecessary logging from set_timeout/pretimeout wdt_get_type
- Remove timeleft function
- Rewrite wdt_set_irq_io to correctly handle return codes
- Remove unneeded watchdog_init_timeout
Thermal
- Remote timeout from sysfs
Fan
- Remove timeout from sysfs
- Remove unused variable temps_mc
- Link to v1: https://lore.kernel.org/all/20251212-upstream-v1-v1-0-d50d40ec8d8a@advantech.com/
Signed-off-by: Ramiro Oliveira <ramiro.oliveira@advantech.com>
---
Ramiro Oliveira (8):
Add Advantech EIO driver
Add Advantech EIO GPIO driver
Add Advantech EIO Hardware Monitor driver
Add Advantech EIO I2C driver
Add Advantech EIO Backlight driver
Add Advantech EIO Watchdog driver
Add Advantech EIO Thermal driver
Add Advantech EIO Fan driver
MAINTAINERS | 19 +
drivers/gpio/Kconfig | 6 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-eio.c | 252 +++++++++
drivers/hwmon/Kconfig | 10 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/eio-hwmon.c | 461 ++++++++++++++++
drivers/i2c/busses/Kconfig | 6 +
drivers/i2c/busses/Makefile | 1 +
drivers/i2c/busses/i2c-eio.c | 1135 ++++++++++++++++++++++++++++++++++++++
drivers/mfd/Kconfig | 10 +
drivers/mfd/Makefile | 1 +
drivers/mfd/eio_core.c | 644 +++++++++++++++++++++
drivers/thermal/Kconfig | 17 +
drivers/thermal/Makefile | 2 +
drivers/thermal/eio_fan.c | 478 ++++++++++++++++
drivers/thermal/eio_thermal.c | 346 ++++++++++++
drivers/video/backlight/Kconfig | 6 +
drivers/video/backlight/Makefile | 1 +
drivers/video/backlight/eio_bl.c | 243 ++++++++
drivers/watchdog/Kconfig | 7 +
drivers/watchdog/Makefile | 1 +
drivers/watchdog/eio_wdt.c | 641 +++++++++++++++++++++
include/linux/mfd/eio.h | 124 +++++
24 files changed, 4413 insertions(+)
---
base-commit: 50c051a08a731c52933608fa8e9174cd9875fcc4
change-id: 20260714-upstream-v2-beaec2baac0d
Best regards,
--
Ramiro Oliveira <ramiro.oliveira@advantech.com>