Skip to contentSkip to conversation

Ethernet for the Nanopi M1 & M1 plus

PATCH Applied Philipp Rossak 2 participants 6 messages Dec 15, 2017 – Dec 19, 2017

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Ethernet for the Nanopi M1 & M1 plus

The first patch of this patch series, fixes a missing alias on the nanopi m1 plus. The second patch enables the dwmac-sun8i ethernet driver on the Nanopi M1.

Philipp Rossak (2):
ARM: dts: sun8i: h3: nanopi-m1-plus: fix missing ethernet 0 in aliases
ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1

 arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts |  1 +
 arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts      | 11 +++++++++++
 2 files changed, 12 insertions(+)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 ARM: dts: sun8i: h3: nanopi-m1-plus: fix missing ethernet 0 in aliases

---
 arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts +1 -0
index 0a8b79cf5954..87509a3e6aba 100644
@@ -48,6 +48,7 @@
 
 	aliases {
 		serial1 = &uart3;
+		ethernet0 = &emac;
 		ethernet1 = &sdio_wifi;
 	};
 
Signature · 1 line
2.11.0
#4 lore raw

PATCH 2/2 ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1

In reply to Philipp Rossak

The dwmac-sun8i hardware is present on the Nanopi M1. It uses the internal PHY

---
 arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts +11 -0
index 3a2ccdb28afd..c77fbca4f227 100644
@@ -45,6 +45,10 @@
 / {
 	model = "FriendlyArm NanoPi M1";
 	compatible = "friendlyarm,nanopi-m1", "allwinner,sun8i-h3";
+
+	aliases {
+		ethernet0 = &emac;
+	};
 };
 
 &ehci1 {
@@ -55,6 +59,13 @@
 	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>;
Signature · 1 line
2.11.0
#3 lore raw

Re: [PATCH 1/2] ARM: dts: sun8i: h3: nanopi-m1-plus: fix missing ethernet 0 in aliases

Sorry!
I will fix it!

Quoted 7 lines · Maxime Ripard

Hi,

Quoted 1 line · Philipp Rossak

Please add a commit log here.

#5 lore raw

Re: [PATCH 2/2] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1

In reply to Philipp Rossak
Quoted 4 lines · Philipp Rossak

The dwmac-sun8i hardware is present on the Nanopi M1. It uses the internal PHY

Applied, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171219/1aa28781/attachment.sig>