drivers: tee: i2c: support the NXP SE05x probe errata
Subsystems (2)
PATCH v2 1/1 drivers: tee: i2c: support the NXP SE05x probe errata
Early instantiation of this I2C device would lock up when being probed.
https://www.nxp.com/docs/en/errata/SE050_Erratasheet.pdf
3.2.2
In scenarios of detecting I2C ICs on the bus using an empty I2C frame containing only the address the SE050 will block the I2C bus.
Tested on STM32MP1
Signed-off-by Jorge Ramirez-Ortiz <[email protected]>
--- drivers/tee/optee/Kconfig | 14 +++++++++++++ drivers/tee/optee/i2c.c | 44 +++++++++++++++++++++++++++++++++++---- 2 files changed, 54 insertions(+), 4 deletions(-)
drivers/tee/optee/Kconfig +14 -0
@@ -37,6 +37,20 @@ config OPTEE_TA_SCP03 help Enables support for controlling (enabling, provisioning) the Secure Channel Protocol 03 operation in the OP-TEE SCP03 TA. + +config TEE_I2C_NXP_SE05X_ERRATA + bool "Enable NXP SE05X Errata" + select TEE_I2C_NXP_SE05X_ERRATA_IN_BUS + default y + help + This config prevents the I2C trampoline driver from probing + on every transfer. + +config TEE_I2C_NXP_SE05X_ERRATA_IN_BUS + int "I2C bus where to apply the NXP SE05X errata" + depends on TEE_I2C_NXP_SE05X_ERRATA + default 0 + endmenu endif
drivers/tee/optee/i2c.c +40 -4
85 lines not on this page · raw message
Signature · 1 line
2.34.1