[PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet
Pieter Beers
pjbrs at floorenpj.xs4all.nl
Sun Feb 28 11:16:57 EST 2021
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 at floorenpj.xs4all.nl>
---
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 7 +++++++
1 file changed, 7 insertions(+)
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 d339a26662cb..d35a978b243d 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
@@ -240,3 +240,10 @@
*/
status = "okay";
};
+
+&emac {
+ status = "okay";
+ phy-handle = <&int_mii_phy>;
+ phy-mode = "mii";
+ allwinner,leds-active-low;
+};
--
2.17.5
More information about the linux-arm-kernel
mailing list