[net-next v2 2/4] ARM: dts: aspeed-g6: Add ethernet alise and update MAC compatible
Jacky Chou
jacky_chou at aspeedtech.com
Wed Aug 13 16:32:59 AEST 2025
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 at aspeedtech.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 at 1e650018 {
};
mac0: ethernet at 1e660000 {
- 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 at 1e680000 {
- 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 at 1e670000 {
- 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 at 1e690000 {
- 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
More information about the Linux-aspeed
mailing list