]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1
authorPhilipp Rossak <embed3d@gmail.com>
Fri, 15 Dec 2017 22:39:01 +0000 (23:39 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 19 Dec 2017 08:53:49 +0000 (09:53 +0100)
The dwmac-sun8i hardware is present on the Nanopi M1.
It uses the internal PHY

Signed-off-by: Philipp Rossak <embed3d@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts

index 3a2ccdb28afddf293e324210874fc2744497e3b9..c77fbca4f227a3fa70da9425eaa7f25f74c3b337 100644 (file)
 / {
        model = "FriendlyArm NanoPi M1";
        compatible = "friendlyarm,nanopi-m1", "allwinner,sun8i-h3";
+
+       aliases {
+               ethernet0 = &emac;
+       };
 };
 
 &ehci1 {
        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>;