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 F4168C3DA6D for ; Tue, 20 May 2025 09:42:26 +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: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:In-Reply-To:References:List-Owner; bh=gLHXrGEydNLQezPDQp5GUWXDrkfxB1GnR6UV1efx7Nw=; b=yRgRJIJ5cwLSKk/rEVthL2swpJ JKXY0sw1VLaXK48bmHR8145QnV3MeZxN/ISb+MbjDq/LYhJ+BSJkT1oeuSu5t6fR7qeDLGjAtwLTh EOtk6wyba9OTZ92xL+hEbFlyBiNycCurbs73REVBdgqkOTY/HWeykA4okbnNKb/NDYSRwPLIohRiQ ZNlfxRyyC9V4YTeklgs1FEgesbp4wsU+CtWWV0a8KZGeNiEAhYKJlZIgyDO74OU3G6kZ0vjM9w2nV WS6M9LnXmwU9yG6TMJk1jv2m3BiIeVXaI0iOGWyRBej9dJ+3zkKVSmN0lljhM5A7xQBQ8CZnxRhBq +SdRZ22Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uHJUJ-0000000CEFI-0rIk; Tue, 20 May 2025 09:42:19 +0000 Received: from mail.aspeedtech.com ([211.20.114.72] helo=TWMBX01.aspeed.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uHJHR-0000000CC6K-01EL for linux-arm-kernel@lists.infradead.org; Tue, 20 May 2025 09:29:03 +0000 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 20 May 2025 17:28:48 +0800 Received: from mail.aspeedtech.com (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Tue, 20 May 2025 17:28:48 +0800 From: Jacky Chou To: , , , CC: , , , , , , , , , , , , , , , Subject: [net 0/4] net: ftgmac100: Add SoC reset support for RMII mode Date: Tue, 20 May 2025 17:28:44 +0800 Message-ID: <20250520092848.531070-1-jacky_chou@aspeedtech.com> X-Mailer: git-send-email 2.34.1 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-20250520_022901_046242_A2F9D075 X-CRM114-Status: GOOD ( 11.09 ) 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 This patch series adds support for an optional reset line to the ftgmac100 ethernet controller, as used on Aspeed SoCs. On these SoCs, the internal MAC reset is not sufficient to reset the RMII interface. By providing a SoC-level reset via the device tree "resets" property, the driver can properly reset both the MAC and RMII logic, ensuring correct operation in RMII mode. The series includes: - Device tree binding update to document the new "resets" property. - Addition of MAC1 and MAC2 reset definitions for AST2600. - Device tree changes for AST2600 to use the new reset properties. - Driver changes to assert/deassert the reset line as needed. This improves reliability and initialization of the MAC in RMII mode on Aspeed platforms. Jacky Chou (4): dt-bindings: net: ftgmac100: Add resets property dt-bindings: clock: ast2600: Add reset definitions for MAC1 and MAC2 ARM: dts: aspeed-g6: Add resets property for MAC controllers net: ftgmac100: Add optional reset control for RMII mode on Aspeed SoCs .../bindings/net/faraday,ftgmac100.yaml | 5 ++++ arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 4 +++ drivers/net/ethernet/faraday/ftgmac100.c | 26 +++++++++++++++++++ include/dt-bindings/clock/ast2600-clock.h | 2 ++ 4 files changed, 37 insertions(+) -- 2.34.1