hw/misc: add ADM1272 device
authorTitus Rwantare <titusr@google.com>
Thu, 8 Jul 2021 17:25:53 +0000 (10:25 -0700)
committerCorey Minyard <cminyard@mvista.com>
Thu, 8 Jul 2021 19:41:50 +0000 (14:41 -0500)
commitc93488f16b70debc0c168b4117531623b03d6bf0
treeac8e8f32ababcb86948cddd657ad77fae92a71df
parent3746d5c15e70570be265e55c838429db97ef94ab
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>
hw/arm/Kconfig
hw/sensor/Kconfig
hw/sensor/adm1272.c [new file with mode: 0644]
hw/sensor/meson.build