Re: [PATCH 1/2] hwmon: (pmbus) Add support for multiple-function pin
From: Guenter Roeck
Date: Tue Dec 16 2025 - 04:48:11 EST
On 12/16/25 01:16, Jeff Lin wrote:
Some pmbus chip support the additional multiple-function pin, which can
detect and provide the connected device's current reading. The data
format of the multiple-function ping must be confirmed with the chip
vendor, as it may vary between different chips. However, it is
problematic if the data format differs from the original 'iin' and 'iout'
and we want to show both the current from multiple-function pin and the
original 'iin' and 'iout'.
To solve the problem, add support for additional virtual current input
and virtual current output, call it 'viin' and 'viout', respectively.
Those are just additional current input and output values. That does not
require additional sensor classes. Just use the chip driver to map the
readings from the chip format to the format used by the existing iin and
iout (there is no 'viin" or "viout").
Also, please point to the standard regarding "multiple function pin".
The term must only be used in the common code or definitions if it has
a reference in the standard. Otherwise it is just a manufacturer specific
extension which has no place in common code. The second patch of the series,
which accesses some very vendor specific functions, strongly suggests that
this is the case.
Guenter