linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add Core Divider clock support for Armada 370/XP
@ 2013-09-26 19:35 Ezequiel Garcia
  2013-09-26 19:35 ` [PATCH v2 1/4] clk: mvebu: Add Core Divider clock Ezequiel Garcia
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Ezequiel Garcia @ 2013-09-26 19:35 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset adds support for a set of clocks available in Armada 370/XP
known as "Core Divider" clocks.

These are a set of gatable clocks, derived from a fixed PLL at
a configurable ratio. Although this patchset adds support for the more
general case, we only support one of the clocks, namely the NAND clock.

With this infrastructure in place, the addition of the rest of the clocks
would be fairly easy.

A pictorical representation of the clock tree would be:

    PLL
    |
    |
    ---------------------
    |			|
    |			|
    NAND clock		...

This patchset is based on v3.12-rc2. Any opinions are highly appreciated.

Thanks!

Changes from v1:

  * The most significative change is the simplification of the NAND clock
    tree. Instead of exposing two clocks: NAND ECC and NAND, we choose a
    simpler approach and view both clocks as one.

    The only impact these simplification has is that the NAND controller
    driver will have to divide the rate by two when using it to calculate
    the timings.

  * A spinlock protecting the enable, disable and set_rate operations is added
    as noted by Andrew Lunn.

  * The round_rate algorithm was also simplified, as the previous one was rather
    silly; also noted by Andrew.

  * The size of the 'reg' property was fixed; also noted by Andrew.

  * The exceedingly long macros names have been simplified and some other minor
    coding style issues have been solved.

Ezequiel Garcia (4):
  clk: mvebu: Add Core Divider clock
  ARM: mvebu: Add Core Divider clock device-tree binding
  ARM: mvebu: Add a 2 GHz fixed-clock Armada 370/XP
  ARM: mvebu: Add the core-divider clock to Armada 370/XP

 .../bindings/clock/mvebu-corediv-clock.txt         |  19 ++
 arch/arm/boot/dts/armada-370-xp.dtsi               |  17 ++
 drivers/clk/mvebu/Kconfig                          |   5 +
 drivers/clk/mvebu/Makefile                         |   1 +
 drivers/clk/mvebu/clk-corediv.c                    | 223 +++++++++++++++++++++
 5 files changed, 265 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt
 create mode 100644 drivers/clk/mvebu/clk-corediv.c

-- 
1.8.1.5

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <CAFJTrDtxt7M77W_DMMUhWAMUFDL7-N3oktKvd0mixaS9yOvaBg@mail.gmail.com>]

end of thread, other threads:[~2013-11-19 18:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 19:35 [PATCH v2 0/4] Add Core Divider clock support for Armada 370/XP Ezequiel Garcia
2013-09-26 19:35 ` [PATCH v2 1/4] clk: mvebu: Add Core Divider clock Ezequiel Garcia
2013-10-02 17:43   ` Jason Cooper
2013-10-02 18:09     ` Ezequiel Garcia
2013-10-08 19:59       ` Ezequiel Garcia
2013-10-16 11:08         ` Ezequiel Garcia
2013-10-17 19:18           ` Ezequiel Garcia
2013-10-17 19:25             ` Jason Cooper
2013-10-22  9:53               ` Mike Turquette
2013-10-23 13:07                 ` Ezequiel Garcia
2013-11-17  4:52                 ` Ezequiel Garcia
2013-11-19 18:31                   ` Ezequiel Garcia
2013-09-26 19:35 ` [PATCH v2 2/4] ARM: mvebu: Add Core Divider clock device-tree binding Ezequiel Garcia
2013-09-26 19:35 ` [PATCH v2 3/4] ARM: mvebu: Add a 2 GHz fixed-clock Armada 370/XP Ezequiel Garcia
2013-09-26 19:35 ` [PATCH v2 4/4] ARM: mvebu: Add the core-divider clock to " Ezequiel Garcia
     [not found] <CAFJTrDtxt7M77W_DMMUhWAMUFDL7-N3oktKvd0mixaS9yOvaBg@mail.gmail.com>
2013-10-10 14:44 ` [PATCH v2 1/4] clk: mvebu: Add Core Divider clock Ezequiel Garcia

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