Skip to content

RFC Odroid U3 usb initialization

Anand Moon u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6odroid: exynos: USB initialization on the U3/X2board/samsung/odroid/odroid.c drivers/usb/host/ehci-exynos.c+16 -54 replies
1/6odroid: exynos: USB initialization on the U3/X2+0 -00 replies
1/6odroid: exynos: USB initialization on the U3/X2+0 -00 replies
2/6odroid: exynos: usb clean up for U3/X2board/samsung/common/board.c board/samsung/odroid/odroid.c+7 -21 reply
2/6odroid: exynos: usb clean up for U3/X2+0 -01 reply
3/6usb: exynos: add init_after_reset for usb resetdrivers/usb/host/ehci-exynos.c+19 -11 reply
3/6usb: exynos: add init_after_reset for usb reset+0 -01 reply
4/6configs: exynos: Add new CONFIG_SYS_ODROID_USB config optionboard/samsung/odroid/Kconfig drivers/usb/host/ehci-exynos.c include/configs/odroid.h+10 -01 reply
4/6configs: exynos: Add new CONFIG_SYS_ODROID_USB config option+0 -01 reply
4/6configs: exynos: Add new CONFIG_SYS_ODROID_USB config option+0 -01 reply
4/6configs: exynos: Add new CONFIG_SYS_ODROID_USB config option+0 -01 reply
5/6arm: exynos: odroid: fix the confict scripaddr extra env settinginclude/configs/odroid.h+2 -11 reply
5/6arm: exynos: odroid: fix the confict scripaddr extra env setting+0 -00 replies
6/6arm: exynos: add usbnet_devaddr setting to envinclude/configs/odroid.h+2 -01 reply
6/6arm: exynos: add usbnet_devaddr setting to env+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC 0/6] Odroid U3 usb initialization

Odroid u3 had the issue like ethernet would not get initialize from the u-boot with "usb start" command.

These changes are based on following work done by Tobias Jakobi

[0] https://github.com/tobiasjakobi/u-boot/commit/77a1142eb0aac08464398ef053d66dbf42b42486

These changes tried to address the issue of initialization of usb devices.

Below is the command I have used for testing.

Tested on Odroid U3+
Other board need to tested as I dnot have them.

----------------------------------------------
U-Boot 2019.04-rc4-00089-ga5515f5f60 (Apr 01 2019 - 11:11:59 +0000)

CPU:   Exynos4412 @ 1 GHz
Model: Odroid based on Exynos4412
Type:  u3
DRAM:  2 GiB
LDO20 at VDDQ_EMMC_1.8V: set 1800000 uV; enabling
LDO22 at VDDQ_EMMC_2.8V: set 2800000 uV; enabling
LDO21 at TFLASH_2.8V: set 2800000 uV; enabling
MMC:   SAMSUNG SDHCI: 1, EXYNOS DWMMC: 0

Loading Environment from MMC... Card did not respond to voltage select! *** Warning - No block device, using default environment

Net:   No ethernet found.
Hit any key to stop autoboot:  0

Odroid #
Odroid # usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found
Odroid # usb reset
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found
Odroid # usb info
1: Hub, USB Revision 2.0
- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

2: Vendor specific, USB Revision 2.0
- Class: Vendor specific
- PacketSize: 64 Configurations: 1
- Vendor: 0x0424 Product 0x9730 Version 1.0
Configuration: 1
- Interfaces: 1 Bus Powered 500mA
Interface: 0
- Alternate Setting 0, Endpoints: 3
- Class Vendor specific
- Endpoint 1 In Bulk MaxPacket 512
- Endpoint 2 Out Bulk MaxPacket 512
- Endpoint 3 In Interrupt MaxPacket 16 Interval 4ms

3: Hub, USB Revision 2.0
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor: 0x0424 Product 0x3503 Version 161.160
Configuration: 1
- Interfaces: 1 Self Powered Remote Wakeup 2mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms
- Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms

4: Mass Storage, USB Revision 2.10
- JMicron JMS567 DB12345678A3
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0x152d Product 0x0578 Version 99.1
Configuration: 1
- Interfaces: 1 Self Powered 30mA
Interface: 0
- Alternate Setting 0, Endpoints: 2
- Class Mass Storage, Transp. SCSI, Bulk only
- Endpoint 1 In Bulk MaxPacket 512
- Endpoint 2 Out Bulk MaxPacket 512
- Endpoint 1 Out Bulk MaxPacket 512
- Endpoint 2 In Bulk MaxPacket 512
- Endpoint 3 In Bulk MaxPacket 512
- Endpoint 4 Out Bulk MaxPacket 512

Odroid # reset
resetting ...

U-Boot 2019.04-rc4-00089-ga5515f5f60 (Apr 01 2019 - 11:11:59 +0000)

----------------------

Anand Moon (6):
odroid: exynos: USB initialization on the U3/X2
odroid: exynos: usb clean up for U3/X2
usb: exynos: add init_after_reset for usb reset
configs: exynos: Add new CONFIG_SYS_ODROID_USB config option
arm: exynos: odroid: fix the confict scripaddr extra env setting
arm: exynos: add usbnet_devaddr setting to env

 board/samsung/common/board.c   |  4 ++--
 board/samsung/odroid/Kconfig   |  3 +++
 board/samsung/odroid/odroid.c  | 19 ++++++++++++++-----
 drivers/usb/host/ehci-exynos.c | 33 ++++++++++++++++++++++++++++++++-
 include/configs/odroid.h       |  6 +++++-
 5 files changed, 56 insertions(+), 9 deletions(-)
Signature · 1 line
2.21.0