hw/misc: add ADM1272 device

The ADM1272 is a PMBus compliant Hot Swap Controller and Digital Power
Monitor by Analog Devices.

This commit adds support for interfacing with it, and support for
setting and monitoring sensor limits.

Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1272.pdf

Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Titus Rwantare <titusr@google.com>
Message-Id: <20210708172556.1868139-3-titusr@google.com>
[Moved the device to the sensor directory]
[remove include of trace.h, it is not needed]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
Titus Rwantare 2021-07-08 10:25:53 -07:00 committed by Corey Minyard
parent 3746d5c15e
commit c93488f16b
4 changed files with 549 additions and 0 deletions

View file

@ -9,3 +9,7 @@ config TMP421
config EMC141X
bool
depends on I2C
config ADM1272
bool
depends on I2C