Pierre-Yves MORDRET
c599eb4ff6
i2c: stm32f7: fix documentation typo
...
Some data structure members were either misspelled or missing.
Fixes: aeb068c572
("i2c: i2c-stm32f7: add driver")
Fixes: 380b8a85e7 ("i2c: i2c-stm32f7: Add initial SMBus protocols support")
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-05-17 15:59:02 +02:00
Pierre-Yves MORDRET
562de4ff4c
i2c: i2c-stm32f7: Implement I2C release mechanism
...
Feature prevents I2C lock-ups. Mechanism resets I2C state machine
and releases SCL/SDA signals but preserves I2C registers.
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-04-30 10:39:28 +02:00
Pierre-Yves MORDRET
7ecc8cfde5
i2c: i2c-stm32f7: Add DMA support
...
This patch adds DMA support for i2c-stm32f7 driver
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-04-30 10:39:28 +02:00
Pierre-Yves MORDRET
9e48155f6b
i2c: i2c-stm32f7: Add initial SMBus protocols support
...
This patch adds SMBus support for I2C controller embedded in STM32F7 Soc.
All SMBus protocols are implemented except SMBus-specific protocols like
SMBus Host Notification and SMBus Alert protocols.
Implemented: SMBus Quick command, Send byte, Receive byte, Write byte/word,
read byte/word, Process call, Block write/read and Block write-block read
process call.
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-04-30 10:39:27 +02:00
Pierre-Yves MORDRET
60d609f30d
i2c: i2c-stm32f7: Add slave support
...
This patch adds slave support for I2C controller embedded in STM32F7 SoC
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-04-30 10:39:27 +02:00
Pierre-Yves MORDRET
8c7ecc9953
i2c: i2c-stm32f7: Add 10-bit address support
...
This patch adds support for 10-bit device address for STM32F7 I2C
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2018-04-30 10:39:27 +02:00
Pierre-Yves MORDRET
771b7bf053
i2c: i2c-stm32f7: fix no check on returned setup
...
Before assigning returned setup structure check if not null
Fixes: 463a9215f3
("i2c: stm32f7: fix setup structure")
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
Cc: stable@kernel.org
2018-03-24 13:37:41 +01:00
Benjamin Gaignard
9c41e45218
i2c: stm32: Fix copyrights
...
Uniformize STMicroelectronics copyrights headers and add SPDX
identifier.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com >
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com >
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Acked-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2017-12-12 23:16:04 +01:00
Colin Ian King
25f2f44098
i2c: i2c-stm32f7: make structure stm32f7_setup static const
...
The structure stm32f7_setup is local to the source and does not need
to be in global scope, make it static const.
Cleans up sparse warning:
symbol 'stm32f7_setup' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2017-10-05 14:44:57 +02:00
Pierre-Yves MORDRET
463a9215f3
i2c: stm32f7: fix setup structure
...
I2C drive setup structure is not properly allocated.
Make it static instead of pointer to store driver data.
Fixes: aeb068c572
("i2c: i2c-stm32f7: add driver")
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2017-10-05 14:44:49 +02:00
Pierre-Yves MORDRET
aeb068c572
i2c: i2c-stm32f7: add driver
...
This patch adds initial support for the STM32F7 I2C controller.
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com >
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com >
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2017-09-14 17:34:43 +02:00