From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Subject: Re: [PATCH 2/2] arm64: allwinner: a64: bananapi-m64: add usb otg Date: Thu, 7 Dec 2017 11:48:29 +0530 Message-ID: References: <1512582664-24936-1-git-send-email-jagan@amarulasolutions.com> Reply-To: jagannadh.teki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Chen-Yu Tsai Cc: Maxime Ripard , Icenowy Zheng , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Michael Trimarchi , linux-arm-kernel , devicetree , linux-kernel , linux-sunxi , Jagan Teki List-Id: devicetree@vger.kernel.org On Thu, Dec 7, 2017 at 8:54 AM, Chen-Yu Tsai wrote: > On Thu, Dec 7, 2017 at 1:51 AM, Jagan Teki wrote: >> usb otg on bananapi-m64 has configured with USB-ID with PH9 >> and USB-DRVVBUS attached with dcdc1 regulatort. > > That is not how you read the schematic... > > Intersecting lines that are tied together will have a dot representing > the connection. The DCDC1 line is a pull-up for the ID pin. This is very > clear because it has a resistor connected in series. > > VBUS for OTG is controlled by the IC displayed to the right in the > schematic, which is powered from 5V, and controlled by the DRVVBUS > pin from the PMIC. Please take a look at how the A31/A33/A83T board > dts files represent this. This is where I confused, USB-DRVVBUS is connected to pin 51 of PMIC if we add 5v regulator how can configure gpio number for this? I saw sun8i-a33-olinuxino.dts which is also similar but it has gpio = <&pio 1 9 GPIO_ACTIVE_HIGH>; thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.