Skip to content

Commit c6800f1

Browse files
dlan17wens
authored andcommitted
arm64: dts: allwinner: t527: add EMAC0 to Avaota-A1 board
On Avaota A1 board, the EMAC0 connect to an external RTL8211F-CG PHY, which features a 25MHz crystal, and using PH8 pin as PHY reset. Signed-off-by: Yixun Lan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent acca163 commit c6800f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
compatible = "yuzukihd,avaota-a1", "allwinner,sun55i-t527";
1313

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

@@ -64,6 +65,24 @@
6465
status = "okay";
6566
};
6667

68+
&emac0 {
69+
phy-mode = "rgmii-id";
70+
phy-handle = <&ext_rgmii_phy>;
71+
phy-supply = <&reg_dcdc4>;
72+
73+
allwinner,tx-delay-ps = <100>;
74+
allwinner,rx-delay-ps = <300>;
75+
76+
status = "okay";
77+
};
78+
79+
&mdio0 {
80+
ext_rgmii_phy: ethernet-phy@1 {
81+
compatible = "ethernet-phy-ieee802.3-c22";
82+
reg = <1>;
83+
};
84+
};
85+
6786
&mmc0 {
6887
vmmc-supply = <&reg_cldo3>;
6988
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */

0 commit comments

Comments
 (0)