devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Support for Apple SoCs' NCO blocks
@ 2021-12-14 12:02 Martin Povišer
  2021-12-14 12:02 ` [PATCH 1/2] dt-bindings: clock: Add Apple NCO Martin Povišer
  2021-12-14 12:02 ` [PATCH 2/2] clk: clk-apple-nco: Add driver for " Martin Povišer
  0 siblings, 2 replies; 13+ messages in thread
From: Martin Povišer @ 2021-12-14 12:02 UTC (permalink / raw)
  Cc: mturquette, sboyd, robh+dt, devicetree, linux-clk, kettenis,
	marcan, sven, Martin Povišer

Hi all,

I am submitting a common clock driver for Numerically Controlled Oscillator (NCO)
blocks on recent Apple ARM64 SoCs. The NCO driver will be used for audio
support on these platforms which is work-in-progress.

I suppose the only noteworthy thing is the blocks divide an input clock
with a clock cycle counter in part implemented as a LFSR. For that reason
the driver upfront calculates a table of LFSR states to be able to program
the dividers.

Best,
Martin

Martin Povišer (2):
  dt-bindings: clock: Add Apple NCO
  clk: clk-apple-nco: Add driver for Apple NCO

 .../devicetree/bindings/clock/apple,nco.yaml  |  70 ++++
 drivers/clk/Kconfig                           |   9 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-apple-nco.c                   | 299 ++++++++++++++++++
 4 files changed, 379 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/apple,nco.yaml
 create mode 100644 drivers/clk/clk-apple-nco.c

--
2.33.0



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

end of thread, other threads:[~2022-01-08  1:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 12:02 [PATCH 0/2] Support for Apple SoCs' NCO blocks Martin Povišer
2021-12-14 12:02 ` [PATCH 1/2] dt-bindings: clock: Add Apple NCO Martin Povišer
2021-12-14 15:21   ` Rob Herring
2021-12-14 15:40   ` Rob Herring
2021-12-14 20:07     ` Martin Povišer
2021-12-14 23:53       ` Rob Herring
2021-12-15  8:28         ` Martin Povišer
2021-12-15  8:43           ` Sven Peter
2021-12-15 12:15             ` Martin Povišer
2021-12-14 12:02 ` [PATCH 2/2] clk: clk-apple-nco: Add driver for " Martin Povišer
2021-12-15  9:01   ` Sven Peter
2021-12-15 12:43     ` Martin Povišer
2022-01-08  1:06   ` Stephen Boyd

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).