Skip to content

Add Amlogic Meson GX SoC Clock Measure Driver

Neil Armstrong linux-amlogic linux-arm-kernel linux-devicetree lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesIn review
  2. v23 patches 5 repliesSuperseded
  3. v13 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: amlogic: Add Internal Clock Measurer bindingsDocumentation/devicetree/bindings/soc/amlogic/clk-measure.txt+18 -01 reply
2/3soc: amlogic: Add Meson Clock Measure driverdrivers/soc/amlogic/Kconfig drivers/soc/amlogic/Makefile drivers/soc/amlogic/meson-clk-measure.c+359 -01 reply
3/3ARM64: dts: meson-gx: Add Internal Clock Measurer nodearch/arm64/boot/dts/amlogic/meson-gx.dtsi+5 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMartin BlumenstinglRob Herring
1/3A-b R-b
2/3R-b T-b
3/3A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Add Amlogic Meson GX SoC Clock Measure Driver

The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal clocks frequencies.
The precision is determined by stepping into the duration until the counter overflows.
The debugfs shows a pretty summary and each clock can be measured individually aswell.

This patchset includes the dt-bindings, driver and the DT node added to the meson-gx dtsi.

Changes since v2 at [2]:
- Removed all reference to GX
- Added compatibles for meson8/meson8b
- Used Martin's suggestions on the divider naming
- Added Martin's meson8/meson8b clk id table
- Added Martin's fixes to support 32bit SoCs

Changes since v1 at [1]:
- fixed clock names
- added summary in debugfs and moved indivudual clocks into a subdirectory
- added the GX table to the match data

[1] https://lkml.kernel.org/r/1530624110-4687-1-git-send-email-narmstrong at baylibre.com
[2] https://lkml.kernel.org/r/20181114131627.17766-1-narmstrong at baylibre.com

Neil Armstrong (3):
dt-bindings: amlogic: Add Internal Clock Measurer bindings
soc: amlogic: Add Meson Clock Measure driver
ARM64: dts: meson-gx: Add Internal Clock Measurer node

 .../bindings/soc/amlogic/clk-measure.txt      |  18 +
 arch/arm64/boot/dts/amlogic/meson-gx.dtsi     |   5 +
 drivers/soc/amlogic/Kconfig                   |   8 +
 drivers/soc/amlogic/Makefile                  |   1 +
 drivers/soc/amlogic/meson-clk-measure.c       | 350 ++++++++++++++++++
 5 files changed, 382 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
 create mode 100644 drivers/soc/amlogic/meson-clk-measure.c
Signature · 1 line
2.19.1