* [PATCH v2 0/2] Fix 'no USB device found' error.
@ 2023-06-22 14:34 Julien Panis
2023-06-22 14:34 ` [PATCH v2 1/2] arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 Julien Panis
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: Julien Panis @ 2023-06-22 14:34 UTC (permalink / raw)
To: u-boot; +Cc: trini, vigneshr, Julien Panis
This series fixes usb0 dr_mode for am335x-icev2
and am335x-evmsk. It must be set to 'peripheral'
in order to avoid 'no USB device found' error,
in usb_ether_init() function.
Signed-off-by: Julien Panis <jpanis@baylibre.com>
---
Changes in v2:
- Drop the modification made in arch/arm/mach-omap2/am33xx/board.c
- Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi'
and 'am335x-evmsk-u-boot.dtsi' device trees.
- Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com
---
Julien Panis (2):
arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0
arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0
arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++
arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++
2 files changed, 8 insertions(+)
---
base-commit: 19b77d3d23966a0d6dbb3c86187765f11100fb6f
change-id: 20230621-fix_usb_ether_init-4bf4f1135113
Best regards,
--
Julien Panis <jpanis@baylibre.com>
^ permalink raw reply [flat|nested] 13+ messages in thread* [PATCH v2 1/2] arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 2023-06-22 14:34 [PATCH v2 0/2] Fix 'no USB device found' error Julien Panis @ 2023-06-22 14:34 ` Julien Panis 2023-06-22 14:34 ` [PATCH v2 2/2] arm: dts: am335x-evmsk-u-boot: " Julien Panis ` (2 subsequent siblings) 3 siblings, 0 replies; 13+ messages in thread From: Julien Panis @ 2023-06-22 14:34 UTC (permalink / raw) To: u-boot; +Cc: trini, vigneshr, Julien Panis This patch configures usb0 dr_mode as peripheral on am335x-icev2 board. Signed-off-by: Julien Panis <jpanis@baylibre.com> --- arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/am335x-icev2-u-boot.dtsi b/arch/arm/dts/am335x-icev2-u-boot.dtsi index 67bfac916eee..7dcd5ec00605 100644 --- a/arch/arm/dts/am335x-icev2-u-boot.dtsi +++ b/arch/arm/dts/am335x-icev2-u-boot.dtsi @@ -22,3 +22,7 @@ xtal-load-pf = <0>; }; }; + +&usb0 { + dr_mode = "peripheral"; +}; -- 2.37.3 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2 2/2] arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 2023-06-22 14:34 [PATCH v2 0/2] Fix 'no USB device found' error Julien Panis 2023-06-22 14:34 ` [PATCH v2 1/2] arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 Julien Panis @ 2023-06-22 14:34 ` Julien Panis 2023-06-22 15:49 ` [PATCH v2 0/2] Fix 'no USB device found' error Tom Rini 2023-07-03 16:11 ` Roger Quadros 3 siblings, 0 replies; 13+ messages in thread From: Julien Panis @ 2023-06-22 14:34 UTC (permalink / raw) To: u-boot; +Cc: trini, vigneshr, Julien Panis This patch configures usb0 dr_mode as peripheral on am335x-evmsk board. Signed-off-by: Julien Panis <jpanis@baylibre.com> --- arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/am335x-evmsk-u-boot.dtsi b/arch/arm/dts/am335x-evmsk-u-boot.dtsi index 669cb6bf1655..010005c45091 100644 --- a/arch/arm/dts/am335x-evmsk-u-boot.dtsi +++ b/arch/arm/dts/am335x-evmsk-u-boot.dtsi @@ -20,3 +20,7 @@ }; }; }; + +&usb0 { + dr_mode = "peripheral"; +}; -- 2.37.3 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-22 14:34 [PATCH v2 0/2] Fix 'no USB device found' error Julien Panis 2023-06-22 14:34 ` [PATCH v2 1/2] arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 Julien Panis 2023-06-22 14:34 ` [PATCH v2 2/2] arm: dts: am335x-evmsk-u-boot: " Julien Panis @ 2023-06-22 15:49 ` Tom Rini 2023-06-23 7:42 ` Julien Panis 2023-07-03 16:11 ` Roger Quadros 3 siblings, 1 reply; 13+ messages in thread From: Tom Rini @ 2023-06-22 15:49 UTC (permalink / raw) To: Julien Panis, nm; +Cc: u-boot, vigneshr [-- Attachment #1: Type: text/plain, Size: 1090 bytes --] On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: > This series fixes usb0 dr_mode for am335x-icev2 > and am335x-evmsk. It must be set to 'peripheral' > in order to avoid 'no USB device found' error, > in usb_ether_init() function. > > Signed-off-by: Julien Panis <jpanis@baylibre.com> > --- > Changes in v2: > - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > and 'am335x-evmsk-u-boot.dtsi' device trees. > - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com > > --- > Julien Panis (2): > arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 > arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 > > arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > 2 files changed, 8 insertions(+) I'll ask the first question that Nishanth might also ask, which is why don't these belong in the kernel dts files? Thanks! -- Tom [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-22 15:49 ` [PATCH v2 0/2] Fix 'no USB device found' error Tom Rini @ 2023-06-23 7:42 ` Julien Panis 2023-06-23 17:59 ` Tom Rini 0 siblings, 1 reply; 13+ messages in thread From: Julien Panis @ 2023-06-23 7:42 UTC (permalink / raw) To: Tom Rini, nm; +Cc: u-boot, vigneshr, Nishanth Menon On 6/22/23 17:49, Tom Rini wrote: > On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: >> This series fixes usb0 dr_mode for am335x-icev2 >> and am335x-evmsk. It must be set to 'peripheral' >> in order to avoid 'no USB device found' error, >> in usb_ether_init() function. >> >> Signed-off-by: Julien Panis <jpanis@baylibre.com> >> --- >> Changes in v2: >> - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c >> - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' >> and 'am335x-evmsk-u-boot.dtsi' device trees. >> - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com >> >> --- >> Julien Panis (2): >> arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 >> arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 >> >> arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ >> arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ >> 2 files changed, 8 insertions(+) > I'll ask the first question that Nishanth might also ask, which is why > don't these belong in the kernel dts files? Thanks! > That's a good question. :) Looping Nishanth... usb0 dr_mode property is already overlayed for am335x-evm, in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent to me to do the same thing for am335x-icev2 and am335x-evmsk. I guess that the goal is to configure usb0 as host by default at kernel boot, since we do not necessarily want to use this usb0 as peripheral from userspace. Is it the right explanation @Vignesh @Nishanth ? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-23 7:42 ` Julien Panis @ 2023-06-23 17:59 ` Tom Rini 2023-06-26 7:32 ` Nishanth Menon 0 siblings, 1 reply; 13+ messages in thread From: Tom Rini @ 2023-06-23 17:59 UTC (permalink / raw) To: Julien Panis; +Cc: nm, u-boot, vigneshr [-- Attachment #1: Type: text/plain, Size: 1857 bytes --] On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: > > > On 6/22/23 17:49, Tom Rini wrote: > > On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: > > > This series fixes usb0 dr_mode for am335x-icev2 > > > and am335x-evmsk. It must be set to 'peripheral' > > > in order to avoid 'no USB device found' error, > > > in usb_ether_init() function. > > > > > > Signed-off-by: Julien Panis <jpanis@baylibre.com> > > > --- > > > Changes in v2: > > > - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > > > - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > > > and 'am335x-evmsk-u-boot.dtsi' device trees. > > > - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com > > > > > > --- > > > Julien Panis (2): > > > arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 > > > arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 > > > > > > arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > > > arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > > > 2 files changed, 8 insertions(+) > > I'll ask the first question that Nishanth might also ask, which is why > > don't these belong in the kernel dts files? Thanks! > > > > That's a good question. :) Looping Nishanth... > usb0 dr_mode property is already overlayed for am335x-evm, > in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent > to me to do the same thing for am335x-icev2 and am335x-evmsk. > I guess that the goal is to configure usb0 as host by default at > kernel boot, since we do not necessarily want to use this usb0 > as peripheral from userspace. > Is it the right explanation @Vignesh @Nishanth ? It's I think even more likely that the am335x_evm fragment needs to go upstream too. -- Tom [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-23 17:59 ` Tom Rini @ 2023-06-26 7:32 ` Nishanth Menon 2023-06-29 9:24 ` Julien Panis 2023-07-03 16:12 ` Roger Quadros 0 siblings, 2 replies; 13+ messages in thread From: Nishanth Menon @ 2023-06-26 7:32 UTC (permalink / raw) To: Tom Rini; +Cc: Julien Panis, u-boot, vigneshr, tony On 13:59-20230623, Tom Rini wrote: > On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: > > > > > > On 6/22/23 17:49, Tom Rini wrote: > > > On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: > > > > This series fixes usb0 dr_mode for am335x-icev2 > > > > and am335x-evmsk. It must be set to 'peripheral' > > > > in order to avoid 'no USB device found' error, > > > > in usb_ether_init() function. > > > > > > > > Signed-off-by: Julien Panis <jpanis@baylibre.com> > > > > --- > > > > Changes in v2: > > > > - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > > > > - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > > > > and 'am335x-evmsk-u-boot.dtsi' device trees. > > > > - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com > > > > > > > > --- > > > > Julien Panis (2): > > > > arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 > > > > arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 > > > > > > > > arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > > > > arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > > > > 2 files changed, 8 insertions(+) > > > I'll ask the first question that Nishanth might also ask, which is why > > > don't these belong in the kernel dts files? Thanks! > > > > > > > That's a good question. :) Looping Nishanth... > > usb0 dr_mode property is already overlayed for am335x-evm, > > in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent > > to me to do the same thing for am335x-icev2 and am335x-evmsk. > > I guess that the goal is to configure usb0 as host by default at > > kernel boot, since we do not necessarily want to use this usb0 > > as peripheral from userspace. > > Is it the right explanation @Vignesh @Nishanth ? > > It's I think even more likely that the am335x_evm fragment needs to go > upstream too. Adding Tony to the thread, but I think it is better to send the changes to upstream kernel. -- Regards Nishanth Menon ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-26 7:32 ` Nishanth Menon @ 2023-06-29 9:24 ` Julien Panis 2023-07-03 16:12 ` Roger Quadros 1 sibling, 0 replies; 13+ messages in thread From: Julien Panis @ 2023-06-29 9:24 UTC (permalink / raw) To: Nishanth Menon, Tom Rini; +Cc: u-boot, vigneshr, tony On 6/26/23 09:32, Nishanth Menon wrote: > On 13:59-20230623, Tom Rini wrote: >> On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: >>> >>> On 6/22/23 17:49, Tom Rini wrote: >>>> On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: >>>>> This series fixes usb0 dr_mode for am335x-icev2 >>>>> and am335x-evmsk. It must be set to 'peripheral' >>>>> in order to avoid 'no USB device found' error, >>>>> in usb_ether_init() function. >>>>> >>>>> Signed-off-by: Julien Panis <jpanis@baylibre.com> >>>>> --- >>>>> Changes in v2: >>>>> - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c >>>>> - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' >>>>> and 'am335x-evmsk-u-boot.dtsi' device trees. >>>>> - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com >>>>> >>>>> --- >>>>> Julien Panis (2): >>>>> arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 >>>>> arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 >>>>> >>>>> arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ >>>>> arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ >>>>> 2 files changed, 8 insertions(+) >>>> I'll ask the first question that Nishanth might also ask, which is why >>>> don't these belong in the kernel dts files? Thanks! >>>> >>> That's a good question. :) Looping Nishanth... >>> usb0 dr_mode property is already overlayed for am335x-evm, >>> in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent >>> to me to do the same thing for am335x-icev2 and am335x-evmsk. >>> I guess that the goal is to configure usb0 as host by default at >>> kernel boot, since we do not necessarily want to use this usb0 >>> as peripheral from userspace. >>> Is it the right explanation @Vignesh @Nishanth ? >> It's I think even more likely that the am335x_evm fragment needs to go >> upstream too. > > Adding Tony to the thread, but I think it is better to send the changes > to upstream kernel. > > -- > Regards > Nishanth Menon OK, thanks. So I will send a series to linux (usb0 configured as peripheral for the 3 boards). Then, I will send a patch to remove usb0 node from 'am335x-evm-u-boot.dtsi'. Julien Panis ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-26 7:32 ` Nishanth Menon 2023-06-29 9:24 ` Julien Panis @ 2023-07-03 16:12 ` Roger Quadros 2023-07-03 16:22 ` Tom Rini 1 sibling, 1 reply; 13+ messages in thread From: Roger Quadros @ 2023-07-03 16:12 UTC (permalink / raw) To: Nishanth Menon, Tom Rini; +Cc: Julien Panis, u-boot, vigneshr, tony On 26/06/2023 10:32, Nishanth Menon wrote: > On 13:59-20230623, Tom Rini wrote: >> On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: >>> >>> >>> On 6/22/23 17:49, Tom Rini wrote: >>>> On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: >>>>> This series fixes usb0 dr_mode for am335x-icev2 >>>>> and am335x-evmsk. It must be set to 'peripheral' >>>>> in order to avoid 'no USB device found' error, >>>>> in usb_ether_init() function. >>>>> >>>>> Signed-off-by: Julien Panis <jpanis@baylibre.com> >>>>> --- >>>>> Changes in v2: >>>>> - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c >>>>> - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' >>>>> and 'am335x-evmsk-u-boot.dtsi' device trees. >>>>> - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com >>>>> >>>>> --- >>>>> Julien Panis (2): >>>>> arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 >>>>> arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 >>>>> >>>>> arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ >>>>> arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ >>>>> 2 files changed, 8 insertions(+) >>>> I'll ask the first question that Nishanth might also ask, which is why >>>> don't these belong in the kernel dts files? Thanks! >>>> >>> >>> That's a good question. :) Looping Nishanth... >>> usb0 dr_mode property is already overlayed for am335x-evm, >>> in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent >>> to me to do the same thing for am335x-icev2 and am335x-evmsk. >>> I guess that the goal is to configure usb0 as host by default at >>> kernel boot, since we do not necessarily want to use this usb0 >>> as peripheral from userspace. >>> Is it the right explanation @Vignesh @Nishanth ? >> >> It's I think even more likely that the am335x_evm fragment needs to go >> upstream too. > > Adding Tony to the thread, but I think it is better to send the changes > to upstream kernel. > Linux DT files are correct. USB0 is a dual-role port so it sets it to 'otg'. u-boot doesn't support 'otg' so we need to override it to 'peripheral' in -u-boot.dtsi -- cheers, -roger ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-07-03 16:12 ` Roger Quadros @ 2023-07-03 16:22 ` Tom Rini 2023-07-06 3:53 ` Tony Lindgren 0 siblings, 1 reply; 13+ messages in thread From: Tom Rini @ 2023-07-03 16:22 UTC (permalink / raw) To: Roger Quadros; +Cc: Nishanth Menon, Julien Panis, u-boot, vigneshr, tony [-- Attachment #1: Type: text/plain, Size: 2485 bytes --] On Mon, Jul 03, 2023 at 07:12:47PM +0300, Roger Quadros wrote: > > > On 26/06/2023 10:32, Nishanth Menon wrote: > > On 13:59-20230623, Tom Rini wrote: > >> On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: > >>> > >>> > >>> On 6/22/23 17:49, Tom Rini wrote: > >>>> On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: > >>>>> This series fixes usb0 dr_mode for am335x-icev2 > >>>>> and am335x-evmsk. It must be set to 'peripheral' > >>>>> in order to avoid 'no USB device found' error, > >>>>> in usb_ether_init() function. > >>>>> > >>>>> Signed-off-by: Julien Panis <jpanis@baylibre.com> > >>>>> --- > >>>>> Changes in v2: > >>>>> - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > >>>>> - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > >>>>> and 'am335x-evmsk-u-boot.dtsi' device trees. > >>>>> - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com > >>>>> > >>>>> --- > >>>>> Julien Panis (2): > >>>>> arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 > >>>>> arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 > >>>>> > >>>>> arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > >>>>> arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > >>>>> 2 files changed, 8 insertions(+) > >>>> I'll ask the first question that Nishanth might also ask, which is why > >>>> don't these belong in the kernel dts files? Thanks! > >>>> > >>> > >>> That's a good question. :) Looping Nishanth... > >>> usb0 dr_mode property is already overlayed for am335x-evm, > >>> in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent > >>> to me to do the same thing for am335x-icev2 and am335x-evmsk. > >>> I guess that the goal is to configure usb0 as host by default at > >>> kernel boot, since we do not necessarily want to use this usb0 > >>> as peripheral from userspace. > >>> Is it the right explanation @Vignesh @Nishanth ? > >> > >> It's I think even more likely that the am335x_evm fragment needs to go > >> upstream too. > > > > Adding Tony to the thread, but I think it is better to send the changes > > to upstream kernel. > > > > Linux DT files are correct. USB0 is a dual-role port so it sets it to 'otg'. > u-boot doesn't support 'otg' so we need to override it to 'peripheral' in -u-boot.dtsi Ah, thanks, that was the missing bit of background information. -- Tom [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-07-03 16:22 ` Tom Rini @ 2023-07-06 3:53 ` Tony Lindgren 2023-07-06 6:44 ` Roger Quadros 0 siblings, 1 reply; 13+ messages in thread From: Tony Lindgren @ 2023-07-06 3:53 UTC (permalink / raw) To: Tom Rini; +Cc: Roger Quadros, Nishanth Menon, Julien Panis, u-boot, vigneshr * Tom Rini <trini@konsulko.com> [230703 16:22]: > On Mon, Jul 03, 2023 at 07:12:47PM +0300, Roger Quadros wrote: > > Linux DT files are correct. USB0 is a dual-role port so it sets it to 'otg'. > > u-boot doesn't support 'otg' so we need to override it to 'peripheral' in -u-boot.dtsi > > Ah, thanks, that was the missing bit of background information. It would be best to parse dual-role feature in the driver to handle it as peripheral only and keep the dts the same. Regards, Tony ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-07-06 3:53 ` Tony Lindgren @ 2023-07-06 6:44 ` Roger Quadros 0 siblings, 0 replies; 13+ messages in thread From: Roger Quadros @ 2023-07-06 6:44 UTC (permalink / raw) To: Tony Lindgren, Tom Rini; +Cc: Nishanth Menon, Julien Panis, u-boot, vigneshr On 06/07/2023 06:53, Tony Lindgren wrote: > * Tom Rini <trini@konsulko.com> [230703 16:22]: >> On Mon, Jul 03, 2023 at 07:12:47PM +0300, Roger Quadros wrote: >>> Linux DT files are correct. USB0 is a dual-role port so it sets it to 'otg'. >>> u-boot doesn't support 'otg' so we need to override it to 'peripheral' in -u-boot.dtsi >> >> Ah, thanks, that was the missing bit of background information. > > It would be best to parse dual-role feature in the driver to handle it as > peripheral only and keep the dts the same. +1 -- cheers, -roger ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2 0/2] Fix 'no USB device found' error. 2023-06-22 14:34 [PATCH v2 0/2] Fix 'no USB device found' error Julien Panis ` (2 preceding siblings ...) 2023-06-22 15:49 ` [PATCH v2 0/2] Fix 'no USB device found' error Tom Rini @ 2023-07-03 16:11 ` Roger Quadros 3 siblings, 0 replies; 13+ messages in thread From: Roger Quadros @ 2023-07-03 16:11 UTC (permalink / raw) To: Julien Panis, u-boot; +Cc: trini, vigneshr, Nishanth Menon On 22/06/2023 17:34, Julien Panis wrote: > This series fixes usb0 dr_mode for am335x-icev2 > and am335x-evmsk. It must be set to 'peripheral' > in order to avoid 'no USB device found' error, > in usb_ether_init() function. > > Signed-off-by: Julien Panis <jpanis@baylibre.com> > --- > Changes in v2: > - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > and 'am335x-evmsk-u-boot.dtsi' device trees. > - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com > > --- > Julien Panis (2): > arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 > arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for usb0 > > arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > 2 files changed, 8 insertions(+) For this series: Reviewed-by: Roger Quadros <rogerq@kernel.org> -- cheers, -roger ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-07-06 6:44 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-06-22 14:34 [PATCH v2 0/2] Fix 'no USB device found' error Julien Panis 2023-06-22 14:34 ` [PATCH v2 1/2] arm: dts: am335x-icev2-u-boot: Configure peripheral mode for usb0 Julien Panis 2023-06-22 14:34 ` [PATCH v2 2/2] arm: dts: am335x-evmsk-u-boot: " Julien Panis 2023-06-22 15:49 ` [PATCH v2 0/2] Fix 'no USB device found' error Tom Rini 2023-06-23 7:42 ` Julien Panis 2023-06-23 17:59 ` Tom Rini 2023-06-26 7:32 ` Nishanth Menon 2023-06-29 9:24 ` Julien Panis 2023-07-03 16:12 ` Roger Quadros 2023-07-03 16:22 ` Tom Rini 2023-07-06 3:53 ` Tony Lindgren 2023-07-06 6:44 ` Roger Quadros 2023-07-03 16:11 ` Roger Quadros
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.