All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Martyn Welch <martyn.welch@collabora.com>,
	Dave Gerlach <d-gerlach@ti.com>, Tom Rini <trini@konsulko.com>,
	Nishanth Menon <nm@ti.com>,
	Robert Nelson <robertcnelson@gmail.com>
Cc: Sjoerd Simons <sjoerd@collabora.com>,
	Alexander Sverdlin <alexander.sverdlin@siemens.com>,
	Martyn Welch <martyn.welch@collabora.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v5 5/6] beagleplay: Add DFU support
Date: Tue, 07 May 2024 11:15:00 +0200	[thread overview]
Message-ID: <87h6fac7aj.fsf@baylibre.com> (raw)
In-Reply-To: <20240506143846.1252377-6-martyn.welch@collabora.com>

Hi Martyn,

Thank you for the patch, and for taking over this series.

On lun., mai 06, 2024 at 15:38, Martyn Welch <martyn.welch@collabora.com> wrote:

> From: Sjoerd Simons <sjoerd@collabora.com>
>
> DFU mode on a beagleplay can be used via the Type-C connector by holding
> the USR switch while powering on.
>
> Configuration is already provided as fragments for both the A53 and R5
> u-boot parts. Include the am62x_a53_usbdfu.config config. The
> am62x_r5_usbdfu.config fragment needs to be added should DFU boot be
> required as this will disable booting from persistent storage due to
> binary size constraints.
>
> Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
> Signed-off-by: Martyn Welch <martyn.welch@collabora.com>

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

I've tested usb gadget on Beagle Play board using fastboot.
Also tested DFU mode via snagboot.

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

> ---
> Changes in v5:
> - Use existing config fragment for a53 DFU configuration
> - Force usb0 into peripheral mode
>
> Changes in v4:
> - New patch
>
>  arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 9 +++++++++
>  board/beagle/beagleplay/beagleplay.env       | 1 +
>  configs/am62x_beagleplay_a53_defconfig       | 2 ++
>  3 files changed, 12 insertions(+)
>
> diff --git a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
> index fb2032068d..967a2bdcd1 100644
> --- a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
> +++ b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
> @@ -54,6 +54,15 @@
>  	>;
>  };
>  
> +&usbss0 {
> +	bootph-all;
> +};
> +
> +&usb0 {
> +	dr_mode = "peripheral";
> +	bootph-all;
> +};
> +
>  #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY
>  
>  #define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
> diff --git a/board/beagle/beagleplay/beagleplay.env b/board/beagle/beagleplay/beagleplay.env
> index bbf6b925d0..8dbfc2f7d2 100644
> --- a/board/beagle/beagleplay/beagleplay.env
> +++ b/board/beagle/beagleplay/beagleplay.env
> @@ -1,5 +1,6 @@
>  #include <env/ti/ti_common.env>
>  #include <env/ti/mmc.env>
> +#include <env/ti/k3_dfu.env>
>  
>  name_kern=Image
>  console=ttyS2,115200n8
> diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig
> index 4f1be1df59..ec62670d55 100644
> --- a/configs/am62x_beagleplay_a53_defconfig
> +++ b/configs/am62x_beagleplay_a53_defconfig
> @@ -121,3 +121,5 @@ CONFIG_EXT4_WRITE=y
>  CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
>  CONFIG_LZO=y
>  CONFIG_EFI_SET_TIME=y
> +
> +#include <configs/am62x_a53_usbdfu.config>
> -- 
> 2.43.0

  reply	other threads:[~2024-05-07  9:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 14:38 [PATCH v5 0/6] Add DFU and usb boot for TI am62x SK and beagleplay Martyn Welch
2024-05-06 14:38 ` [PATCH v5 1/6] usb: dwc3: Add dwc3 glue driver for am62 Martyn Welch
2024-05-06 14:38 ` [PATCH v5 2/6] board: ti: am62x: am62x: include env for DFU Martyn Welch
2024-05-06 14:38 ` [PATCH v5 3/6] arm: dts: k3-am625-sk: Enable usb port in u-boot Martyn Welch
2024-05-07  9:01   ` Mattijs Korpershoek
2024-05-06 14:38 ` [PATCH v5 4/6] configs: am62x_evm_*: Enable USB and DFU support Martyn Welch
2024-05-07  8:14   ` Francesco Dolcini
2024-05-07 14:33     ` Tom Rini
2024-05-07  9:05   ` Mattijs Korpershoek
2024-05-23 20:08   ` Jon Humphreys
2024-07-01 11:27     ` Martyn Welch
2024-07-04  1:35       ` Jon Humphreys
2024-07-11 20:51       ` Jon Humphreys
2024-07-11 21:41         ` Jon Humphreys
2024-07-12  7:51           ` Martyn Welch
2024-05-06 14:38 ` [PATCH v5 5/6] beagleplay: Add " Martyn Welch
2024-05-07  9:15   ` Mattijs Korpershoek [this message]
2024-05-06 14:38 ` [PATCH v5 6/6] doc: board: Add document for DFU boot on am62x SoCs Martyn Welch
2024-05-15 23:28 ` [PATCH v5 0/6] Add DFU and usb boot for TI am62x SK and beagleplay Tom Rini

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=87h6fac7aj.fsf@baylibre.com \
    --to=mkorpershoek@baylibre.com \
    --cc=alexander.sverdlin@siemens.com \
    --cc=d-gerlach@ti.com \
    --cc=martyn.welch@collabora.com \
    --cc=nm@ti.com \
    --cc=robertcnelson@gmail.com \
    --cc=sjoerd@collabora.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 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.