devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: Add fractional scale clock support
@ 2016-06-16 23:40 Hoan Tran
  2016-06-16 23:40 ` [PATCH 1/2] Documentation: dt: clock: Add fractional scale binding Hoan Tran
  2016-06-16 23:40 ` [PATCH 2/2] clk: Add fractional scale clock support Hoan Tran
  0 siblings, 2 replies; 9+ messages in thread
From: Hoan Tran @ 2016-06-16 23:40 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Michael Turquette,
	Stephen Boyd
  Cc: Ian Campbell, Kumar Gala, devicetree, linux-kernel, linux-clk,
	lho, Duc Dang, Hoan Tran

This patch adds fractional scale clock support.
Fractional scale clock is implemented for a single register field.
  Output rate = parent_rate * scale / denominator
For example, for 1 / 8 fractional scale, denominator will be 8 and scale
will be computed and programmed accordingly.

Hoan Tran (2):
  Documentation: dt: clock: Add fractional scale binding
  clk: Add fractional scale clock support

 .../bindings/clock/fractional-scale-clock.txt      |  31 +++
 drivers/clk/Makefile                               |   1 +
 drivers/clk/clk-fractional-scale.c                 | 253 +++++++++++++++++++++
 include/linux/clk-provider.h                       |  41 ++++
 4 files changed, 326 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/fractional-scale-clock.txt
 create mode 100644 drivers/clk/clk-fractional-scale.c

-- 
1.9.1


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

end of thread, other threads:[~2016-06-20 13:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 23:40 [PATCH 0/2] clk: Add fractional scale clock support Hoan Tran
2016-06-16 23:40 ` [PATCH 1/2] Documentation: dt: clock: Add fractional scale binding Hoan Tran
2016-06-20 13:18   ` Rob Herring
2016-06-16 23:40 ` [PATCH 2/2] clk: Add fractional scale clock support Hoan Tran
2016-06-17  1:22   ` kbuild test robot
     [not found]   ` <1466120433-30648-3-git-send-email-hotran-qTEPVZfXA3Y@public.gmane.org>
2016-06-17  1:49     ` kbuild test robot
2016-06-17  1:55   ` kbuild test robot
2016-06-17  6:43   ` Geert Uytterhoeven
2016-06-17 16:30     ` Hoan Tran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).