[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251110-rgmii_delay_2600-v4-0-5cad32c766f7@aspeedtech.com>
Date: Mon, 10 Nov 2025 19:09:24 +0800
From: Jacky Chou <jacky_chou@...eedtech.com>
To: Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Rob Herring
<robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Po-Yu Chuang <ratbert@...aday-tech.com>, Joel Stanley
<joel@....id.au>, Andrew Jeffery <andrew@...econstruct.com.au>
CC: <netdev@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-aspeed@...ts.ozlabs.org>, <taoren@...a.com>, Jacky Chou
<jacky_chou@...eedtech.com>
Subject: [PATCH net-next v4 0/4] Add AST2600 RGMII delay into ftgmac100
This patch series adds support for configuring RGMII internal delays for the
Aspeed AST2600 FTGMAC100 Ethernet MACs. It introduces new compatible strings to
distinguish between MAC0/1 and MAC2/3, as their delay chains and configuration
units differ.
The device tree bindings are updated to restrict the allowed phy-mode and delay
properties for each MAC type. Corresponding changes are made to the device tree
source files and the FTGMAC100 driver to support the new delay configuration.
Summary of changes:
- dt-bindings: net: ftgmac100: Add conditional schema for AST2600 MAC0/1 and
MAC2/3.
- ARM: dts: aspeed-g6: Add aspeed,rgmii-delay-ps and aspeed,scu
properties.
- ARM: dts: aspeed-ast2600-evb: Add rx/tx-internal-delay-ps properties and
update phy-mode for MACs.
- net: ftgmac100: Add driver support for configuring RGMII delay for AST2600
MACs via SCU.
This enables precise RGMII timing configuration for AST2600-based platforms,
improving interoperability with various PHYs
To: Andrew Lunn <andrew+netdev@...n.ch>
To: David S. Miller <davem@...emloft.net>
To: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
To: Paolo Abeni <pabeni@...hat.com>
To: Rob Herring <robh@...nel.org>
To: Krzysztof Kozlowski <krzk+dt@...nel.org>
To: Conor Dooley <conor+dt@...nel.org>
To: Po-Yu Chuang <ratbert@...aday-tech.com>
To: Joel Stanley <joel@....id.au>
To: Andrew Jeffery <andrew@...econstruct.com.au>
Cc: netdev@...r.kernel.org
Cc: devicetree@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-aspeed@...ts.ozlabs.org
Cc: taoren@...a.com
Signed-off-by: Jacky Chou <jacky_chou@...eedtech.com>
---
Changes in v4:
- Remove the compatible "aspeed,ast2600-mac01" and
"aspeed,ast2600-mac23"
- Add new property to specify the RGMII delay step for each MACs
- Add default value of rx/tx-internal-delay-ps
- For legacy dts, a warning message reminds users to update phy-mode
- If lack rx/tx-internal-delay-ps, driver will use default value to
configure the RGMII delay
- Link to v3: https://lore.kernel.org/r/20251103-rgmii_delay_2600-v3-0-e2af2656f7d7@aspeedtech.com
Changes in v3:
- Add new item on compatible property for new compatible strings
- Remove the new compatible and scu handle of MAC from aspeed-g6.dtsi
- Add new compatible and scu handle to MAC node in
aspeed-ast2600-evb.dts
- Change all phy-mode of MACs to "rgmii-id"
- Keep "aspeed,ast2600-mac" compatible in ftgmac100.c and configure the
rgmii delay with "aspeed,ast2600-mac01" and "aspeed,ast2600-mac23"
- Link to v2: https://lore.kernel.org/r/20250813063301.338851-1-jacky_chou@aspeedtech.com
Changes in v2:
- added new compatible strings for MAC0/1 and MAC2/3
- updated device tree bindings to restrict phy-mode and delay properties
- refactored driver code to handle rgmii delay configuration
- Link to v1: https://lore.kernel.org/r/20250317025922.1526937-1-jacky_chou@aspeedtech.com
---
Jacky Chou (4):
dt-bindings: net: ftgmac100: Add delay properties for AST2600
ARM: dts: aspeed-g6: Add scu and rgmii delay value per step for MAC
ARM: dts: aspeed: ast2600-evb: Configure RGMII delay for MAC
net: ftgmac100: Add RGMII delay support for AST2600
.../devicetree/bindings/net/faraday,ftgmac100.yaml | 35 +++++
arch/arm/boot/dts/aspeed/aspeed-ast2600-evb.dts | 20 ++-
arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 8 ++
drivers/net/ethernet/faraday/ftgmac100.c | 148 +++++++++++++++++++++
drivers/net/ethernet/faraday/ftgmac100.h | 20 +++
5 files changed, 227 insertions(+), 4 deletions(-)
---
base-commit: a0c3aefb08cd81864b17c23c25b388dba90b9dad
change-id: 20251031-rgmii_delay_2600-a00b0248c7e6
Best regards,
--
Jacky Chou <jacky_chou@...eedtech.com>
Powered by blists - more mailing lists