]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm: sun8i: orangepi-zero: Enable dwmac-sun8i
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Wed, 31 May 2017 07:18:40 +0000 (09:18 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 6 Jun 2017 18:09:29 +0000 (20:09 +0200)
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>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts

index 9e8b082c134f61efede523a916b1e60e382e005c..dd3525a0f06afb80f69143c968f2931fbbef5826 100644 (file)
@@ -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 @@ &ehci1 {
        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>;