Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1722991 > unrolled thread
| Started by | Philipp Rossak <embed3d@gmail.com> |
|---|---|
| First post | 2017-08-30 05:10 +0200 |
| Last post | 2017-08-30 10:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/7] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1 Plus Philipp Rossak <embed3d@gmail.com> - 2017-08-30 05:10 +0200
Re: [PATCH 3/7] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1 Plus Chen-Yu Tsai <wens@csie.org> - 2017-08-30 10:30 +0200
| From | Philipp Rossak <embed3d@gmail.com> |
|---|---|
| Date | 2017-08-30 05:10 +0200 |
| Subject | [PATCH 3/7] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1 Plus |
| Message-ID | <uk1y9-2Ub-13@gated-at.bofh.it> |
From: Philipp Rossak <embed3d@gmail.com>
The dwmac-sun8i hardware is present on the Nanopi M1 Plus.
It uses an external PHY.
Signed-off-by: Philipp Rossak <embed3d@gmail.com>
---
arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 32 +++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
index ece275b..b9c6c27 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
@@ -45,6 +45,20 @@
/ {
model = "FriendlyArm NanoPi M1 Plus";
compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3";
+
+ aliases {
+ ethernet0 = &emac;
+ };
+
+ reg_gmac_3v3: gmac-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "gmac-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ startup-delay-us = <100000>;
+ enable-active-high;
+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ };
};
&ehci1 {
@@ -55,12 +69,30 @@
status = "okay";
};
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_rgmii_pins>;
+ phy-supply = <®_gmac_3v3>;
+ phy-handle = <&ext_rgmii_phy>;
+ phy-mode = "rgmii";
+
+ allwinner,leds-active-low;
+ status = "okay";
+};
+
&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>;
status = "okay";
};
+&mdio {
+ ext_rgmii_phy: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+};
+
&ohci1 {
status = "okay";
};
--
2.7.4
[toc] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2017-08-30 10:30 +0200 |
| Subject | Re: [PATCH 3/7] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1 Plus |
| Message-ID | <uk6xQ-5UY-13@gated-at.bofh.it> |
| In reply to | #1722991 |
On Wed, Aug 30, 2017 at 11:01 AM, Philipp Rossak <embed3d@gmail.com> wrote: > From: Philipp Rossak <embed3d@gmail.com> > > The dwmac-sun8i hardware is present on the Nanopi M1 Plus. Support for this has been reverted. Please send this once it has been added again. ChenYu > It uses an external PHY. > > Signed-off-by: Philipp Rossak <embed3d@gmail.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web