From nobody Thu Apr 2 12:20:43 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 57AF8368977; Mon, 9 Mar 2026 07:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042846; cv=none; b=UGJAzxnHyQcnOWrg+VErXwUyNJvsrZEK5GkkjXcRnf9CvewOHwv6p9BX53zTE8gmU44oG0RjvSBmCJvc9qXiYJFewwhSjT2r2V3FH0Z3VdhBQ/vuZhkekr5Hk+JdLGO16q+WmxNOipZQTPcWPHW0SH3wHBhWNRatfmq0YxH3Ues= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042846; c=relaxed/simple; bh=PUMHJIQe9paGHdzwol89drFjlfxsC2i93u8l7eBbM/Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N3XD1DnmCgfG3UYWIvdslNi4oPfT68F4zDaC3axXlRmiNcGy1YdsbZwN6xQG8Jz6T6h507oOuHK39F+/Jf4xPUM6I39lsD6OLilMRBGe/MGo+qbknMGCNcbRrSNke8FNdOzbVP11u++k9LyMeZ35DV0mRvFHYY4/qclkAlEEFpU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=HZUftcI+; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="HZUftcI+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1773042845; x=1804578845; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PUMHJIQe9paGHdzwol89drFjlfxsC2i93u8l7eBbM/Y=; b=HZUftcI+5vDVM9nkHu8KVqTf62vP8BTiGmpMrndnE3Z5JaJpGK5rUxxn 0JWTe1XhevoZd62JAPbXBR+GlEK0SccTU4d8FDUCm8Vsey1bHDAOUm+vC A7YQzmCvp7X0YHpEABPOda9W5J9ZEwb9i3/z+BU+UyWTVtOyMKedRWGhW JeyzO/gmQBGs63Z6+Yog9JLLkOAOQ81vZXPyizP0v9vRW/Q+i6mLF0KVd KPt8ucNErKo4KMqCIlHP7+Z0zStR6x45vXE6T9h3+4/el8M1DGZVsFMDb jumMirfo+WshqaLIVe/5R0hfK/5cMqxeblhT+1R+vWGjkswnMNDnAEtWK g==; X-CSE-ConnectionGUID: u8JTaPxxQWWCViC89H2kCA== X-CSE-MsgGUID: fMAVD45cRNuJjk24eijUkg== X-IronPort-AV: E=Sophos;i="6.23,109,1770620400"; d="scan'208";a="54818268" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Mar 2026 00:53:57 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 9 Mar 2026 00:53:49 -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:45 -0700 From: Mihai Sain To: , , , , , , , , , , CC: , , , , , Mihai Sain Subject: [PATCH v3 1/4] clk: at91: sam9x7: Remove gmac peripheral clock with ID 67 Date: Mon, 9 Mar 2026 09:53:26 +0200 Message-ID: <20260309075329.1528-2-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" According with datasheet [1] table 12.1 the instance ID 67 is reserved. This change drops the gmactsu_clk entry from the SAM9X7 clock description table. [1]: https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/Produ= ctDocuments/DataSheets/SAM9X7-Series-Data-Sheet-DS60001813.pdf Signed-off-by: Mihai Sain --- drivers/clk/at91/sam9x7.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c index 89868a0aeaba..66aadebc51a4 100644 --- a/drivers/clk/at91/sam9x7.c +++ b/drivers/clk/at91/sam9x7.c @@ -420,7 +420,6 @@ static const struct { { .n =3D "lvdsc_clk", .id =3D 56, }, { .n =3D "pit64b1_clk", .id =3D 58, }, { .n =3D "puf_clk", .id =3D 59, }, - { .n =3D "gmactsu_clk", .id =3D 67, }, }; =20 /* --=20 2.53.0 From nobody Thu Apr 2 12:20:43 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 58AA4366817; Mon, 9 Mar 2026 07:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042871; cv=none; b=CW7RPpmSEIVbC7sDWrOpxG+TdH7Gf6JI18ynzv9GtSsFWAraszs3TgGLvnY4liQP31pVS22NY9wC/EjlRoz1W4V8Bzgv3FO51QXwvNUyXY3FQAK/VDmFlhVW4oJxcKvFzhIsx+4siwX6mzvlFe+DJQmFzLAtrkMkxKYd+n1Tknw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042871; c=relaxed/simple; bh=WF17STSmbvctX89fLvoNysQ2fmO08+e+Vz1+yaw54WQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=B+qykgxfOAkemKHiElCfgnh8t5BHD4C30ts6TTm/T2f1VMZ1qVZMg2XC2v9MxSiueSDU74BA8oQPO10ezWTI7/Nz35yuoIGBM8qxFLBepRSpA3a6WOdxu/Hsv2F1sdysAhrKfr6iXbIIW63AMqH+feZcauW/58GJZC54c1CTQv0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=nzqCPAjT; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="nzqCPAjT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1773042870; x=1804578870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WF17STSmbvctX89fLvoNysQ2fmO08+e+Vz1+yaw54WQ=; b=nzqCPAjTkeab83vVlUAonQYDezCQstRpjLpVuNdN41fNT1rBC7W+XbpK YoXcpfy2kEKabAyzlwmtFQo4FvuTF/KwEO/5EF1aNWMtqGBrtARvyq1on pPK5zm7h92dMSSA99UCfsM1iag8eOgrpENS8sR8/zmdezDZ1S/IGTO1Ey ZCyU6C4zAWSvPcRiWfQbX09Z/wmFO+Se/INIk17FAxOBivgtDhawT3uC6 FE0LCQMOBso38XcDtqSs8vHjkjBYQLv/WSyLSh/3M/rVuU7za4Ot4n96U 3Rf21sbvSR66yL3PtHGDXNB2cTHSQAUf7hsJAqB0/Rbhr2XSQo3vE9fDW w==; X-CSE-ConnectionGUID: MQLX6i0wSQyzKKrNx9vzaw== X-CSE-MsgGUID: a1zaP8o4T+mQSEDjrmPJpA== X-IronPort-AV: E=Sophos;i="6.23,109,1770620400"; d="scan'208";a="285774736" 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:53 -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:49 -0700 From: Mihai Sain To: , , , , , , , , , , CC: , , , , , Mihai Sain Subject: [PATCH v3 2/4] clk: at91: sam9x7: Rename macb0_clk to gmac_clk Date: Mon, 9 Mar 2026 09:53:27 +0200 Message-ID: <20260309075329.1528-3-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update the peripheral clock name for ID 24 from macb0_clk to gmac_clk to match the actual GMAC hardware block present on SAM9X7 SoCs. This aligns the clock naming with the device tree and avoids confusion with legacy MACB controllers. Signed-off-by: Mihai Sain --- drivers/clk/at91/sam9x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c index 66aadebc51a4..32c082b4ca4b 100644 --- a/drivers/clk/at91/sam9x7.c +++ b/drivers/clk/at91/sam9x7.c @@ -387,7 +387,7 @@ static const struct { { .n =3D "dma0_clk", .id =3D 20, }, { .n =3D "uhphs_clk", .id =3D 22, }, { .n =3D "udphs_clk", .id =3D 23, }, - { .n =3D "macb0_clk", .id =3D 24, }, + { .n =3D "gmac_clk", .id =3D 24, }, { .n =3D "lcd_clk", .id =3D 25, }, { .n =3D "sdmmc1_clk", .id =3D 26, }, { .n =3D "ssc_clk", .id =3D 28, }, --=20 2.53.0 From nobody Thu Apr 2 12:20:43 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 AC3B0364924; Mon, 9 Mar 2026 07:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042873; cv=none; b=cJBiyiOCNAZoDEljPNuVKF3S2rFFP+onYTrAC1w0ac4IwH0OFAhj0jZjUvI3N7cOPMohWi/8VPbTKDGLYuyslsF27ni/IhCzU4DnZnsFDgodVqgnCJvagtNEnGYndskU+f+SGITbD1/H26Riy0MavCaQ3k3MNFHONh0cV8gGN6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042873; c=relaxed/simple; bh=AZMbzgF0MBXEM33A7JxLatOxJLBIUtQdFwEpG1uKRco=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C/CiGFDlcc2FXWL/2Fl/9wY/L4tydfbwXTJSrEslvv2Fd7FhmpM4gAPW662zuC+FAZ1mTHaGyLg56TvMmAJFQVcWT2WxecLbe+UE6vD3VeHvnHYSLBTQCHBrxtni/R3BSfn8wh0Rxl9eZHcitofbYAUt14RzJ38A2ftYM3iRlac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=RmkheJAq; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="RmkheJAq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1773042871; x=1804578871; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AZMbzgF0MBXEM33A7JxLatOxJLBIUtQdFwEpG1uKRco=; b=RmkheJAqrRsc0NJur3H9Ai/m0+UdHBFaSumXLiJyKgQ5gNb/jrlkxpn1 z0A3yGIIc+w6KVuZBI0gx0J1zlZRYHyhSIwgEvLSjvHeonTsb6npIkhrR l/CyoVKqZN7RCved/gD+NoB9LwAdXqrKERooV9ghIMsl7YL6HmhvRNET7 Nuk9hiBk8iVCF4hmJ+23eV1xytMFDAGcvcfD9VoSv5KBgZxAM4ZriEstG 4kXDRd5cdZJCSJ2H4efvPvQ+ac0H+5rx+RfF8kxI5VPkPfQDFBwBWQneU ROyQEg955KeyTEsk8yFUMmTIIMol7b/7hs88Fz8EZ6W+1a69zSvPU4xKT Q==; 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Produ= ctDocuments/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 =3D INT_MIN, }, =20 + { + .n =3D "gmac_gclk", + .id =3D 24, + .pp =3D { "audiopll_divpmcck", "plla_div2pmcck", }, + .pp_mux_table =3D { 6, 8, }, + .pp_count =3D 2, + .pp_chg_id =3D INT_MIN, + }, + { .n =3D "lcd_gclk", .id =3D 25, @@ -701,15 +710,6 @@ static const struct { .pp_count =3D 1, .pp_chg_id =3D INT_MIN, }, - - { - .n =3D "gmac_gclk", - .id =3D 67, - .pp =3D { "audiopll_divpmcck", "plla_div2pmcck", }, - .pp_mux_table =3D { 6, 8, }, - .pp_count =3D 2, - .pp_chg_id =3D INT_MIN, - }, }; =20 static void __init sam9x7_pmc_setup(struct device_node *np) --=20 2.53.0 From nobody Thu Apr 2 12:20:43 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 B5D3D36AB70; Mon, 9 Mar 2026 07:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042874; cv=none; b=PWiyRyylNRlqv9B6RcWRPvxbP3NGJXAfZ1GlbdTmbS0cz2a+adMOmXMrYIymy9Dw3W1l/L4JTwcFlttQaUZy96+Hn635xOlifV3eKem4OId0Qzp7ZmCf60cLJIDqQpRQ107HneBDsCC7PzOrzlx1lUEfc44L7wxH0pExTS8h4xo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042874; c=relaxed/simple; bh=HJY0wdSVelljhVy5XonzAMfl6FFec1mLbXSyxYUN/sQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PuoYi86wi1iMnwhfigtUENbbyZCpAbtfnam1yYUMNb76u+heLmrG/roBQ6rPqM9OLRd4OkCVdFXANxSHYeWpt4xIg4di39vtXbWIgRRE34MVotWTpj53omAepnhx+1/A3Z66Z9A98s9DJbLt8I5dbiwyZoSRVoYXw7ATKTlJPkg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=lA1xQawW; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="lA1xQawW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1773042872; x=1804578872; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HJY0wdSVelljhVy5XonzAMfl6FFec1mLbXSyxYUN/sQ=; b=lA1xQawWY4/K7YZQrDpYJ+ejgmUzidmtLRRkdUyXGFjJeAist2WVT0k9 H4LJpehJtn8NOmVucDX6dEqMxnkWmfrJNJv62unuXPr2JOLooXvqkoSLk /VmMA5IeA9+MeZxIufF8LJ6gnACpGmk9ABsP+od6otsNQkQnfmK3bzVA6 MRi/E6N8brcDx0fPVrq3oyie8kMpjx6pGnSwQp4vus8I+0kw7kNIr8TqH a+8TMxwUsrOWioi2y9AC1smU6nwgxQWXo8SQUlm8+UqtQEkPOhccrrISu 6dvBKWyCQNTsWcaCrrCBNhkmACS2V3vCcEMK45ItouQ/g1aM3/zhfth6L w==; X-CSE-ConnectionGUID: tohcI+xlTFuZY9DEYkPeaw== X-CSE-MsgGUID: 25hFYKZgQha65hgLEmT5QA== X-IronPort-AV: E=Sophos;i="6.23,109,1770620400"; d="scan'208";a="221659646" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Mar 2026 00:54:32 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 9 Mar 2026 00:54:01 -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:57 -0700 From: Mihai Sain To: , , , , , , , , , , CC: , , , , , Mihai Sain Subject: [PATCH v3 4/4] ARM: dts: microchip: sam9x7: fix GMAC clock configuration Date: Mon, 9 Mar 2026 09:53:29 +0200 Message-ID: <20260309075329.1528-5-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The GMAC node incorrectly listed four clocks, including a separate tx_clk and a TSU GCK clock sourced from ID 67. According to the SAM9X7 clocking scheme, the GMAC uses only three clocks: HCLK, PCLK, and the TSU GCK derived from the GMAC peripheral clock (ID 24). This patch removes the unused tx_clk, updates the clock-names accordingly, and corrects the assigned clock to use GCK 24 instead of GCK 67. This aligns the device tree with the actual hardware clock topology and prevents misconfiguration of the GMAC clock tree. [root@SAM9X75 ~]$ cat /sys/kernel/debug/clk/clk_summary | grep gmac gmac_gclk 1 1 1 266666666 0 0 50000= Y f802c000.ethernet tsu_clk = f802c000.ethernet tsu_clk gmac_clk 2 2 0 266666666 0 0 50000= Y f802c000.ethernet hclk = f802c000.ethernet pclk Fixes: 41af45af8bc3 ("ARM: dts: at91: sam9x7: add device tree for SoC") Signed-off-by: Mihai Sain --- arch/arm/boot/dts/microchip/sam9x7.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/microchip/sam9x7.dtsi b/arch/arm/boot/dts/mi= crochip/sam9x7.dtsi index 46dacbbd201d..a42716e18da3 100644 --- a/arch/arm/boot/dts/microchip/sam9x7.dtsi +++ b/arch/arm/boot/dts/microchip/sam9x7.dtsi @@ -990,9 +990,9 @@ gmac: ethernet@f802c000 { <62 IRQ_TYPE_LEVEL_HIGH 3>, /* Queue 3 */ <63 IRQ_TYPE_LEVEL_HIGH 3>, /* Queue 4 */ <64 IRQ_TYPE_LEVEL_HIGH 3>; /* Queue 5 */ - clocks =3D <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>= , <&pmc PMC_TYPE_GCK 24>, <&pmc PMC_TYPE_GCK 67>; - clock-names =3D "hclk", "pclk", "tx_clk", "tsu_clk"; - assigned-clocks =3D <&pmc PMC_TYPE_GCK 67>; + clocks =3D <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>= , <&pmc PMC_TYPE_GCK 24>; + clock-names =3D "hclk", "pclk", "tsu_clk"; + assigned-clocks =3D <&pmc PMC_TYPE_GCK 24>; assigned-clock-rates =3D <266666666>; status =3D "disabled"; }; --=20 2.53.0