10b11dbf7SMasahiro Yamada# 20b11dbf7SMasahiro Yamada# I2C subsystem configuration 30b11dbf7SMasahiro Yamada# 40b11dbf7SMasahiro Yamada 50b11dbf7SMasahiro Yamadamenu "I2C support" 60b11dbf7SMasahiro Yamada 7b6036bcdSMasahiro Yamadaconfig DM_I2C 8b6036bcdSMasahiro Yamada bool "Enable Driver Model for I2C drivers" 9b6036bcdSMasahiro Yamada depends on DM 10b6036bcdSMasahiro Yamada help 11705fcf4dSPrzemyslaw Marczak Enable driver model for I2C. The I2C uclass interface: probe, read, 12705fcf4dSPrzemyslaw Marczak write and speed, is implemented with the bus drivers operations, 13705fcf4dSPrzemyslaw Marczak which provide methods for bus setting and data transfer. Each chip 14705fcf4dSPrzemyslaw Marczak device (bus child) info is kept as parent platdata. The interface 15705fcf4dSPrzemyslaw Marczak is defined in include/i2c.h. When i2c bus driver supports the i2c 16705fcf4dSPrzemyslaw Marczak uclass, but the device drivers not, then DM_I2C_COMPAT config can 17705fcf4dSPrzemyslaw Marczak be used as compatibility layer. 1826f820f3SMasahiro Yamada 194bba9d3fSSimon Glassconfig DM_I2C_COMPAT 204bba9d3fSSimon Glass bool "Enable I2C compatibility layer" 214bba9d3fSSimon Glass depends on DM 224bba9d3fSSimon Glass help 234bba9d3fSSimon Glass Enable old-style I2C functions for compatibility with existing code. 244bba9d3fSSimon Glass This option can be enabled as a temporary measure to avoid needing 254bba9d3fSSimon Glass to convert all code for a board in a single commit. It should not 264bba9d3fSSimon Glass be enabled for any board in an official release. 274bba9d3fSSimon Glass 28cc456bd7SSimon Glassconfig I2C_CROS_EC_TUNNEL 29cc456bd7SSimon Glass tristate "Chrome OS EC tunnel I2C bus" 30cc456bd7SSimon Glass depends on CROS_EC 31cc456bd7SSimon Glass help 32cc456bd7SSimon Glass This provides an I2C bus that will tunnel i2c commands through to 33cc456bd7SSimon Glass the other side of the Chrome OS EC to the I2C bus connected there. 34cc456bd7SSimon Glass This will work whatever the interface used to talk to the EC (SPI, 35cc456bd7SSimon Glass I2C or LPC). Some Chromebooks use this when the hardware design 36cc456bd7SSimon Glass does not allow direct access to the main PMIC from the AP. 37cc456bd7SSimon Glass 38f48eaf01SSimon Glassconfig I2C_CROS_EC_LDO 39f48eaf01SSimon Glass bool "Provide access to LDOs on the Chrome OS EC" 40f48eaf01SSimon Glass depends on CROS_EC 41f48eaf01SSimon Glass ---help--- 42f48eaf01SSimon Glass On many Chromebooks the main PMIC is inaccessible to the AP. This is 43f48eaf01SSimon Glass often dealt with by using an I2C pass-through interface provided by 44f48eaf01SSimon Glass the EC. On some unfortunate models (e.g. Spring) the pass-through 45f48eaf01SSimon Glass is not available, and an LDO message is available instead. This 46f48eaf01SSimon Glass option enables a driver which provides very basic access to those 47f48eaf01SSimon Glass regulators, via the EC. We implement this as an I2C bus which 48f48eaf01SSimon Glass emulates just the TPS65090 messages we know about. This is done to 49f48eaf01SSimon Glass avoid duplicating the logic in the TPS65090 regulator driver for 50f48eaf01SSimon Glass enabling/disabling an LDO. 51cc456bd7SSimon Glass 52e46f8a33SLukasz Majewskiconfig I2C_SET_DEFAULT_BUS_NUM 53e46f8a33SLukasz Majewski bool "Set default I2C bus number" 54e46f8a33SLukasz Majewski depends on DM_I2C 55e46f8a33SLukasz Majewski help 56e46f8a33SLukasz Majewski Set default number of I2C bus to be accessed. This option provides 57e46f8a33SLukasz Majewski behaviour similar to old (i.e. pre DM) I2C bus driver. 58e46f8a33SLukasz Majewski 59e46f8a33SLukasz Majewskiconfig I2C_DEFAULT_BUS_NUMBER 60e46f8a33SLukasz Majewski hex "I2C default bus number" 61e46f8a33SLukasz Majewski depends on I2C_SET_DEFAULT_BUS_NUM 62e46f8a33SLukasz Majewski default 0x0 63e46f8a33SLukasz Majewski help 64e46f8a33SLukasz Majewski Number of default I2C bus to use 65e46f8a33SLukasz Majewski 66c54473cbSPrzemyslaw Marczakconfig DM_I2C_GPIO 67c54473cbSPrzemyslaw Marczak bool "Enable Driver Model for software emulated I2C bus driver" 68c54473cbSPrzemyslaw Marczak depends on DM_I2C && DM_GPIO 69c54473cbSPrzemyslaw Marczak help 70c54473cbSPrzemyslaw Marczak Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO 71c54473cbSPrzemyslaw Marczak configuration is given by the device tree. Kernel-style device tree 72c54473cbSPrzemyslaw Marczak bindings are supported. 73c54473cbSPrzemyslaw Marczak Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt 74c54473cbSPrzemyslaw Marczak 758800e0faSSongjun Wuconfig SYS_I2C_AT91 768800e0faSSongjun Wu bool "Atmel I2C driver" 778800e0faSSongjun Wu depends on DM_I2C && ARCH_AT91 788800e0faSSongjun Wu help 798800e0faSSongjun Wu Add support for the Atmel I2C driver. A serious problem is that there 808800e0faSSongjun Wu is no documented way to issue repeated START conditions for more than 818800e0faSSongjun Wu two messages, as needed to support combined I2C messages. Use the 828800e0faSSongjun Wu i2c-gpio driver unless your system can cope with this limitation. 838800e0faSSongjun Wu Binding info: doc/device-tree-bindings/i2c/i2c-at91.txt 848800e0faSSongjun Wu 85dbc82ce3Smario.six@gdsys.ccconfig SYS_I2C_FSL 86dbc82ce3Smario.six@gdsys.cc bool "Freescale I2C bus driver" 87dbc82ce3Smario.six@gdsys.cc depends on DM_I2C 88dbc82ce3Smario.six@gdsys.cc help 89dbc82ce3Smario.six@gdsys.cc Add support for Freescale I2C busses as used on MPC8240, MPC8245, and 90dbc82ce3Smario.six@gdsys.cc MPC85xx processors. 91dbc82ce3Smario.six@gdsys.cc 92fdec2d21SMoritz Fischerconfig SYS_I2C_CADENCE 93fdec2d21SMoritz Fischer tristate "Cadence I2C Controller" 94fdec2d21SMoritz Fischer depends on DM_I2C && (ARCH_ZYNQ || ARM64) 95fdec2d21SMoritz Fischer help 96fdec2d21SMoritz Fischer Say yes here to select Cadence I2C Host Controller. This controller is 97fdec2d21SMoritz Fischer e.g. used by Xilinx Zynq. 98fdec2d21SMoritz Fischer 999f8cf76bSAdam Fordconfig SYS_I2C_DAVINCI 1009f8cf76bSAdam Ford bool "Davinci I2C Controller" 1019f8cf76bSAdam Ford depends on (ARCH_KEYSTONE || ARCH_DAVINCI) 1029f8cf76bSAdam Ford help 1039f8cf76bSAdam Ford Say yes here to add support for Davinci and Keystone I2C controller 1049f8cf76bSAdam Ford 105e32d0db7SStefan Roeseconfig SYS_I2C_DW 106e32d0db7SStefan Roese bool "Designware I2C Controller" 107e32d0db7SStefan Roese default n 108e32d0db7SStefan Roese help 109e32d0db7SStefan Roese Say yes here to select the Designware I2C Host Controller. This 110e32d0db7SStefan Roese controller is used in various SoCs, e.g. the ST SPEAr, Altera 111e32d0db7SStefan Roese SoCFPGA, Synopsys ARC700 and some Intel x86 SoCs. 112e32d0db7SStefan Roese 1133a370528SStefan Roeseconfig SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED 1143a370528SStefan Roese bool "DW I2C Enable Status Register not supported" 1153a370528SStefan Roese depends on SYS_I2C_DW && (TARGET_SPEAR300 || TARGET_SPEAR310 || \ 1163a370528SStefan Roese TARGET_SPEAR320 || TARGET_SPEAR600 || TARGET_X600) 1173a370528SStefan Roese default y 1183a370528SStefan Roese help 1193a370528SStefan Roese Some versions of the Designware I2C controller do not support the 1203a370528SStefan Roese enable status register. This config option can be enabled in such 1213a370528SStefan Roese cases. 1223a370528SStefan Roese 1234dc038f3Smaxims@google.comconfig SYS_I2C_ASPEED 1244dc038f3Smaxims@google.com bool "Aspeed I2C Controller" 1254dc038f3Smaxims@google.com depends on DM_I2C && ARCH_ASPEED 1264dc038f3Smaxims@google.com help 1274dc038f3Smaxims@google.com Say yes here to select Aspeed I2C Host Controller. The driver 1284dc038f3Smaxims@google.com supports AST2500 and AST2400 controllers, but is very limited. 1294dc038f3Smaxims@google.com Only single master mode is supported and only byte-by-byte 1304dc038f3Smaxims@google.com synchronous reads and writes are supported, no Pool Buffers or DMA. 1314dc038f3Smaxims@google.com 132abb0b01eSSimon Glassconfig SYS_I2C_INTEL 133abb0b01eSSimon Glass bool "Intel I2C/SMBUS driver" 134abb0b01eSSimon Glass depends on DM_I2C 135abb0b01eSSimon Glass help 136abb0b01eSSimon Glass Add support for the Intel SMBUS driver. So far this driver is just 137abb0b01eSSimon Glass a stub which perhaps some basic init. There is no implementation of 138abb0b01eSSimon Glass the I2C API meaning that any I2C operations will immediately fail 139abb0b01eSSimon Glass for now. 140abb0b01eSSimon Glass 1417ee3f149SPeng Fanconfig SYS_I2C_IMX_LPI2C 1427ee3f149SPeng Fan bool "NXP i.MX LPI2C driver" 1437ee3f149SPeng Fan help 1447ee3f149SPeng Fan Add support for the NXP i.MX LPI2C driver. 1457ee3f149SPeng Fan 146f8d9ca18SBeniamino Galvaniconfig SYS_I2C_MESON 147f8d9ca18SBeniamino Galvani bool "Amlogic Meson I2C driver" 148f8d9ca18SBeniamino Galvani depends on DM_I2C && ARCH_MESON 149f8d9ca18SBeniamino Galvani help 1504ecbb8b6SBeniamino Galvani Add support for the I2C controller available in Amlogic Meson 1514ecbb8b6SBeniamino Galvani SoCs. The controller supports programmable bus speed including 1524ecbb8b6SBeniamino Galvani standard (100kbits/s) and fast (400kbit/s) speed and allows the 1534ecbb8b6SBeniamino Galvani software to define a flexible format of the bit streams. It has an 1544ecbb8b6SBeniamino Galvani internal buffer holding up to 8 bytes for transfers and supports 1554ecbb8b6SBeniamino Galvani both 7-bit and 10-bit addresses. 156f8d9ca18SBeniamino Galvani 15772c8c10bSJagan Tekiconfig SYS_I2C_MXC 158942ecc8bSSriram Dash bool "NXP MXC I2C driver" 15972c8c10bSJagan Teki help 160942ecc8bSSriram Dash Add support for the NXP I2C driver. This supports upto for bus 16172c8c10bSJagan Teki channels and operating on standard mode upto 100 kbits/s and fast 16272c8c10bSJagan Teki mode upto 400 kbits/s. 16372c8c10bSJagan Teki 164942ecc8bSSriram Dashif SYS_I2C_MXC 165942ecc8bSSriram Dashconfig SYS_I2C_MXC_I2C1 166942ecc8bSSriram Dash bool "NXP MXC I2C1" 167942ecc8bSSriram Dash help 168942ecc8bSSriram Dash Add support for NXP MXC I2C Controller 1. 169942ecc8bSSriram Dash Required for SoCs which have I2C MXC controller 1 eg LS1088A, LS2080A 170942ecc8bSSriram Dash 171942ecc8bSSriram Dashconfig SYS_I2C_MXC_I2C2 172942ecc8bSSriram Dash bool "NXP MXC I2C2" 173942ecc8bSSriram Dash help 174942ecc8bSSriram Dash Add support for NXP MXC I2C Controller 2. 175942ecc8bSSriram Dash Required for SoCs which have I2C MXC controller 2 eg LS1088A, LS2080A 176942ecc8bSSriram Dash 177942ecc8bSSriram Dashconfig SYS_I2C_MXC_I2C3 178942ecc8bSSriram Dash bool "NXP MXC I2C3" 179942ecc8bSSriram Dash help 180942ecc8bSSriram Dash Add support for NXP MXC I2C Controller 3. 181942ecc8bSSriram Dash Required for SoCs which have I2C MXC controller 3 eg LS1088A, LS2080A 182942ecc8bSSriram Dash 183942ecc8bSSriram Dashconfig SYS_I2C_MXC_I2C4 184942ecc8bSSriram Dash bool "NXP MXC I2C4" 185942ecc8bSSriram Dash help 186942ecc8bSSriram Dash Add support for NXP MXC I2C Controller 4. 187942ecc8bSSriram Dash Required for SoCs which have I2C MXC controller 4 eg LS1088A, LS2080A 188fa452192SSriram Dash 189fa452192SSriram Dashconfig SYS_I2C_MXC_I2C5 190fa452192SSriram Dash bool "NXP MXC I2C5" 191fa452192SSriram Dash help 192fa452192SSriram Dash Add support for NXP MXC I2C Controller 5. 193fa452192SSriram Dash Required for SoCs which have I2C MXC controller 5 eg LX2160A 194fa452192SSriram Dash 195fa452192SSriram Dashconfig SYS_I2C_MXC_I2C6 196fa452192SSriram Dash bool "NXP MXC I2C6" 197fa452192SSriram Dash help 198fa452192SSriram Dash Add support for NXP MXC I2C Controller 6. 199fa452192SSriram Dash Required for SoCs which have I2C MXC controller 6 eg LX2160A 200fa452192SSriram Dash 201fa452192SSriram Dashconfig SYS_I2C_MXC_I2C7 202fa452192SSriram Dash bool "NXP MXC I2C7" 203fa452192SSriram Dash help 204fa452192SSriram Dash Add support for NXP MXC I2C Controller 7. 205fa452192SSriram Dash Required for SoCs which have I2C MXC controller 7 eg LX2160A 206fa452192SSriram Dash 207fa452192SSriram Dashconfig SYS_I2C_MXC_I2C8 208fa452192SSriram Dash bool "NXP MXC I2C8" 209fa452192SSriram Dash help 210fa452192SSriram Dash Add support for NXP MXC I2C Controller 8. 211fa452192SSriram Dash Required for SoCs which have I2C MXC controller 8 eg LX2160A 212942ecc8bSSriram Dashendif 213942ecc8bSSriram Dash 214942ecc8bSSriram Dashif SYS_I2C_MXC_I2C1 215942ecc8bSSriram Dashconfig SYS_MXC_I2C1_SPEED 216942ecc8bSSriram Dash int "I2C Channel 1 speed" 217942ecc8bSSriram Dash default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU 218942ecc8bSSriram Dash default 100000 219942ecc8bSSriram Dash help 220942ecc8bSSriram Dash MXC I2C Channel 1 speed 221942ecc8bSSriram Dash 222942ecc8bSSriram Dashconfig SYS_MXC_I2C1_SLAVE 223942ecc8bSSriram Dash int "I2C1 Slave" 224942ecc8bSSriram Dash default 0 225942ecc8bSSriram Dash help 226942ecc8bSSriram Dash MXC I2C1 Slave 227942ecc8bSSriram Dashendif 228942ecc8bSSriram Dash 229942ecc8bSSriram Dashif SYS_I2C_MXC_I2C2 230942ecc8bSSriram Dashconfig SYS_MXC_I2C2_SPEED 231942ecc8bSSriram Dash int "I2C Channel 2 speed" 232942ecc8bSSriram Dash default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU 233942ecc8bSSriram Dash default 100000 234942ecc8bSSriram Dash help 235942ecc8bSSriram Dash MXC I2C Channel 2 speed 236942ecc8bSSriram Dash 237942ecc8bSSriram Dashconfig SYS_MXC_I2C2_SLAVE 238942ecc8bSSriram Dash int "I2C2 Slave" 239942ecc8bSSriram Dash default 0 240942ecc8bSSriram Dash help 241942ecc8bSSriram Dash MXC I2C2 Slave 242942ecc8bSSriram Dashendif 243942ecc8bSSriram Dash 244942ecc8bSSriram Dashif SYS_I2C_MXC_I2C3 245942ecc8bSSriram Dashconfig SYS_MXC_I2C3_SPEED 246942ecc8bSSriram Dash int "I2C Channel 3 speed" 247942ecc8bSSriram Dash default 100000 248942ecc8bSSriram Dash help 249942ecc8bSSriram Dash MXC I2C Channel 3 speed 250942ecc8bSSriram Dash 251942ecc8bSSriram Dashconfig SYS_MXC_I2C3_SLAVE 252942ecc8bSSriram Dash int "I2C3 Slave" 253942ecc8bSSriram Dash default 0 254942ecc8bSSriram Dash help 255942ecc8bSSriram Dash MXC I2C3 Slave 256942ecc8bSSriram Dashendif 257942ecc8bSSriram Dash 258942ecc8bSSriram Dashif SYS_I2C_MXC_I2C4 259942ecc8bSSriram Dashconfig SYS_MXC_I2C4_SPEED 260942ecc8bSSriram Dash int "I2C Channel 4 speed" 261942ecc8bSSriram Dash default 100000 262942ecc8bSSriram Dash help 263942ecc8bSSriram Dash MXC I2C Channel 4 speed 264942ecc8bSSriram Dash 265942ecc8bSSriram Dashconfig SYS_MXC_I2C4_SLAVE 266942ecc8bSSriram Dash int "I2C4 Slave" 267942ecc8bSSriram Dash default 0 268942ecc8bSSriram Dash help 269942ecc8bSSriram Dash MXC I2C4 Slave 270942ecc8bSSriram Dashendif 271942ecc8bSSriram Dash 272fa452192SSriram Dashif SYS_I2C_MXC_I2C5 273fa452192SSriram Dashconfig SYS_MXC_I2C5_SPEED 274fa452192SSriram Dash int "I2C Channel 5 speed" 275fa452192SSriram Dash default 100000 276fa452192SSriram Dash help 277fa452192SSriram Dash MXC I2C Channel 5 speed 278fa452192SSriram Dash 279fa452192SSriram Dashconfig SYS_MXC_I2C5_SLAVE 280fa452192SSriram Dash int "I2C5 Slave" 281fa452192SSriram Dash default 0 282fa452192SSriram Dash help 283fa452192SSriram Dash MXC I2C5 Slave 284fa452192SSriram Dashendif 285fa452192SSriram Dash 286fa452192SSriram Dashif SYS_I2C_MXC_I2C6 287fa452192SSriram Dashconfig SYS_MXC_I2C6_SPEED 288fa452192SSriram Dash int "I2C Channel 6 speed" 289fa452192SSriram Dash default 100000 290fa452192SSriram Dash help 291fa452192SSriram Dash MXC I2C Channel 6 speed 292fa452192SSriram Dash 293fa452192SSriram Dashconfig SYS_MXC_I2C6_SLAVE 294fa452192SSriram Dash int "I2C6 Slave" 295fa452192SSriram Dash default 0 296fa452192SSriram Dash help 297fa452192SSriram Dash MXC I2C6 Slave 298fa452192SSriram Dashendif 299fa452192SSriram Dash 300fa452192SSriram Dashif SYS_I2C_MXC_I2C7 301fa452192SSriram Dashconfig SYS_MXC_I2C7_SPEED 302fa452192SSriram Dash int "I2C Channel 7 speed" 303fa452192SSriram Dash default 100000 304fa452192SSriram Dash help 305fa452192SSriram Dash MXC I2C Channel 7 speed 306fa452192SSriram Dash 307fa452192SSriram Dashconfig SYS_MXC_I2C7_SLAVE 308fa452192SSriram Dash int "I2C7 Slave" 309fa452192SSriram Dash default 0 310fa452192SSriram Dash help 311fa452192SSriram Dash MXC I2C7 Slave 312fa452192SSriram Dashendif 313fa452192SSriram Dash 314fa452192SSriram Dashif SYS_I2C_MXC_I2C8 315fa452192SSriram Dashconfig SYS_MXC_I2C8_SPEED 316fa452192SSriram Dash int "I2C Channel 8 speed" 317fa452192SSriram Dash default 100000 318fa452192SSriram Dash help 319fa452192SSriram Dash MXC I2C Channel 8 speed 320fa452192SSriram Dash 321fa452192SSriram Dashconfig SYS_MXC_I2C8_SLAVE 322fa452192SSriram Dash int "I2C8 Slave" 323fa452192SSriram Dash default 0 324fa452192SSriram Dash help 325fa452192SSriram Dash MXC I2C8 Slave 326fa452192SSriram Dashendif 327fa452192SSriram Dash 328daa0f050SAdam Fordconfig SYS_I2C_OMAP24XX 329daa0f050SAdam Ford bool "TI OMAP2+ I2C driver" 330daa0f050SAdam Ford depends on ARCH_OMAP2PLUS 331daa0f050SAdam Ford help 332daa0f050SAdam Ford Add support for the OMAP2+ I2C driver. 333daa0f050SAdam Ford 33411d2e98dSAdam Fordif SYS_I2C_OMAP24XX 33511d2e98dSAdam Fordconfig SYS_OMAP24_I2C_SLAVE 33611d2e98dSAdam Ford int "I2C Slave addr channel 0" 33711d2e98dSAdam Ford default 1 33811d2e98dSAdam Ford help 33911d2e98dSAdam Ford OMAP24xx I2C Slave address channel 0 34011d2e98dSAdam Ford 34111d2e98dSAdam Fordconfig SYS_OMAP24_I2C_SPEED 34211d2e98dSAdam Ford int "I2C Slave channel 0 speed" 34311d2e98dSAdam Ford default 100000 34411d2e98dSAdam Ford help 34511d2e98dSAdam Ford OMAP24xx Slave speed channel 0 34611d2e98dSAdam Fordendif 34711d2e98dSAdam Ford 348a06a0ac3SMarek Vasutconfig SYS_I2C_RCAR_I2C 349a06a0ac3SMarek Vasut bool "Renesas RCar I2C driver" 350a06a0ac3SMarek Vasut depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C 351a06a0ac3SMarek Vasut help 352a06a0ac3SMarek Vasut Support for Renesas RCar I2C controller. 353a06a0ac3SMarek Vasut 3549e75ea46SMarek Vasutconfig SYS_I2C_RCAR_IIC 3559e75ea46SMarek Vasut bool "Renesas RCar Gen3 IIC driver" 356f51155ecSMarek Vasut depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C 3579e75ea46SMarek Vasut help 3589e75ea46SMarek Vasut Support for Renesas RCar Gen3 IIC controller. 3599e75ea46SMarek Vasut 36034374699SSimon Glassconfig SYS_I2C_ROCKCHIP 36134374699SSimon Glass bool "Rockchip I2C driver" 36234374699SSimon Glass depends on DM_I2C 36334374699SSimon Glass help 36434374699SSimon Glass Add support for the Rockchip I2C driver. This is used with various 36534374699SSimon Glass Rockchip parts such as RK3126, RK3128, RK3036 and RK3288. All chips 36634374699SSimon Glass have several I2C ports and all are provided, controled by the 36734374699SSimon Glass device tree. 36834374699SSimon Glass 3691174aadaSSimon Glassconfig SYS_I2C_SANDBOX 3701174aadaSSimon Glass bool "Sandbox I2C driver" 3711174aadaSSimon Glass depends on SANDBOX && DM_I2C 3721174aadaSSimon Glass help 3731174aadaSSimon Glass Enable I2C support for sandbox. This is an emulation of a real I2C 3741174aadaSSimon Glass bus. Devices can be attached to the bus using the device tree 375c77c7db5SMasahiro Yamada which specifies the driver to use. See sandbox.dts as an example. 3761174aadaSSimon Glass 3771d61ad95SJaehoon Chungconfig SYS_I2C_S3C24X0 3781d61ad95SJaehoon Chung bool "Samsung I2C driver" 3791d61ad95SJaehoon Chung depends on ARCH_EXYNOS4 && DM_I2C 3801d61ad95SJaehoon Chung help 3811d61ad95SJaehoon Chung Support for Samsung I2C controller as Samsung SoCs. 3821174aadaSSimon Glass 3834fadcaf0SPatrice Chotardconfig SYS_I2C_STM32F7 3844fadcaf0SPatrice Chotard bool "STMicroelectronics STM32F7 I2C support" 3852514c2d0SPatrick Delaunay depends on (STM32F7 || STM32H7 || ARCH_STM32MP) && DM_I2C 3864fadcaf0SPatrice Chotard help 3874fadcaf0SPatrice Chotard Enable this option to add support for STM32 I2C controller 3884fadcaf0SPatrice Chotard introduced with STM32F7/H7 SoCs. This I2C controller supports : 3894fadcaf0SPatrice Chotard _ Slave and master modes 3904fadcaf0SPatrice Chotard _ Multimaster capability 3914fadcaf0SPatrice Chotard _ Standard-mode (up to 100 kHz) 3924fadcaf0SPatrice Chotard _ Fast-mode (up to 400 kHz) 3934fadcaf0SPatrice Chotard _ Fast-mode Plus (up to 1 MHz) 3944fadcaf0SPatrice Chotard _ 7-bit and 10-bit addressing mode 3954fadcaf0SPatrice Chotard _ Multiple 7-bit slave addresses (2 addresses, 1 with configurable mask) 3964fadcaf0SPatrice Chotard _ All 7-bit addresses acknowledge mode 3974fadcaf0SPatrice Chotard _ General call 3984fadcaf0SPatrice Chotard _ Programmable setup and hold times 3994fadcaf0SPatrice Chotard _ Easy to use event management 4004fadcaf0SPatrice Chotard _ Optional clock stretching 4014fadcaf0SPatrice Chotard _ Software reset 4024fadcaf0SPatrice Chotard 40326f820f3SMasahiro Yamadaconfig SYS_I2C_UNIPHIER 40426f820f3SMasahiro Yamada bool "UniPhier I2C driver" 40526f820f3SMasahiro Yamada depends on ARCH_UNIPHIER && DM_I2C 40626f820f3SMasahiro Yamada default y 40726f820f3SMasahiro Yamada help 408b6ef3a3fSMasahiro Yamada Support for UniPhier I2C controller driver. This I2C controller 409b6ef3a3fSMasahiro Yamada is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs. 410238bd0b8SMasahiro Yamada 411238bd0b8SMasahiro Yamadaconfig SYS_I2C_UNIPHIER_F 412238bd0b8SMasahiro Yamada bool "UniPhier FIFO-builtin I2C driver" 413238bd0b8SMasahiro Yamada depends on ARCH_UNIPHIER && DM_I2C 414238bd0b8SMasahiro Yamada default y 415238bd0b8SMasahiro Yamada help 416b6ef3a3fSMasahiro Yamada Support for UniPhier FIFO-builtin I2C controller driver. 417238bd0b8SMasahiro Yamada This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs. 4183d1957f0SSimon Glass 419e3bc4bb8SHeiko Schocherconfig SYS_I2C_VERSATILE 420e3bc4bb8SHeiko Schocher bool "Arm Ltd Versatile I2C bus driver" 421e3bc4bb8SHeiko Schocher depends on DM_I2C && (TARGET_VEXPRESS_CA15_TC2 || TARGET_VEXPRESS64_JUNO) 422e3bc4bb8SHeiko Schocher help 423e3bc4bb8SHeiko Schocher Add support for the Arm Ltd Versatile Express I2C driver. The I2C host 424e3bc4bb8SHeiko Schocher controller is present in the development boards manufactured by Arm Ltd. 425e3bc4bb8SHeiko Schocher 42614a6ff2cSmario.six@gdsys.ccconfig SYS_I2C_MVTWSI 42714a6ff2cSmario.six@gdsys.cc bool "Marvell I2C driver" 42814a6ff2cSmario.six@gdsys.cc depends on DM_I2C 42914a6ff2cSmario.six@gdsys.cc help 43014a6ff2cSmario.six@gdsys.cc Support for Marvell I2C controllers as used on the orion5x and 43114a6ff2cSmario.six@gdsys.cc kirkwood SoC families. 43214a6ff2cSmario.six@gdsys.cc 43334f1c9feSStephen Warrenconfig TEGRA186_BPMP_I2C 43434f1c9feSStephen Warren bool "Enable Tegra186 BPMP-based I2C driver" 43534f1c9feSStephen Warren depends on TEGRA186_BPMP 43634f1c9feSStephen Warren help 43734f1c9feSStephen Warren Support for Tegra I2C controllers managed by the BPMP (Boot and 43834f1c9feSStephen Warren Power Management Processor). On Tegra186, some I2C controllers are 43934f1c9feSStephen Warren directly controlled by the main CPU, whereas others are controlled 44034f1c9feSStephen Warren by the BPMP, and can only be accessed by the main CPU via IPC 44134f1c9feSStephen Warren requests to the BPMP. This driver covers the latter case. 44234f1c9feSStephen Warren 443fc760cc6SAdam Fordconfig SYS_I2C_BUS_MAX 444fc760cc6SAdam Ford int "Max I2C busses" 445fc760cc6SAdam Ford depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_SOCFPGA 446fc760cc6SAdam Ford default 2 if TI816X 447fc760cc6SAdam Ford default 3 if OMAP34XX || AM33XX || AM43XX || ARCH_KEYSTONE 448fc760cc6SAdam Ford default 4 if ARCH_SOCFPGA || OMAP44XX || TI814X 449fc760cc6SAdam Ford default 5 if OMAP54XX 450fc760cc6SAdam Ford help 451fc760cc6SAdam Ford Define the maximum number of available I2C buses. 452fc760cc6SAdam Ford 453*ad827a50SMarek Vasutconfig SYS_I2C_XILINX_XIIC 454*ad827a50SMarek Vasut bool "Xilinx AXI I2C driver" 455*ad827a50SMarek Vasut depends on DM_I2C 456*ad827a50SMarek Vasut help 457*ad827a50SMarek Vasut Support for Xilinx AXI I2C controller. 458*ad827a50SMarek Vasut 45938a69e96SVipul Kumarconfig SYS_I2C_ZYNQ 46038a69e96SVipul Kumar bool "Xilinx I2C driver" 46138a69e96SVipul Kumar depends on ARCH_ZYNQMP || ARCH_ZYNQ 46238a69e96SVipul Kumar help 46338a69e96SVipul Kumar Support for Xilinx I2C controller. 46438a69e96SVipul Kumar 465e7affad1SVipul Kumarconfig SYS_I2C_ZYNQ_SLAVE 466e7affad1SVipul Kumar hex "Set slave addr" 467e7affad1SVipul Kumar depends on SYS_I2C_ZYNQ 468e7affad1SVipul Kumar default 0 469e7affad1SVipul Kumar help 470e7affad1SVipul Kumar Set CONFIG_SYS_I2C_ZYNQ_SLAVE for slave addr. 471e7affad1SVipul Kumar 472ce3c9a59SVipul Kumarconfig SYS_I2C_ZYNQ_SPEED 473ce3c9a59SVipul Kumar int "Set I2C speed" 474ce3c9a59SVipul Kumar depends on SYS_I2C_ZYNQ 475ce3c9a59SVipul Kumar default 100000 476ce3c9a59SVipul Kumar help 477ce3c9a59SVipul Kumar Set CONFIG_SYS_I2C_ZYNQ_SPEED for speed setting. 478ce3c9a59SVipul Kumar 479e885b425SVipul Kumarconfig ZYNQ_I2C0 480e885b425SVipul Kumar bool "Xilinx I2C0 controller" 481e885b425SVipul Kumar depends on SYS_I2C_ZYNQ 482e885b425SVipul Kumar help 483e885b425SVipul Kumar Enable Xilinx I2C0 controller. 484e885b425SVipul Kumar 485e885b425SVipul Kumarconfig ZYNQ_I2C1 486e885b425SVipul Kumar bool "Xilinx I2C1 controller" 487e885b425SVipul Kumar depends on SYS_I2C_ZYNQ 488e885b425SVipul Kumar help 489e885b425SVipul Kumar Enable Xilinx I2C1 controller. 490e885b425SVipul Kumar 49192164216SMario Sixconfig SYS_I2C_IHS 49292164216SMario Six bool "gdsys IHS I2C driver" 49392164216SMario Six depends on DM_I2C 49492164216SMario Six help 49592164216SMario Six Support for gdsys IHS I2C driver on FPGA bus. 49692164216SMario Six 4973d1957f0SSimon Glasssource "drivers/i2c/muxes/Kconfig" 4980b11dbf7SMasahiro Yamada 4990b11dbf7SMasahiro Yamadaendmenu 500