All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow
@ 2019-01-24 14:42 Jean-Jacques Hiblot
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports Jean-Jacques Hiblot
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-24 14:42 UTC (permalink / raw)
  To: u-boot


The AM43xx is able to get its SPL from an external USB storage. There is a
dedicated defconfig (am43xx_evm_usbhost_boot_defconfig) but it doesn't use
DM_USB. Converting this defconfig to DM_USB.


Jean-Jacques Hiblot (3):
  ARM: DTS: am43xx: Add aliases for the USB ports
  ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL
  configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support

 arch/arm/dts/am4372-u-boot.dtsi           | 27 +++++++++++++++++++++++
 configs/am43xx_evm_usbhost_boot_defconfig | 12 ++++++++++
 2 files changed, 39 insertions(+)

-- 
2.17.1

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

* [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports
  2019-01-24 14:42 [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Jean-Jacques Hiblot
@ 2019-01-24 14:42 ` Jean-Jacques Hiblot
  2019-02-03  1:08   ` [U-Boot] [U-Boot, v1, " Tom Rini
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL Jean-Jacques Hiblot
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-24 14:42 UTC (permalink / raw)
  To: u-boot

Although not required, it doesn't hurt to explicitly map the USB ports to
a USB controller. Without this, the port number will be derived from the
binding order of the peripheral devices.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---

 arch/arm/dts/am4372-u-boot.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/dts/am4372-u-boot.dtsi b/arch/arm/dts/am4372-u-boot.dtsi
index 99922ca030..0e6d41f54b 100644
--- a/arch/arm/dts/am4372-u-boot.dtsi
+++ b/arch/arm/dts/am4372-u-boot.dtsi
@@ -3,6 +3,13 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+/{
+	aliases {
+		usb0 = &usb1;
+		usb1 = &usb2;
+	};
+};
+
 &am43xx_control_usb2phy1 {
 	compatible = "ti,control-phy-usb2-am437", "syscon";
 };
-- 
2.17.1

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

* [U-Boot] [PATCH v1 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL
  2019-01-24 14:42 [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Jean-Jacques Hiblot
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports Jean-Jacques Hiblot
@ 2019-01-24 14:42 ` Jean-Jacques Hiblot
  2019-02-03  1:09   ` [U-Boot] [U-Boot, v1, " Tom Rini
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support Jean-Jacques Hiblot
  2019-01-25  7:34 ` [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Lokesh Vutla
  3 siblings, 1 reply; 8+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-24 14:42 UTC (permalink / raw)
  To: u-boot

This is required to enable the USB port #2 in SPL when DM_USB is used.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---

 arch/arm/dts/am4372-u-boot.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/dts/am4372-u-boot.dtsi b/arch/arm/dts/am4372-u-boot.dtsi
index 0e6d41f54b..986ae17470 100644
--- a/arch/arm/dts/am4372-u-boot.dtsi
+++ b/arch/arm/dts/am4372-u-boot.dtsi
@@ -45,3 +45,23 @@
 &ocp2scp0 {
 	u-boot,dm-spl;
 };
+
+&dwc3_2 {
+	u-boot,dm-spl;
+};
+
+&usb2 {
+	u-boot,dm-spl;
+};
+
+&usb2_phy2 {
+	u-boot,dm-spl;
+};
+
+&am43xx_control_usb2phy2 {
+	u-boot,dm-spl;
+};
+
+&ocp2scp1 {
+	u-boot,dm-spl;
+};
-- 
2.17.1

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

* [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support
  2019-01-24 14:42 [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Jean-Jacques Hiblot
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports Jean-Jacques Hiblot
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL Jean-Jacques Hiblot
@ 2019-01-24 14:42 ` Jean-Jacques Hiblot
  2019-01-25 15:02   ` Jean-Jacques Hiblot
  2019-01-25  7:34 ` [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Lokesh Vutla
  3 siblings, 1 reply; 8+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-24 14:42 UTC (permalink / raw)
  To: u-boot

Enable DM_USB support in u-boot and in SPL.
This brings this configuration closer to am43xx_evm_defconfig.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>

---

 configs/am43xx_evm_usbhost_boot_defconfig | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/configs/am43xx_evm_usbhost_boot_defconfig b/configs/am43xx_evm_usbhost_boot_defconfig
index 5131f190a7..b8d535cc3b 100644
--- a/configs/am43xx_evm_usbhost_boot_defconfig
+++ b/configs/am43xx_evm_usbhost_boot_defconfig
@@ -40,11 +40,16 @@ CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm"
 CONFIG_ENV_IS_IN_FAT=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_DM=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_SPL_SYSCON=y
 # CONFIG_BLK is not set
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
 CONFIG_DFU_SF=y
 CONFIG_DM_GPIO=y
+CONFIG_MISC=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
@@ -53,17 +58,24 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_PHY_GIGE=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_PHY=y
+CONFIG_SPL_PHY=y
+CONFIG_OMAP_USB2_PHY=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
 CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_DM_USB_GADGET=y
+CONFIG_SPL_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_GENERIC=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_GADGET=y
-- 
2.17.1

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

* [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow
  2019-01-24 14:42 [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Jean-Jacques Hiblot
                   ` (2 preceding siblings ...)
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support Jean-Jacques Hiblot
@ 2019-01-25  7:34 ` Lokesh Vutla
  3 siblings, 0 replies; 8+ messages in thread
From: Lokesh Vutla @ 2019-01-25  7:34 UTC (permalink / raw)
  To: u-boot



On 24/01/19 8:12 PM, Jean-Jacques Hiblot wrote:
> 
> The AM43xx is able to get its SPL from an external USB storage. There is a
> dedicated defconfig (am43xx_evm_usbhost_boot_defconfig) but it doesn't use
> DM_USB. Converting this defconfig to DM_USB.

For the whole series

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

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

* [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support Jean-Jacques Hiblot
@ 2019-01-25 15:02   ` Jean-Jacques Hiblot
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-25 15:02 UTC (permalink / raw)
  To: u-boot

There is a build issue with this series (forgot to run buildman on 
this), I'll send a v2 shortly.

On 24/01/2019 15:42, Jean-Jacques Hiblot wrote:
> Enable DM_USB support in u-boot and in SPL.
> This brings this configuration closer to am43xx_evm_defconfig.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
>
> ---
>
>   configs/am43xx_evm_usbhost_boot_defconfig | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/configs/am43xx_evm_usbhost_boot_defconfig b/configs/am43xx_evm_usbhost_boot_defconfig
> index 5131f190a7..b8d535cc3b 100644
> --- a/configs/am43xx_evm_usbhost_boot_defconfig
> +++ b/configs/am43xx_evm_usbhost_boot_defconfig
> @@ -40,11 +40,16 @@ CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm"
>   CONFIG_ENV_IS_IN_FAT=y
>   CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>   CONFIG_DM=y
> +CONFIG_REGMAP=y
> +CONFIG_SPL_REGMAP=y
> +CONFIG_SYSCON=y
> +CONFIG_SPL_SYSCON=y
>   # CONFIG_BLK is not set
>   CONFIG_DFU_MMC=y
>   CONFIG_DFU_RAM=y
>   CONFIG_DFU_SF=y
>   CONFIG_DM_GPIO=y
> +CONFIG_MISC=y
>   CONFIG_DM_MMC=y
>   CONFIG_MMC_OMAP_HS=y
>   CONFIG_NAND=y
> @@ -53,17 +58,24 @@ CONFIG_SPI_FLASH_MACRONIX=y
>   CONFIG_PHY_GIGE=y
>   CONFIG_MII=y
>   CONFIG_DRIVER_TI_CPSW=y
> +CONFIG_PHY=y
> +CONFIG_SPL_PHY=y
> +CONFIG_OMAP_USB2_PHY=y
>   CONFIG_DM_SERIAL=y
>   CONFIG_SPI=y
>   CONFIG_TI_QSPI=y
>   CONFIG_TIMER=y
>   CONFIG_OMAP_TIMER=y
>   CONFIG_USB=y
> +CONFIG_DM_USB=y
> +CONFIG_DM_USB_GADGET=y
> +CONFIG_SPL_DM_USB_GADGET=y
>   CONFIG_USB_XHCI_HCD=y
>   CONFIG_USB_XHCI_DWC3=y
>   CONFIG_USB_DWC3=y
>   CONFIG_USB_DWC3_GADGET=y
>   CONFIG_USB_DWC3_OMAP=y
> +CONFIG_USB_DWC3_GENERIC=y
>   CONFIG_USB_DWC3_PHY_OMAP=y
>   CONFIG_OMAP_USB_PHY=y
>   CONFIG_USB_GADGET=y

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

* [U-Boot] [U-Boot, v1, 1/3] ARM: DTS: am43xx: Add aliases for the USB ports
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports Jean-Jacques Hiblot
@ 2019-02-03  1:08   ` Tom Rini
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-02-03  1:08 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 24, 2019 at 03:42:51PM +0100, Jean-Jacques Hiblot wrote:

> Although not required, it doesn't hurt to explicitly map the USB ports to
> a USB controller. Without this, the port number will be derived from the
> binding order of the peripheral devices.
> 
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190202/f59db75e/attachment.sig>

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

* [U-Boot] [U-Boot, v1, 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL
  2019-01-24 14:42 ` [U-Boot] [PATCH v1 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL Jean-Jacques Hiblot
@ 2019-02-03  1:09   ` Tom Rini
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-02-03  1:09 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 24, 2019 at 03:42:52PM +0100, Jean-Jacques Hiblot wrote:

> This is required to enable the USB port #2 in SPL when DM_USB is used.
> 
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190202/38424ce8/attachment.sig>

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

end of thread, other threads:[~2019-02-03  1:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 14:42 [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Jean-Jacques Hiblot
2019-01-24 14:42 ` [U-Boot] [PATCH v1 1/3] ARM: DTS: am43xx: Add aliases for the USB ports Jean-Jacques Hiblot
2019-02-03  1:08   ` [U-Boot] [U-Boot, v1, " Tom Rini
2019-01-24 14:42 ` [U-Boot] [PATCH v1 2/3] ARM: DTS: am43xx: Enable the DTS entries for USB port #2 in SPL Jean-Jacques Hiblot
2019-02-03  1:09   ` [U-Boot] [U-Boot, v1, " Tom Rini
2019-01-24 14:42 ` [U-Boot] [PATCH v1 3/3] configs: am43xx_evm_usbhost_defconfig: Enable DM_USB support Jean-Jacques Hiblot
2019-01-25 15:02   ` Jean-Jacques Hiblot
2019-01-25  7:34 ` [U-Boot] [PATCH v1 0/3] Enable DM USB support (host and gadget) in the USB host boot flow Lokesh Vutla

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.