From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98A77220F30; Fri, 15 Aug 2025 08:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755247061; cv=none; b=LcDy5eyeKWrXUYP2qvKZwWCIGUPezlQUO2uJzuuJdWFSWRZzQ8V/LmLzrF8ADIEzb4q8NKOlHvj0xc28nRjIOSxdkl29t6kz+Cr84PTZ34B2SnDdPbgXrnlfmtzGR8ot4LaZiGrMnuR9Kh6suEr/aE06PJfAr6Xzg7sJgdGCtlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755247061; c=relaxed/simple; bh=L7VZdGs5j0iAIIVV95ydOPA+CQ4L5Vw5Pc4ESRH7W5A=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ojUdwDXmpUHUUeIqnqW2bfdN/deMUHCwTYpdgGwdtAcGMtRMzwaHAkhuKnHMq+ZjK0lkNre6dqb2CjkI2sefqNx6ISRb/uIfmntSfZPdXt+nqe5ttacPPT/05RVk8Kq7eFTvBk6c1uolL0dfNN9EjmVdaIGyvBdQU8z4wNokt9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bsNfre0p; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bsNfre0p" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3073EC4CEEB; Fri, 15 Aug 2025 08:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755247061; bh=L7VZdGs5j0iAIIVV95ydOPA+CQ4L5Vw5Pc4ESRH7W5A=; h=From:Subject:Date:To:Cc:Reply-To:From; b=bsNfre0peB10P3Tz9sQE/s7htiknvrsgrvoTh5AdkXi5Ow1IE2Z2+ITr0PbTYp4LD NEL0VHCa5LOZnMOUA5hH/QHOWK8JSAz8D54gKy6GK8eybXTHB7XeQgKSdD2RQmDZ3W iUwHh7h1iiDQasMi7boWq2Kd0QqZUzw6jDNlxujZqEEz0IOizFlW7RB/F1uOveXb8z O0NMpdwWh0EnKKGKYJN89sUKnMoFqj9qAtLT7OVxNgvDSEtZpc1yZHA9EHBmejtPj4 WHhgVuUuKJzAspVBgUM5dsikuWFjbSAYfnaG1aWrHNg6oph3HClfZJVsp+7voHY8Ll 2t0qfBazxvPGA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AF5ECA0EE4; Fri, 15 Aug 2025 08:37:41 +0000 (UTC) From: Chuan Liu via B4 Relay Subject: [PATCH 00/13] soc: amlogic: clk-measure: Add more SoCs to support clk-measure Date: Fri, 15 Aug 2025 16:37:26 +0800 Message-Id: <20250815-add-more-socs-to-support-clk_measure-v1-0-59f04ba67457@amlogic.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMfxnmgC/x2N0QrCMAwAf2Xk2UDXWUR/RURiGzXolpJsIoz9u 8XH4+BuBWcTdjh1Kxh/xEWnBv2ug/yk6cEopTHEEFM4DD1SKTiqMbpmx1nRl1rVZszv13Vk8qW 5W6T9kI6hJCJoqWp8l+9/c75s2w/yQ+LWdgAAAA== To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Chuan Liu X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755247056; l=2630; i=chuan.liu@amlogic.com; s=20240902; h=from:subject:message-id; bh=L7VZdGs5j0iAIIVV95ydOPA+CQ4L5Vw5Pc4ESRH7W5A=; b=HrV4mTTd9v5hmPvd3ShYi4GdXeIZDlANBSxOzuM4gM9XilonMTDwDrW+DuLRkddH2wFDdyUbj 9cbdHjUfK2FAS1fSwzBLSODvtHVd+QKD31ItH7oLe9+kRlH/BVEwSch X-Developer-Key: i=chuan.liu@amlogic.com; a=ed25519; pk=fnKDB+81SoWGKW2GJNFkKy/ULvsDmJZRGBE7pR5Xcpo= X-Endpoint-Received: by B4 Relay for chuan.liu@amlogic.com/20240902 with auth_id=203 X-Original-From: Chuan Liu Reply-To: chuan.liu@amlogic.com As support for clk-measure expands across more SoCs, the current approach of defining all SoC-specific clk-measure table data in the driver .c file results in progressively larger compiled images, resulting in memory wastage. Move SoC-specific clk-measure tables to DTS definitions and extend support for additional SoCs (A4, A5, S7, S7D and S6). Signed-off-by: Chuan Liu --- Chuan Liu (13): dt-bindings: soc: amlogic: Add clk-measure related properties soc: amlogic: clk-measure: Remove the msr_data from clk-measure ARM: dts: amlogic: add clk-measure IDs and names for meson SoC family arm64: dts: amlogic: add clk-measure IDs and names for Amlogic SoCs dt-bindings: soc: amlogic: Unify the compatible property for clk-measure soc: amlogic: clk-measure: Unify the compatible property ARM: dts: amlogic: Unify the compatible property for clk-measure arm64: dts: amlogic: Unify the compatible property for clk-measure arm64: dts: amlogic: A4: Add clk-measure controller node arm64: dts: amlogic: A5: 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 .../soc/amlogic/amlogic,meson-gx-clk-measure.yaml | 66 +- arch/arm/boot/dts/amlogic/meson8.dtsi | 94 ++- arch/arm/boot/dts/amlogic/meson8b.dtsi | 94 ++- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 212 +++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 202 +++++ arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 275 +++++- arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 312 +++++++ arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 253 ++++++ arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 243 ++++++ arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 144 +++- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 229 +++++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 136 ++- arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 301 ++++++- arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 255 +++++- drivers/soc/amlogic/meson-clk-measure.c | 930 ++------------------- 16 files changed, 2877 insertions(+), 871 deletions(-) --- base-commit: e5624eb63c452efa753759e74eb27fe132eb577c change-id: 20250731-add-more-socs-to-support-clk_measure-b2a43590d5aa Best regards, -- Chuan Liu