[PATCH v2 6/7] arm64: dts: allwinner: sun60i-a733: Add GMAC0 node

Alastair D'Silva alastair at d-silva.org
Sun Nov 29 17:30:01 PST 2026


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.

Include the ahb-msi-lite0 and mbus-msi-lite0 clocks so the shared
MSI-Lite0 bus fabric stays enabled while GMAC0 is active.

Add gmac0, mdio0, and gmac0_rgmii_pins (disabled by default) to
sun60i-a733.dtsi.

Assisted-by: LLM
Signed-off-by: Alastair D'Silva <alastair at d-silva.org>
---
 .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
index e062b08006da..513f30ef1e09 100644
--- a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
@@ -197,6 +197,18 @@ mmc2_pins: mmc2-pins {
 				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;
+			};
+
 			uart0_pb_pins: uart0-pb-pins {
 				pins = "PB9", "PB10";
 				function = "uart0";
@@ -546,6 +558,38 @@ mmc2: mmc at 4022000 {
 			status = "disabled";
 		};
 
+		gmac0: ethernet at 4500000 {
+			compatible = "allwinner,sun60i-a733-gmac210",
+				     "snps,dwmac-5.20";
+			reg = <0x04500000 0x8000>,
+			      <0x04508000 0x100>;
+			interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH 0>;
+			interrupt-names = "macirq", "eth_lpi",
+					  "tx-queue-0", "rx-queue-0";
+			clocks = <&ccu CLK_BUS_GMAC0>,
+				 <&ccu CLK_MBUS_GMAC0>,
+				 <&ccu CLK_GMAC_PTP>,
+				 <&ccu CLK_AHB_MSI_LITE0>,
+				 <&ccu CLK_MBUS_MSI_LITE0>;
+			clock-names = "stmmaceth", "mbus", "ptp_ref",
+				      "ahb-msi-lite0", "mbus-msi-lite0";
+			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 at 7010000 {
 			compatible = "allwinner,sun60i-a733-r-ccu";
 			reg = <0x07010000 0x250>;
-- 
2.53.0




More information about the linux-arm-kernel mailing list