Re: [PATCH v3] mfd: da9063: Support SMBus and I2C mode

2021-02-05 Thread Wolfram Sang
> + if (i2c_check_functionality(i2c->adapter, I2C_FUNC_I2C)) { > + dev_info(da9063->dev, "I2C mode"); > + busmode = 0; > + } else { > + dev_info(da9063->dev, "SMBus mode"); > + busmode = DA9063_TWOWIRE_TO; > + } In principle, this looks

[PATCH v3] mfd: da9063: Support SMBus and I2C mode

2021-02-05 Thread Mark Jonas
From: Hubert Streidl By default the PMIC DA9063 2-wire interface is SMBus compliant. This means the PMIC will automatically reset the interface when the clock signal ceases for more than the SMBus timeout of 35 ms. If the I2C driver / device is not capable of creating atomic I2C transactions, a