mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] i2c: stm32: support new st,stm32mp15-i2c compatible
@ 2020-07-22  8:21 Ahmad Fatoum
  2020-08-03 19:19 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-07-22  8:21 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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>
---
Hello Sascha,

Yet another v5.8-rc1 dts/ sync breakage.
If possible, please reorder before the dts/ sync.
Otherwise, please apply to master

Cheers,
Ahmad
---
 drivers/i2c/busses/i2c-stm32.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-stm32.c b/drivers/i2c/busses/i2c-stm32.c
index 9f34760e3fdf..971f2e68a4da 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 */ }
 };
 
-- 
2.27.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH master] i2c: stm32: support new st,stm32mp15-i2c compatible
  2020-07-22  8:21 [PATCH master] i2c: stm32: support new st,stm32mp15-i2c compatible Ahmad Fatoum
@ 2020-08-03 19:19 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-08-03 19:19 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Wed, Jul 22, 2020 at 10:21:41AM +0200, Ahmad Fatoum wrote:
> 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>
> ---
> Hello Sascha,
> 
> Yet another v5.8-rc1 dts/ sync breakage.
> If possible, please reorder before the dts/ sync.
> Otherwise, please apply to master

Applied to master, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-03 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  8:21 [PATCH master] i2c: stm32: support new st,stm32mp15-i2c compatible Ahmad Fatoum
2020-08-03 19:19 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox