linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] clk: xgene: Add PMD clock support
@ 2016-09-12 18:23 Hoan Tran
  2016-09-12 18:23 ` [PATCH v3 1/3] Documentation: dtb: xgene: Add PMD clock binding Hoan Tran
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hoan Tran @ 2016-09-12 18:23 UTC (permalink / raw)
  To: Michael Turquette, Rob Herring, Stephen Boyd, Mark Rutland
  Cc: linux-clk, devicetree, linux-kernel, linux-arm-kernel, lho,
	Duc Dang, Hoan Tran

Add X-Gene PMD clock support.

PMD clock is implemented for a single register field.
  Output rate = parent_rate * (denominator - scale) / denominator
with
  - denominator = bitmask of register field + 1
  - scale = value of register field

For example, for bitmask is 0x7, denominator will be 8 and scale
will be computed and programmed accordingly.

v3
 * Minor changes on dt binding document.

v2
 * Imply clock shift and width by the compatible string as Rob's comments

v1
 * Initial

Hoan Tran (3):
  Documentation: dtb: xgene: Add PMD clock binding
  clk: xgene: Add PMD clock
  arm64: dts: xgene: Add DT node for APM X-Gene 2 CPU clocks

 Documentation/devicetree/bindings/clock/xgene.txt |  18 ++
 arch/arm64/boot/dts/apm/apm-shadowcat.dtsi        |  56 ++++++
 drivers/clk/clk-xgene.c                           | 221 ++++++++++++++++++++++
 3 files changed, 295 insertions(+)

-- 
1.9.1

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

end of thread, other threads:[~2016-09-14 21:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-12 18:23 [PATCH v3 0/3] clk: xgene: Add PMD clock support Hoan Tran
2016-09-12 18:23 ` [PATCH v3 1/3] Documentation: dtb: xgene: Add PMD clock binding Hoan Tran
2016-09-14 20:55   ` Stephen Boyd
2016-09-12 18:23 ` [PATCH v3 2/3] clk: xgene: Add PMD clock Hoan Tran
2016-09-14 20:55   ` Stephen Boyd
2016-09-14 21:06     ` Hoan Tran
2016-09-12 18:23 ` [PATCH v3 3/3] arm64: dts: xgene: Add DT node for APM X-Gene 2 CPU clocks Hoan Tran
2016-09-14 20:55   ` Stephen Boyd
2016-09-14 21:05     ` 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).