summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-07-22 10:21:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-03 21:19:27 +0200
commitc667f8cc98a162ab5b10663fabf80821a69588f5 (patch)
treeb6d1043982dad026cc6010a08c36490a60bd1d4d /drivers/i2c
parent4ac9a459cd84ab317192972f1e821a8a38569c17 (diff)
downloadbarebox-c667f8cc98a162ab5b10663fabf80821a69588f5.tar.gz
barebox-c667f8cc98a162ab5b10663fabf80821a69588f5.tar.xz
i2c: stm32: support new st,stm32mp15-i2c compatible
Linux v5.8-rc1 has gained support for the FastMode+ registers on the stm32mp15, but those are incompatible between the stm32mp15 and the stm32f7, so a new compatible was introduced. The old compatible was replaced for the MP15 SoC, breaking I2C in barebox. Add the new compatible to fix this. Unlike Linux, we just use the same setup parameters as for the stm32f7. This is ok as long we don't want to support FastMode+. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-stm32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-stm32.c b/drivers/i2c/busses/i2c-stm32.c
index 9f34760e3f..971f2e68a4 100644
--- a/drivers/i2c/busses/i2c-stm32.c
+++ b/drivers/i2c/busses/i2c-stm32.c
@@ -847,6 +847,7 @@ static const struct stm32_i2c_setup stm32f7_setup = {
static __maybe_unused struct of_device_id stm32_i2c_dt_ids[] = {
{ .compatible = "st,stm32f7-i2c", .data = &stm32f7_setup, },
+ { .compatible = "st,stm32mp15-i2c", .data = &stm32f7_setup},
{ /* sentinel */ }
};