[U-Boot] [PATCH v2 1/1] i2c: add i2c driver for stm32
Heiko Schocher
hs at denx.de
Wed Aug 23 08:32:04 UTC 2017
Hello Partrice,
Am 09.08.2017 um 14:45 schrieb patrice.chotard at st.com:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> 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 at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> v2: _ add I2C controller description in Kconfig
> _ rename stm32_i2c_dev struct to stm32_i2c_priv
> _ add comment for stm32_i2c_handle_reload()
> _ split stm32_i2c_compute_timing() code and add :
> _ stm32_i2c_compute_solutions() which computes list of possible timings candidate
> _ stm32_i2c_choose_solution() which selects the best timing
> _ use #defines instead of hard coded vlaue for speed in
> stm32_i2c_set_bus_speed() and in i2c_specs[] array
> _ move part of code of stm32_i2c_probe() inside stm32_ofdata_to_platdata()
>
> doc/device-tree-bindings/i2c/i2c-stm32.txt | 30 +
> drivers/i2c/Kconfig | 20 +
> drivers/i2c/Makefile | 1 +
> drivers/i2c/stm32f7_i2c.c | 882 +++++++++++++++++++++++++++++
> 4 files changed, 933 insertions(+)
> create mode 100644 doc/device-tree-bindings/i2c/i2c-stm32.txt
> create mode 100644 drivers/i2c/stm32f7_i2c.c
Applied to u-boot-i2c.git master
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list