[PATCH v5 0/2] clk: en7523: full clk_hw + set_rate for en7581

From: Christian Marangi

Date: Mon Nov 09 2026 - 19:13:15 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 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 | 301 ++++++++++++++++++++++++++++++++++++---
1 file changed, 281 insertions(+), 20 deletions(-)

--
2.55.0