[PATCH 03/21] arm64: dts: allwinner: h616: add EMAC1 controller
James Hilliard <[email protected]> Sun, 02 Aug 2026 23:14:13 -0600
| Newsgroups | dev.linux.lists.linux-sunxi,dev.linux.lists.mfd,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
From: Richard Genoud <[email protected]> The H616 has a secondary EMAC controller that supports only RMII at 10/100 Mbps. It connects through PA0-PA9 to an EPHY in a companion AC200 or AC300 package. Add the EMAC1 controller and RMII pin group. Leave the controller disabled for boards to enable when the companion Ethernet hardware is present. Signed-off-by: Richard Genoud <[email protected]> Signed-off-by: James Hilliard <[email protected]> --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index 90fe56a1d3cd..6879f27c2b2b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -432,6 +432,14 @@ pwm5_pin: pwm5-pin { function = "pwm5"; }; + /omit-if-no-ref/ + rmii_emac1_pins: rmii-emac1-pins { + pins = "PA0", "PA1", "PA2", "PA3", "PA4", + "PA5", "PA6", "PA7", "PA8", "PA9"; + function = "emac1"; + drive-strength = <40>; + }; + /omit-if-no-ref/ spi0_pins: spi0-pins { pins = "PC0", "PC2", "PC4"; @@ -789,6 +797,28 @@ mdio0: mdio { }; }; + emac1: ethernet@5030000 { + compatible = "allwinner,sun50i-h616-emac1"; + reg = <0x05030000 0x10000>; + interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "macirq"; + clocks = <&ccu CLK_BUS_EMAC1>; + clock-names = "stmmaceth"; + resets = <&ccu RST_BUS_EMAC1>; + reset-names = "stmmaceth"; + syscon = <&syscon>; + pinctrl-names = "default"; + pinctrl-0 = <&rmii_emac1_pins>; + phy-mode = "rmii"; + status = "disabled"; + + mdio1: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gpadc: adc@5070000 { compatible = "allwinner,sun50i-h616-gpadc", "allwinner,sun20i-d1-gpadc"; -- 2.53.0