[PATCH 0/4] stm32-f7: Addition of SMBus Alert / Host-notify features
From: Alain Volmat
Date: Tue May 05 2020 - 01:52:49 EST
This serie adds SMBus Alert and SMBus Host-Notify features for the i2c-stm32f7.
For that purpore, I propose two enhancements to the i2c framework.
1. Addition of host-notify client handling as part of the
i2c-core-smbus so that any other i2c adapter can benefit from it,
even those without specific HW support for Host-Notify.
2. Addition of two i2c_algorithm reg_client and unreg_client allowing
adapter to take some actions when a client is being probed.
Indeed, in case of host-notify, the binding/flag is related to the
client and the adapter might want to enable the host-notify feature
only when there is a client requesting the host-notify.
(Since SMBus host-notify is using the address 0x08 which is a valid
I2C address, keeping host-notify always enabled would make the 0x08
I2C slave address non usable).
Alain Volmat (4):
i2c: smbus: add core function handling SMBus host-notify
i2c: addition of client reg/unreg callbacks
dt-bindings: i2c-stm32: add SMBus Alert bindings
i2c: stm32f7: Add SMBus-specific protocols support
.../devicetree/bindings/i2c/st,stm32-i2c.yaml | 4 +
drivers/i2c/busses/Kconfig | 1 +
drivers/i2c/busses/i2c-stm32f7.c | 198 +++++++++++++++++-
drivers/i2c/i2c-core-base.c | 11 +
drivers/i2c/i2c-core-smbus.c | 105 ++++++++++
include/linux/i2c-smbus.h | 2 +
include/linux/i2c.h | 6 +
7 files changed, 317 insertions(+), 10 deletions(-)
--
2.17.1