U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Siddharth Vadapalli <s-vadapalli@ti.com>,
	vigneshr@ti.com, bb@ti.com, trini@konsulko.com, lukma@denx.de,
	n-francis@ti.com, afd@ti.com, glaroque@baylibre.com,
	sjoerd@collabora.com, martyn.welch@collabora.com,
	rasmus.villemoes@prevas.dk, caleb.connolly@linaro.org,
	j-humphreys@ti.com, rogerq@kernel.org, nm@ti.com
Cc: u-boot@lists.denx.de, srk@ti.com, s-vadapalli@ti.com
Subject: Re: [PATCH 0/4] Add support for USB DFU boot on AM62Px
Date: Wed, 18 Dec 2024 10:43:05 +0100	[thread overview]
Message-ID: <871py5xr6e.fsf@baylibre.com> (raw)
In-Reply-To: <20241217131658.2920799-1-s-vadapalli@ti.com>

Hi Siddharth,

Thank you for the series.

On mar., déc. 17, 2024 at 18:46, Siddharth Vadapalli <s-vadapalli@ti.com> wrote:

> Hello,
>
> This series add support for USB DFU boot on TI's AM62Px SoC which has
> two instances of USB Controllers, of which the USB0 instance of USB
> which is a DWC3 USB Controller is used for USB DFU Boot:
> ROM => tiboot3.bin => tispl.bin => u-boot.img
>
> The first patch of this series is based on the suggestion of
> Jonathan Humphreys <j-humpreys@ti.com>
> at:
> https://patchwork.ozlabs.org/project/uboot/cover/20241124070828.617558-1-s-vadapalli@ti.com/#3419733
> which prevents overwriting the "dfu_alt_info" environment variable which
> is set by "spl_dfu_cmd()" for USB DFU boot.
>
> The second patch adds USB DFU environment for AM62Px.
>
> The third patch extends "am62x_r5_usbdfu.config" config fragment for
> being re-used by AM62Px SoC by dropping configs which aren't required
> for USB DFU boot. This is necessary to reduce the size of R5 SPL
> (tiboot3.bin) built for USB DFU boot.
>
> The fourth patch enables USB device-tree nodes for USB DFU functionality
> on AM62Px. Since CONFIG_OF_UPSTREAM is not yet supported for AM62Px, the
> changes are being made in arch/arm/dts/k3-am62p5-sk-u-boot.dtsi at the
> moment, with the intent of making the same changes in the Linux
> device-tree and eventually enabling CONFIG_OF_UPSTREAM to drop the
> changes made in "k3-am62p5-sk-u-boot.dtsi".
>
> Series is based on commit
> 3b3c7280b82 smbios: address build warning
> of the next branch of U-Boot.
>
> The USB DFU config fragments for AM62x are to be re-used for enabling
> USB DFU boot on AM62Px as follows:
> R5  => am62px_evm_r5_defconfig + am62x_r5_usbdfu.config
> A53 => am62px_evm_a53_defconfig + am62x_a53_usbdfu.config
>
> Series has been tested on AM62P5-SK. Logs validating USB DFU boot on
> AM62P5-SK with this series:
> https://gist.github.com/Siddharth-Vadapalli-at-TI/50198ee3348c2db73e0dbd3a14cb0f8b
>
> Series has also been validated on AM625-SK to ensure that the changes
> made to "am62x_r5_usbdfu.config" config fragment being used by AM625-SK
> for USB DFU boot do not cause a regression on AM625-SK w.r.t. USB DFU
> boot. Logs validating USB DFU Boot on AM625-SK with this series:
> https://gist.github.com/Siddharth-Vadapalli-at-TI/85a7579ed2c95330ac71ee3a832cadfb
>
> Regards,
> Siddharth.
>
> Jonathan Humphreys (1):
>   dfu: do not overwrite "dfu_alt_info"
>
> Siddharth Vadapalli (3):
>   board: ti: am62px: env: include environment for DFU Boot
>   configs: am62x_r5_usbdfu: extend for AM62Px
>   arm: dts: k3-am62p5-sk-u-boot: enable USB0 for USB DFU boot

Boot tested this on AM62Px SK EVM using snagrecover:

Boot logs are here: https://paste.debian.net/1340377/

Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

>
>  arch/arm/dts/k3-am62p5-sk-u-boot.dtsi | 10 ++++++++++
>  board/ti/am62px/am62px.env            |  5 +++--
>  configs/am62x_r5_usbdfu.config        |  3 +++
>  drivers/dfu/dfu.c                     |  7 +++++--
>  4 files changed, 21 insertions(+), 4 deletions(-)
>
> -- 
> 2.43.0

      parent reply	other threads:[~2024-12-18  9:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-17 13:16 [PATCH 0/4] Add support for USB DFU boot on AM62Px Siddharth Vadapalli
2024-12-17 13:16 ` [PATCH 1/4] dfu: do not overwrite "dfu_alt_info" Siddharth Vadapalli
2024-12-17 20:55   ` Jon Humphreys
2024-12-18  4:55     ` Siddharth Vadapalli
2024-12-17 13:16 ` [PATCH 2/4] board: ti: am62px: env: include environment for DFU Boot Siddharth Vadapalli
2024-12-18  9:57   ` Mattijs Korpershoek
2024-12-18 10:14     ` Siddharth Vadapalli
2024-12-18 11:00       ` Mattijs Korpershoek
2024-12-18 11:38         ` Siddharth Vadapalli
2024-12-17 13:16 ` [PATCH 3/4] configs: am62x_r5_usbdfu: extend for AM62Px Siddharth Vadapalli
2024-12-18  9:58   ` Mattijs Korpershoek
2024-12-17 13:16 ` [PATCH 4/4] arm: dts: k3-am62p5-sk-u-boot: enable USB0 for USB DFU boot Siddharth Vadapalli
2024-12-18 10:00   ` Mattijs Korpershoek
2024-12-18  9:43 ` Mattijs Korpershoek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871py5xr6e.fsf@baylibre.com \
    --to=mkorpershoek@baylibre.com \
    --cc=afd@ti.com \
    --cc=bb@ti.com \
    --cc=caleb.connolly@linaro.org \
    --cc=glaroque@baylibre.com \
    --cc=j-humphreys@ti.com \
    --cc=lukma@denx.de \
    --cc=martyn.welch@collabora.com \
    --cc=n-francis@ti.com \
    --cc=nm@ti.com \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=rogerq@kernel.org \
    --cc=s-vadapalli@ti.com \
    --cc=sjoerd@collabora.com \
    --cc=srk@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox