Skip to content

Commit 4e3be56

Browse files
paulkocialkowskiwens
authored andcommitted
arm64: dts: allwinner: a100: Add EMAC support
The Allwinner A100/A133 Ethernet MAC (EMAC) is compatible with the A64 one and needs access to the syscon register for control of the top-level integration of the unit. Note that there are two such controllers on the sun50iw10 die, which are the same unit with a different top-level syscon register offset. Signed-off-by: Paul Kocialkowski <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 28e4499 commit 4e3be56

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,26 @@
420420
#size-cells = <0>;
421421
};
422422

423+
emac0: ethernet@5020000 {
424+
compatible = "allwinner,sun50i-a100-emac",
425+
"allwinner,sun50i-a64-emac";
426+
reg = <0x5020000 0x10000>;
427+
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
428+
interrupt-names = "macirq";
429+
clocks = <&ccu CLK_BUS_EMAC>;
430+
clock-names = "stmmaceth";
431+
resets = <&ccu RST_BUS_EMAC>;
432+
reset-names = "stmmaceth";
433+
syscon = <&syscon>;
434+
status = "disabled";
435+
436+
mdio0: mdio {
437+
compatible = "snps,dwmac-mdio";
438+
#address-cells = <1>;
439+
#size-cells = <0>;
440+
};
441+
};
442+
423443
ths: thermal-sensor@5070400 {
424444
compatible = "allwinner,sun50i-a100-ths";
425445
reg = <0x05070400 0x100>;

0 commit comments

Comments
 (0)