Enable USB 3.1 for Agilex5 SoCFPGA
Subsystems (3)
cover Enable USB 3.1 for Agilex5 SoCFPGA
Required configurations for USB 3.1 are enabled for Agilex5 boards. Testing has been successfully carried out on Agilex5 devkits.
Naresh Kumar Ravulapalli (4):
arch: arm: dts: Enable USB3.1 for Agilex5
configs: Enable USB DWC3 host drivers for Agilex5
configs: Increase USB Hub debounce timeout in Agilex5
arch: arm: socfpga: Configure USB3 System Manager registers
arch/arm/dts/socfpga_agilex5_socdk.dts | 5 ++++ .../include/mach/system_manager_soc64.h | 12 +++++++++ arch/arm/mach-socfpga/system_manager_soc64.c | 26 ++++++++++++++++++- configs/socfpga_agilex5_defconfig | 3 +++ 4 files changed, 45 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.3
PATCH 1/4 arch: arm: dts: Enable USB3.1 for Agilex5
USB 3.1 node is enabled for Agilex5.
--- arch/arm/dts/socfpga_agilex5_socdk.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/dts/socfpga_agilex5_socdk.dts +5 -0
@@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Intel Corporation <www.intel.com> + * Copyright (C) 2025 Altera Corporation <www.altera.com> */ #include "socfpga_agilex5.dtsi"
@@ -87,6 +88,10 @@ disable-over-current; }; +&usb31 { + status = "okay"; +}; + &watchdog0 { status = "okay"; };
Signature · 1 line
2.35.3
RE: [PATCH 1/4] arch: arm: dts: Enable USB3.1 for Agilex5
Quoted 45 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 1/4] arch: arm: dts: Enable USB3.1 for Agilex5USB 3.1 node is enabled for Agilex5.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- arch/arm/dts/socfpga_agilex5_socdk.dts | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/dts/socfpga_agilex5_socdk.dts +5
-1@@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Intel Corporation <www.intel.com> + * Copyright (C) 2025 Altera Corporation <www.altera.com> */ #include "socfpga_agilex5.dtsi"@@ -87,6 +88,10 @@ disable-over-current; }; +&usb31 { + status = "okay"; +}; + &watchdog0 { status = "okay"; }; --
Quoted 1 line
2.35.3
Best regards,
Tien Fong
PATCH 2/4 configs: Enable USB DWC3 host drivers for Agilex5
In reply to Naresh Kumar RavulapalliRequired USB DWC3 host driver configurations are enabled for Agilex5.
--- configs/socfpga_agilex5_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/socfpga_agilex5_defconfig +2 -0
@@ -98,7 +98,9 @@ CONFIG_TIMER=y CONFIG_DESIGNWARE_APB_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC2=y +CONFIG_USB_DWC3=y CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set
Signature · 1 line
2.35.3
RE: [PATCH 2/4] configs: Enable USB DWC3 host drivers for Agilex5
Quoted 36 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 2/4] configs: Enable USB DWC3 host drivers for Agilex5Required USB DWC3 host driver configurations are enabled for Agilex5.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- configs/socfpga_agilex5_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/socfpga_agilex5_defconfig +2
-1@@ -98,7 +98,9 @@ CONFIG_TIMER=y CONFIG_DESIGNWARE_APB_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC2=y +CONFIG_USB_DWC3=y CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set --
Quoted 1 line
2.35.3
Best regards,
Tien Fong
PATCH 3/4 configs: Increase USB Hub debounce timeout in Agilex5
In reply to Naresh Kumar RavulapalliSome USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
--- configs/socfpga_agilex5_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/socfpga_agilex5_defconfig +1 -0
@@ -101,6 +101,7 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y +CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=3000 CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set
Signature · 1 line
2.35.3
RE: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 28 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- configs/socfpga_agilex5_defconfig | 1 + 1 file changed, 1 insertion(+)configs/socfpga_agilex5_defconfig +0
-0@@ -101,6 +101,7 @@ CONFIG_USB_XHCI_HCD=y
Quoted 8 lines
CONFIG_USB_XHCI_DWC3=yCONFIG_USB_DWC2=yCONFIG_USB_DWC3=y
+CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=3000
CONFIG_DESIGNWARE_WATCHDOG=y
CONFIG_WDT=y
#CONFIG_SPL_USE_TINY_PRINTFis not set
--
2.35.3
Best regards,
Tien Fong
RE: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
In reply to Naresh Kumar RavulapalliQuoted 28 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- configs/socfpga_agilex5_defconfig | 1 + 1 file changed, 1 insertion(+)configs/socfpga_agilex5_defconfig +0
-0@@ -101,6 +101,7 @@ CONFIG_USB_XHCI_HCD=y
Quoted 8 lines
CONFIG_USB_XHCI_DWC3=yCONFIG_USB_DWC2=yCONFIG_USB_DWC3=y
+CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=3000
CONFIG_DESIGNWARE_WATCHDOG=y
CONFIG_WDT=y
#CONFIG_SPL_USE_TINY_PRINTFis not set
--
2.35.3
Best regards,
Tien Fong
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
In reply to Naresh Kumar RavulapalliQuoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or usb_pgood_delay ?
Which devices are those, include that in the commit message.
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Note that I am not modifying the default Kconfig value in general; change is only made for an SoCFPGA devkit we tested.
Kind Regards
Naresh
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 10 lines · Naresh Kumar
Hi Marek
Quoted 7 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?
Quoted 7 lines
Quoted 1 line
Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.
Does this same issue go away if you set usb_pgood_delay to 2000 or higher too ?
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?
No, changing USB HUB debounce timeout is working for us.
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 25 lines · Naresh Kumar
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c?ref_type=heads#L199
"
#if CONFIG_IS_ENABLED(ENV_SUPPORT)
env = env_get("usb_pgood_delay");
if (env)
pgood_delay = max(pgood_delay,
(unsigned)simple_strtol(env, NULL, 0));
#endif
debug("pgood_delay=%dms\n", pgood_delay);
/*
* Do a minimum delay of the larger value of 100ms or pgood_delay
* so that the power can stablize before the devices are queried
*/
hub->query_delay = get_timer(0) + max(100, (int)pgood_delay);
/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
* usb_hub_configure() later.
*/
hub->connect_timeout = hub->query_delay + HUB_DEBOUNCE_TIMEOUT;
debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",
dev->devnum, max(100, (int)pgood_delay),
max(100, (int)pgood_delay) + HUB_DEBOUNCE_TIMEOUT);"
Changing both usb_pgood_delay or (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Hi Marek
Quoted 64 lines · Marek Vasut
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Quoted 25 lines · Naresh Kumar
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c? ref_type=heads#L199
"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0));
#endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried */
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT);
"
Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
CONFIG_USB_HUB_DEBOUNCE_TIMEOUT and pgood_delay are used for different purposes. If I am not mistaken I think I explained this in my earlier comments.
Anyway, to further elaborate, CONFIG_USB_HUB_DEBOUNCE_TIMEOUT is used for debounce timeouts during device connect events and pgood_delay is used during initial VBus stabilization.
You would be able to see this difference in the link below, where pgood_delay which is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub->connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is used after getting the port status.
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
Kind Regards
Naresh
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 69 lines · Naresh Kumar
Hi Marek
Quoted 63 lines · Marek Vasut
Quoted 25 lines · Naresh Kumar
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c? ref_type=heads#L199
"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0)); #endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried */
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT); "Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
Quoted 8 lines
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTandpgood_delayare used for different purposes. If I am not mistaken I think I explained this in my earlier comments.Anyway, to further elaborate,
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTis used for debounce timeouts during device connect events andpgood_delayis used during initial VBus stabilization.You would be able to see this difference in the link below, where
pgood_delaywhich is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub-Quoted 1 line
connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is usedafter getting the port status.
Apologies for the earlier link, please use this link, https://github.com/u-boot/u-boot/blob/328747974a0620d0996113fe2b3906b06e96de00/common/usb_hub.c#L455
Quoted 3 lines
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
In reply to Ravulapalli, Naresh KumarQuoted 74 lines · Naresh Kumar
Hi Marek
Quoted 64 lines · Marek Vasut
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Quoted 25 lines · Naresh Kumar
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change commit text from "Some USB devices need more time to be initialized..." to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c? ref_type=heads#L199
"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0)); #endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried */
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT); "Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTandpgood_delayare used for different purposes. If I am not mistaken I think I explained this in my earlier comments.Anyway, to further elaborate,
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTis used for debounce timeouts during device connect events andpgood_delayis used during initial VBus stabilization.
Quoted 7 lines
You would be able to see this difference in the link below, where
pgood_delaywhich is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub-Quoted 1 line
connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is usedafter getting the port status.
https://github.com/altera-innersource/applications.fpga.soc.uboot- socfpga-dev/blob/b3772135cc63737dbe8e1180a2f8c0e2645590aa/common/ usb_hub.c#L455
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
But none of this answers my question, looking at the aforementioned code -- Changing both usb_pgood_delay or (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not in your case ?
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 92 lines · Marek Vasut
Quoted 90 lines · Naresh Kumar
Hi Marek
Quoted 70 lines · Marek Vasut
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Quoted 27 lines · Naresh Kumar
Quoted 24 lines · Marek Vasut
Quoted 22 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change
commit text from "Some USB devices need more time to be initialized..."
to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c?
ref_type=heads#L199"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0)); #endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried */
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT); "Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTandpgood_delayare used for different purposes. If I am not mistaken I think I explained this in my earlier comments.Anyway, to further elaborate,
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTis used for debounce timeouts during device connect events andpgood_delayis used during initial VBus stabilization.You would be able to see this difference in the link below, where
pgood_delaywhich is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub- >connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is used after getting the port status.
Quoted 7 lines
Quoted 4 lines
https://github.com/u-boot/u-boot/blob/328747974a0620d0996113fe2b3906b06e96de00/common/usb_hub.c#L455
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
But none of this answers my question, looking at the aforementioned code -- Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not in your case ?
Maybe I wasn't explicit in my earlier comment, "No, changing USB HUB debounce timeout is working for us."
What I meant is I didn't want to modify usb_pgood_delay as my issue was with HUB_DEBOUNCE_TIMEOUT, so modifying this value worked for us.
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Quoted 97 lines · Naresh Kumar
Quoted 94 lines · Marek Vasut
Quoted 92 lines · Naresh Kumar
Hi Marek
Quoted 70 lines · Marek Vasut
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Quoted 27 lines · Naresh Kumar
Quoted 24 lines · Marek Vasut
Quoted 22 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change
commit text from "Some USB devices need more time to be initialized..."
to "Some old USB flash drives need more time to be initialized during connect or disconnect events ..."?Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c?
ref_type=heads#L199"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0)); #endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried */
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT); "Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTandpgood_delayare used for different purposes. If I am not mistaken I think I explained this in my earlier comments.Anyway, to further elaborate,
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTis used for debounce timeouts during device connect events andpgood_delayis used during initial VBus stabilization.You would be able to see this difference in the link below, where
pgood_delaywhich is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub- >connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is used after getting the port status.https://github.com/u-boot/u-boot/ blob/328747974a0620d0996113fe2b3906b06e96de00/common/usb_hub.c#L455
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
But none of this answers my question, looking at the aforementioned code -- Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not in your case ?Maybe I wasn't explicit in my earlier comment, "No, changing USB HUB debounce timeout is working for us."
USB_HUB_DEBOUNCE_TIMEOUT is basically the hard-coded-into-U-Boot-binary version of "usb_pgood_delay" . The upside of "usb_pgood_delay" is that users can change the value at runtime, which helps in case users need to use some broken USB storage device which takes more than "usb_pgood_delay" ms to start up. You cannot do that with USB_HUB_DEBOUNCE_TIMEOUT .
Since the commit description talks about "Some USB devices need more time to be initialized." , this looks more like "usb_pgood_delay" type of issue.
Quoted 1 line
What I meant is I didn't want to modify
usb_pgood_delayas my issue was withHUB_DEBOUNCE_TIMEOUT, so modifying this value worked for us.
Does it also work if you modify usb_pgood_delay instead ?
Re: [PATCH 3/4] configs: Increase USB Hub debounce timeout in Agilex5
Hi Marek
Quoted 120 lines · Marek Vasut
Quoted 102 lines · Naresh Kumar
Quoted 99 lines · Marek Vasut
Quoted 97 lines · Naresh Kumar
Hi Marek
Quoted 74 lines · Marek Vasut
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Quoted 28 lines · Naresh Kumar
Quoted 25 lines · Marek Vasut
Quoted 23 lines · Naresh Kumar
Hi Marek
Quoted 8 lines · Marek Vasut
Quoted 3 lines · Naresh Kumar Ravulapalli
Some USB devices need more time to be initialized. Hence, increasing the default USB Hub debounce timeout value for devices to be discovered, connected to Agilex5 boards.
Is this really hub debounce timeout or
usb_pgood_delay?Which devices are those, include that in the commit message.
Yes, timeout is related to USB connect/disconnect signal bounces not about bus stability during init.
Issue was mainly observed with legacy flash drives. Maybe I will change
commit text from "Some USB devices need more time to be initialized..."
to "Some old USB flash drives need more time to be initialized during
connect or disconnect events ..."?Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Note that I am not modifying the default
Kconfigvalue in general; change is only made for an SoCFPGA devkit we tested.Does this same issue go away if you set
usb_pgood_delayto 2000 or higher too ?No, changing USB HUB debounce timeout is working for us.
Look at this code:
https://source.denx.de/u-boot/u-boot/-/blob/master/common/usb_hub.c?
ref_type=heads#L199"
#ifCONFIG_IS_ENABLED(ENV_SUPPORT)
env =env_get("usb_pgood_delay");
if (env)
pgood_delay=max(pgood_delay, (unsigned)simple_strtol(env, NULL, 0));
#endif
debug("pgood_delay=%dms\n", pgood_delay);/*
* Do a minimum delay of the larger value of 100ms orpgood_delay
* so that the power can stablize before the devices are queried
*/
hub->query_delay=get_timer(0)+max(100, (int)pgood_delay);/*
* Record the power-on timeout here. The max. delay (timeout)
* will be done based on this value in the USB port loop in
*usb_hub_configure()later.
*/
hub->connect_timeout=hub->query_delay+HUB_DEBOUNCE_TIMEOUT; debug("devnum=%d poweron: query_delay=%d connect_timeout=%d\n",dev->devnum,max(100, (int)pgood_delay),max(100, (int)pgood_delay)+HUB_DEBOUNCE_TIMEOUT); "Quoted 2 lines
Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not ?
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTandpgood_delayare used for different purposes. If I am not mistaken I think I explained this in my earlier comments.Anyway, to further elaborate,
CONFIG_USB_HUB_DEBOUNCE_TIMEOUTis used for debounce timeouts during device connect events andpgood_delayis used during initial VBus stabilization.You would be able to see this difference in the link below, where
pgood_delaywhich is populated into "hub->query_delay" is used for voltages to stabilize before initiating communication and "hub- >connect_timeout" where "HUB_DEBOUNCE_TIMEOUT" is populated is used after getting the port status.https://github.com/u-boot/u-boot/
blob/328747974a0620d0996113fe2b3906b06e96de00/common/usb_hub.c#L455Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Also, the change made as part of the comment is not applicable to the USB stack in general; it is only for our devkit defconfig.
But none of this answers my question, looking at the aforementioned code -- Changing both
usb_pgood_delayor (CONFIG_USB_)HUB_DEBOUNCE_TIMEOUT should have the same effect. How come it does not in your case ?Maybe I wasn't explicit in my earlier comment, "No, changing USB HUB debounce timeout is working for us."
USB_HUB_DEBOUNCE_TIMEOUTis basically the hard-coded-into-U-Boot-binary version of "usb_pgood_delay" . The upside of "usb_pgood_delay" is that users can change the value at runtime, which helps in case users need to use some broken USB storage device which takes more than "usb_pgood_delay" ms to start up. You cannot do that withUSB_HUB_DEBOUNCE_TIMEOUT.
Quoted 3 lines
Since the commit description talks about "Some USB devices need more time to be initialized." , this looks more like "
usb_pgood_delay" type of issue.
It is a debounce issue, I will modify the commit message to state this.
Quoted 4 lines
Quoted 2 lines
What I meant is I didn't want to modify
usb_pgood_delayas my issue was withHUB_DEBOUNCE_TIMEOUT, so modifying this value worked for us.Does it also work if you modify
usb_pgood_delayinstead ?
PATCH 4/4 arch: arm: socfpga: Configure USB3 System Manager registers
In reply to Naresh Kumar RavulapalliFor successful reset staggering pulse operation, reset pulse override bit is set. Port overcurrent bit 1, which in reality reflects PIPE power present signal is set to avoid giving false information of Vbus status to HPS controller.
--- .../include/mach/system_manager_soc64.h | 12 +++++++++ arch/arm/mach-socfpga/system_manager_soc64.c | 26 ++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-)
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +12 -0
@@ -33,6 +33,7 @@ void populate_sysmgr_pinmux(void);#define SYSMGR_SOC64_ECC_INTMASK_CLR 0x98#define SYSMGR_SOC64_ECC_INTMASK_SERR 0x9C#define SYSMGR_SOC64_ECC_INTMASK_DERR 0xA0 +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0 0x1F0#define SYSMGR_SOC64_MPFE_CONFIG 0x228#define SYSMGR_SOC64_BOOT_SCRATCH_POR0 0x258#define SYSMGR_SOC64_BOOT_SCRATCH_POR1 0x25C
@@ -47,6 +48,17 @@ void populate_sysmgr_pinmux(void);#define ALT_SYSMGR_SCRATCH_REG_POR_0_DDR_PROGRESS_MASK BIT(0)#define ALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_USER_MODE_MASK BIT(0)#define ALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_MASK BIT(1) + +/* +* Bits for SYSMGR_SOC64_USB3_MISC_CTRL_REG0 +* Bits[14:13] Port Overcurrent +* Bit[12] Reset Pulse Override +*/ +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0_PORT_OVR_CURR GENMASK(14, 13) +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0_RESET_PUL_OVR BIT(12) +#define SET_USB3_MISC_CTRL_REG0_PORT_RESET_PUL_OVR 1 +// BIT 1 actually reflects PIPE power present signal +#define SET_USB3_MISC_CTRL_REG0_PORT_OVR_CURR_BIT_1 2#else #define SYSMGR_SOC64_NAND_AXUSER 0x5c#define SYSMGR_SOC64_DMA_L3MASTER 0x74
arch/arm/mach-socfpga/system_manager_soc64.c +25 -1
@@ -1,16 +1,36 @@// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2016-2021 Intel Corporation <www.intel.com> -* +* Copyright (C) 2025 Altera Corporation <www.altera.com> */ #include <asm/arch/handoff_soc64.h> #include <asm/arch/system_manager.h> #include <asm/global_data.h> #include <asm/io.h> +#include <linux/bitfield.h> DECLARE_GLOBAL_DATA_PTR ; +#if IS_ENABLED (CONFIG_TARGET_SOCFPGA_AGILEX5 ) +/* +* Setting RESET_PULSE_OVERRIDE bit for successful reset staggering pulse +* generation and setting PORT_OVERCURRENT bit so that until we turn on the +* Vbus, it doesn't give false information about Vbus to the HPS controller. +*/ +static void sysmgr_config_usb3 (void ) +{ +u32 reg_val =0 ; + + reg_val =readl (socfpga_get_sysmgr_addr () +SYSMGR_SOC64_USB3_MISC_CTRL_REG0 ); + reg_val |=FIELD_PREP (SYSMGR_SOC64_USB3_MISC_CTRL_REG0_RESET_PUL_OVR , +SET_USB3_MISC_CTRL_REG0_PORT_RESET_PUL_OVR ); + reg_val |=FIELD_PREP (SYSMGR_SOC64_USB3_MISC_CTRL_REG0_PORT_OVR_CURR , +SET_USB3_MISC_CTRL_REG0_PORT_OVR_CURR_BIT_1 ); +writel (reg_val,socfpga_get_sysmgr_addr () +SYSMGR_SOC64_USB3_MISC_CTRL_REG0 ); +} +#endif +/* * Configure all the pin muxes */
@@ -18,6 +38,10 @@ void sysmgr_pinmux_init(void) {populate_sysmgr_pinmux ();populate_sysmgr_fpgaintf_module (); + +#if IS_ENABLED (CONFIG_TARGET_SOCFPGA_AGILEX5 ) +sysmgr_config_usb3 (); +#endif }/*
Signature · 1 line
2.35.3
RE: [PATCH 4/4] arch: arm: socfpga: Configure USB3 System Manager registers
Hi,
Quoted 52 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 4/4] arch: arm: socfpga: Configure USB3 System Manager registersFor successful reset staggering pulse operation, reset pulse override bit is set. Port overcurrent bit 1, which in reality reflects PIPE power present signal is set to avoid giving false information of Vbus status to HPS controller.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- .../include/mach/system_manager_soc64.h | 12 +++++++++ arch/arm/mach-socfpga/system_manager_soc64.c | 26 ++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-)arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +1
-0@@ -33,6 +33,7 @@ void populate_sysmgr_pinmux(void);#define SYSMGR_SOC64_ECC_INTMASK_CLR 0x98#define SYSMGR_SOC64_ECC_INTMASK_SERR 0x9C#define SYSMGR_SOC64_ECC_INTMASK_DERR 0xA0 +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0 0x1F0#define SYSMGR_SOC64_MPFE_CONFIG 0x228#define SYSMGR_SOC64_BOOT_SCRATCH_POR0 0x258#define SYSMGR_SOC64_BOOT_SCRATCH_POR1 0x25C@@ -47,6 +48,17 @@ void populate_sysmgr_pinmux(void);#define ALT_SYSMGR_SCRATCH_REG_POR_0_DDR_PROGRESS_MASK BIT (0 ) #define
ALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_USER_MODE_
MASK BIT(0)
#defineALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_MASKBIT(1)arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +7
-0+ +/* +* Bits for SYSMGR_SOC64_USB3_MISC_CTRL_REG0 +* Bits[14:13] Port Overcurrent +* Bit[12] Reset Pulse Override +*/ +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0_PORT_OVR_CURR GENMASK(14, 13)
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h void populate_sysmgr_pinmux(void); · line 60
Quoted 3 lines
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +3
-0+#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0_RESET_PUL_OVR BIT(12) +#define SET_USB3_MISC_CTRL_REG0_PORT_RESET_PUL_OVR 1 +// BIT 1 actually reflects PIPE power present signal
Using /* ... */
[...]
Best regards,
Tien Fong
Re: [PATCH 4/4] arch: arm: socfpga: Configure USB3 System Manager registers
Hi
Quoted 51 lines · Tien Fong
Hi,
Quoted 49 lines
-----Original Message-----
From: Ravulapalli, Naresh Kumar <[email protected]>
Sent: Friday, August 8, 2025 6:04 PM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Ravulapalli, Naresh Kumar <[email protected]>
Subject: [PATCH 4/4] arch: arm: socfpga: Configure USB3 System Manager registersFor successful reset staggering pulse operation, reset pulse override bit is set. Port overcurrent bit 1, which in reality reflects PIPE power present signal is set to avoid giving false information of Vbus status to HPS controller.
Signed-off-by: Naresh Kumar Ravulapalli
<[email protected]>--- .../include/mach/system_manager_soc64.h | 12 +++++++++ arch/arm/mach-socfpga/system_manager_soc64.c | 26 ++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-)arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +1
-0@@ -33,6 +33,7 @@ void populate_sysmgr_pinmux(void);#define SYSMGR_SOC64_ECC_INTMASK_CLR 0x98#define SYSMGR_SOC64_ECC_INTMASK_SERR 0x9C#define SYSMGR_SOC64_ECC_INTMASK_DERR 0xA0 +#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0 0x1F0#define SYSMGR_SOC64_MPFE_CONFIG 0x228#define SYSMGR_SOC64_BOOT_SCRATCH_POR0 0x258#define SYSMGR_SOC64_BOOT_SCRATCH_POR1 0x25C@@ -47,6 +48,17 @@ void populate_sysmgr_pinmux(void);#define ALT_SYSMGR_SCRATCH_REG_POR_0_DDR_PROGRESS_MASK BIT (0 ) #define
ALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_USER_MODE_
MASK BIT(0)
#defineALT_SYSMGR_SCRATCH_REG_POR_1_REVA_WORKAROUND_MASKBIT(1)arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +5
-0+ +/* +* Bits for SYSMGR_SOC64_USB3_MISC_CTRL_REG0 +* Bits[14:13] Port Overcurrent +* Bit[12] Reset Pulse Override
Quoted 9 lines
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h void populate_sysmgr_pinmux(void); · line 60
Quoted 6 lines
+ */
+#defineSYSMGR_SOC64_USB3_MISC_CTRL_REG0_PORT_OVR_CURRGENMASK(14, 13)arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +3
-0+#define SYSMGR_SOC64_USB3_MISC_CTRL_REG0_RESET_PUL_OVR BIT(12) +#define SET_USB3_MISC_CTRL_REG0_PORT_RESET_PUL_OVR 1 +// BIT 1 actually reflects PIPE power present signal Using /* ... */
Noted, will make the change.
Kind Regards
Naresh