Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26238639rwd; Mon, 3 Jul 2023 07:11:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZBtmoYtib1SY8Hh3L4pxTzf5SIN3lE3RWX0u6dTnEznQ0MSnXr6JUvMFtZ7ddWhSevaYr X-Received: by 2002:a17:902:e80b:b0:1b7:dfbd:4df0 with SMTP id u11-20020a170902e80b00b001b7dfbd4df0mr10611020plg.45.1688393495822; Mon, 03 Jul 2023 07:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688393495; cv=none; d=google.com; s=arc-20160816; b=FZ5rXvBWyAcpRSt4sCzh5yngBxxLiAONHWWAs8KIvTKfOOdr+b9K1k42q+iPloxlRd VmRFzxRxpHu8mqHi4T7kxafPUhnGw+5KZPT/Huo7Q0bzfXp/E4aBLNp6v34okKmkhKss SyG2GnVuhEjG62KoTVadXwFBXKU9s6pga+gIugox1uQFs1o8urZ+NgrjoLdU3aoYmGIp y3xLqaS/nkViJ2dO8hos/JQJvxgjIaVIQx8ttfRoanVKMAUGgbZtx6PXtxPpY45XEiDy P9tWxPsbUROe3mA67Kl7eo3zKB7dIRlhcoRegoQ6XNdzYA2Q8sbkEDCwMaXZ3Tr1iwo1 6Adg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zjiQSoJEaruS4PGIs6EeFaS+mbYM4rjC3P1yXEPqsHg=; fh=gMpCdCF3ZbsC9qrJLCrexWqBfDYwpj9nKcs9dIJxjIY=; b=nY67YobHAhdwQQGjzsPgRGl8voDBxhMF7PuxDdI3l39tNL1j2fh6pKLgv2+doP1oJM 5Hki9BUtMeuNpxpLeENHB4h4HMGNuXmpPhEo8Mb/m2L4WKVSiSNGbxmNppOXExSyRpU4 ry3deESRTqeWGf/WvDfYetqIQHWPiDOH1DNpRY8jSGHmNQ9F6mlj690AWugXx8PVSaAn hOn196JUlDNCTZmpj6cVS2KB2ZTFK4Z9Pq2pfA7vH3TuAABZKBMLyfvxSncYxhY05Jxf pYeXdIftfnYi4BrOMHOsE4SYfEig4nwbVE8v+xLkekVfY01t9pD5Bs7Y3Y41oaFVaYTB SSmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mrlyEnMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d89000b001b5fc11ea09si18587697plz.94.2023.07.03.07.11.15; Mon, 03 Jul 2023 07:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mrlyEnMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230121AbjGCNoX (ORCPT + 99 others); Mon, 3 Jul 2023 09:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjGCNoW (ORCPT ); Mon, 3 Jul 2023 09:44:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B9A9E5A; Mon, 3 Jul 2023 06:44:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E71060F4B; Mon, 3 Jul 2023 13:44:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1006C433C7; Mon, 3 Jul 2023 13:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688391860; bh=3OalVom3i/o15fhhviP0iWfIaM4zX2VkZSJCW9xDX4w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mrlyEnMZhO/WRRDMnScTjs1sNuS6ms1OijmFb7tsdNqgmdgGSDTdVrqn5JogCNmDZ h8i9Z0qGM9BHJRX7KAzEA207A0FJd9Vj4LQ+sVEePg9zJjJG2nbwTWbjQlYU4OUkk3 USAkHhwgRa00xnZ0D8BtihEk+kaWNwYFdGNg8Tr88jqmdOOsG/cF0/KFni9Vxil+Dq KYCOTUJhTLGUc/jRIjyYIf8JC3jeVDGpBT15lQrWvfGIrUpCu8fvTo9nycRYiswPmj fnA4788psG8MI7ZAJEiESJM5xN9NAADQolt2tFLApFibRlAy72+TV/KNKu6wbnjgRb IzubSW8aZI8QQ== Message-ID: <9ef45899-c766-e839-522a-3b048f8106f7@kernel.org> Date: Mon, 3 Jul 2023 16:44:14 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/3] Configure usb0 as peripheral on am335x boards Content-Language: en-US To: Julien Panis , Tony Lindgren Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vigneshr@ti.com, nm@ti.com References: <20230629-usb0-as-peripheral-v1-0-167f78a11746@baylibre.com> <20230630072047.GK14287@atomide.com> <7f44798b-e2bf-1620-da37-ca13bfd07a21@kernel.org> From: Roger Quadros In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/2023 14:56, Julien Panis wrote: > On 6/30/23 21:40, Roger Quadros wrote: >> Hi, >> >> On 30/06/2023 11:30, Julien Panis wrote: >>> Hello Tony, >>> >>> On 6/30/23 09:20, Tony Lindgren wrote: >>>> Hi, >>>> >>>> * Julien Panis [230629 13:10]: >>>>> This series configures usb0 dr_mode as 'peripheral' for am335x-evm, >>>>> am335x-evmsk, and am335x-icev2. This USB port is mainly used for >>>>> RNDIS and DFU. >>>> Is this a mini-B connector? Just wondering if it was originally attempted >>>> to be configured as OTG or how it ended up with a host configuration.. >>> It's a micro USB-AB connector. >>> I don't know how it ended up with a host configuration, it looks like an oversight. >>> Maybe Vignesh or Nishanth can confirm (?) >> usb0 role should be "otg". >> It is rightly so in Linux DT. am33xx.dtsi contains "otg" and all AM335x board files inherit from it. >> >> So I don't think setting it to "peripheral" in u-boot is the right thing to do. > > This series is for kernel (not for u-boot). > Why is it a problem to set usb0 as 'peripheral' in kernel for the 3 board dts ? > > With usb0 not set as 'peripheral', the 3 boards (am335x-evm, evm-sk, icev2) > do not boot with uboot 2023.04. This error is returned, with LOG_LEVEL=5: >     No USB device found >     USB ether init failed >     initcall sequence 8ffdbba4 failed at call 808024d9 (err=-19) >     ### ERROR ### Please RESET the board ### > This error is also returned with usb0 as 'otg'. This error is at u-boot correct? This will need further investigation. Does it function correctly in Linux when kept as 'otg'? -- cheers, -roger