All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add support for USB DFU boot on AM62Px
@ 2024-12-17 13:16 Siddharth Vadapalli
  2024-12-17 13:16 ` [PATCH 1/4] dfu: do not overwrite "dfu_alt_info" Siddharth Vadapalli
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Siddharth Vadapalli @ 2024-12-17 13:16 UTC (permalink / raw)
  To: vigneshr, bb, trini, lukma, n-francis, mkorpershoek, afd,
	glaroque, sjoerd, martyn.welch, rasmus.villemoes, caleb.connolly,
	j-humphreys, rogerq, nm
  Cc: u-boot, srk, s-vadapalli

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

 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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-12-18 11:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 0/4] Add support for USB DFU boot on AM62Px Mattijs Korpershoek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.