Skip to content

Commit

Permalink
arm64: allwinner: pine64-plus: Enable dwmac-sun8i
Browse files Browse the repository at this point in the history
The dwmac-sun8i hardware is present on the pine64 plus.
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>
  • Loading branch information
Corentin Labbe authored and Maxime Ripard committed Jun 7, 2017
1 parent 9702394 commit 94dcfdc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,20 @@
model = "Pine64+";
compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";

/* TODO: Camera, Ethernet PHY, touchscreen, etc. */
/* TODO: Camera, touchscreen, etc. */
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii";
phy-handle = <&ext_rgmii_phy>;
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};

0 comments on commit 94dcfdc

Please sign in to comment.