
The generic I2C bootcounter driver does not yet adhere to driver model. This patchset intends to replace the legacy implementation.
There are currently no upstream boards using the driver, so it should be safe to just remove it. For downstream users it should be straighforward to switch to the new implementation.
Changes in v2: - Improved device tree handling by replacing address property with phandle - Addition of a generic i2c helper function
In v1 there has been some discussion on how to smoothly bind and probe the i2c device. The hereby proposed solution may not fullfill all the requirements stated there, but it is the only variant I actually got to work. Furthermore it is not as concise as I would have liked it to be. Ideas on how to improve it are welcome :)
Philip Richard Oberfichtner (3): bootcount: Remove legacy I2C driver i2c: Implement i2c_get_chip_by_phandle() bootcount: Add driver model I2C driver
drivers/bootcount/Kconfig | 34 ++++----- drivers/bootcount/Makefile | 2 +- drivers/bootcount/bootcount_dm_i2c.c | 103 +++++++++++++++++++++++++++ drivers/bootcount/bootcount_i2c.c | 43 ----------- drivers/i2c/i2c-uclass.c | 75 +++++++++++++++++++ include/i2c.h | 12 ++++ 6 files changed, 204 insertions(+), 65 deletions(-) create mode 100644 drivers/bootcount/bootcount_dm_i2c.c delete mode 100644 drivers/bootcount/bootcount_i2c.c