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


Groups > linux.kernel > #1633639

[PATCH v5 09/20] arm: sun8i: orangepi-zero: Enable dwmac-sun8i

From Corentin Labbe <clabbe.montjoie@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v5 09/20] arm: sun8i: orangepi-zero: Enable dwmac-sun8i
Date 2017-05-01 15:00 +0200
Message-ID <tCj5M-Qy-13@gated-at.bofh.it> (permalink)
References <tCj5L-Qy-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The dwmac-sun8i hardware is present on the Orange PI Zero.
It uses the internal PHY.

This patch create the needed emac node.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
index 9e8b082..dd3525a 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -57,6 +57,7 @@
 	aliases {
 		serial0 = &uart0;
 		/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
+		ethernet0 = &emac;
 		ethernet1 = &xr819;
 	};
 
@@ -103,6 +104,13 @@
 	status = "okay";
 };
 
+&emac {
+	phy-handle = <&int_mii_phy>;
+	phy-mode = "mii";
+	allwinner,leds-active-low;
+	status = "okay";
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>;
-- 
2.10.2

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


Thread

[PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 17/20] arm64: allwinner: bananapi-m64: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 20/20] arm64: defconfig: Enable dwmac-sun8i driver on defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 09/20] arm: sun8i: orangepi-zero: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 18/20] arm: sunxi: Enable dwmac-sun8i driver on sunxi_defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 13/20] arm64: allwinner: sun50i-a64: Add dt node for the syscon control module Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 07/20] arm: sun8i: sunxi-h3-h5: add dwmac-sun8i ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 14/20] arm64: allwinner: sun50i-a64: add dwmac-sun8i Ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 16/20] arm64: allwinner: pine64-plus: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 15/20] arm64: allwinner: pine64: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 06/20] arm: sun8i: sunxi-h3-h5: Add dt node for the syscon control module Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 05/20] net: stmmac: Add dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 19/20] arm: multi_v7: Enable dwmac-sun8i driver on multi_v7_defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 08/20] arm: sun8i: orangepi-pc: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 12/20] arm: sun8i: orangepi-pc-plus: Set EMAC activity LEDs to active high Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 10/20] arm: sun8i: orangepi-one: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 01/20] net: stmmac: export stmmac_set_mac_addr/stmmac_get_mac_addr Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  [PATCH v5 04/20] dt-bindings: syscon: Add DT bindings documentation for Allwinner syscon Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
    Re: [PATCH v5 04/20] dt-bindings: syscon: Add DT bindings  documentation for Allwinner syscon Rob Herring <robh@kernel.org> - 2017-05-05 22:30 +0200
  [PATCH v5 11/20] arm: sun8i: orangepi-2: Enable dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 15:00 +0200
  Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet  driver Andrew Lunn <andrew@lunn.ch> - 2017-05-01 16:10 +0200
    Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet driver Chen-Yu Tsai <wens@csie.org> - 2017-05-01 16:40 +0200
      Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet  driver Andrew Lunn <andrew@lunn.ch> - 2017-05-01 16:50 +0200
        Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet  driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-01 18:00 +0200
          Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet  driver Andrew Lunn <andrew@lunn.ch> - 2017-05-01 18:20 +0200
  Re: [PATCH v5 00/20] net-next: stmmac: add dwmac-sun8i ethernet  driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-05 14:20 +0200

csiph-web