1 ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2 1da177e4SLinus Torvalds# 3 be53f9b2SArthur Othieno# I2C subsystem configuration 4 1da177e4SLinus Torvalds# 5 1da177e4SLinus Torvalds 6 da3c6647SLan Tianyumenu "I2C support" 7 da3c6647SLan Tianyu 8 da3c6647SLan Tianyuconfig I2C 9 1da177e4SLinus Torvalds tristate "I2C support" 10 194684e5SMika Kuoppala select RT_MUTEXES 11 4d5538f5SBenjamin Tissoires select IRQ_DOMAIN 12 a7f7f624SMasahiro Yamada help 13 622e040dSMichael Witten I2C (pronounce: I-squared-C) is a slow serial bus protocol used in 14 1da177e4SLinus Torvalds many micro controller applications and developed by Philips. SMBus, 15 1da177e4SLinus Torvalds or System Management Bus is a subset of the I2C protocol. More 16 1da177e4SLinus Torvalds information is contained in the directory <file:Documentation/i2c/>, 17 1da177e4SLinus Torvalds especially in the file called "summary" there. 18 1da177e4SLinus Torvalds 19 1da177e4SLinus Torvalds Both I2C and SMBus are supported here. You will need this for 20 1da177e4SLinus Torvalds hardware sensors support, and also for Video For Linux support. 21 1da177e4SLinus Torvalds 22 1da177e4SLinus Torvalds If you want I2C support, you should say Y here and also to the 23 1da177e4SLinus Torvalds specific driver for your bus adapter(s) below. 24 1da177e4SLinus Torvalds 25 1da177e4SLinus Torvalds This I2C support can also be built as a module. If so, the module 26 1da177e4SLinus Torvalds will be called i2c-core. 27 1da177e4SLinus Torvalds 28 36604751SLan Tianyuconfig ACPI_I2C_OPREGION 29 36604751SLan Tianyu bool "ACPI I2C Operation region support" 30 36604751SLan Tianyu depends on I2C=y && ACPI 31 da3c6647SLan Tianyu default y 32 da3c6647SLan Tianyu help 33 36604751SLan Tianyu Say Y here if you want to enable ACPI I2C operation region support. 34 36604751SLan Tianyu Operation Regions allow firmware (BIOS) code to access I2C slave devices, 35 36604751SLan Tianyu such as smart batteries through an I2C host controller driver. 36 da3c6647SLan Tianyu 37 16538e6bSJan Engelhardtif I2C 38 16538e6bSJan Engelhardt 39 9c1600edSDavid Brownellconfig I2C_BOARDINFO 40 6341e62bSChristoph Jaeger bool 41 9c1600edSDavid Brownell default y 42 9c1600edSDavid Brownell 43 1da177e4SLinus Torvaldsconfig I2C_CHARDEV 44 1da177e4SLinus Torvalds tristate "I2C device interface" 45 1da177e4SLinus Torvalds help 46 1da177e4SLinus Torvalds Say Y here to use i2c-* device files, usually found in the /dev 47 1da177e4SLinus Torvalds directory on your system. They make it possible to have user-space 48 1da177e4SLinus Torvalds programs use the I2C bus. Information on how to do this is 49 ccf988b6SMauro Carvalho Chehab contained in the file <file:Documentation/i2c/dev-interface.rst>. 50 1da177e4SLinus Torvalds 51 1da177e4SLinus Torvalds This support is also available as a module. If so, the module 52 1da177e4SLinus Torvalds will be called i2c-dev. 53 1da177e4SLinus Torvalds 54 0826374bSMichael Lawnickconfig I2C_MUX 55 0826374bSMichael Lawnick tristate "I2C bus multiplexing support" 56 0826374bSMichael Lawnick help 57 0826374bSMichael Lawnick Say Y here if you want the I2C core to support the ability to 58 0826374bSMichael Lawnick handle multiplexed I2C bus topologies, by presenting each 59 0826374bSMichael Lawnick multiplexed segment as a I2C adapter. 60 0826374bSMichael Lawnick 61 0826374bSMichael Lawnick This support is also available as a module. If so, the module 62 0826374bSMichael Lawnick will be called i2c-mux. 63 0826374bSMichael Lawnick 64 8636a1f9SMasahiro Yamadasource "drivers/i2c/muxes/Kconfig" 65 7f528135SMichael Lawnick 66 a076a860SLuca Ceresoliconfig I2C_ATR 67 24dc13f9SGeert Uytterhoeven tristate "I2C Address Translator (ATR) support" if COMPILE_TEST 68 a076a860SLuca Ceresoli help 69 a076a860SLuca Ceresoli Enable support for I2C Address Translator (ATR) chips. 70 a076a860SLuca Ceresoli 71 a076a860SLuca Ceresoli An ATR allows accessing multiple I2C busses from a single 72 a076a860SLuca Ceresoli physical bus via address translation instead of bus selection as 73 a076a860SLuca Ceresoli i2c-muxes do. 74 a076a860SLuca Ceresoli 75 8d24f8dcSJean Delvareconfig I2C_HELPER_AUTO 76 8d24f8dcSJean Delvare bool "Autoselect pertinent helper modules" 77 8d24f8dcSJean Delvare default y 78 8d24f8dcSJean Delvare help 79 8d24f8dcSJean Delvare Some I2C bus drivers require so-called "I2C algorithm" modules 80 8d24f8dcSJean Delvare to work. These are basically software-only abstractions of generic 81 8d24f8dcSJean Delvare I2C interfaces. This option will autoselect them so that you don't 82 8d24f8dcSJean Delvare have to care. 83 8d24f8dcSJean Delvare 84 8d24f8dcSJean Delvare Unselect this only if you need to enable additional helper 85 8d24f8dcSJean Delvare modules, for example for use with external I2C bus drivers. 86 8d24f8dcSJean Delvare 87 8d24f8dcSJean Delvare In doubt, say Y. 88 8d24f8dcSJean Delvare 89 e2ca3074SJean Delvareconfig I2C_SMBUS 90 dfc518ddSArnaud Lacombe tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO 91 e2ca3074SJean Delvare help 92 e2ca3074SJean Delvare Say Y here if you want support for SMBus extensions to the I2C 93 d380a204SJean Delvare specification. At the moment, two extensions are supported: 94 d380a204SJean Delvare the SMBus Alert protocol and the SMBus Host Notify protocol. 95 e2ca3074SJean Delvare 96 e2ca3074SJean Delvare This support is also available as a module. If so, the module 97 e2ca3074SJean Delvare will be called i2c-smbus. 98 e2ca3074SJean Delvare 99 8636a1f9SMasahiro Yamadasource "drivers/i2c/algos/Kconfig" 100 8636a1f9SMasahiro Yamadasource "drivers/i2c/busses/Kconfig" 101 1da177e4SLinus Torvalds 102 3ddb59d4SPeter Hueweconfig I2C_STUB 103 3ddb59d4SPeter Huewe tristate "I2C/SMBus Test Stub" 104 417e86ceSKees Cook depends on m 105 3ddb59d4SPeter Huewe help 106 3ddb59d4SPeter Huewe This module may be useful to developers of SMBus client drivers, 107 3ddb59d4SPeter Huewe especially for certain kinds of sensor chips. 108 3ddb59d4SPeter Huewe 109 3ddb59d4SPeter Huewe If you do build this module, be sure to read the notes and warnings 110 ccf988b6SMauro Carvalho Chehab in <file:Documentation/i2c/i2c-stub.rst>. 111 3ddb59d4SPeter Huewe 112 3ddb59d4SPeter Huewe If you don't know what to do here, definitely say N. 113 3ddb59d4SPeter Huewe 114 389be323SWolfram Sangconfig I2C_SLAVE 115 389be323SWolfram Sang bool "I2C slave support" 116 58e64b05SWolfram Sang help 117 58e64b05SWolfram Sang This enables Linux to act as an I2C slave device. Note that your I2C 118 58e64b05SWolfram Sang bus master driver also needs to support this functionality. Please 119 58e64b05SWolfram Sang read Documentation/i2c/slave-interface.rst for further details. 120 389be323SWolfram Sang 121 389be323SWolfram Sangif I2C_SLAVE 122 389be323SWolfram Sang 123 389be323SWolfram Sangconfig I2C_SLAVE_EEPROM 124 389be323SWolfram Sang tristate "I2C eeprom slave driver" 125 59d3d604SWolfram Sang help 126 59d3d604SWolfram Sang This backend makes Linux behave like an I2C EEPROM. Please read 127 59d3d604SWolfram Sang Documentation/i2c/slave-eeprom-backend.rst for further details. 128 389be323SWolfram Sang 129 a8335c64SWolfram Sangconfig I2C_SLAVE_TESTUNIT 130 *6dfe0abaSWolfram Sang tristate "I2C testunit driver" 131 a8335c64SWolfram Sang help 132 a8335c64SWolfram Sang This backend can be used to trigger test cases for I2C bus masters 133 a8335c64SWolfram Sang which require a remote device with certain capabilities, e.g. 134 a8335c64SWolfram Sang multi-master, SMBus Host Notify, etc. Please read 135 a8335c64SWolfram Sang Documentation/i2c/slave-testunit-backend.rst for further details. 136 a8335c64SWolfram Sang 137 389be323SWolfram Sangendif 138 389be323SWolfram Sang 139 1da177e4SLinus Torvaldsconfig I2C_DEBUG_CORE 140 1da177e4SLinus Torvalds bool "I2C Core debugging messages" 141 1da177e4SLinus Torvalds help 142 1da177e4SLinus Torvalds Say Y here if you want the I2C core to produce a bunch of debug 143 1da177e4SLinus Torvalds messages to the system log. Select this if you are having a 144 1da177e4SLinus Torvalds problem with I2C support and want to see more of what is going on. 145 1da177e4SLinus Torvalds 146 1da177e4SLinus Torvaldsconfig I2C_DEBUG_ALGO 147 1da177e4SLinus Torvalds bool "I2C Algorithm debugging messages" 148 1da177e4SLinus Torvalds help 149 1da177e4SLinus Torvalds Say Y here if you want the I2C algorithm drivers to produce a bunch 150 1da177e4SLinus Torvalds of debug messages to the system log. Select this if you are having 151 1da177e4SLinus Torvalds a problem with I2C support and want to see more of what is going 152 1da177e4SLinus Torvalds on. 153 1da177e4SLinus Torvalds 154 1da177e4SLinus Torvaldsconfig I2C_DEBUG_BUS 155 1da177e4SLinus Torvalds bool "I2C Bus debugging messages" 156 3ddb59d4SPeter Huewe depends on HAS_IOMEM 157 1da177e4SLinus Torvalds help 158 1da177e4SLinus Torvalds Say Y here if you want the I2C bus drivers to produce a bunch of 159 1da177e4SLinus Torvalds debug messages to the system log. Select this if you are having 160 1da177e4SLinus Torvalds a problem with I2C support and want to see more of what is going 161 1da177e4SLinus Torvalds on. 162 1da177e4SLinus Torvalds 163 16538e6bSJan Engelhardtendif # I2C 164 da3c6647SLan Tianyu 165 da3c6647SLan Tianyuendmenu 166