All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/5] clk: clocking-wizard: Driver updates
@ 2021-04-08 12:58 Shubhrajyoti Datta
  2021-04-08 12:58 ` [PATCH v11 1/5] dt-bindings: add documentation of xilinx clocking wizard Shubhrajyoti Datta
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Shubhrajyoti Datta @ 2021-04-08 12:58 UTC (permalink / raw)
  To: linux-clk
  Cc: mturquette, sboyd, robh+dt, gregkh, linux-staging, git, michals,
	zhengxunli.mxic, Shubhrajyoti Datta

The patch does the following
Update the versions of the clocking wizard ip.
Move from staging to clk directory.
Update the bindings.

Applies on
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-next branch.

 
Shubhrajyoti Datta (5):
  dt-bindings: add documentation of xilinx clocking wizard
  clk: clocking-wizard: Add the clockwizard to clk directory
  clk: clocking-wizard: Rename nr-outputs to xlnx,nr-outputs
  clk: clocking-wizard: Fix the reconfig for 5.2
  clk: clocking-wizard: Update the compatible

 .../bindings/clock/xlnx,clocking-wizard.yaml       |  77 +++
 drivers/clk/Kconfig                                |   9 +
 drivers/clk/Makefile                               |   1 +
 drivers/clk/clk-xlnx-clock-wizard.c                | 643 +++++++++++++++++++++
 drivers/staging/Kconfig                            |   2 -
 drivers/staging/Makefile                           |   1 -
 drivers/staging/clocking-wizard/Kconfig            |  10 -
 drivers/staging/clocking-wizard/Makefile           |   2 -
 drivers/staging/clocking-wizard/TODO               |  13 -
 .../clocking-wizard/clk-xlnx-clock-wizard.c        | 634 --------------------
 drivers/staging/clocking-wizard/dt-binding.txt     |  30 -
 11 files changed, 730 insertions(+), 692 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml
 create mode 100644 drivers/clk/clk-xlnx-clock-wizard.c
 delete mode 100644 drivers/staging/clocking-wizard/Kconfig
 delete mode 100644 drivers/staging/clocking-wizard/Makefile
 delete mode 100644 drivers/staging/clocking-wizard/TODO
 delete mode 100644 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
 delete mode 100644 drivers/staging/clocking-wizard/dt-binding.txt

-- 
2.1.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH v11 2/5] clk: clocking-wizard: Add the clockwizard to clk directory
@ 2021-04-21 16:58 ` Zhengxun Li
  0 siblings, 0 replies; 8+ messages in thread
From: Zhengxun Li @ 2021-04-21 16:58 UTC (permalink / raw)
  To: shubhrajyoti.datta
  Cc: git, gregkh, linux-clk, linux-staging, michals, mturquette,
	robh+dt, sboyd, zhengxunli.mxic, zhengxunli

Hi Shubhrajyoti,

Overflow still occurs.

+static int clk_wzrd_dynamic_reconfig_f(struct clk_hw *hw, unsigned long rate,
+       unsigned long parent_rate)
+{
+ int err;
+ u32 value, pre;
+ unsigned long rate_div, f, clockout0_div;
+ struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
+ void __iomem *div_addr = divider->base + divider->offset;
+
+ rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate);

rate_div = DIV_ROUND_DOWN_ULL((u64)parent_rate * 1000, rate);

+ clockout0_div = rate_div / 1000;
+
+ pre = DIV_ROUND_CLOSEST((parent_rate * 1000), rate);

pre = DIV_ROUND_CLOSEST_ULL((u64)parent_rate * 1000, rate);

The rest looks good to me.

Thanks,
Zhengxun Li

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

end of thread, other threads:[~2021-04-21  8:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 12:58 [PATCH v11 0/5] clk: clocking-wizard: Driver updates Shubhrajyoti Datta
2021-04-08 12:58 ` [PATCH v11 1/5] dt-bindings: add documentation of xilinx clocking wizard Shubhrajyoti Datta
2021-04-08 12:58 ` [PATCH v11 2/5] clk: clocking-wizard: Add the clockwizard to clk directory Shubhrajyoti Datta
2021-04-08 12:58 ` [PATCH v11 3/5] clk: clocking-wizard: Rename nr-outputs to xlnx,nr-outputs Shubhrajyoti Datta
2021-04-08 12:58 ` [PATCH v11 4/5] clk: clocking-wizard: Fix the reconfig for 5.2 Shubhrajyoti Datta
2021-04-08 12:58 ` [PATCH v11 5/5] clk: clocking-wizard: Update the compatible Shubhrajyoti Datta
2021-04-21 16:58 [PATCH v11 2/5] clk: clocking-wizard: Add the clockwizard to clk directory Zhengxun Li
2021-04-21 16:58 ` Zhengxun Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.