linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] clk: xgene: Add PMD clock support
@ 2016-09-03  0:40 Hoan Tran
  2016-09-03  0:40 ` [PATCH v2 1/3] Documentation: dtb: xgene: Add PMD clock binding Hoan Tran
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hoan Tran @ 2016-09-03  0:40 UTC (permalink / raw)
  To: linux-arm-kernel

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.

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] 6+ messages in thread

end of thread, other threads:[~2016-09-12 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-03  0:40 [PATCH v2 0/3] clk: xgene: Add PMD clock support Hoan Tran
2016-09-03  0:40 ` [PATCH v2 1/3] Documentation: dtb: xgene: Add PMD clock binding Hoan Tran
2016-09-12 15:37   ` Rob Herring
2016-09-12 18:23     ` Hoan Tran
2016-09-03  0:40 ` [PATCH v2 2/3] clk: xgene: Add PMD clock Hoan Tran
2016-09-03  0:40 ` [PATCH v2 3/3] arm64: dts: xgene: Add DT node for APM X-Gene 2 CPU clocks 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).