Skip to content

Commit e53f67e

Browse files
montjoiemripard
authored andcommitted
arm64: allwinner: sun50i-a64: add dwmac-sun8i Ethernet driver
The dwmac-sun8i is an Ethernet MAC that supports 10/100/1000 Mbit connections. It is very similar to the device found in the Allwinner H3, but lacks the internal 100 Mbit PHY and its associated control bits. This adds the necessary bits to the Allwinner A64 SoC .dtsi, but keeps it disabled at this level. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 79b9536 commit e53f67e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,21 @@
310310
bias-pull-up;
311311
};
312312

313+
rmii_pins: rmii_pins {
314+
pins = "PD10", "PD11", "PD13", "PD14", "PD17",
315+
"PD18", "PD19", "PD20", "PD22", "PD23";
316+
function = "emac";
317+
drive-strength = <40>;
318+
};
319+
320+
rgmii_pins: rgmii_pins {
321+
pins = "PD8", "PD9", "PD10", "PD11", "PD12",
322+
"PD13", "PD15", "PD16", "PD17", "PD18",
323+
"PD19", "PD20", "PD21", "PD22", "PD23";
324+
function = "emac";
325+
drive-strength = <40>;
326+
};
327+
313328
uart0_pins_a: uart0@0 {
314329
pins = "PB8", "PB9";
315330
function = "uart0";
@@ -434,6 +449,26 @@
434449
#size-cells = <0>;
435450
};
436451

452+
emac: ethernet@1c30000 {
453+
compatible = "allwinner,sun50i-a64-emac";
454+
syscon = <&syscon>;
455+
reg = <0x01c30000 0x100>;
456+
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
457+
interrupt-names = "macirq";
458+
resets = <&ccu RST_BUS_EMAC>;
459+
reset-names = "stmmaceth";
460+
clocks = <&ccu CLK_BUS_EMAC>;
461+
clock-names = "stmmaceth";
462+
status = "disabled";
463+
#address-cells = <1>;
464+
#size-cells = <0>;
465+
466+
mdio: mdio {
467+
#address-cells = <1>;
468+
#size-cells = <0>;
469+
};
470+
};
471+
437472
gic: interrupt-controller@1c81000 {
438473
compatible = "arm,gic-400";
439474
reg = <0x01c81000 0x1000>,

0 commit comments

Comments
 (0)