Skip to contentSkip to conversation

arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

PATCH New Jonathan A. Kollasch 2 participants 2 messages May 17, 2018 – May 18, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

---

 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +15 -0
index f1406c224b..1dde153669 100644
@@ -104,3 +104,18 @@
 &usbphy {
 	status = "okay";
 };
+
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&emac_rgmii_pins>;
+	phy-mode = "rgmii";
+	phy-handle = <&ext_rgmii_phy>;
+	status = "okay";
+};
+
+&external_mdio {
+	ext_rgmii_phy: ethernet-phy at 7 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <7>;
+	};
+};
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

Hi,

Quoted 19 lines · Jonathan A. Kollasch

---

 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +5 -0
index f1406c224b..1dde153669 100644
@@ -104,3 +104,18 @@
 &usbphy {
 	status = "okay";
 };
+
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&emac_rgmii_pins>;
+	phy-mode = "rgmii";

arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts line 121

Quoted 10 lines
arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +10 -0
+	phy-handle = <&ext_rgmii_phy>;
+	status = "okay";
+};
+
+&external_mdio {
+	ext_rgmii_phy: ethernet-phy at 7 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <7>;
+	};
+};

We usually share our DT with Linux, and the node is already described there, so we should just sync the DT with the Linux one instead.

Please provide the Linux commit ID you used to sync in your next iteration too.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.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.denx.de/pipermail/u-boot/attachments/20180518/5237f613/attachment.sig>