]> git.sur5r.net Git - u-boot/commit
i2c: add i2c driver for stm32
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 9 Aug 2017 12:45:27 +0000 (14:45 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Aug 2017 05:04:40 +0000 (07:04 +0200)
commit4fadcaf097887d94c909fd924864f435c69c9182
tree8ddfc2036b83436930161d69583340276ca20e06
parent90ae53ce1ae665a1b43ecf5ccafc339839392427
i2c: add i2c driver for stm32

Add i2c driver which can be used on both STM32F7 and STM32H7.
This I2C block supports the following features:
 _ Slave and master modes
 _ Multimaster capability
 _ Standard-mode (up to 100 kHz)
 _ Fast-mode (up to 400 kHz)
 _ Fast-mode Plus (up to 1 MHz)
 _ 7-bit and 10-bit addressing mode
 _ Multiple 7-bit slave addresses (2 addresses, 1 with configurable mask)
 _ All 7-bit addresses acknowledge mode
 _ General call
 _ Programmable setup and hold times
 _ Easy to use event management
 _ Optional clock stretching
 _ Software reset

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/device-tree-bindings/i2c/i2c-stm32.txt [new file with mode: 0644]
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/stm32f7_i2c.c [new file with mode: 0644]