Skip to content

Commit 9702394

Browse files
montjoiemripard
authored andcommitted
arm64: allwinner: pine64: Enable dwmac-sun8i
The dwmac-sun8i hardware is present on the pine64 It uses an external PHY via RMII. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent e53f67e commit 9702394

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@
7878
status = "okay";
7979
};
8080

81+
&emac {
82+
pinctrl-names = "default";
83+
pinctrl-0 = <&rmii_pins>;
84+
phy-mode = "rmii";
85+
phy-handle = <&ext_rmii_phy1>;
86+
status = "okay";
87+
88+
};
89+
8190
&i2c1 {
8291
pinctrl-names = "default";
8392
pinctrl-0 = <&i2c1_pins>;
@@ -88,6 +97,13 @@
8897
bias-pull-up;
8998
};
9099

100+
&mdio {
101+
ext_rmii_phy1: ethernet-phy@1 {
102+
compatible = "ethernet-phy-ieee802.3-c22";
103+
reg = <1>;
104+
};
105+
};
106+
91107
&mmc0 {
92108
pinctrl-names = "default";
93109
pinctrl-0 = <&mmc0_pins>;

0 commit comments

Comments
 (0)