Starting the I2C driver

Start an I2C driver

Syntax:

i2c-bcm2711 [-c clock] [-i irq] [-p addr] [-s slave addr] [-v addr] [--b bus_speed] [--u unit]

Options:

-c clock
The default value is 5000 (100KHz).
-i irq
The I2C interrupt. The default value is 149.
-p addr
The I2C base address. The default value is 0.
-s slave addr
The slave address. Only 7 bit addresses are supported. The default value is 0.
-v addr
Set the verbosity. The default value is 2.

Generic options:

--b bus_speed
The default bus speed. The default value is 10000.
--u unit
The unit number, which is a number to append to the device name prefix (/dev/i2c). The default value is 0.

Description:

The i2c-bcm2711 starts an I2C driver on a Raspberry Pi.
Note:
Different boards might require a different driver, but interfacing with the driver should be similar across boards.

Example:

i2c-bcm2711  -p0xfe804000 --b100000 --u1
Page updated: