This patchset adds initial support for the Texas Instruments TPS25990 eFuse. The TPS25990 is an integrated, high-current circuit protection and power management device. TPS25895 may be stacked on the TPS25990 for higher currents. This patchset provides basic telemetry support for the device. On boot, the device is write protected. Limits can be changed in sysfs if the write protection is removed using the introduced pmbus parameter. Limits will be restored to the default value device on startup, unless saved to NVM. Writing the NVM is not supported by the driver at the moment. As part of this series, PMBus regulator support is improved to better support write-protected devices. Changes in v4: - Rebased on v6.13-rc1, dropping applied patches. - Replace 0xff with -1 when using pmbus_read/write_byte() - TPS25990 Support only WP_ALL or 0 as write protection, return -EINVAL otherwise. - Link to v3: https://lore.kernel.org/r/20241024-tps25990-v3-0-b6a6e9d4b506@xxxxxxxxxxxx Changes in v3: - Grouped hwmon write protect patches from: https://lore.kernel.org/r/20240920-pmbus-wp-v1-0-d679ef31c483@xxxxxxxxxxxx - Link to v2: https://lore.kernel.org/r/20240920-tps25990-v2-0-f3e39bce5173@xxxxxxxxxxxx Changes in v2: - Drop PGOOD command support - Use micro-ohms for rimon property and better handle range. - Adjust read/write callbacks to let PMBus core do the job by default - Drop history reset specific properties and remap to the generic ones - Drop debugfs write_protect property and remap to the generic register - Link to v1: https://lore.kernel.org/r/20240909-tps25990-v1-0-39b37e43e795@xxxxxxxxxxxx --- Jerome Brunet (3): hwmon: (pmbus/core) improve handling of write protected regulators hwmon: (pmbus/core) add wp module param hwmon: (pmbus/tps25990): add initial support Documentation/hwmon/index.rst | 1 + Documentation/hwmon/pmbus-core.rst | 35 +++ Documentation/hwmon/tps25990.rst | 148 +++++++++++++ MAINTAINERS | 2 + drivers/hwmon/pmbus/Kconfig | 17 ++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/pmbus.h | 4 + drivers/hwmon/pmbus/pmbus_core.c | 81 ++++++- drivers/hwmon/pmbus/tps25990.c | 437 +++++++++++++++++++++++++++++++++++++ include/linux/pmbus.h | 14 ++ 10 files changed, 734 insertions(+), 6 deletions(-) --- base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 change-id: 20240909-tps25990-34c0cff2be06 Best regards, -- Jerome