Re: [U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-18 Thread Jonathan A. Kollasch
I'm abandoning these, as I see that there's already a patch series that
covers this.  (sunxi: sync H3, H5, A64 DTs from mainline Linux)

Jonathan Kollasch

On Fri, May 18, 2018 at 10:18:37AM +0200, Maxime Ripard wrote:
> Hi,
> 
> On Thu, May 17, 2018 at 04:03:33PM -0500, Jonathan A. Kollasch wrote:
> > Signed-off-by: Jonathan A. Kollasch 
> > ---
> > 
> >  arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++
> >  1 file changed, 15 insertions(+)
> > 
> > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts 
> > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > index f1406c224b..1dde153669 100644
> > --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > @@ -104,3 +104,18 @@
> >   {
> > status = "okay";
> >  };
> > +
> > + {
> > +   pinctrl-names = "default";
> > +   pinctrl-0 = <_rgmii_pins>;
> > +   phy-mode = "rgmii";
> > +   phy-handle = <_rgmii_phy>;
> > +   status = "okay";
> > +};
> > +
> > +_mdio {
> > +   ext_rgmii_phy: ethernet-phy@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
> 
> -- 
> Maxime Ripard, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com



On Fri, May 18, 2018 at 03:24:22PM +0200, Antony Antony wrote:
> Hi Jonathan,
> 
> I got an error with the patch.
> arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dtb: ERROR (phandle_references): 
> Reference to non-existent node or label "reg_gmac_3v3"
> 
> the attached patch, with reg_gmac_3v3, works for me.
> 
> -antony
> 
> 
> On Fri, May 18, 2018 at 07:56:07AM -0500, Jonathan A. Kollasch wrote:
> > add arm64 H5 dwmac-sun8i support for this board
> > 
> > commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
> > ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux
> > 
> > Signed-off-by: Jonathan A. Kollasch 
> > ---
> > 
> >  arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 17 +
> >  1 file changed, 17 insertions(+)
> > 
> > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts 
> > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > index f1406c224b..aadc087775 100644
> > --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> > @@ -52,6 +52,7 @@
> > compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
> >  
> > aliases {
> > +   ethernet0 = 
> > serial0 = 
> > };
> >  
> > @@ -71,6 +72,22 @@
> > status = "okay";
> >  };
> >  
> > + {
> > +   pinctrl-names = "default";
> > +   pinctrl-0 = <_rgmii_pins>;
> > +   phy-supply = <_gmac_3v3>;
> > +   phy-handle = <_rgmii_phy>;
> > +   phy-mode = "rgmii";
> > +   status = "okay";
> > +};
> > +
> > +_mdio {
> > +   ext_rgmii_phy: ethernet-phy@7 {
> > +   compatible = "ethernet-phy-ieee802.3-c22";
> > +   reg = <7>;
> > +   };
> > +};
> > +
> >   {
> > pinctrl-names = "default";
> > pinctrl-0 = <_pins_a>, <_cd_pin>;
> > -- 
> > 2.11.0
> > 

> From 71dd3f0c55a80036273d329677266d9ed98026fa Mon Sep 17 00:00:00 2001
> From: Antony Antony 
> Date: Fri, 18 May 2018 15:09:06 +0200
> Subject: [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC,
>  dwmac-sun8i
> 
> commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
> ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux
> 
> reg_gmac_3v3 from commit d7341305863bc
> 
> Signed-off-by: Antony Antony 
> ---
>  arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 28 
>  1 file changed, 28 insertions(+)
> 
> diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts 
> b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> index f1406c2..b255190 100644
> --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> @@ -52,6 +52,7 @@
>   compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
>  
>   aliases {
> + ethernet0 = 
>   serial0 = 
>   };
>  
> @@ -59,6 +60,17 @@
>   stdout-path = "serial0:115200n8";
>   };
>  
> + reg_gmac_3v3: gmac-3v3 {
> + compatible = "regulator-fixed";
> + pinctrl-names = "default";
> + regulator-name = "gmac-3v3";
> + regulator-min-microvolt = <330>;
> + regulator-max-microvolt = <330>;
> + startup-delay-us = <10>;
> + enable-active-high;
> + gpio = < 3 6 GPIO_ACTIVE_HIGH>;
> + };
> +
>   reg_vcc3v3: vcc3v3 {
>   compatible = "regulator-fixed";
>   

Re: [U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-18 Thread Maxime Ripard
Hi,

On Thu, May 17, 2018 at 04:03:33PM -0500, Jonathan A. Kollasch wrote:
> Signed-off-by: Jonathan A. Kollasch 
> ---
> 
>  arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts 
> b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> index f1406c224b..1dde153669 100644
> --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
> @@ -104,3 +104,18 @@
>   {
>   status = "okay";
>  };
> +
> + {
> + pinctrl-names = "default";
> + pinctrl-0 = <_rgmii_pins>;
> + phy-mode = "rgmii";
> + phy-handle = <_rgmii_phy>;
> + status = "okay";
> +};
> +
> +_mdio {
> + ext_rgmii_phy: ethernet-phy@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

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-17 Thread Jonathan A. Kollasch
Signed-off-by: Jonathan A. Kollasch 
---

 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts 
b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
index f1406c224b..1dde153669 100644
--- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
+++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
@@ -104,3 +104,18 @@
  {
status = "okay";
 };
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_rgmii_pins>;
+   phy-mode = "rgmii";
+   phy-handle = <_rgmii_phy>;
+   status = "okay";
+};
+
+_mdio {
+   ext_rgmii_phy: ethernet-phy@7 {
+   compatible = "ethernet-phy-ieee802.3-c22";
+   reg = <7>;
+   };
+};
-- 
2.11.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot