From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D7CCC982EB for ; Sun, 20 Sep 2026 10:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cn/HNFT2TZNJeDmaH1gR7tqaKlb5k8OvY0TO12dSzo0=; b=dAncUyPO76QdD9 nO2hiyVlbtujHOjqkp1OOAKf05ZI/R2xp3cGNoOPjrlaiU6y9GRihI23rUjOgEHQU047qJC70DvKr CURBKD5CsIsj4LE6BZYumhmTVQMQCXMsRvUrFrrC8CyyiutJEqmUvgrAFE6Pq5955Mc/6anFC+Fxd lFLZSQQxLRs3dNvNsXyEgMhHTd63vB5qJLcQhW2T8I0eOtC1WEgTl/zRW9A+SXrChKPo/WG/UyE6F vTi1MbQPxE2rdP98UViXbUbdJYLQUHh2ilY+sXWuTwzti4GsJ2bBJ3vM2kPzA76GBQSjPri79APUJ 2kNWpRszsfKldw7ggeUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8EjN-0000000HFRA-2th3; Sun, 20 Sep 2026 10:25:09 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8EjM-0000000HFOs-0xLA; Sun, 20 Sep 2026 10:25:08 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7CE1E44491; Sun, 20 Sep 2026 10:25:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 33A05C2BD01; Sun, 20 Sep 2026 10:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789899907; bh=eTxnJigNpnWXtmI4MZBvwR7lM1CHRz4uuZ4G5XSJRls=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=lpuk5y9Fz9W6Jmc2eeeHBeQys96jvJxxxHlvlUQIARzQ4yO8JDpvl3b+T4EdmY5Z2 5XjQ8KfrH8sKriABn6wKSvcYCyRxy1KmGgWOK62H07XOqpSTSw7YNMNDugMxTJahk2 jV1i2V4X/mhaIi8ZdQNl0SnjupChV4apStM48VFyqGJgXauG0cy1Ifmahjg8137IxO L3OJYTqxl79A1Vqd+Cy3TSzqF/EClznW7xuv5q9VBrGaVkmheGYkUpXG0iNIRCECSK xTWXKTL1mX4CNrda+XbqSLQQulyCA84MN/fAAJ974fiz/jBNyJQht9ZKjKwKNUmMu5 hmRFpR741gwpg== 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 1D9ECC982E6; Sun, 20 Sep 2026 10:25:07 +0000 (UTC) From: Chuan Liu via B4 Relay Date: Sun, 20 Sep 2026 18:25:06 +0800 Subject: [PATCH v2 04/12] soc: amlogic: clk-measure: Align compatible entries with DT bindings MIME-Version: 1.0 Message-Id: <20260920-more-socs-to-support-clk_measure-v2-4-224382a429e8@amlogic.com> References: <20260920-more-socs-to-support-clk_measure-v2-0-224382a429e8@amlogic.com> In-Reply-To: <20260920-more-socs-to-support-clk_measure-v2-0-224382a429e8@amlogic.com> 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=1789899904; l=3018; i=chuan.liu@amlogic.com; s=20240902; h=from:subject:message-id; bh=N4Mx9eqZjQKXjqKlyxwgJVxp+RMgOs2WzYEHRChMU3s=; b=FBt+mP4nvxZ0zj8/a5vbJEOhDz5lKQllZx7AGXo7yCzqBj581hQtEUz7qg0JWGGnNbFSiX2fM Gm5afsxZ3uMBNGhpG6T8CfvAThO+lMlQ5ri7SycBoCxzkeEii2Ffm8z 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 X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: chuan.liu@amlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org From: Chuan Liu Reorder the meson_msr_match_table entries to match the order of the compatible strings in the DT binding. Move the newly added clk_msr_a1_data entry accordingly, while keeping the existing SoC-specific data order unchanged. Signed-off-by: Chuan Liu --- drivers/soc/amlogic/meson-clk-measure.c | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drivers/soc/amlogic/meson-clk-measure.c index 0d4ba2555d17..d58c8d9629ea 100644 --- a/drivers/soc/amlogic/meson-clk-measure.c +++ b/drivers/soc/amlogic/meson-clk-measure.c @@ -1279,6 +1279,12 @@ static const struct msr_reg_offset msr_reg_offset_v2 = { .duty_val = 0x18, }; +static const struct meson_msr_data clk_msr_a1_data = { + .msr_table = (void *)clk_msr_a1, + .msr_count = ARRAY_SIZE(clk_msr_a1), + .reg = &msr_reg_offset_v2, +}; + static const struct meson_msr_data clk_msr_c3_data = { .msr_table = (void *)clk_msr_c3, .msr_count = ARRAY_SIZE(clk_msr_c3), @@ -1291,12 +1297,6 @@ static const struct meson_msr_data clk_msr_s4_data = { .reg = &msr_reg_offset_v2, }; -static const struct meson_msr_data clk_msr_a1_data = { - .msr_table = (void *)clk_msr_a1, - .msr_count = ARRAY_SIZE(clk_msr_a1), - .reg = &msr_reg_offset_v2, -}; - static const struct meson_msr_data clk_msr_t7_data = { .msr_table = (void *)clk_msr_t7, .msr_count = ARRAY_SIZE(clk_msr_t7), @@ -1305,16 +1305,12 @@ static const struct meson_msr_data clk_msr_t7_data = { static const struct of_device_id meson_msr_match_table[] = { { - .compatible = "amlogic,meson-gx-clk-measure", - .data = &clk_msr_gx_data, - }, - { - .compatible = "amlogic,meson8-clk-measure", - .data = &clk_msr_m8_data, + .compatible = "amlogic,a1-clk-measure", + .data = &clk_msr_a1_data, }, { - .compatible = "amlogic,meson8b-clk-measure", - .data = &clk_msr_m8_data, + .compatible = "amlogic,c3-clk-measure", + .data = &clk_msr_c3_data, }, { .compatible = "amlogic,meson-axg-clk-measure", @@ -1324,21 +1320,25 @@ static const struct of_device_id meson_msr_match_table[] = { .compatible = "amlogic,meson-g12a-clk-measure", .data = &clk_msr_g12a_data, }, + { + .compatible = "amlogic,meson-gx-clk-measure", + .data = &clk_msr_gx_data, + }, { .compatible = "amlogic,meson-sm1-clk-measure", .data = &clk_msr_sm1_data, }, { - .compatible = "amlogic,c3-clk-measure", - .data = &clk_msr_c3_data, + .compatible = "amlogic,meson8-clk-measure", + .data = &clk_msr_m8_data, }, { - .compatible = "amlogic,s4-clk-measure", - .data = &clk_msr_s4_data, + .compatible = "amlogic,meson8b-clk-measure", + .data = &clk_msr_m8_data, }, { - .compatible = "amlogic,a1-clk-measure", - .data = &clk_msr_a1_data, + .compatible = "amlogic,s4-clk-measure", + .data = &clk_msr_s4_data, }, { .compatible = "amlogic,t7-clk-measure", -- 2.42.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic