Kconfig

I2C support

CONFIG_I2C I2C support

  • Off
  • Module
  • Built in

I2C (pronounce: I-squared-C) is a slow serial bus protocol used in many micro controller applications and developed by Philips. SMBus, or System Management Bus is a subset of the I2C protocol. More information is contained in the directory <file:Documentation/i2c/>, especially in the file called "summary" there.

Both I2C and SMBus are supported here. You will need this for hardware sensors support, and also for Video For Linux support.

If you want I2C support, you should say Y here and also to the specific driver for your bus adapter(s) below.

This I2C support can also be built as a module. If so, the module will be called i2c-core.

CONFIG_ACPI_I2C_OPREGION ACPI I2C Operation region support

On

Say Y here if you want to enable ACPI I2C operation region support. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.

If I2C

CONFIG_I2C_BOARDINFO

On
Default

CONFIG_I2C_CHARDEV I2C device interface

  • Off
  • Module
  • Built in

Say Y here to use i2c-* device files, usually found in the /dev directory on your system. They make it possible to have user-space programs use the I2C bus. Information on how to do this is contained in the file <file:Documentation/i2c/dev-interface.rst>.

This support is also available as a module. If so, the module will be called i2c-dev.

CONFIG_I2C_MUX I2C bus multiplexing support

  • Off
  • Module
  • Built in

Say Y here if you want the I2C core to support the ability to handle multiplexed I2C bus topologies, by presenting each multiplexed segment as a I2C adapter.

This support is also available as a module. If so, the module will be called i2c-mux.

Includedrivers/i2c/muxes/Kconfig Open file

CONFIG_I2C_ATR I2C Address Translator (ATR) support

  • Off
  • Module
  • Built in

Enable support for I2C Address Translator (ATR) chips.

An ATR allows accessing multiple I2C busses from a single physical bus via address translation instead of bus selection as i2c-muxes do.

CONFIG_I2C_HELPER_AUTO Autoselect pertinent helper modules

On

Some I2C bus drivers require so-called "I2C algorithm" modules to work. These are basically software-only abstractions of generic I2C interfaces. This option will autoselect them so that you don't have to care.

Unselect this only if you need to enable additional helper modules, for example for use with external I2C bus drivers.

In doubt, say Y.

Default

CONFIG_I2C_SMBUS SMBus-specific protocols

  • Off
  • Module
  • Built in

Say Y here if you want support for SMBus extensions to the I2C specification. At the moment, two extensions are supported: the SMBus Alert protocol and the SMBus Host Notify protocol.

This support is also available as a module. If so, the module will be called i2c-smbus.

Includedrivers/i2c/algos/Kconfig Open file
Includedrivers/i2c/busses/Kconfig Open file

CONFIG_I2C_STUB I2C/SMBus Test Stub

  • Off
  • Module
  • Built in

This module may be useful to developers of SMBus client drivers, especially for certain kinds of sensor chips.

If you do build this module, be sure to read the notes and warnings in <file:Documentation/i2c/i2c-stub.rst>.

If you don't know what to do here, definitely say N.

  • Depends onI2C && m &&

CONFIG_I2C_SLAVE I2C slave support

On

This enables Linux to act as an I2C slave device. Note that your I2C bus master driver also needs to support this functionality. Please read Documentation/i2c/slave-interface.rst for further details.

If I2C_SLAVE

CONFIG_I2C_SLAVE_TESTUNIT I2C testunit driver

  • Off
  • Module
  • Built in

This backend can be used to trigger test cases for I2C bus masters which require a remote device with certain capabilities, e.g. multi-master, SMBus Host Notify, etc. Please read Documentation/i2c/slave-testunit-backend.rst for further details.

CONFIG_I2C_DYNAMIC_TIMEOUT Dynamic per-transfer timeout based on message length

On

When enabled, the I2C core computes a per-transfer timeout from the message length and bus frequency instead of using a static 1-second default. A timeout explicitly configured via the I2C_TIMEOUT userspace interface always takes precedence over the computed value.

When disabled, the existing static 1-second timeout is preserved.

If unsure, say N.

CONFIG_I2C_DEBUG_CORE I2C Core debugging messages

On

Say Y here if you want the I2C core to produce a bunch of debug messages to the system log. Select this if you are having a problem with I2C support and want to see more of what is going on.

CONFIG_I2C_DEBUG_ALGO I2C Algorithm debugging messages

On

Say Y here if you want the I2C algorithm drivers to produce a bunch of debug messages to the system log. Select this if you are having a problem with I2C support and want to see more of what is going on.

CONFIG_I2C_DEBUG_BUS I2C Bus debugging messages

On

Say Y here if you want the I2C bus drivers to produce a bunch of debug messages to the system log. Select this if you are having a problem with I2C support and want to see more of what is going on.

End of I2C support