The latest development version of this page may be more current than this released 3.7.0 version.

espressif,esp32-i2c

Vendor: Espressif Systems

Description

These nodes are “i2c” bus nodes.

ESP32 I2C

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-frequency

int

Initial clock frequency in Hz

sq-size

int

Size of the submission queue for blocking requests

Default value: 4

cq-size

int

Size of the completion queue for blocking requests

Default value: 4

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

This property is required.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

This property is required.

scl-gpios

phandle-array

GPIO to which the I2C SCL signal is routed. This is only required
if the target SoC does not have support in hardware for clearing
the I2C bus in case of a communication failure

sda-gpios

phandle-array

GPIO to which the I2C SDA signal is routed. This is only required
if the target SoC does not have support in hardware for clearing
the I2C bus in case of a communication failure

tx-lsb

boolean

Set I2C TX data as LSB

rx-lsb

boolean

Set I2C RX data as LSB

scl-timeout-us

int

Timeout for unchanged SCL during clock stretching of the I2C target in
microseconds.

If not set or 0, the timeout is disabled or set to the maximum possible
value if the MCU does not support disabling the timeout.