Skip to content

Commit 56766ca

Browse files
dlan17wens
authored andcommitted
arm64: dts: allwinner: a523: Add EMAC0 ethernet MAC
Add EMAC0 ethernet MAC support which found on A523 variant SoCs, including the A527/T527 chips. MAC0 is compatible to the A64 chip which requires an external PHY. This patch only add RGMII pins for now. Reviewed-by: Andre Przywara <[email protected]> Tested-by: Corentin LABBE <[email protected]> Signed-off-by: Yixun Lan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 02f27ea commit 56766ca

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@
126126
interrupt-controller;
127127
#interrupt-cells = <3>;
128128

129+
rgmii0_pins: rgmii0-pins {
130+
pins = "PH0", "PH1", "PH2", "PH3", "PH4",
131+
"PH5", "PH6", "PH7", "PH9", "PH10",
132+
"PH14", "PH15", "PH16", "PH17", "PH18";
133+
allwinner,pinmux = <5>;
134+
function = "emac0";
135+
drive-strength = <40>;
136+
bias-disable;
137+
};
138+
129139
mmc0_pins: mmc0-pins {
130140
pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
131141
allwinner,pinmux = <2>;
@@ -409,6 +419,15 @@
409419
#size-cells = <0>;
410420
};
411421

422+
syscon: syscon@3000000 {
423+
compatible = "allwinner,sun55i-a523-system-control",
424+
"allwinner,sun50i-a64-system-control";
425+
reg = <0x03000000 0x1000>;
426+
#address-cells = <1>;
427+
#size-cells = <1>;
428+
ranges;
429+
};
430+
412431
gic: interrupt-controller@3400000 {
413432
compatible = "arm,gic-v3";
414433
#address-cells = <1>;
@@ -521,6 +540,28 @@
521540
status = "disabled";
522541
};
523542

543+
emac0: ethernet@4500000 {
544+
compatible = "allwinner,sun55i-a523-emac0",
545+
"allwinner,sun50i-a64-emac";
546+
reg = <0x04500000 0x10000>;
547+
clocks = <&ccu CLK_BUS_EMAC0>;
548+
clock-names = "stmmaceth";
549+
resets = <&ccu RST_BUS_EMAC0>;
550+
reset-names = "stmmaceth";
551+
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
552+
interrupt-names = "macirq";
553+
pinctrl-names = "default";
554+
pinctrl-0 = <&rgmii0_pins>;
555+
syscon = <&syscon>;
556+
status = "disabled";
557+
558+
mdio0: mdio {
559+
compatible = "snps,dwmac-mdio";
560+
#address-cells = <1>;
561+
#size-cells = <0>;
562+
};
563+
};
564+
524565
r_ccu: clock-controller@7010000 {
525566
compatible = "allwinner,sun55i-a523-r-ccu";
526567
reg = <0x7010000 0x250>;

0 commit comments

Comments
 (0)