linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add a property for setting minimum persentage of i2c clock high
@ 2022-06-10  5:47 Potin Lai
  2022-06-10  5:47 ` [PATCH v4 1/2] aspeed: i2c: add clock duty cycle property Potin Lai
  2022-06-10  5:47 ` [PATCH v4 2/2] dt-bindings: aspeed-i2c: add properties for setting i2c clock duty cycle Potin Lai
  0 siblings, 2 replies; 6+ messages in thread
From: Potin Lai @ 2022-06-10  5:47 UTC (permalink / raw)
  To: Brendan Higgins, Benjamin Herrenschmidt, Joel Stanley,
	Andrew Jeffery, Rob Herring, Rayn Chen
  Cc: Patrick Williams, Potin Lai, linux-i2c, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, Potin Lai

Introducing i2c-clk-high-min-percent property for setting minimum
persentage of clock high.

This driver will go through base clock divisor and calculate a set of
high/low clock with duty cycle applied. if driver could not find a suit
high/low clock set, then it will use default duty cycle (50%) recalculate.

LINK: [v1] https://lore.kernel.org/all/20220530114056.8722-1-potin.lai.pt@gmail.com/
LINK: [v2] https://lore.kernel.org/all/20220601041512.21484-1-potin.lai.pt@gmail.com/
LINK: [v3] https://lore.kernel.org/all/20220607163703.26355-1-potin.lai.pt@gmail.com/

changes v3 --> v4:
* rename property to i2c-clk-high-min-percent

changes v2 --> v3:
* discard the properties for manual setting, use duty cycle to calculate
  high/low clock.

changes v1 --> v2:
* update bt-bindings documentation
* use meaningful values for properties instead of acture value in register

Potin Lai (2):
  aspeed: i2c: add clock duty cycle property
  dt-bindings: aspeed-i2c: add properties for setting i2c clock duty
    cycle

 .../devicetree/bindings/i2c/aspeed,i2c.yaml   |  7 +++
 drivers/i2c/busses/i2c-aspeed.c               | 56 +++++++++++++++----
 2 files changed, 52 insertions(+), 11 deletions(-)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2025-03-20 22:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10  5:47 [PATCH v4 0/2] Add a property for setting minimum persentage of i2c clock high Potin Lai
2022-06-10  5:47 ` [PATCH v4 1/2] aspeed: i2c: add clock duty cycle property Potin Lai
2022-06-22 14:50   ` Potin Lai
2025-03-20 22:13   ` Andi Shyti
2022-06-10  5:47 ` [PATCH v4 2/2] dt-bindings: aspeed-i2c: add properties for setting i2c clock duty cycle Potin Lai
2022-06-14 21:41   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).