Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH v6 0/2] clk: en7523: full clk_hw + set_rate for en7581
@ 2026-11-17 18:02 Christian Marangi
  2026-11-17 18:02 ` [PATCH v6 1/2] clk: en7523: convert to full clk_hw implementation " Christian Marangi
  2026-11-17 18:02 ` [PATCH v6 2/2] clk: en7523: add support for .set_rate " Christian Marangi
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Marangi @ 2026-11-17 18:02 UTC (permalink / raw)
  To: Stephen Boyd, Brian Masney, Jerome Brunet, linux-clk; +Cc: Christian Marangi

This simple patch convert the en7523 clk for EN7581
to full clk and adds the .set_rate OPs.

Needed mostly to configure MDC clk rate.

This will be also implemented by AN7583 since they share the
same exact implementation.

Changes v6:
- Rework to use div_table entirely
- Switch determine_rate to calculate best rate

Changes v5:
- Handle requesting 0 rate

Changes v4:
- Fix regression where base_bits is 0
- Handle divider_get_val returning -EINVAL

Changes v3:
- Rework to clock divisor API
- Return error instead of -EINVAL
- Use dev_err where possible
- Use devm_kzalloc_obj
- Revert to not fail on clk registration failure

Changes v2:
- Fix recalc_rate return value on error

Christian Marangi (2):
  clk: en7523: convert to full clk_hw implementation for en7581
  clk: en7523: add support for .set_rate for en7581

 drivers/clk/clk-en7523.c | 395 +++++++++++++++++++++++++++++++++------
 1 file changed, 342 insertions(+), 53 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-11-17 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 18:02 [PATCH v6 0/2] clk: en7523: full clk_hw + set_rate for en7581 Christian Marangi
2026-11-17 18:02 ` [PATCH v6 1/2] clk: en7523: convert to full clk_hw implementation " Christian Marangi
2026-11-17 18:02 ` [PATCH v6 2/2] clk: en7523: add support for .set_rate " Christian Marangi
2026-11-17 18:15   ` sashiko-bot

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