]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
arm: sun8i: orangepi-pc: Enable dwmac-sun8i
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Wed, 31 May 2017 07:18:39 +0000 (09:18 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 6 Jun 2017 18:05:56 +0000 (20:05 +0200)
The dwmac-sun8i hardware is present on the Orange PI PC.
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-h3-orangepi-pc.dts

index f148111c326d073674de51ca921ca97525bf28fd..52e65755c51a32b0d6a6511c0ee117d85842be46 100644 (file)
@@ -52,6 +52,7 @@
        compatible = "xunlong,orangepi-pc", "allwinner,sun8i-h3";
 
        aliases {
+               ethernet0 = &emac;
                serial0 = &uart0;
        };
 
        status = "okay";
 };
 
+&emac {
+       phy-handle = <&int_mii_phy>;
+       phy-mode = "mii";
+       allwinner,leds-active-low;
+       status = "okay";
+};
+
 &ir {
        pinctrl-names = "default";
        pinctrl-0 = <&ir_pins_a>;