[PATCH v2 00/12] soc: amlogic: clk-measure: Add support for more SoCs

From: Chuan Liu via B4 Relay

Date: Sun Sep 20 2026 - 06:26:28 EST


This patch series adds clk-measure support for the Amlogic A5, A4, S7,
S7D, S6 and A9 SoCs, listed in the order of their release.

The clock names for the clk-measure channels are kept consistent with
those used by the clock driver as much as possible, making it easier to
identify the relationship between the clk-measure channels and the
corresponding clocks in the clock driver.

This patchset also includes an additional patch to optimize memory usage:
- soc: amlogic: clk-measure: Optimize CLK_MSR_ID to reduce memory usage

To avoid requiring everyone to spend additional effort on a separate
patchset, I have included it in this series. Please feel free to point
out if this is not appropriate for this series.

To improve maintainability, this patchset also includes a patch to reorder
the dt-binding and the compatible entries in the driver.

To minimize unrelated changes, the existing clk-measure channel tables in
the driver are left in their original order. The tables for the newly
supported SoCs are ordered alphabetically.

Signed-off-by: Chuan Liu <chuan.liu@xxxxxxxxxxx>
---
Changes in v2:
- Reorder the dt-binding and the compatible entries in the driver
alphabetically.
- Order the clk-measure channel tables for the newly supported SoCs
alphabetically.
- Add the const qualifier to the A9 clk-measure channel table.
- Rename "exit_Tsin_B_CLK_IN" to "ext_Tsin_B_CLK_IN" in the A9 clk-measure
channel table.
- Link to v1: https://lore.kernel.org/r/20260911-more-socs-to-support-clk_measure-v1-0-940e269aa52f@xxxxxxxxxxx

---
Chuan Liu (12):
dt-bindings: soc: amlogic: Reordering compatible of clk-measure
dt-bindings: soc: amlogic: Add clk-measure compatible to support more SoCs
soc: amlogic: clk-measure: Support more measurement channels
soc: amlogic: clk-measure: Align compatible entries with DT bindings
soc: amlogic: clk-measure: Add support for more SoCs
soc: amlogic: clk-measure: Optimize CLK_MSR_ID to reduce memory usage
arm64: dts: amlogic: a5: Add clk-measure controller node
arm64: dts: amlogic: a4: Add clk-measure controller node
arm64: dts: amlogic: s7: Add clk-measure controller node
arm64: dts: amlogic: s7d: Add clk-measure controller node
arm64: dts: amlogic: s6: Add clk-measure controller node
arm64: dts: amlogic: a9: Add clk-measure controller node

.../soc/amlogic/amlogic,meson-gx-clk-measure.yaml | 16 +-
arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 5 +
arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 5 +
arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi | 5 +
arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 5 +
arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 5 +
arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 5 +
drivers/soc/amlogic/meson-clk-measure.c | 927 ++++++++++++++++++++-
8 files changed, 953 insertions(+), 20 deletions(-)
---
base-commit: a2530c83c458a503e55219966217dfd1c36a385e
change-id: 20260710-more-socs-to-support-clk_measure-c826f8ab9e68

Best regards,
--
Chuan Liu <chuan.liu@xxxxxxxxxxx>