Skip to content

Commit e729549

Browse files
montjoiemripard
authored andcommitted
arm64: allwinner: bananapi-m64: Enable dwmac-sun8i
The dwmac-sun8i hardware is present on the BananaPi M64. It uses an external PHY rtl8211e via RGMII. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 94dcfdc commit e729549

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@
6767
};
6868
};
6969

70+
&emac {
71+
pinctrl-names = "default";
72+
pinctrl-0 = <&rgmii_pins>;
73+
phy-mode = "rgmii";
74+
phy-handle = <&ext_rgmii_phy>;
75+
status = "okay";
76+
};
77+
7078
&i2c1 {
7179
pinctrl-names = "default";
7280
pinctrl-0 = <&i2c1_pins>;
@@ -77,6 +85,13 @@
7785
bias-pull-up;
7886
};
7987

88+
&mdio {
89+
ext_rgmii_phy: ethernet-phy@1 {
90+
compatible = "ethernet-phy-ieee802.3-c22";
91+
reg = <1>;
92+
};
93+
};
94+
8095
&mmc0 {
8196
pinctrl-names = "default";
8297
pinctrl-0 = <&mmc0_pins>;

0 commit comments

Comments
 (0)