diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-05-31 09:18:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-01 14:53:08 -0400 |
commit | 72aa5f0fd198569be85c843bbbf6ec4a06553910 (patch) | |
tree | c03b1ff20d11c04041a36927805429a10f557876 /arch/arm64/boot/dts | |
parent | 93264150b017ae1d3edbae883d0df6962d859180 (diff) | |
download | linux-72aa5f0fd198569be85c843bbbf6ec4a06553910.tar.bz2 |
arm64: allwinner: pine64-plus: Enable dwmac-sun8i
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm64/boot/dts')
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts index 790d14daaa6a..24f1aac366d6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts @@ -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>; + }; }; |