[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250813063301.338851-3-jacky_chou@aspeedtech.com>
Date: Wed, 13 Aug 2025 14:32:59 +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>, Joel Stanley <joel@....id.au>, Andrew Jeffery
<andrew@...econstruct.com.au>
CC: Simon Horman <horms@...nel.org>, Heiner Kallweit <hkallweit1@...il.com>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>, Po-Yu
Chuang <ratbert@...aday-tech.com>, <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>, <bmc-sw2@...eedtech.com>
Subject: [net-next v2 2/4] ARM: dts: aspeed-g6: Add ethernet alise and update MAC compatible
For RGMII delay setting, the MAC0 and MAC1 use the SCU0x340 to configure
the RGMII delay. We use the ethernet alise to identify the index of MAC.
And add the new compatible for MAC0/1 and MAC2/3 to calculate the
RGMII delay with different delay unit.
Finally, the RGMII delay of AST2600 is configured in SCU region and add
the scu phandle for configuration.
Signed-off-by: Jacky Chou <jacky_chou@...eedtech.com>
---
arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi
index 8ed715bd53aa..6be17b18da46 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi
+++ b/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi
@@ -40,6 +40,10 @@ aliases {
mdio1 = &mdio1;
mdio2 = &mdio2;
mdio3 = &mdio3;
+ ethernet0 = &mac0;
+ ethernet1 = &mac1;
+ ethernet2 = &mac2;
+ ethernet3 = &mac3;
};
@@ -232,34 +236,46 @@ mdio3: mdio@...50018 {
};
mac0: ethernet@...60000 {
- compatible = "aspeed,ast2600-mac", "faraday,ftgmac100";
+ compatible = "aspeed,ast2600-mac01",
+ "aspeed,ast2600-mac",
+ "faraday,ftgmac100";
reg = <0x1e660000 0x180>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>;
+ scu = <&syscon>;
status = "disabled";
};
mac1: ethernet@...80000 {
- compatible = "aspeed,ast2600-mac", "faraday,ftgmac100";
+ compatible = "aspeed,ast2600-mac01",
+ "aspeed,ast2600-mac",
+ "faraday,ftgmac100";
reg = <0x1e680000 0x180>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>;
+ scu = <&syscon>;
status = "disabled";
};
mac2: ethernet@...70000 {
- compatible = "aspeed,ast2600-mac", "faraday,ftgmac100";
+ compatible = "aspeed,ast2600-mac23",
+ "aspeed,ast2600-mac",
+ "faraday,ftgmac100";
reg = <0x1e670000 0x180>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>;
+ scu = <&syscon>;
status = "disabled";
};
mac3: ethernet@...90000 {
- compatible = "aspeed,ast2600-mac", "faraday,ftgmac100";
+ compatible = "aspeed,ast2600-mac23",
+ "aspeed,ast2600-mac",
+ "faraday,ftgmac100";
reg = <0x1e690000 0x180>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&syscon ASPEED_CLK_GATE_MAC4CLK>;
+ scu = <&syscon>;
status = "disabled";
};
--
2.43.0
Powered by blists - more mailing lists