zephyr,i2c-emul-controller

Vendor: Zephyr-specific binding

Note

An implementation of a driver matching this compatible is available in drivers/i2c/i2c_emul.c.

Description

These nodes are “i2c” bus nodes.

Zephyr I2C Emulation controller

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

target-buffered-mode

boolean

This option is used when the I2C target is enabled and it can support
buffered mode for I2C target transfer. When 'false', the target will use
PIO (Programmed I/O) mode.

forwards

phandle-array

When added, read/write requests sent to this bus for a given address will
be forwarded to the specified phandle (must be another i2c bus). As an
example, if we wanted to forward any requests from i2c0@0x20 to i2c1, we
would use:

&i2c0 {
  forward = <&i2c1 0x20>;
};

Specifier cell names

  • forward cells: addr