Thread (11 messages) 11 messages, 4 authors, 2021-11-29

Re: [PATCH 0/2] i2c: at91: Add support for programmable clock source

From: Horatiu Vultur - M31836 <Horatiu.Vultur@microchip.com>
Date: 2021-10-13 11:40:16
Also in: linux-devicetree, linux-i2c, lkml

The 10/13/2021 08:49, Codrin Ciubotariu - M19940 wrote:
On 12.10.2021 17:07, Horatiu Vultur wrote:
quoted
Add support to be able to set BRSRCCLK. This feature is support on lan966x

Horatiu Vultur (2):
   dt-bindings: i2c: at91: Extend compatible list for lan966x
   i2c: at91: add support for brsrcclk

  .../devicetree/bindings/i2c/i2c-at91.txt      |  6 +++--
  drivers/i2c/busses/i2c-at91-core.c            | 16 +++++++++++++
  drivers/i2c/busses/i2c-at91-master.c          | 23 +++++++++++++++++--
  drivers/i2c/busses/i2c-at91.h                 |  1 +
  4 files changed, 42 insertions(+), 4 deletions(-)
Hi Horatiu,
Hi Codrin,
 From what I understand, on your DTS, you replaced the peripheral clock 
with the GCLK in the I2C node. This means that you are forcing all the 
variants that support clk_brsrcclk to treat the current clock as GCLK. 
This is not necessarily correct, since this newer variants can also work 
fine with only the peripheral clock and we should keep these option 
available.

I would add an optional GCLK clock binding in the I2C node. This way 
GCLK will be used only if it is present in DT and clk_brsrcclk set.
Thanks for the explanation.

I think actually I will drop this patch series because apparently
lan966x works fine also with the peripheral clock. So then no changes
are required.

If you think is worth it, I can do another version with the proposed
changes.
Best regards,
Codrin
-- 
/Horatiu

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help