[PATCH 4/5] arm64: dts: allwinner: sun60i-a733: Add GMAC0 node
From: Alastair D'Silva
Date: Wed Nov 25 2026 - 08:07:07 EST
Boards using the Allwinner A733 SoC need the SoC-level GMAC0 controller,
MDIO bus, and PH0-PH15 RGMII pinmux nodes to enable wired Ethernet.
Disable internal bias pulls and use drive-strength = <20> on
gmac0_rgmii_pins to avoid distorting 125 MHz RGMII signaling.
Add gmac0, mdio0, and gmac0_rgmii_pins (disabled by default) to
sun60i-a733.dtsi.
Assisted-by: LLM
Signed-off-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
---
.../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
index f4fff495e234..d9f90d8de0de 100644
--- a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
@@ -164,6 +164,18 @@ mmc2_pins: mmc2-pins {
drive-strength = <30>;
bias-pull-up;
};
+
+ /omit-if-no-ref/
+ gmac0_rgmii_pins: gmac0-rgmii-pins {
+ pins = "PH0", "PH1", "PH2", "PH3",
+ "PH4", "PH5", "PH6", "PH7",
+ "PH8", "PH9", "PH10", "PH11",
+ "PH12", "PH13", "PH14", "PH15";
+ function = "gmac0";
+ allwinner,pinmux = <5>;
+ drive-strength = <20>;
+ bias-disable;
+ };
};
ccu: clock-controller@2002000 {
@@ -241,6 +253,35 @@ mmc2: mmc@4022000 {
status = "disabled";
};
+ gmac0: ethernet@4500000 {
+ compatible = "allwinner,sun60i-a733-gmac210",
+ "snps,dwmac-5.20";
+ reg = <0x04500000 0x8000>,
+ <0x04508000 0x100>;
+ interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "macirq", "eth_lpi",
+ "tx-queue-0", "rx-queue-0";
+ clocks = <&ccu CLK_BUS_GMAC0>,
+ <&ccu CLK_MBUS_GMAC0>,
+ <&ccu CLK_GMAC_PTP>;
+ clock-names = "stmmaceth", "mbus", "ptp_ref";
+ resets = <&ccu RST_BUS_GMAC0_AXI>,
+ <&ccu RST_BUS_GMAC0>;
+ reset-names = "stmmaceth", "ahb";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac0_rgmii_pins>;
+ status = "disabled";
+
+ mdio0: mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
r_ccu: clock-controller@7010000 {
compatible = "allwinner,sun60i-a733-r-ccu";
reg = <0x07010000 0x1000>;
--
2.53.0