All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 0/2] i2c: enable buses to save their clock frequency in adapter
@ 2018-10-23  9:20 ` Tudor.Ambarus
  0 siblings, 0 replies; 12+ messages in thread
From: Tudor.Ambarus @ 2018-10-23  9:20 UTC (permalink / raw)
  To: wsa, Ludovic.Desroches, Nicolas.Ferre, alexandre.belloni,
	linux-i2c, linux-arm-kernel, linux-kernel
  Cc: Tudor.Ambarus

The clock-frequency property is not mandatory for the i2c buses. If it's
not present in the device tree, the buses __usually__ assume it's 100kHZ
(see altera, at91, axxia, etc.). Broadcom uses a 375kHZ default
clock-frequency, so the default clock frequency varies from bus to bus.

There are i2c clients that need to know the bus clock frequency in order to
compute their wake token (see atecc508a i2c client).

The clock-frequency value has to be propagated to the i2c clients, otherwise,
if they will not find the i2c bus clock frequency in the device tree, they
will have to make their own assumption of the clock frequency.

Spare the i2c clients of making wrong assumptions of the i2c bus clock
frequency and enable the buses to save their clock frequency in adapter.

since rfc:
- reword commit messages

Tudor Ambarus (2):
  i2c: enable buses to save their clock frequency in adapter
  i2c: at91: Save the bus clock frequency in adapter

 drivers/i2c/busses/i2c-at91.c | 1 +
 include/linux/i2c.h           | 1 +
 2 files changed, 2 insertions(+)

-- 
2.9.4


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

end of thread, other threads:[~2018-10-29 14:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23  9:20 [RESEND PATCH 0/2] i2c: enable buses to save their clock frequency in adapter Tudor.Ambarus
2018-10-23  9:20 ` Tudor.Ambarus at microchip.com
2018-10-23  9:20 ` Tudor.Ambarus
2018-10-23  9:20 ` [RESEND PATCH 1/2] " Tudor.Ambarus
2018-10-23  9:20   ` Tudor.Ambarus at microchip.com
2018-10-23  9:20   ` Tudor.Ambarus
2018-10-29 14:49   ` Ludovic Desroches
2018-10-29 14:49     ` Ludovic Desroches
2018-10-29 14:49     ` Ludovic Desroches
2018-10-23  9:20 ` [RESEND PATCH 2/2] i2c: at91: Save the bus " Tudor.Ambarus
2018-10-23  9:20   ` Tudor.Ambarus at microchip.com
2018-10-23  9:20   ` Tudor.Ambarus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.