Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH v4 0/8] clk: clocking-wizard: Add static-config clock provider support
@ 2026-11-24  3:55 Shubhrajyoti Datta
  2026-11-24  3:55 ` [PATCH v4 1/8] dt-bindings: clock: clocking-wizard: Add static-config mode support Shubhrajyoti Datta
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Shubhrajyoti Datta @ 2026-11-24  3:55 UTC (permalink / raw)
  To: linux-clk, linux-kernel
  Cc: git, shubhrajyoti.datta, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Michal Simek,
	Shubhrajyoti Datta, devicetree, linux-arm-kernel


The Xilinx clocking-wizard IP can be used in a static-config mode
 where the hardware is pre-programmed at boot and no dynamic register
 access is required. In that case the driver should skip ioremap,
 read the fixed multiplier/divisor pairs from the device tree, and
 register fixed-factor clocks derived from clk_in1.

 This series:
   - adds the xlnx,clk-mul-div binding to carry mul/div pairs
   - makes the reg property optional for static-config nodes
   - skips ioremap when xlnx,static-config is present
   - moves clk_in1 acquisition before the static-config check so it
     is available in both code paths
   - registers fixed-factor output clocks in static-config mode

Changes in v4:
Rebased

Changes in v3:
- Added Reviewed-by tag from Rob Herring (carried from v2)
- Squashed the three separate v1 dt-bindings patches (clk-mul-div
  property, reg optional, s_axi_aclk optional) into this single patch,
  per Conor Dooley's review comment on v1 patch 3/8
- Removed duplicated number-of-outputs handling
- New patch
- New patch: split the shared notifier_block into per-clock callbacks
  to avoid corrupting the notifier chains

Changes in v2:
- Acquire clk_in1 even on the static-config path, instead of only when
  the dynamic-reconfig registers are used

Shubhrajyoti Datta (8):
  dt-bindings: clock: clocking-wizard: Add static-config mode support
  clk: clocking-wizard: Do not map the memory for static-config
  clk: clocking-wizard: Move clk_in1 acquisition before static-config
    check
  clk: clocking-wizard: Add static-config clock provider support
  clk: clocking-wizard: Skip s_axi_aclk for static-config
  clk: clocking-wizard: Use dev_err_probe() when mapping registers
  clk: clocking-wizard: Fix division by zero and unbounded register
    write
  clk: clocking-wizard: Use separate notifier_block for each clock

 .../bindings/clock/xlnx,clocking-wizard.yaml  |  51 +++-
 drivers/clk/xilinx/clk-xlnx-clock-wizard.c    | 229 +++++++++++++++---
 2 files changed, 245 insertions(+), 35 deletions(-)

-- 
2.34.1


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

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  3:55 [PATCH v4 0/8] clk: clocking-wizard: Add static-config clock provider support Shubhrajyoti Datta
2026-11-24  3:55 ` [PATCH v4 1/8] dt-bindings: clock: clocking-wizard: Add static-config mode support Shubhrajyoti Datta
2026-11-24  3:55 ` [PATCH v4 2/8] clk: clocking-wizard: Do not map the memory for static-config Shubhrajyoti Datta
2026-11-24  3:55 ` [PATCH v4 3/8] clk: clocking-wizard: Move clk_in1 acquisition before static-config check Shubhrajyoti Datta
2026-11-24  3:55 ` [PATCH v4 4/8] clk: clocking-wizard: Add static-config clock provider support Shubhrajyoti Datta
2026-11-24  4:14   ` sashiko-bot
2026-11-24  3:55 ` [PATCH v4 5/8] clk: clocking-wizard: Skip s_axi_aclk for static-config Shubhrajyoti Datta
2026-11-24  3:55 ` [PATCH v4 6/8] clk: clocking-wizard: Use dev_err_probe() when mapping registers Shubhrajyoti Datta
2026-11-24  4:03   ` sashiko-bot
2026-11-24  3:55 ` [PATCH v4 7/8] clk: clocking-wizard: Fix division by zero and unbounded register write Shubhrajyoti Datta
2026-11-24  4:18   ` sashiko-bot
2026-11-24  3:55 ` [PATCH v4 8/8] clk: clocking-wizard: Use separate notifier_block for each clock Shubhrajyoti Datta
2026-11-24  4:06   ` sashiko-bot

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