🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2900

Re: 回覆: [PATCH net-next v2 1/6] dt-bindings: net: ftgmac100: Add AST2700 compatible

#2900
From: Conor Dooley
Date: Tue, 13 Oct 2026 16:22
87 lines
9469 bytes
--04Khn4zl3vmOXjoL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 13, 2026 at 05:23:21AM +0000, Jacky Chou wrote:
> Hi Conor,
>=20
> Thank you for your reply.
>=20
> > > dt-bindings: net: ftgmac100: Add AST2700 compatible
> > >
> > > This adds aspeed,ast2700-mac to the FTGMAC100 compatible list, which
> > > requires the faraday,ftgmac100 fallback. It also updates the RMII RCLK
> > > clock description to include AST2700, and allows the resets property
> > > for
> > > AST2700 in the same way as for AST2600.
> > >
> > > > diff --git
> > > > a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> > > > b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> > > > index d14410018bcf6..bee9570a6f63f 100644
> > > > --- a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> > > > +++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> > > > @@ -18,6 +18,7 @@ properties:
> > > >                - aspeed,ast2400-mac
> > > >                - aspeed,ast2500-mac
> > > >                - aspeed,ast2600-mac
> > > > +              - aspeed,ast2700-mac
> > > >            - const: faraday,ftgmac100
> > >
> > > [Severity: Low]
> > > With this patch, "aspeed,ast2700-mac", "faraday,ftgmac100" becomes a
> > > valid compatible pair. However, at this commit, ftgmac100_of_match[]
> > > in drivers/net/ethernet/faraday/ftgmac100.c has no aspeed,ast2700-mac
> > entry.
> > > Such a node could only bind through the generic faraday,ftgmac100
> > > entry (FTGMAC100_FARADAY).
> > >
> > > On that path, ftgmac100_probe() would do the following:
> > >
> > >   - program the ring-end bits at BIT(15) instead of the Aspeed BIT(30)
> > >   - leave is_aspeed false, so ftgmac100_setup_clk() never claims
> > >     MACCLK/RCLK
> > >   - register the embedded MDIO bus through ftgmac100_setup_mdio()
> > >   - never set a DMA mask wider than 32 bits
> > >
> > > Would an AST2700 node work correctly if it fell back to the Faraday
> > > match?
> >=20
> > Sounds like no, can the submitter please clarify if the fallback is val=
id?
> >=20
>=20
> Agreed. I think the 'aspeed,ast2700-mac' should not be based on the 'fara=
day,ftgmac100'.
> Maybe the dt-bindings put ast2700-mac as a const like:
> ```
> ...
> properties:
>   compatible:
>     oneOf:
>       - const: faraday,ftgmac100
>       - const: aspeed,ast2700-mac             // as a const
>       - items:
>           - enum:
>               - aspeed,ast2400-mac
>               - aspeed,ast2500-mac
>               - aspeed,ast2600-mac
>           - const: faraday,ftgmac100

Looks good. I am curious whether the existing fallbacks used with other
aspeed devices are also inaccurate? Could be worth looking into?

--04Khn4zl3vmOXjoL
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCas5a0QAKCRB4tDGHoIJi
0o+LAP9JUwd35G4Tddq1MXi0RiDXQvzTdxhiFYm4I4c91blSHwD+N66kE3iFrYOh
sDgkxcrp8cn1htDbzr1Dve3Jh1FYqA0=
=nq6T
-----END PGP SIGNATURE-----

--04Khn4zl3vmOXjoL--
Technical Details
Message-ID: <20261013-subwoofer-zestfully-fe98c6158ba9@spud>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345729-linux-kernel-netdev=dewy.ru
References: <20261006-support_ast2700-v2-1-36de51fb8066@aspeedtech.com> <179161911824.434549.4075299707625994950@kernel.org> <20261012-aide-wimp-4edf96aaca1d@spud> <SEYPR06MB51346A6CB5D7D7FC6D3FC4DD9D9E2@SEYPR06MB5134.apcprd06.prod.outlook.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345729-linux-kernel-netdev=dewy.ru
From: conor@kernel.org (Conor Dooley)
Newsgroups: linux.kernel.netdev
Subject: Re: 回覆: [PATCH net-next v2 1/6]
 dt-bindings: net: ftgmac100: Add AST2700 compatible
Date: Tue, 13 Oct 2026 17:22:41 +0100
Organization: Usenet Network
Message-ID: <20261013-subwoofer-zestfully-fe98c6158ba9@spud>
References: <20261006-support_ast2700-v2-1-36de51fb8066@aspeedtech.com>
 <179161911824.434549.4075299707625994950@kernel.org>
 <20261012-aide-wimp-4edf96aaca1d@spud>
 <SEYPR06MB51346A6CB5D7D7FC6D3FC4DD9D9E2@SEYPR06MB5134.apcprd06.prod.outlook.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="04Khn4zl3vmOXjoL"
Injection-Info: usenet.network;
	logging-data="2142778"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CwePklnWq9jkSlfYymb/Gi/0k90= sha256:H3me2Ub2yaEZdV47Odh9wELy5AHz7YEPqrrpbJDo1to=
	sha1:E32EKfrvA1tfwjC0bfCT3cMMBYw= sha256:dG2rUQFYuUM4sB05WofWpqxErAoskrVdOJnX47avHjY=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 3567F10FEF1; Tue, 13 Oct 2026 23:08:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.54
X-Spam-Status: No, score=-2.54 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DEl8Vzj4PF2Z;
	Tue, 13 Oct 2026 23:08:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345729-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6155D10FEB2; Tue, 13 Oct 2026 23:08:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id BA9C5E397B; Tue, 13 Oct 2026 16:22:48 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ACFC51A14C;
	Tue, 13 Oct 2026 16:22:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VqiS6SNv"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(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 2011F502D55;
	Tue, 13 Oct 2026 16:22:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791908568; cv=none; b=F8aswQQ3DTipp9Z71Ne/7YH9mNVAmjIfqP1tKReFu1/44LZOutPfy7naifNECcASQ18rwvJYWh17SDfznXqatPDCDrnB30mjsT8wTivtUm9H1W/JRxS3F6lDm/jOuJOSymLOwK2gkqWi9uu+etqOV7xcp5KaHcCbN15LVgfy/Hw=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791908568; c=relaxed/simple;
	bh=zRJxuOVYQTNcPnPYqTgvUfVbxqZCkxhjzqBFG3X+/3U=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=klulxQG2DmaGB6lXuZlZ2eopPR1sNxW2CNLYe9Jgfk0fsiaGJMo73U3rgES0kNUDD8xc4NDAfDcVsVL6PWaetR1AbI1bx1h+XurVFEAbqIEUZk7j7gOUaalFwBphOvG/N457351gC+A7q1cb1tgSP+TdgSmQeEPtoxi2F8gjoG4=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VqiS6SNv; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1D241F000FF;
	Tue, 13 Oct 2026 16:22:43 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791908566;
	bh=RruG4ycM1RDlyZhr3aFgF7U9rGlonUOm6YZBye8aWoI=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=VqiS6SNvYr81gHOz6sWd2drWdeahWpXx+WTjJV0a29MnSmc5QfS18A11p4u9/cXYG
	 LwDngovM0JtfEmzBtUOPyrQkTi2ljMEnbDi8MWrjaAdpbdEUgIt64XI/FAzoj4LqRP
	 OM8BErFC2nmF/IuLTUNNC6vkQIw8ugK2adjIVy8i7sBPWb9q3ZoDIa2j7rlVpuywDa
	 9OEIUh7J7avXvu94kI4jT3N1IujK8d5X/Kf2lqmsyW2RDNKxWvBY0V0r+/8BwiOzm2
	 b+kanaTWOrAHFT6Ap8x07uLp965j6i6+hHT4CTceliJRGMp1HwzMOfupEq7iD6Wqwn
	 vP8lIQiNficaw==
X-Cc: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>,
	"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"ratbert@faraday-tech.com" <ratbert@faraday-tech.com>,
	"edumazet@kernel.org" <edumazet@kernel.org>,
	"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
	"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <SEYPR06MB51346A6CB5D7D7FC6D3FC4DD9D9E2@SEYPR06MB5134.apcprd06.prod.outlook.com>