diff mbox series

[2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet

Message ID 20210304191456.2895-3-pjbrs@floorenpj.xs4all.nl (mailing list archive)
State New, archived
Headers show
Series BananaPi M2 Zero: Add HDMI-out and ethernet | expand

Commit Message

Pieter Beers March 4, 2021, 7:14 p.m. UTC
This patch enables the ethernet driver for the BananaPi M2 Zero

The BananaPi M2 Zero does not have an RJ-45 interface, but it
does feature a four-hole header to which an RJ-45 port can be
connected, for a 100 Mbps ethernet link.

Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
---
 arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Maxime Ripard March 8, 2021, 3:46 p.m. UTC | #1
Hi,

On Thu, Mar 04, 2021 at 08:14:56PM +0100, Pieter Beers wrote:
> This patch enables the ethernet driver for the BananaPi M2 Zero
> 
> The BananaPi M2 Zero does not have an RJ-45 interface, but it
> does feature a four-hole header to which an RJ-45 port can be
> connected, for a 100 Mbps ethernet link.
> 
> Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>

All the optional features of a board are typically handled by an
overlay.

Maxime
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index 9c7b370b836d..1e87fc190ed3 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -93,6 +93,13 @@ 
 	status = "okay";
 };
 
+&emac {
+	status = "okay";
+	phy-handle = <&int_mii_phy>;
+	phy-mode = "mii";
+	allwinner,leds-active-low;
+};
+
 &hdmi {
 	status = "okay";
 };