From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from twmbx01.aspeedtech.com (mail.aspeedtech.com [211.20.114.72]) (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 CBDB03BBFAD; Sun, 27 Sep 2026 07:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790493696; cv=none; b=VpuyphpBktfH9wV0fef4I4LsyoqNddvXFHYkjpIX8j2E8zYo8MCz2N3aVvgCYt0dvTg5SebP0ml+HEs9zbSAlKlI0aGHSXNUAiydnrMXSxf/RhyntNbvloWLMzdQOwLY/kKtt37sNmBk/cncbEZCJR04W3LgvEKw/949e3wX7p8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790493696; c=relaxed/simple; bh=U1WDcZC7qsYWQ4eJtn0pq/dQKkPUfjidP2jdkrhMwLU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=XMhYlIq29pN/A/JjMgGVjFPG/2NM99QPHfIdK1ca/O4k+DogWUSCgHtsvjN0+VBaW1eDmV3FYopT0SFF7DkXlUR9Tv8eXgVo0doIMinNpbrx3h957Wq0CPbNPJlBDiF3Vvs/L2/OROGmheMkX8TN57192hij04KwXAsZgVBwRO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com 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; Sun, 27 Sep 2026 15:16:21 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Sun, 27 Sep 2026 15:16:21 +0800 From: Jacky Chou Date: Sun, 27 Sep 2026 15:16:21 +0800 Subject: [PATCH 2/5] net: ftgmac100: Add AST2700 compatible support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260927-support_ast2700-v1-2-9f03f29d2c82@aspeedtech.com> References: <20260927-support_ast2700-v1-0-9f03f29d2c82@aspeedtech.com> In-Reply-To: <20260927-support_ast2700-v1-0-9f03f29d2c82@aspeedtech.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Po-Yu Chuang CC: , , , Jacky Chou X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790493380; l=1994; i=jacky_chou@aspeedtech.com; s=20251031; h=from:subject:message-id; bh=U1WDcZC7qsYWQ4eJtn0pq/dQKkPUfjidP2jdkrhMwLU=; b=AC/tmm6LUi+rOtWB7eqPpQ8a5PKLiv3wAr9TZYJBN6iu12kuCb2SMboQFdgM7guXDyDDNOwKF AXgh+6ga06gCVWzzlOzSNuEPimFHYqt+DX+kUS/Wt0YihyKmA4btxzl X-Developer-Key: i=jacky_chou@aspeedtech.com; a=ed25519; pk=8XBx7KFM1drEsfCXTH9QC2lbMlGU4XwJTA6Jt9Mabdo= Add match data for the Aspeed AST2700 FTGMAC100 controller and wire its compatible string into the OF match table. This lets AST2700 device tree nodes bind to the ftgmac100 driver. Signed-off-by: Jacky Chou --- drivers/net/ethernet/faraday/ftgmac100.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 6d2fe5c2f390..67b1fa464a42 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -37,7 +37,8 @@ enum ftgmac100_mac_id { FTGMAC100_FARADAY = 1, FTGMAC100_AST2400, FTGMAC100_AST2500, - FTGMAC100_AST2600 + FTGMAC100_AST2600, + FTGMAC100_AST2700 }; struct ftgmac100_match_data { @@ -2017,7 +2018,8 @@ static int ftgmac100_probe(struct platform_device *pdev) if (priv->mac_id == FTGMAC100_AST2400 || priv->mac_id == FTGMAC100_AST2500 || - priv->mac_id == FTGMAC100_AST2600) { + priv->mac_id == FTGMAC100_AST2600 || + priv->mac_id == FTGMAC100_AST2700) { priv->rxdes0_edorr_mask = BIT(30); priv->txdes0_edotr_mask = BIT(30); priv->is_aspeed = true; @@ -2131,6 +2133,10 @@ static const struct ftgmac100_match_data ftgmac100_match_data_ast2600 = { .mac_id = FTGMAC100_AST2600 }; +static const struct ftgmac100_match_data ftgmac100_match_data_ast2700 = { + .mac_id = FTGMAC100_AST2700 +}; + static const struct ftgmac100_match_data ftgmac100_match_data_faraday = { .mac_id = FTGMAC100_FARADAY }; @@ -2142,6 +2148,8 @@ static const struct of_device_id ftgmac100_of_match[] = { .data = &ftgmac100_match_data_ast2500 }, { .compatible = "aspeed,ast2600-mac", .data = &ftgmac100_match_data_ast2600 }, + { .compatible = "aspeed,ast2700-mac", + .data = &ftgmac100_match_data_ast2700 }, { .compatible = "faraday,ftgmac100", .data = &ftgmac100_match_data_faraday }, { } -- 2.34.1