From patchwork Tue Jun 25 15:39:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2777711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DBFF39F245 for ; Tue, 25 Jun 2013 15:45:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27E8F2031A for ; Tue, 25 Jun 2013 15:45:12 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5FB3E20320 for ; Tue, 25 Jun 2013 15:45:09 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrVN4-0003Mg-0a; Tue, 25 Jun 2013 15:41:38 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrVME-00049Q-Ei; Tue, 25 Jun 2013 15:40:38 +0000 Received: from mail-vb0-x229.google.com ([2607:f8b0:400c:c02::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrVLZ-00044S-O8 for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2013 15:39:59 +0000 Received: by mail-vb0-f41.google.com with SMTP id p13so9757119vbe.0 for ; Tue, 25 Jun 2013 08:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3HdIFW2WIKpTaz19rdSpzS9iIXGDQ82ikOuRuffsRVo=; b=eE7iGDN1hraxDMXVmgUMACngi/DDNFSXMI5wwJfQv47IxyAKcdm/xr1Dtg5VGDOG1U uhd+eTRNVzNfF7196ER5GjGlnC8aMvbJuT5dBhbd+HsAmGaoMboqYTsdCenRgPKGtFRG XsA5E0QjU1CdLP8GCp3UL+t21rjWn1TFAr+2Iynku2WHxyVpac2lCG33+s91flU5dqwr sXfdSXNFylcgZ8+geRzeTkRvmhNdrcGNAen4iqT83WLkyWVPnxun2Y9wON94D41I8Vyr mYXVmvvO/eJEeX5KZLY85fYi9gSQYo0oHc6+aqVTRzw9fzcU69v01bwPL8CJJcLzq3Dv wbpQ== MIME-Version: 1.0 X-Received: by 10.52.165.83 with SMTP id yw19mr12251875vdb.98.1372174776456; Tue, 25 Jun 2013 08:39:36 -0700 (PDT) Received: by 10.58.237.66 with HTTP; Tue, 25 Jun 2013 08:39:36 -0700 (PDT) In-Reply-To: References: <51A5A808.2070803@digi.com> <201306221529.53043.marex@denx.de> <201306241551.19831.marex@denx.de> Date: Tue, 25 Jun 2013 12:39:36 -0300 Message-ID: Subject: Re: Chipidea usb otg support for IMX/MXS (device functionality) From: Fabio Estevam To: Marek Vasut X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130625_113957_986047_0AC90373 X-CRM114-Status: GOOD ( 13.67 ) X-Spam-Score: -2.0 (--) Cc: "m.grzeschik@pengutronix.de" , "alexander.shishkin@linux.intel.com" , Chen Peter-B29397 , "s.hauer@pengutronix.de" , "linux-usb@vger.kernel.org" , Hector Palacios , Marc Kleine-Budde , Michael Grzeschik , Estevam Fabio-R49496 , "maxime.ripard@free-electrons.com" , "shawn.guo@linaro.org" , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Jun 25, 2013 at 11:23 AM, Fabio Estevam wrote: > On Mon, Jun 24, 2013 at 10:51 AM, Marek Vasut wrote: > >> Fabio, can you possibly test on MX23EVK please? > > I never used USB gadget with chipidea driver. > > Could you please explain what are the changes I need to do in the dts > file (I want to try on mx28evk first) and defconfig in order to be > able to test gadget? I am running today's linux-next. I tried the following: ,but I get: [ 1.495725] usbcore: registered new interface driver asix [ 1.501516] usbcore: registered new interface driver ax88179_178a [ 1.508139] usbcore: registered new interface driver cdc_ether [ 1.514463] usbcore: registered new interface driver smsc95xx [ 1.520743] usbcore: registered new interface driver net1080 [ 1.526920] usbcore: registered new interface driver cdc_subset [ 1.533254] usbcore: registered new interface driver zaurus [ 1.539587] usbcore: registered new interface driver cdc_ncm [ 1.545432] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.552494] usbcore: registered new interface driver usb-storage [ 1.565640] ci_hdrc ci_hdrc.0: can't start gadget role [ 1.577682] ci_hdrc ci_hdrc.1: can't start gadget role [ 1.588304] ci_hdrc ci_hdrc.2: can't start gadget role [ 1.598888] ci_hdrc ci_hdrc.3: can't start gadget role [ 1.609508] ci_hdrc ci_hdrc.4: can't start gadget role [ 1.620144] ci_hdrc ci_hdrc.5: can't start gadget role [ 1.631028] ci_hdrc ci_hdrc.6: can't start gadget role [ 1.642563] ci_hdrc ci_hdrc.7: can't start gadget role [ 1.653530] ci_hdrc ci_hdrc.8: can't start gadget role [ 1.664744] ci_hdrc ci_hdrc.9: can't start gadget role [ 1.676085] ci_hdrc ci_hdrc.10: can't start gadget role [ 1.687121] ci_hdrc ci_hdrc.11: can't start gadget role [ 1.698309] ci_hdrc ci_hdrc.12: can't start gadget role [ 1.709442] ci_hdrc ci_hdrc.13: can't start gadget role [ 1.720879] ci_hdrc ci_hdrc.14: can't start gadget role [ 1.732216] ci_hdrc ci_hdrc.15: can't start gadget role [ 1.743660] ci_hdrc ci_hdrc.16: can't start gadget role [ 1.755289] ci_hdrc ci_hdrc.17: can't start gadget role [ 1.766821] ci_hdrc ci_hdrc.18: can't start gadget role [ 1.778642] ci_hdrc ci_hdrc.19: can't start gadget role [ 1.790227] ci_hdrc ci_hdrc.20: can't start gadget role [ 1.802036] ci_hdrc ci_hdrc.21: can't start gadget role [ 1.813879] ci_hdrc ci_hdrc.22: can't start gadget role [ 1.825921] ci_hdrc ci_hdrc.23: can't start gadget role ... and system hangs here. Any suggestions as to how to get gadget working? --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts @@ -239,7 +239,7 @@ ahb@80080000 { usb0: usb@80080000 { - vbus-supply = <®_usb0_vbus>; + dr_mode = "peripheral"; status = "okay"; };