[PATCH v3 0/7] soc: amlogic: clk-measure: Add clk-measure support for C3 and S4

From: Chuan Liu via B4 Relay
Date: Mon Apr 14 2025 - 22:46:23 EST


Add clk-measure support for C3/S4 SoCs.

Signed-off-by: Chuan Liu <chuan.liu@xxxxxxxxxxx>
---
Changes in v3:
- Change struct msr_reg_offset to const.
- Link to v2: https://lore.kernel.org/r/20250414-clk-measure-v2-0-65077690053a@xxxxxxxxxxx

Changes in v2:
- 1 Rename the clk-measure register.
- 2 Remove unused registers.
- 3 Share reg_offset across multiple chips.
- Link to v1: https://lore.kernel.org/r/20250411-clk-measure-v1-0-cb46a78d019a@xxxxxxxxxxx

---
Chuan Liu (7):
soc: amlogic: clk-measure: Define MSR_CLK's register offset separately
dt-bindings: soc: amlogic: C3 supports clk-measure
dt-bindings: soc: amlogic: S4 supports clk-measure
soc: amlogic: clk-measure: Add support for C3
soc: amlogic: clk-measure: Add support for S4
arm64: dts: amlogic: C3: Add clk-measure controller node
arm64: dts: amlogic: S4: Add clk-measure controller node

.../soc/amlogic/amlogic,meson-gx-clk-measure.yaml | 2 +
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 5 +
arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 5 +
drivers/soc/amlogic/meson-clk-measure.c | 375 ++++++++++++++++++++-
4 files changed, 372 insertions(+), 15 deletions(-)
---
base-commit: 37021be47d02d2913d6767795a6f4c72b4e63a4f
change-id: 20250411-clk-measure-d33c5ab62669

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