From: Maheswara Kurapati <quic_mkura...@quicinc.com> Firework has two MAX31785 Fan controllers at 0x52, and 0x54. Include them in the model so that the Linux driver populates the sysfs interface.
Signed-off-by: Maheswara Kurapati <quic_mkura...@quicinc.com> --- hw/arm/aspeed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 85630b497793..08e5fc178a94 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -1046,6 +1046,10 @@ static void qcom_dc_scm_firework_i2c_init(AspeedMachineState *bmc) /* I2C4 */ qcom_firework_fru_init(aspeed_i2c_get_bus(&soc->i2c, 4), 0x50, 128 * 1024); + + /* I2C-9 Fan Controller (MAX31785) */ + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785", 0x52); + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785", 0x54); } static bool aspeed_get_mmio_exec(Object *obj, Error **errp) -- 2.25.1