U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A
@ 2024-08-02  2:49 FUKAUMI Naoki
  2024-08-08 23:46 ` FUKAUMI Naoki
  2024-08-09  9:14 ` Kever Yang
  0 siblings, 2 replies; 3+ messages in thread
From: FUKAUMI Naoki @ 2024-08-02  2:49 UTC (permalink / raw)
  To: u-boot
  Cc: sjg, philipp.tomsich, kever.yang, gajjar04akash, jonas,
	FUKAUMI Naoki

on-board USB 2.0 hub, FE1.1s, has Transaction Translator which can
handle USB 1.x devices via "usb_host0_ehci". so we can omit
"usb_host0_ohci" and make boot faster (a little).

=> usb start
starting USB...
Bus usb@fd000000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fd800000: USB EHCI 1.00
Bus usb@fd880000: USB EHCI 1.00
Bus usb@fd8c0000: USB OHCI 1.0
scanning bus usb@fd000000 for devices... 1 USB Device(s) found
scanning bus usb@fd800000 for devices... 2 USB Device(s) found
scanning bus usb@fd880000 for devices... 1 USB Device(s) found
scanning bus usb@fd8c0000 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=> usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
     U-Boot XHCI Host Controller

  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
        USB 2.0 Hub

  1  Hub (480 Mb/s, 0mA)
     u-boot EHCI Host Controller

  1  Hub (12 Mb/s, 0mA)
  |   U-Boot Root Hub
  |
  +-2  Hub (12 Mb/s, 100mA)
    |  ALCOR Generic USB Hub
    |
    +-3  Mass Storage (12 Mb/s, 300mA)
         JetFlash Mass Storage Device 02K1RNH5MJFV4TX6

=> usb reset
resetting USB...
Host not halted after 16000 microseconds.
Bus usb@fd000000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fd800000: USB EHCI 1.00
Bus usb@fd880000: USB EHCI 1.00
Bus usb@fd8c0000: USB OHCI 1.0
scanning bus usb@fd000000 for devices... 1 USB Device(s) found
scanning bus usb@fd800000 for devices... 4 USB Device(s) found
scanning bus usb@fd880000 for devices... 1 USB Device(s) found
scanning bus usb@fd8c0000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=> usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
     U-Boot XHCI Host Controller

  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
    |   USB 2.0 Hub
    |
    +-3  Hub (12 Mb/s, 100mA)
      |  ALCOR Generic USB Hub
      |
      +-4  Mass Storage (12 Mb/s, 300mA)
           JetFlash Mass Storage Device 02K1RNH5MJFV4TX6

  1  Hub (480 Mb/s, 0mA)
     u-boot EHCI Host Controller

  1  Hub (12 Mb/s, 0mA)
      U-Boot Root Hub

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
 arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
index 9d18f5d0b36..9078b9a67a2 100644
--- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
+++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
@@ -40,3 +40,7 @@
 		spi-tx-bus-width = <1>;
 	};
 };
+
+&usb_host0_ohci {
+	status = "disabled";
+};
-- 
2.43.0


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

* Re: [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A
  2024-08-02  2:49 [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A FUKAUMI Naoki
@ 2024-08-08 23:46 ` FUKAUMI Naoki
  2024-08-09  9:14 ` Kever Yang
  1 sibling, 0 replies; 3+ messages in thread
From: FUKAUMI Naoki @ 2024-08-08 23:46 UTC (permalink / raw)
  To: u-boot

sorry, please ignore this patch.

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

On 8/2/24 11:49, FUKAUMI Naoki wrote:
> on-board USB 2.0 hub, FE1.1s, has Transaction Translator which can
> handle USB 1.x devices via "usb_host0_ehci". so we can omit
> "usb_host0_ohci" and make boot faster (a little).
> 
> => usb start
> starting USB...
> Bus usb@fd000000: Register 2000140 NbrPorts 2
> Starting the controller
> USB XHCI 1.10
> Bus usb@fd800000: USB EHCI 1.00
> Bus usb@fd880000: USB EHCI 1.00
> Bus usb@fd8c0000: USB OHCI 1.0
> scanning bus usb@fd000000 for devices... 1 USB Device(s) found
> scanning bus usb@fd800000 for devices... 2 USB Device(s) found
> scanning bus usb@fd880000 for devices... 1 USB Device(s) found
> scanning bus usb@fd8c0000 for devices... 3 USB Device(s) found
>         scanning usb for storage devices... 1 Storage Device(s) found
> => usb tree
> USB device tree:
>    1  Hub (5 Gb/s, 0mA)
>       U-Boot XHCI Host Controller
> 
>    1  Hub (480 Mb/s, 0mA)
>    |  u-boot EHCI Host Controller
>    |
>    +-2  Hub (480 Mb/s, 100mA)
>          USB 2.0 Hub
> 
>    1  Hub (480 Mb/s, 0mA)
>       u-boot EHCI Host Controller
> 
>    1  Hub (12 Mb/s, 0mA)
>    |   U-Boot Root Hub
>    |
>    +-2  Hub (12 Mb/s, 100mA)
>      |  ALCOR Generic USB Hub
>      |
>      +-3  Mass Storage (12 Mb/s, 300mA)
>           JetFlash Mass Storage Device 02K1RNH5MJFV4TX6
> 
> => usb reset
> resetting USB...
> Host not halted after 16000 microseconds.
> Bus usb@fd000000: Register 2000140 NbrPorts 2
> Starting the controller
> USB XHCI 1.10
> Bus usb@fd800000: USB EHCI 1.00
> Bus usb@fd880000: USB EHCI 1.00
> Bus usb@fd8c0000: USB OHCI 1.0
> scanning bus usb@fd000000 for devices... 1 USB Device(s) found
> scanning bus usb@fd800000 for devices... 4 USB Device(s) found
> scanning bus usb@fd880000 for devices... 1 USB Device(s) found
> scanning bus usb@fd8c0000 for devices... 1 USB Device(s) found
>         scanning usb for storage devices... 1 Storage Device(s) found
> => usb tree
> USB device tree:
>    1  Hub (5 Gb/s, 0mA)
>       U-Boot XHCI Host Controller
> 
>    1  Hub (480 Mb/s, 0mA)
>    |  u-boot EHCI Host Controller
>    |
>    +-2  Hub (480 Mb/s, 100mA)
>      |   USB 2.0 Hub
>      |
>      +-3  Hub (12 Mb/s, 100mA)
>        |  ALCOR Generic USB Hub
>        |
>        +-4  Mass Storage (12 Mb/s, 300mA)
>             JetFlash Mass Storage Device 02K1RNH5MJFV4TX6
> 
>    1  Hub (480 Mb/s, 0mA)
>       u-boot EHCI Host Controller
> 
>    1  Hub (12 Mb/s, 0mA)
>        U-Boot Root Hub
> 
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---
>   arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> index 9d18f5d0b36..9078b9a67a2 100644
> --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> @@ -40,3 +40,7 @@
>   		spi-tx-bus-width = <1>;
>   	};
>   };
> +
> +&usb_host0_ohci {
> +	status = "disabled";
> +};

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

* Re: [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A
  2024-08-02  2:49 [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A FUKAUMI Naoki
  2024-08-08 23:46 ` FUKAUMI Naoki
@ 2024-08-09  9:14 ` Kever Yang
  1 sibling, 0 replies; 3+ messages in thread
From: Kever Yang @ 2024-08-09  9:14 UTC (permalink / raw)
  To: FUKAUMI Naoki, u-boot; +Cc: sjg, philipp.tomsich, gajjar04akash, jonas

Hi Naoki,

On 2024/8/2 10:49, FUKAUMI Naoki wrote:
> on-board USB 2.0 hub, FE1.1s, has Transaction Translator which can
> handle USB 1.x devices via "usb_host0_ehci". so we can omit
> "usb_host0_ohci" and make boot faster (a little).

The OHCI is in use when the direct connect device is USB1.1; and if the 
board

connect with usb2.0 hub, then only EHCI is working and OHCI has no use.


>
> => usb start
> starting USB...
> Bus usb@fd000000: Register 2000140 NbrPorts 2
> Starting the controller
> USB XHCI 1.10
> Bus usb@fd800000: USB EHCI 1.00
> Bus usb@fd880000: USB EHCI 1.00
> Bus usb@fd8c0000: USB OHCI 1.0
> scanning bus usb@fd000000 for devices... 1 USB Device(s) found
> scanning bus usb@fd800000 for devices... 2 USB Device(s) found
> scanning bus usb@fd880000 for devices... 1 USB Device(s) found
> scanning bus usb@fd8c0000 for devices... 3 USB Device(s) found
>         scanning usb for storage devices... 1 Storage Device(s) found
> => usb tree
> USB device tree:
>    1  Hub (5 Gb/s, 0mA)
>       U-Boot XHCI Host Controller
>
>    1  Hub (480 Mb/s, 0mA)
>    |  u-boot EHCI Host Controller
>    |
>    +-2  Hub (480 Mb/s, 100mA)
>          USB 2.0 Hub
>
>    1  Hub (480 Mb/s, 0mA)
>       u-boot EHCI Host Controller
>
>    1  Hub (12 Mb/s, 0mA)
>    |   U-Boot Root Hub
>    |
>    +-2  Hub (12 Mb/s, 100mA)
>      |  ALCOR Generic USB Hub
>      |
>      +-3  Mass Storage (12 Mb/s, 300mA)
>           JetFlash Mass Storage Device 02K1RNH5MJFV4TX6
>
> => usb reset
> resetting USB...
> Host not halted after 16000 microseconds.
> Bus usb@fd000000: Register 2000140 NbrPorts 2
> Starting the controller
> USB XHCI 1.10
> Bus usb@fd800000: USB EHCI 1.00
> Bus usb@fd880000: USB EHCI 1.00
> Bus usb@fd8c0000: USB OHCI 1.0
> scanning bus usb@fd000000 for devices... 1 USB Device(s) found
> scanning bus usb@fd800000 for devices... 4 USB Device(s) found
> scanning bus usb@fd880000 for devices... 1 USB Device(s) found
> scanning bus usb@fd8c0000 for devices... 1 USB Device(s) found
>         scanning usb for storage devices... 1 Storage Device(s) found
> => usb tree
> USB device tree:
>    1  Hub (5 Gb/s, 0mA)
>       U-Boot XHCI Host Controller
>
>    1  Hub (480 Mb/s, 0mA)
>    |  u-boot EHCI Host Controller
>    |
>    +-2  Hub (480 Mb/s, 100mA)
>      |   USB 2.0 Hub
>      |
>      +-3  Hub (12 Mb/s, 100mA)
>        |  ALCOR Generic USB Hub
>        |
>        +-4  Mass Storage (12 Mb/s, 300mA)
>             JetFlash Mass Storage Device 02K1RNH5MJFV4TX6
>
>    1  Hub (480 Mb/s, 0mA)
>       u-boot EHCI Host Controller
>
>    1  Hub (12 Mb/s, 0mA)
>        U-Boot Root Hub
>
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> index 9d18f5d0b36..9078b9a67a2 100644
> --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> @@ -40,3 +40,7 @@
>   		spi-tx-bus-width = <1>;
>   	};
>   };
> +
> +&usb_host0_ohci {
> +	status = "disabled";
> +};

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

end of thread, other threads:[~2024-08-09  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  2:49 [PATCH] arm: dts: rockchip: disable "usb_host0_ohci" to make boot faster for Radxa ROCK 3A FUKAUMI Naoki
2024-08-08 23:46 ` FUKAUMI Naoki
2024-08-09  9:14 ` Kever Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox