Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1653931

[PATCH v6 17/21] arm64: allwinner: pine64-plus: Enable dwmac-sun8i

From Corentin Labbe <clabbe.montjoie@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v6 17/21] arm64: allwinner: pine64-plus: Enable dwmac-sun8i
Date 2017-05-31 09:30 +0200
Message-ID <tN6eT-1Kf-61@gated-at.bofh.it> (permalink)
References <tN6eR-1Kf-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 .../arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

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>;
+	};
 };
-- 
2.13.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-31 09:30 +0200
  [PATCH v6 05/21] net-next: stmmac: Add dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-31 09:30 +0200
  [PATCH v6 19/21] arm: sunxi: Enable dwmac-sun8i driver on sunxi_defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-31 09:30 +0200
  [PATCH v6 17/21] arm64: allwinner: pine64-plus: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-31 09:30 +0200
  Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver David Miller <davem@davemloft.net> - 2017-06-01 21:00 +0200
    Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-02 08:40 +0200
      Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-02 11:20 +0200
        Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver David Miller <davem@davemloft.net> - 2017-06-02 16:30 +0200
          Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-03 00:30 +0200
      Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet  driver David Miller <davem@davemloft.net> - 2017-06-02 16:10 +0200

csiph-web