gpio-i2c

Description

These nodes are “i2c” bus nodes.

I2C via GPIO bitbanging

The GPIO pin used for SDA must be configured (through devicetree and pinmux) with suitable flags,
i.e. as open-collector/open-drain with a pull-up resistor (pull-up can be an external component).

The SCL pin should be configured in the same manner as the SDA pin, or, if it is known that the
hardware attached to pin does not attempt I2C clock stretching, then the SCL pin may be configured
as push/pull.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

scl-gpios

phandle-array

GPIO to which the SCL pin of the I2C bus is connected.

This property is required.

sda-gpios

phandle-array

GPIO to which the SDA pin of the I2C bus is connected.

This property is required.

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