On 15/04/2021 07:02, Dietmar Kling wrote: > Hi Guys, Hi Dietmar, > I have created a branch on github regarding two bugfixes which allow my 5 > nanpoi a64 to connect to network again and also again use the second usb > port, when booting, when using the latest (v2021.04) u-boot.
Thanks for sharing this. Please include the sunxi maintainers in your email, for improved response time. > https://github.com/DirkTheDaring/u-boot/tree/bugfix/nanopi-a64 > > The patch is attached to this text email. > > Please include into u-boot official. > > Kind Regards > Dietmar Please note that patches need your Signed-off-by:, to be eligible for inclusion. In general we don't take DT patches straight to U-Boot, they need to go via the kernel tree first, then get synced back from time to time. I just sent an update for all A64s, that should fix your network problem already. For the USB part: The sunxi Wiki is a bit controversial on this topic (talking about a hub at some point), so can you clarify the USB situation on the board? Is controller 0 connected to the micro-USB socket, and the two type-A receptables are connected via a hub? Or is it like the Pine64: the two type-A receptables are connected to controller 0 and 1, and the micro-USB is just for power? If it is the latter, I wonder how this patch works for you? I need another U-Boot patch [1] (which I want to send out shortly) to actually enable this port 0 as a host port, and also rely on a DT change (now merged in mainline Linux). Cheers, Andre > > diff --git a/arch/arm/dts/sun50i-a64-nanopi-a64.dts > b/arch/arm/dts/sun50i-a64-nanopi-a64.dts > index e58db8a6ca..a5c78bdb81 100644 > --- a/arch/arm/dts/sun50i-a64-nanopi-a64.dts > +++ b/arch/arm/dts/sun50i-a64-nanopi-a64.dts > @@ -80,7 +80,7 @@ > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&rgmii_pins>; > - phy-mode = "rgmii"; > + phy-mode = "rgmii-id"; > phy-handle = <&ext_rgmii_phy>; > phy-supply = <®_dcdc1>; > status = "okay"; > @@ -258,6 +258,11 @@ > status = "okay"; > }; > +&usb_otg { > + dr_mode = "host"; > + status = "okay"; > +}; > + > &usbphy { > status = "okay"; > }; > > > >