OSDN Git Service

hwmon: (pmbus) Add support for MPS Multi-phase mp2975 controller
authorVadim Pasternak <vadimp@nvidia.com>
Sat, 26 Sep 2020 20:49:56 +0000 (23:49 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 4 Oct 2020 15:40:10 +0000 (08:40 -0700)
commit2c6fcbb211494f1ff6ef384776944b9e04f4c14c
treef3644557dd277a9af93099b9de35540280819269
parentc073292b166a9a0d4d2df605fcbca1ed887aa307
hwmon: (pmbus) Add support for MPS Multi-phase mp2975 controller

Add support for mp295 device from Monolithic Power Systems, Inc. (MPS)
vendor. This is a dual-loop, digital, multi-phase controller.
This device:
- Supports two power rail.
- Provides 8 pulse-width modulations (PWMs), and can be configured up
  to 8-phase operation for rail 1 and up to 4-phase operation for rail
  2.
- Supports two pages 0 and 1 for telemetry and also pages 2 and 3 for
  configuration.
- Can configured VOUT readout in direct or VID format and allows
  setting of different formats on rails 1 and 2. For VID the following
  protocols are available: VR13 mode with 5-mV DAC; VR13 mode with
  10-mV DAC, IMVP9 mode with 5-mV DAC.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20200926204957.10268-2-vadimp@nvidia.com
[groeck: Cleaned up a couple of error returns; fixed up API changes]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/mp2975.rst [new file with mode: 0644]
drivers/hwmon/pmbus/Kconfig
drivers/hwmon/pmbus/Makefile
drivers/hwmon/pmbus/mp2975.c [new file with mode: 0644]