zephyr/dts
Martin Jäger d5168a8d96 drivers: i2c: esp32: set timeout to allow clock stretching
The ESP32 series MCUs allow to set a timeout which triggers an error
if the SCL line is unchanged for the specified amount of time.

By default, the ESP-IDF HAL sets the timeout to an arbitrary value of
10 times the bus cycle.

This is not sufficient for chips like the TI bq76952, which pulls the
SCL line low (clock stretching) for several 100 µs.

The timeout should also not be dependent on the chosen bitrate, as it
is defined by the time a chip needs for internal calculation before it
can provide requested data or continue communication.

This commit adds a property to devicetree to allow configuration of
the scl timeout. This value is set via direct register access, as the
ESP-IDF HAL does not provide access to the enable bit and does not
give any information about the maximum size of the timeout (defined
in I2C clock cycles in the register).

Fixes #51351

Signed-off-by: Martin Jäger <martin@libre.solar>
2022-10-31 16:41:57 +09:00
..
arc/synopsys soc: arc: define ICI in DT 2022-08-03 07:46:14 -04:00
arm drivers: espi_saf: Add Microchip MEC172x eSPI SAF version 2 driver 2022-10-28 14:29:46 -05:00
arm64 boards: Add support for Khadas Edge-V board 2022-10-08 18:32:14 +02:00
bindings drivers: i2c: esp32: set timeout to allow clock stretching 2022-10-31 16:41:57 +09:00
common dts/arm: stm32: Add clocks nodes on stm32wb,l4 and stm32f4 series 2021-04-27 11:53:37 +02:00
nios2/intel flash: nios2_qspi: Add dts binding and nodes for NIOS2 QSPI flash 2022-08-12 08:11:42 -04:00
posix
riscv it8xxx2: generalize ILM support 2022-10-21 20:31:47 +02:00
sparc/gaisler dts: sparc: Remove label property from devicetrees 2022-07-22 02:51:14 -05:00
x86/intel boards: x86: Add rpl_crb board definition 2022-10-25 09:51:37 +03:00
xtensa timer: intel_adsp: use DTS for hardware information 2022-10-11 12:50:05 -04:00
binding-template.yaml doc: devicetree: overhaul bindings guide 2021-04-22 15:32:10 +02:00
Kconfig dts: Include Kconfig.dts as optional source 2022-08-15 11:10:51 -07:00