From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3101C77B7C for ; Wed, 10 May 2023 07:59:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA23485FEC; Wed, 10 May 2023 09:59:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20221208.gappssmtp.com header.i=@baylibre-com.20221208.gappssmtp.com header.b="tgsYiOS/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4490B84681; Wed, 10 May 2023 09:59:21 +0200 (CEST) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 88FEF85FEC for ; Wed, 10 May 2023 09:59:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mkorpershoek@baylibre.com Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-50bc4ba28cbso12393867a12.0 for ; Wed, 10 May 2023 00:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1683705558; x=1686297558; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=aJuHElmoZco8zqAWjXkbjo5z7M6n9d52VktHAGVjjlc=; b=tgsYiOS/vy+wGoAYzRvq3KckJhZ5+EKXaKIJvUric1iF3uIbrGV+E2MzakUqBmXmgx gBT/AGS+4EWh6MuznwpQfxtsli9qQSEHldDeXySbk2vvSR2pS7HMRff/1+B9rfm9zluG 26PrLbd0cH49YRtBybNRYqpQ6uAQiVDBPzHF7nZMEkS2hLPRZEpcu3CEDJgCVYk0B27C peOip1hEIA/lRRhtJUzwhZzEAphk+ySvoWIew2HPnmiV6svlFLR0yftRSPVXs1csdeUD ZhET0HTxeshjAquDU0GRMH4do+G4p5AFH/2pjgPblz2VieqC9IBMKe6aXHrCMNWF4ZFp 7quw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683705558; x=1686297558; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aJuHElmoZco8zqAWjXkbjo5z7M6n9d52VktHAGVjjlc=; b=MR99Kmp/OilmvPCJTejtaK7dGnsBwuvIlZ21HFkrSVfdMA0639/u05VRi2maYsMFSW DU2++HRBs9fWDBDqBmlcaiDI3HISGwNUF7mHEPk0o2eKOAvqTUVBFKD7XnumjJ4A+KJH sSXlRN/8Mh0ZKRa+SUyKk4R4R0SVCfeoP8JNFm6W+drso+O40he+KbwoGbc+iS3cewtU awQHwNE55GgzvX7tp3Hu5ZbT9FoMdOF8Ca+VLGbYRoHHt0yjsUHgfQHHE5HvfqU7StPC NrKRmmREkAqLVBLkj4c8aLII04bS/0IYCkjZTssNAb08xNHHzeK95T0j00iTK7PDoZDW OHjA== X-Gm-Message-State: AC+VfDyyb3ajltpwBE/lboq8fpksbfWx9M2bLFKxavLq2MTq1IyhilvC lvG+gzoYPBl6KFvANTOXkPaeig== X-Google-Smtp-Source: ACHHUZ57tj+c+2jBAoAOgSf1FuuoxjUoFFDQkyQ3Tu7EjtP+ZMrEMoDGqDrlYg4FIovYHy+ySIUNag== X-Received: by 2002:a17:907:70e:b0:965:6199:cf60 with SMTP id xb14-20020a170907070e00b009656199cf60mr14463833ejb.42.1683705558065; Wed, 10 May 2023 00:59:18 -0700 (PDT) Received: from localhost (2a02-a469-52df-1-d773-dee9-f12b-d179.fixed6.kpn.net. [2a02:a469:52df:1:d773:dee9:f12b:d179]) by smtp.gmail.com with ESMTPSA id e28-20020a170906845c00b0094e84314762sm2341907ejy.187.2023.05.10.00.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 00:59:17 -0700 (PDT) From: Mattijs Korpershoek To: Sjoerd Simons , u-boot@lists.denx.de Cc: Angus Ainslie , Aswath Govindraju , Dave Gerlach , Dhruva Gole , Georgi Vlaev , Gowtham Tammana , Julien Panis , Kamlesh Gurudasani , Kunihiko Hayashi , Marek Vasut , Nishanth Menon , Simon Glass , Suman Anna , Tom Rini , Vignesh Raghavendra Subject: Re: [PATCH v2 0/8] Add DFU, emmc and usb boot for TI am62x In-Reply-To: <20230406185542.1179073-1-sjoerd@collabora.com> References: <20230406185542.1179073-1-sjoerd@collabora.com> Date: Wed, 10 May 2023 09:59:16 +0200 Message-ID: <87bkis4nxn.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Sjoerd, Thank you for this series. On jeu., avril 06, 2023 at 20:55, Sjoerd Simons wrote: > This series adds more boot sources for the TI am62x. For that the dts' > are synced from the upstream ti-next git tree (to add usb nodes), some > dwc3 glue is and finally the default configuration is tuned to add > support for DFU and USB (host and gadget) > > > Changes in v2: > - Update dts sync to v6.3-rc5 > - Switch dwc3 glue to a seperate driver rather then in dwc-generic > - Minimize config changes to just DFU configuration > - Only enable usb port 0 DFU in SPL > - Create a seperate defconfig for R5 > > Sjoerd Simons (8): > omap: timer: add ti,am654-timer compatibility > arm: mach-k3: am62: Add timer0 id to the dev list > arm: dts: k3-am62: Bump dtsi from linux > arm: dts: k3-am625-sk: Enable emmc in SPL > usb: dwc3: Add dwc3 glue driver for am62 > configs: am62: Add configs for enabling USB in U-Boot > arm: dts: k3-am625-sk: Enable usb ports in u-boot > configs: am62x_evm_*: Enable USB and DFU support I've tested USB support on AM62x SK EVM for this whole series based on a public TI integration branch: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/log/?h=ti-u-boot-2023.04-next I did not test DFU, however with some small config changes I could test fastboot support using: => fastboot usb 0 Then from host: $ fastboot devices $ fastboot flash Tested-by: Mattijs Korpershoek > > arch/arm/dts/k3-am62-main.dtsi | 259 +++++++++++++++++++++++--- > arch/arm/dts/k3-am62-mcu.dtsi | 49 +++++ > arch/arm/dts/k3-am62-wakeup.dtsi | 4 +- > arch/arm/dts/k3-am625-r5-sk.dts | 2 +- > arch/arm/dts/k3-am625-sk-u-boot.dtsi | 27 ++- > arch/arm/dts/k3-am625-sk.dts | 95 +++++----- > arch/arm/dts/k3-am625.dtsi | 52 ++++++ > arch/arm/mach-k3/am62x/dev-data.c | 1 + > configs/am62x_evm_a53_defconfig | 35 +++- > configs/am62x_evm_r5_usbdfu_defconfig | 116 ++++++++++++ > drivers/timer/omap-timer.c | 1 + > drivers/usb/dwc3/Kconfig | 14 ++ > drivers/usb/dwc3/Makefile | 1 + > drivers/usb/dwc3/dwc3-am62.c | 127 +++++++++++++ > include/configs/am62x_evm.h | 10 +- > 15 files changed, 701 insertions(+), 92 deletions(-) > create mode 100644 configs/am62x_evm_r5_usbdfu_defconfig > create mode 100644 drivers/usb/dwc3/dwc3-am62.c > > -- > 2.40.0