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 0DAC7EF36F8 for ; Mon, 9 Mar 2026 07:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hQm9jcEwujfDP/r2VsLZuPkANiGiZWW7WGKpv7TdzNM=; b=lr13rCfTLmEBaeknfqgbA9WgIc E/JkLwqJ2+xt0bVSv41rVhb3Ibnk1t3wBm1sYRphQA+GrhDMyWSh9bgvhro7D6T2t+YznysPdJk6L awVqjAqLKWgPABK6oDs/6HMlFH6+FDbhzf7V+iTGFYJN7oqa2RKpIayKqoKXPyBtIibiTCfHWQQo1 TlbXSBOFcde3GZl4HZrGWisoDNehnh1Zf7i0zxFjBawCoRCwlGRSOngYGYMKwgRa8oxKqaWdaW7iq coNciLFGQKXOQMaXQ6TOXKaw6fcsgZvP+eLtoMHcHPyJ/XjCKmaEw1s+SoMyR5uQClZG2INnc72Ze kUYsOBQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vzVRn-00000006qRd-0wIN; Mon, 09 Mar 2026 07:54:39 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vzVRa-00000006qMG-3LBe for linux-arm-kernel@lists.infradead.org; Mon, 09 Mar 2026 07:54:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1773042866; x=1804578866; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AZMbzgF0MBXEM33A7JxLatOxJLBIUtQdFwEpG1uKRco=; b=CsK4GquyGFJ/esDt7jhyEzffYIN89SgYn1uzVP17orgxmIyLux80qlJd ICeBELWwqr3m7q6S989/6PAg186FGrz945Rp2cyON1GQbm0qc0cq/GQAB 42jgRU3oouhg5qpm2PYRbnc1CWl4AayjVQObnFf1ncqjDjJ14brH6Va2N iCMcZ7ujGu03rgwpJfQ3UzbfVT1Bq2oB/f7qcUHLWUDoHDAfWYLDRNJTN WH/spH59OpJsPr99OLmxR0353TRCbAdn3g9iVtqjlul3uOBlibiZdlLrH WC0SDF5EfgSys1zUmDhYd0xaGJy1xmLCHd2B28HZDv9XpFzoY2t3PTl3d g==; X-CSE-ConnectionGUID: MQLX6i0wSQyzKKrNx9vzaw== X-CSE-MsgGUID: SWH6g15HTyq5Bcl91ONhQw== X-IronPort-AV: E=Sophos;i="6.23,109,1770620400"; d="scan'208";a="285774737" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2026 00:54:24 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex2.mchp-main.com (10.10.87.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.35; Mon, 9 Mar 2026 00:53:57 -0700 Received: from archlinux.mchp-main.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 9 Mar 2026 00:53:53 -0700 From: Mihai Sain To: , , , , , , , , , , CC: , , , , , Mihai Sain Subject: [PATCH v3 3/4] clk: at91: sam9x7: Fix gmac_gclk clock definition Date: Mon, 9 Mar 2026 09:53:28 +0200 Message-ID: <20260309075329.1528-4-mihai.sain@microchip.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260309075329.1528-1-mihai.sain@microchip.com> References: <20260309075329.1528-1-mihai.sain@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260309_005426_838013_005928E4 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org According with datasheet [1] table 12.1 the instance ID 24 is used for gmac generic clock. This patch adds the correct gmac_gclk entry at ID 24, aligned with the SoC clock layout, and removes the old misplaced 67 entry. [1]: https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/DataSheets/SAM9X75-SIP-Series-Data-Sheet-DS60001827.pdf Fixes: 33013b43e271 ("clk: at91: sam9x7: add sam9x7 pmc driver") Signed-off-by: Mihai Sain --- drivers/clk/at91/sam9x7.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c index 32c082b4ca4b..8b52da194849 100644 --- a/drivers/clk/at91/sam9x7.c +++ b/drivers/clk/at91/sam9x7.c @@ -568,6 +568,15 @@ static const struct { .pp_chg_id = INT_MIN, }, + { + .n = "gmac_gclk", + .id = 24, + .pp = { "audiopll_divpmcck", "plla_div2pmcck", }, + .pp_mux_table = { 6, 8, }, + .pp_count = 2, + .pp_chg_id = INT_MIN, + }, + { .n = "lcd_gclk", .id = 25, @@ -701,15 +710,6 @@ static const struct { .pp_count = 1, .pp_chg_id = INT_MIN, }, - - { - .n = "gmac_gclk", - .id = 67, - .pp = { "audiopll_divpmcck", "plla_div2pmcck", }, - .pp_mux_table = { 6, 8, }, - .pp_count = 2, - .pp_chg_id = INT_MIN, - }, }; static void __init sam9x7_pmc_setup(struct device_node *np) -- 2.53.0