Skip to content

ARM: at91: rework main and slow clk implementation

Boris BREZILLON linux-arm-kernel linux-devicetree lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 4 repliesIn review
  2. v111 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- fix sam9rl main clk definition

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11clk: at91: rework main clk implementationdrivers/clk/at91/clk-main.c drivers/clk/at91/pmc.c drivers/clk/at91/pmc.h+536 -630 replies
2/11clk: at91: update main clk documentationDocumentation/devicetree/bindings/clock/at91-clock.txt+47 -92 replies
3/11clk: at91: add slow clks driverdrivers/clk/at91/Makefile drivers/clk/at91/clk-slow.c drivers/clk/at91/pmc.h +3 more+552 -20 replies
4/11clk: at91: add slow clk documentationDocumentation/devicetree/bindings/clock/at91-clock.txt+72 -01 reply
5/11ARM: at91/dt: move sama5d3 SoC to the new main/slow clk modelarch/arm/boot/dts/sama5d3.dtsi+55 -60 replies
6/11ARM: at91/dt: add xtal frequencies to sama5d3xcm boardsarch/arm/boot/dts/sama5d3xcm.dtsi+10 -00 replies
7/11ARM: at91/dt: add xtal frequencies to sama5d3 xplained boardarch/arm/boot/dts/at91-sama5d3_xplained.dts+10 -00 replies
8/11ARM: at91/dt: move at91sam9261 SoC to the new main clock modelarch/arm/boot/dts/at91sam9261.dtsi+9 -10 replies
9/11ARM: at91/dt: define main xtal frequency of the at91sam9261ek boardarch/arm/boot/dts/at91sam9261ek.dts+4 -00 replies
10/11ARM: at91/dt: move at91sam9rl SoC to the new slow/main clock modelsarch/arm/boot/dts/at91sam9rl.dtsi+40 -71 reply
11/11ARM: at91/dt: define sam9rlek crystal frequenciesarch/arm/boot/dts/at91sam9rlek.dts+8 -00 replies

Reviews trailers per patch

4 of 11 patches have a Reviewed-by or Acked-by.

PatchJean-Jacques HIBLOTAlexandre Belloni
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11A-b
9/11A-b
10/11A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] ARM: at91: rework main and slow clk implementation

Hello,

This series introduce the real clock model (as described in atmel datasheets) for slow and main clocks.

The modifications introduced by this series break the DT compat, but, as the at91 CCF based implementation is pretty new (introduced in 3.14 only for sama5 eval boards) I think it won't impact a lot of users.

Nicolas, Mike, if this series is accepted, I'd like to get it merged as soon as possible to prevent other developpers from using a deprecated DT binding. Moreover, I think this series should go through the same path for both clk and DT changes (whatever path is chosen: either at91 or clk tree) because the changes are tightly coupled.

Best Regards,

Boris

Changes since v1:
- fix sam9rl main clk definition

Boris BREZILLON (11):
clk: at91: rework main clk implementation
clk: at91: update main clk documentation
clk: at91: add slow clks driver
clk: at91: add slow clk documentation
ARM: at91/dt: move sama5d3 SoC to the new main/slow clk model
ARM: at91/dt: add xtal frequencies to sama5d3xcm boards
ARM: at91/dt: add xtal frequencies to sama5d3 xplained board
ARM: at91/dt: move at91sam9261 SoC to the new main clock model
ARM: at91/dt: define main xtal frequency of the at91sam9261ek board
ARM: at91/dt: move at91sam9rl SoC to the new slow/main clock models
ARM: at91/dt: define sam9rlek crystal frequencies

 .../devicetree/bindings/clock/at91-clock.txt       |  128 ++++-
 arch/arm/boot/dts/at91-sama5d3_xplained.dts        |   10 +
 arch/arm/boot/dts/at91sam9261.dtsi                 |   10 +-
 arch/arm/boot/dts/at91sam9261ek.dts                |    4 +
 arch/arm/boot/dts/at91sam9rl.dtsi                  |   47 +-
 arch/arm/boot/dts/at91sam9rlek.dts                 |    8 +
 arch/arm/boot/dts/sama5d3.dtsi                     |   61 +-
 arch/arm/boot/dts/sama5d3xcm.dtsi                  |   10 +
 drivers/clk/at91/Makefile                          |    4 +-
 drivers/clk/at91/clk-main.c                        |  581 +++++++++++++++++---
 drivers/clk/at91/clk-slow.c                        |  467 ++++++++++++++++
 drivers/clk/at91/pmc.c                             |   12 +
 drivers/clk/at91/pmc.h                             |    9 +
 drivers/clk/at91/sckc.c                            |   57 ++
 drivers/clk/at91/sckc.h                            |   22 +
 include/linux/clk/at91_pmc.h                       |    1 +
 16 files changed, 1343 insertions(+), 88 deletions(-)
 create mode 100644 drivers/clk/at91/clk-slow.c
 create mode 100644 drivers/clk/at91/sckc.c
 create mode 100644 drivers/clk/at91/sckc.h
Signature · 1 line
1.7.9.5