From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH] arm64: allwinner: a64: orangepi-zero-plus2: add usb otg Date: Thu, 7 Dec 2017 14:34:09 +0100 Message-ID: <20171207133409.cpp7wxx4yflkgavp@flea.lan> References: <1512644748-14491-1-git-send-email-jagan@amarulasolutions.com> Reply-To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cgqjnyc3phbbrm7n" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <1512644748-14491-1-git-send-email-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Jagan Teki Cc: Chen-Yu Tsai , Icenowy Zheng , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Michael Trimarchi , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Jagan Teki List-Id: devicetree@vger.kernel.org --cgqjnyc3phbbrm7n Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Hi, On Thu, Dec 07, 2017 at 04:35:48PM +0530, Jagan Teki wrote: > Add usb otg support for orangepi-zero-plus2 board: > - Add usb_otg node with dr_mode as 'otg' > - USB0-IDDET connected to PA21 > - VBUS connected through DCIN which always on > > Tested mass storage function. > > Signed-off-by: Jagan Teki Did you test the OTG or peripheral modes? > Note: Anyone please check vbus connection [1] > Since it is connected through DCIN of vcc-5v, I've added vcc-5v0 > regulator for the same and attached to usb0_vbus-supply but it is > disabling during kernel boot. > [ 1.887854] vcc5v0: disabling VBUS is the power line that is provided on the USB connector. In peripheral, that power is provided by the host, therefore it needs to be shutdown on the peripheral end. This is the expected behaviour. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --cgqjnyc3phbbrm7n--