mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Jacky Chou <jacky_chou@aspeedtech.com>
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>
Subject: Re: 回覆: [PATCH net-next v2 1/6] dt-bindings: net: ftgmac100: Add AST2700 compatible
Date: Tue, 13 Oct 2026 17:22:41 +0100	[thread overview]
Message-ID: <20261013-subwoofer-zestfully-fe98c6158ba9@spud> (raw)
In-Reply-To: <SEYPR06MB51346A6CB5D7D7FC6D3FC4DD9D9E2@SEYPR06MB5134.apcprd06.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

On Tue, Oct 13, 2026 at 05:23:21AM +0000, Jacky Chou wrote:
> Hi Conor,
> 
> Thank you for your reply.
> 
> > > 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?
> > 
> > Sounds like no, can the submitter please clarify if the fallback is valid?
> > 
> 
> Agreed. I think the 'aspeed,ast2700-mac' should not be based on the 'faraday,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?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-10-13 16:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06  7:20 [PATCH net-next v2 0/6] net: ftgmac100: Add AST2700 support Jacky Chou
2026-10-06  7:20 ` [PATCH net-next v2 1/6] dt-bindings: net: ftgmac100: Add AST2700 compatible Jacky Chou
2026-10-10  7:58   ` netdev-bot+sashiko
2026-10-12 18:17     ` Conor Dooley
2026-10-13  5:23       ` 回覆: " Jacky Chou
2026-10-13 16:22         ` Conor Dooley [this message]
2026-10-14  2:49           ` 回覆: " Jacky Chou
2026-10-14 10:13             ` Conor Dooley
2026-10-14 10:24               ` 回覆: " Jacky Chou
2026-10-14 16:44                 ` Conor Dooley
2026-10-15  1:56                   ` 回覆: " Jacky Chou
2026-10-06  7:20 ` [PATCH net-next v2 2/6] net: ftgmac100: Add AST2700 compatible support Jacky Chou
2026-10-06 16:22   ` Andrew Lunn
2026-10-10  7:58   ` netdev-bot+sashiko
2026-10-06  7:20 ` [PATCH net-next v2 3/6] net: ftgmac100: Enable AST2700 RMII support Jacky Chou
2026-10-06 16:31   ` Andrew Lunn
2026-10-08  5:39     ` 回覆: " Jacky Chou
2026-10-08 12:00       ` Andrew Lunn
2026-10-08 12:10         ` 回覆: " Jacky Chou
2026-10-10  7:58   ` netdev-bot+sashiko
2026-10-06  7:20 ` [PATCH net-next v2 4/6] net: ftgmac100: Require phy-mode for AST2700 Jacky Chou
2026-10-06 16:21   ` Andrew Lunn
2026-10-08  5:20     ` 回覆: " Jacky Chou
2026-10-10  7:58   ` netdev-bot+sashiko
2026-10-06  7:20 ` [PATCH net-next v2 5/6] net: ftgmac100: Add AST2700 upper DMA address support Jacky Chou
2026-10-10  7:58   ` netdev-bot+sashiko
2026-10-06  7:20 ` [PATCH net-next v2 6/6] net: ftgmac100: Allow building on ARM64 Jacky Chou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261013-subwoofer-zestfully-fe98c6158ba9@spud \
    --to=conor@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=jacky_chou@aspeedtech.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ratbert@faraday-tech.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®