mbox series

[v6,0/7] clk: clk-axi-clkgen: improvements and some fixes

Message ID 20250519-dev-axi-clkgen-limits-v6-0-bc4b3b61d1d4@analog.com
Headers show
Series clk: clk-axi-clkgen: improvements and some fixes | expand

Message

Nuno Sá via B4 Relay May 19, 2025, 3:41 p.m. UTC
This series starts with a small fix and then a bunch of small
improvements. The main change though is to allow detecting of
struct axi_clkgen_limits during probe().

---
Changes in v6:
- Patch 3:
 * Don't add adi-axi-common.h in axi-clkgen (not needed at this point);
- Patch 5: 
 * Add adi-axi-common.h now.

- Link to v5: https://lore.kernel.org/r/20250512-dev-axi-clkgen-limits-v5-0-a86b9a368e05@analog.com
- Link to v4: https://lore.kernel.org/r/20250505-dev-axi-clkgen-limits-v4-0-3ad5124e19e1@analog.com
- Link to v3: https://lore.kernel.org/r/20250421-dev-axi-clkgen-limits-v3-0-4203b4fed2c9@analog.com
- Link to v2: https://lore.kernel.org/r/20250313-dev-axi-clkgen-limits-v2-0-173ae2ad6311@analog.com
- Link to v1: https://lore.kernel.org/r/20250219-dev-axi-clkgen-limits-v1-0-26f7ef14cd9c@analog.com

---
Nuno Sá (7):
      clk: clk-axi-clkgen: fix fpfd_max frequency for zynq
      clk: clk-axi-clkgen: make sure to include mod_devicetable.h
      include: linux: move adi-axi-common.h out of fpga
      include: adi-axi-common: add new helper macros
      clk: clk-axi-clkgen: detect axi_clkgen_limits at runtime
      clk: clk-axi-clkgen move to min/max()
      clk: clk-axi-clkgen: fix coding style issues

 drivers/clk/clk-axi-clkgen.c        | 159 +++++++++++++++++++++++++-----------
 drivers/dma/dma-axi-dmac.c          |   2 +-
 drivers/hwmon/axi-fan-control.c     |   2 +-
 drivers/iio/adc/adi-axi-adc.c       |   3 +-
 drivers/iio/dac/adi-axi-dac.c       |   2 +-
 drivers/pwm/pwm-axi-pwmgen.c        |   2 +-
 drivers/spi/spi-axi-spi-engine.c    |   2 +-
 include/linux/adi-axi-common.h      |  56 +++++++++++++
 include/linux/fpga/adi-axi-common.h |  23 ------
 9 files changed, 174 insertions(+), 77 deletions(-)
---
base-commit: 82f69876ef45ad66c0b114b786c7c6ac0f6a4580
change-id: 20250218-dev-axi-clkgen-limits-63fb0c5ec38b
--

Thanks!
- Nuno Sá

Comments

Mark Brown May 19, 2025, 3:57 p.m. UTC | #1
On Mon, May 19, 2025 at 04:41:08PM +0100, Nuno Sá via B4 Relay wrote:
> From: Nuno Sá <nuno.sa@analog.com>
> 
> The adi-axi-common.h header has some common defines used in various ADI
> IPs. However they are not specific for any fpga manager so it's
> questionable for the header to live under include/linux/fpga. Hence
> let's just move one directory up and update all users.

Acked-by: Mark Brown <broonie@kernel.org>
Uwe Kleine-König May 19, 2025, 4:28 p.m. UTC | #2
On Mon, May 19, 2025 at 04:41:08PM +0100, Nuno Sá via B4 Relay wrote:
> ...
>  drivers/pwm/pwm-axi-pwmgen.c              | 2 +-

There is nothing scheduled on my side for that driver and the change
looks as expected.

Take my

Acked-by: Uwe Kleine-König <ukleinek@kernel.org>

to get it applied to whatever tree that series will be merged through
(clk?).

Best regards
Uwe