Skip to contentSkip to conversation

drivers: tee: i2c: support the NXP SE05x probe errata

PATCH Superseded Jorge Ramirez-Ortiz 1 participant 1 message Aug 16, 2022

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/tee/optee/Kconfig | 14 +++++++++++++
 drivers/tee/optee/i2c.c   | 44 +++++++++++++++++++++++++++++++++++----
 2 files changed, 54 insertions(+), 4 deletions(-)
drivers/tee/optee/Kconfig +14 -0
index d03028070b..05dfe2c9a8 100644
@@ -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