[PATCH v3 0/2] clk: en7523: full clk_hw + set_rate for en7581
From: Christian Marangi
Date: Thu Nov 05 2026 - 10:51:35 EST
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 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 | 280 ++++++++++++++++++++++++++++++++++++---
1 file changed, 260 insertions(+), 20 deletions(-)
--
2.55.0