| From: |
| Shubhrajyoti Datta <shubhrajyoti.datta-AT-amd.com> |
| To: |
| <linux-clk-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org> |
| Subject: |
| [PATCH 0/8] clk: clocking-wizard: Add static-config clock provider support |
| Date: |
| Mon, 15 Jun 2026 09:18:37 +0530 |
| Message-ID: |
| <20260615034845.3320286-1-shubhrajyoti.datta@amd.com> |
| Cc: |
| <git-AT-amd.com>, Michael Turquette <mturquette-AT-baylibre.com>, Stephen Boyd <sboyd-AT-kernel.org>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Michal Simek <michal.simek-AT-amd.com>, Shubhrajyoti Datta <shubhrajyoti.datta-AT-amd.com>, <devicetree-AT-vger.kernel.org>, <linux-arm-kernel-AT-lists.infradead.org> |
| Archive-link: |
| Article |
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.
Currently the xlnx,static-config is not functional as it doesnot
model the output clocks. The series fixes the same.
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
Shubhrajyoti Datta (8):
dt-bindings: clock: clocking-wizard: Add xlnx,clk-mul-div property
dt-bindings: clock: clocking-wizard: Make reg optional for
static-config
dt-bindings: clock: clocking-wizard: Make s_axi_aclk optional for
static-config
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
.../bindings/clock/xlnx,clocking-wizard.yaml | 50 ++++-
drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 181 ++++++++++++++++--
2 files changed, 205 insertions(+), 26 deletions(-)
--
2.34.1