Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. #
  2. # I2C subsystem configuration
  3. #
  4. menu "I2C support"
  5. config DM_I2C
  6. bool "Enable Driver Model for I2C drivers"
  7. depends on DM
  8. help
  9. Enable driver model for I2C. The I2C uclass interface: probe, read,
  10. write and speed, is implemented with the bus drivers operations,
  11. which provide methods for bus setting and data transfer. Each chip
  12. device (bus child) info is kept as parent platdata. The interface
  13. is defined in include/i2c.h. When i2c bus driver supports the i2c
  14. uclass, but the device drivers not, then DM_I2C_COMPAT config can
  15. be used as compatibility layer.
  16. config DM_I2C_COMPAT
  17. bool "Enable I2C compatibility layer"
  18. depends on DM
  19. help
  20. Enable old-style I2C functions for compatibility with existing code.
  21. This option can be enabled as a temporary measure to avoid needing
  22. to convert all code for a board in a single commit. It should not
  23. be enabled for any board in an official release.
  24. config I2C_CROS_EC_TUNNEL
  25. tristate "Chrome OS EC tunnel I2C bus"
  26. depends on CROS_EC
  27. help
  28. This provides an I2C bus that will tunnel i2c commands through to
  29. the other side of the Chrome OS EC to the I2C bus connected there.
  30. This will work whatever the interface used to talk to the EC (SPI,
  31. I2C or LPC). Some Chromebooks use this when the hardware design
  32. does not allow direct access to the main PMIC from the AP.
  33. config I2C_CROS_EC_LDO
  34. bool "Provide access to LDOs on the Chrome OS EC"
  35. depends on CROS_EC
  36. ---help---
  37. On many Chromebooks the main PMIC is inaccessible to the AP. This is
  38. often dealt with by using an I2C pass-through interface provided by
  39. the EC. On some unfortunate models (e.g. Spring) the pass-through
  40. is not available, and an LDO message is available instead. This
  41. option enables a driver which provides very basic access to those
  42. regulators, via the EC. We implement this as an I2C bus which
  43. emulates just the TPS65090 messages we know about. This is done to
  44. avoid duplicating the logic in the TPS65090 regulator driver for
  45. enabling/disabling an LDO.
  46. config I2C_SET_DEFAULT_BUS_NUM
  47. bool "Set default I2C bus number"
  48. depends on DM_I2C
  49. help
  50. Set default number of I2C bus to be accessed. This option provides
  51. behaviour similar to old (i.e. pre DM) I2C bus driver.
  52. config I2C_DEFAULT_BUS_NUMBER
  53. hex "I2C default bus number"
  54. depends on I2C_SET_DEFAULT_BUS_NUM
  55. default 0x0
  56. help
  57. Number of default I2C bus to use
  58. config DM_I2C_GPIO
  59. bool "Enable Driver Model for software emulated I2C bus driver"
  60. depends on DM_I2C && DM_GPIO
  61. help
  62. Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO
  63. configuration is given by the device tree. Kernel-style device tree
  64. bindings are supported.
  65. Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
  66. config SYS_I2C_AT91
  67. bool "Atmel I2C driver"
  68. depends on DM_I2C && ARCH_AT91
  69. help
  70. Add support for the Atmel I2C driver. A serious problem is that there
  71. is no documented way to issue repeated START conditions for more than
  72. two messages, as needed to support combined I2C messages. Use the
  73. i2c-gpio driver unless your system can cope with this limitation.
  74. Binding info: doc/device-tree-bindings/i2c/i2c-at91.txt
  75. config SYS_I2C_FSL
  76. bool "Freescale I2C bus driver"
  77. depends on DM_I2C
  78. help
  79. Add support for Freescale I2C busses as used on MPC8240, MPC8245, and
  80. MPC85xx processors.
  81. config SYS_I2C_CADENCE
  82. tristate "Cadence I2C Controller"
  83. depends on DM_I2C && (ARCH_ZYNQ || ARM64)
  84. help
  85. Say yes here to select Cadence I2C Host Controller. This controller is
  86. e.g. used by Xilinx Zynq.
  87. config SYS_I2C_DAVINCI
  88. bool "Davinci I2C Controller"
  89. depends on (ARCH_KEYSTONE || ARCH_DAVINCI)
  90. help
  91. Say yes here to add support for Davinci and Keystone I2C controller
  92. config SYS_I2C_DW
  93. bool "Designware I2C Controller"
  94. default n
  95. help
  96. Say yes here to select the Designware I2C Host Controller. This
  97. controller is used in various SoCs, e.g. the ST SPEAr, Altera
  98. SoCFPGA, Synopsys ARC700 and some Intel x86 SoCs.
  99. config SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
  100. bool "DW I2C Enable Status Register not supported"
  101. depends on SYS_I2C_DW && (TARGET_SPEAR300 || TARGET_SPEAR310 || \
  102. TARGET_SPEAR320 || TARGET_SPEAR600 || TARGET_X600)
  103. default y
  104. help
  105. Some versions of the Designware I2C controller do not support the
  106. enable status register. This config option can be enabled in such
  107. cases.
  108. config SYS_I2C_ASPEED
  109. bool "Aspeed I2C Controller"
  110. depends on DM_I2C && ARCH_ASPEED
  111. help
  112. Say yes here to select Aspeed I2C Host Controller. The driver
  113. supports AST2500 and AST2400 controllers, but is very limited.
  114. Only single master mode is supported and only byte-by-byte
  115. synchronous reads and writes are supported, no Pool Buffers or DMA.
  116. config SYS_I2C_INTEL
  117. bool "Intel I2C/SMBUS driver"
  118. depends on DM_I2C
  119. help
  120. Add support for the Intel SMBUS driver. So far this driver is just
  121. a stub which perhaps some basic init. There is no implementation of
  122. the I2C API meaning that any I2C operations will immediately fail
  123. for now.
  124. config SYS_I2C_IMX_LPI2C
  125. bool "NXP i.MX LPI2C driver"
  126. help
  127. Add support for the NXP i.MX LPI2C driver.
  128. config SYS_I2C_MESON
  129. bool "Amlogic Meson I2C driver"
  130. depends on DM_I2C && ARCH_MESON
  131. help
  132. Add support for the I2C controller available in Amlogic Meson
  133. SoCs. The controller supports programmable bus speed including
  134. standard (100kbits/s) and fast (400kbit/s) speed and allows the
  135. software to define a flexible format of the bit streams. It has an
  136. internal buffer holding up to 8 bytes for transfers and supports
  137. both 7-bit and 10-bit addresses.
  138. config SYS_I2C_MXC
  139. bool "NXP MXC I2C driver"
  140. help
  141. Add support for the NXP I2C driver. This supports upto for bus
  142. channels and operating on standard mode upto 100 kbits/s and fast
  143. mode upto 400 kbits/s.
  144. if SYS_I2C_MXC
  145. config SYS_I2C_MXC_I2C1
  146. bool "NXP MXC I2C1"
  147. help
  148. Add support for NXP MXC I2C Controller 1.
  149. Required for SoCs which have I2C MXC controller 1 eg LS1088A, LS2080A
  150. config SYS_I2C_MXC_I2C2
  151. bool "NXP MXC I2C2"
  152. help
  153. Add support for NXP MXC I2C Controller 2.
  154. Required for SoCs which have I2C MXC controller 2 eg LS1088A, LS2080A
  155. config SYS_I2C_MXC_I2C3
  156. bool "NXP MXC I2C3"
  157. help
  158. Add support for NXP MXC I2C Controller 3.
  159. Required for SoCs which have I2C MXC controller 3 eg LS1088A, LS2080A
  160. config SYS_I2C_MXC_I2C4
  161. bool "NXP MXC I2C4"
  162. help
  163. Add support for NXP MXC I2C Controller 4.
  164. Required for SoCs which have I2C MXC controller 4 eg LS1088A, LS2080A
  165. config SYS_I2C_MXC_I2C5
  166. bool "NXP MXC I2C5"
  167. help
  168. Add support for NXP MXC I2C Controller 5.
  169. Required for SoCs which have I2C MXC controller 5 eg LX2160A
  170. config SYS_I2C_MXC_I2C6
  171. bool "NXP MXC I2C6"
  172. help
  173. Add support for NXP MXC I2C Controller 6.
  174. Required for SoCs which have I2C MXC controller 6 eg LX2160A
  175. config SYS_I2C_MXC_I2C7
  176. bool "NXP MXC I2C7"
  177. help
  178. Add support for NXP MXC I2C Controller 7.
  179. Required for SoCs which have I2C MXC controller 7 eg LX2160A
  180. config SYS_I2C_MXC_I2C8
  181. bool "NXP MXC I2C8"
  182. help
  183. Add support for NXP MXC I2C Controller 8.
  184. Required for SoCs which have I2C MXC controller 8 eg LX2160A
  185. endif
  186. if SYS_I2C_MXC_I2C1
  187. config SYS_MXC_I2C1_SPEED
  188. int "I2C Channel 1 speed"
  189. default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU
  190. default 100000
  191. help
  192. MXC I2C Channel 1 speed
  193. config SYS_MXC_I2C1_SLAVE
  194. int "I2C1 Slave"
  195. default 0
  196. help
  197. MXC I2C1 Slave
  198. endif
  199. if SYS_I2C_MXC_I2C2
  200. config SYS_MXC_I2C2_SPEED
  201. int "I2C Channel 2 speed"
  202. default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU
  203. default 100000
  204. help
  205. MXC I2C Channel 2 speed
  206. config SYS_MXC_I2C2_SLAVE
  207. int "I2C2 Slave"
  208. default 0
  209. help
  210. MXC I2C2 Slave
  211. endif
  212. if SYS_I2C_MXC_I2C3
  213. config SYS_MXC_I2C3_SPEED
  214. int "I2C Channel 3 speed"
  215. default 100000
  216. help
  217. MXC I2C Channel 3 speed
  218. config SYS_MXC_I2C3_SLAVE
  219. int "I2C3 Slave"
  220. default 0
  221. help
  222. MXC I2C3 Slave
  223. endif
  224. if SYS_I2C_MXC_I2C4
  225. config SYS_MXC_I2C4_SPEED
  226. int "I2C Channel 4 speed"
  227. default 100000
  228. help
  229. MXC I2C Channel 4 speed
  230. config SYS_MXC_I2C4_SLAVE
  231. int "I2C4 Slave"
  232. default 0
  233. help
  234. MXC I2C4 Slave
  235. endif
  236. if SYS_I2C_MXC_I2C5
  237. config SYS_MXC_I2C5_SPEED
  238. int "I2C Channel 5 speed"
  239. default 100000
  240. help
  241. MXC I2C Channel 5 speed
  242. config SYS_MXC_I2C5_SLAVE
  243. int "I2C5 Slave"
  244. default 0
  245. help
  246. MXC I2C5 Slave
  247. endif
  248. if SYS_I2C_MXC_I2C6
  249. config SYS_MXC_I2C6_SPEED
  250. int "I2C Channel 6 speed"
  251. default 100000
  252. help
  253. MXC I2C Channel 6 speed
  254. config SYS_MXC_I2C6_SLAVE
  255. int "I2C6 Slave"
  256. default 0
  257. help
  258. MXC I2C6 Slave
  259. endif
  260. if SYS_I2C_MXC_I2C7
  261. config SYS_MXC_I2C7_SPEED
  262. int "I2C Channel 7 speed"
  263. default 100000
  264. help
  265. MXC I2C Channel 7 speed
  266. config SYS_MXC_I2C7_SLAVE
  267. int "I2C7 Slave"
  268. default 0
  269. help
  270. MXC I2C7 Slave
  271. endif
  272. if SYS_I2C_MXC_I2C8
  273. config SYS_MXC_I2C8_SPEED
  274. int "I2C Channel 8 speed"
  275. default 100000
  276. help
  277. MXC I2C Channel 8 speed
  278. config SYS_MXC_I2C8_SLAVE
  279. int "I2C8 Slave"
  280. default 0
  281. help
  282. MXC I2C8 Slave
  283. endif
  284. config SYS_I2C_OMAP24XX
  285. bool "TI OMAP2+ I2C driver"
  286. depends on ARCH_OMAP2PLUS
  287. help
  288. Add support for the OMAP2+ I2C driver.
  289. if SYS_I2C_OMAP24XX
  290. config SYS_OMAP24_I2C_SLAVE
  291. int "I2C Slave addr channel 0"
  292. default 1
  293. help
  294. OMAP24xx I2C Slave address channel 0
  295. config SYS_OMAP24_I2C_SPEED
  296. int "I2C Slave channel 0 speed"
  297. default 100000
  298. help
  299. OMAP24xx Slave speed channel 0
  300. endif
  301. config SYS_I2C_RCAR_I2C
  302. bool "Renesas RCar I2C driver"
  303. depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
  304. help
  305. Support for Renesas RCar I2C controller.
  306. config SYS_I2C_RCAR_IIC
  307. bool "Renesas RCar Gen3 IIC driver"
  308. depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
  309. help
  310. Support for Renesas RCar Gen3 IIC controller.
  311. config SYS_I2C_ROCKCHIP
  312. bool "Rockchip I2C driver"
  313. depends on DM_I2C
  314. help
  315. Add support for the Rockchip I2C driver. This is used with various
  316. Rockchip parts such as RK3126, RK3128, RK3036 and RK3288. All chips
  317. have several I2C ports and all are provided, controled by the
  318. device tree.
  319. config SYS_I2C_SANDBOX
  320. bool "Sandbox I2C driver"
  321. depends on SANDBOX && DM_I2C
  322. help
  323. Enable I2C support for sandbox. This is an emulation of a real I2C
  324. bus. Devices can be attached to the bus using the device tree
  325. which specifies the driver to use. See sandbox.dts as an example.
  326. config SYS_I2C_S3C24X0
  327. bool "Samsung I2C driver"
  328. depends on ARCH_EXYNOS4 && DM_I2C
  329. help
  330. Support for Samsung I2C controller as Samsung SoCs.
  331. config SYS_I2C_STM32F7
  332. bool "STMicroelectronics STM32F7 I2C support"
  333. depends on (STM32F7 || STM32H7 || ARCH_STM32MP) && DM_I2C
  334. help
  335. Enable this option to add support for STM32 I2C controller
  336. introduced with STM32F7/H7 SoCs. This I2C controller supports :
  337. _ Slave and master modes
  338. _ Multimaster capability
  339. _ Standard-mode (up to 100 kHz)
  340. _ Fast-mode (up to 400 kHz)
  341. _ Fast-mode Plus (up to 1 MHz)
  342. _ 7-bit and 10-bit addressing mode
  343. _ Multiple 7-bit slave addresses (2 addresses, 1 with configurable mask)
  344. _ All 7-bit addresses acknowledge mode
  345. _ General call
  346. _ Programmable setup and hold times
  347. _ Easy to use event management
  348. _ Optional clock stretching
  349. _ Software reset
  350. config SYS_I2C_UNIPHIER
  351. bool "UniPhier I2C driver"
  352. depends on ARCH_UNIPHIER && DM_I2C
  353. default y
  354. help
  355. Support for UniPhier I2C controller driver. This I2C controller
  356. is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs.
  357. config SYS_I2C_UNIPHIER_F
  358. bool "UniPhier FIFO-builtin I2C driver"
  359. depends on ARCH_UNIPHIER && DM_I2C
  360. default y
  361. help
  362. Support for UniPhier FIFO-builtin I2C controller driver.
  363. This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.
  364. config SYS_I2C_VERSATILE
  365. bool "Arm Ltd Versatile I2C bus driver"
  366. depends on DM_I2C && (TARGET_VEXPRESS_CA15_TC2 || TARGET_VEXPRESS64_JUNO)
  367. help
  368. Add support for the Arm Ltd Versatile Express I2C driver. The I2C host
  369. controller is present in the development boards manufactured by Arm Ltd.
  370. config SYS_I2C_MVTWSI
  371. bool "Marvell I2C driver"
  372. depends on DM_I2C
  373. help
  374. Support for Marvell I2C controllers as used on the orion5x and
  375. kirkwood SoC families.
  376. config TEGRA186_BPMP_I2C
  377. bool "Enable Tegra186 BPMP-based I2C driver"
  378. depends on TEGRA186_BPMP
  379. help
  380. Support for Tegra I2C controllers managed by the BPMP (Boot and
  381. Power Management Processor). On Tegra186, some I2C controllers are
  382. directly controlled by the main CPU, whereas others are controlled
  383. by the BPMP, and can only be accessed by the main CPU via IPC
  384. requests to the BPMP. This driver covers the latter case.
  385. config SYS_I2C_BUS_MAX
  386. int "Max I2C busses"
  387. depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_SOCFPGA
  388. default 2 if TI816X
  389. default 3 if OMAP34XX || AM33XX || AM43XX || ARCH_KEYSTONE
  390. default 4 if ARCH_SOCFPGA || OMAP44XX || TI814X
  391. default 5 if OMAP54XX
  392. help
  393. Define the maximum number of available I2C buses.
  394. config SYS_I2C_ZYNQ
  395. bool "Xilinx I2C driver"
  396. depends on ARCH_ZYNQMP || ARCH_ZYNQ
  397. help
  398. Support for Xilinx I2C controller.
  399. config SYS_I2C_ZYNQ_SLAVE
  400. hex "Set slave addr"
  401. depends on SYS_I2C_ZYNQ
  402. default 0
  403. help
  404. Set CONFIG_SYS_I2C_ZYNQ_SLAVE for slave addr.
  405. config SYS_I2C_ZYNQ_SPEED
  406. int "Set I2C speed"
  407. depends on SYS_I2C_ZYNQ
  408. default 100000
  409. help
  410. Set CONFIG_SYS_I2C_ZYNQ_SPEED for speed setting.
  411. config ZYNQ_I2C0
  412. bool "Xilinx I2C0 controller"
  413. depends on SYS_I2C_ZYNQ
  414. help
  415. Enable Xilinx I2C0 controller.
  416. config ZYNQ_I2C1
  417. bool "Xilinx I2C1 controller"
  418. depends on SYS_I2C_ZYNQ
  419. help
  420. Enable Xilinx I2C1 controller.
  421. config SYS_I2C_IHS
  422. bool "gdsys IHS I2C driver"
  423. depends on DM_I2C
  424. help
  425. Support for gdsys IHS I2C driver on FPGA bus.
  426. source "drivers/i2c/muxes/Kconfig"
  427. endmenu