Skip to content

Commit acca163

Browse files
dlan17wens
authored andcommitted
arm64: dts: allwinner: a527: add EMAC0 to Radxa A5E board
On Radxa A5E board, the EMAC0 connect to external Maxio MAE0621A PHY, which features a 25MHz crystal, and using PH8 pin as PHY reset. Tested on A5E board with schematic V1.20. 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 56766ca commit acca163

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
compatible = "radxa,cubie-a5e", "allwinner,sun55i-a527";
1313

1414
aliases {
15+
ethernet0 = &emac0;
1516
serial0 = &uart0;
1617
};
1718

@@ -54,6 +55,24 @@
5455
status = "okay";
5556
};
5657

58+
&emac0 {
59+
phy-mode = "rgmii-id";
60+
phy-handle = <&ext_rgmii_phy>;
61+
phy-supply = <&reg_cldo3>;
62+
63+
allwinner,tx-delay-ps = <300>;
64+
allwinner,rx-delay-ps = <400>;
65+
66+
status = "okay";
67+
};
68+
69+
&mdio0 {
70+
ext_rgmii_phy: ethernet-phy@1 {
71+
compatible = "ethernet-phy-ieee802.3-c22";
72+
reg = <1>;
73+
};
74+
};
75+
5776
&mmc0 {
5877
vmmc-supply = <&reg_cldo3>;
5978
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */

0 commit comments

Comments
 (0)