* Re: [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0
2022-11-10 0:55 [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0 Andre Przywara
@ 2022-11-16 18:43 ` Jernej Škrabec
2022-11-16 18:54 ` Jernej Škrabec
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jernej Škrabec @ 2022-11-16 18:43 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Chen-Yu Tsai, Samuel Holland,
Andre Przywara
Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi
Dne četrtek, 10. november 2022 ob 01:55:07 CET je Andre Przywara napisal(a):
> As many other Allwinner SoCs from the last years, the first USB host
> controller pair in the Allwinner H3 and H5 chips share a USB PHY with
> the MUSB OTG controller. This is probably the reason why we didn't have
> a "phys" property in those host controller nodes.
> This works fine as long as the MUSB controller driver is loaded, as this
> takes care of the proper PHY setup, including the muxing between MUSB
> and the HCI.
>
> However this requires the MUSB driver to be enabled and loaded, and also
> upsets U-Boot, which cannot use a HCI port without a "phys" property.
>
> Similar to what we did in commit cc72570747e4 ("arm64: dts: allwinner:
> A64: properly connect USB PHY to port 0"), add the "phys" property to
> the OHCI0 and EHCI0 DT nodes in the shared H3/H5 .dtsi file.
>
> This is not only the proper description of the hardware, but also avoids
> a nasty error message in U-Boot triggered by a recent patch. (The port
> never worked in host mode, but the error was suppressed due to a bug.)
>
> When using the MUSB port in OTG mode, this also fixes host mode
> switching, so people can use OTG adapters to connect a USB device to
> port 0.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0
2022-11-10 0:55 [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0 Andre Przywara
2022-11-16 18:43 ` Jernej Škrabec
@ 2022-11-16 18:54 ` Jernej Škrabec
2023-01-14 20:24 ` Samuel Holland
2024-06-25 7:30 ` plusls
3 siblings, 0 replies; 5+ messages in thread
From: Jernej Škrabec @ 2022-11-16 18:54 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Chen-Yu Tsai, Samuel Holland,
Andre Przywara
Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi
Dne četrtek, 10. november 2022 ob 01:55:07 CET je Andre Przywara napisal(a):
> As many other Allwinner SoCs from the last years, the first USB host
> controller pair in the Allwinner H3 and H5 chips share a USB PHY with
> the MUSB OTG controller. This is probably the reason why we didn't have
> a "phys" property in those host controller nodes.
> This works fine as long as the MUSB controller driver is loaded, as this
> takes care of the proper PHY setup, including the muxing between MUSB
> and the HCI.
>
> However this requires the MUSB driver to be enabled and loaded, and also
> upsets U-Boot, which cannot use a HCI port without a "phys" property.
>
> Similar to what we did in commit cc72570747e4 ("arm64: dts: allwinner:
> A64: properly connect USB PHY to port 0"), add the "phys" property to
> the OHCI0 and EHCI0 DT nodes in the shared H3/H5 .dtsi file.
>
> This is not only the proper description of the hardware, but also avoids
> a nasty error message in U-Boot triggered by a recent patch. (The port
> never worked in host mode, but the error was suppressed due to a bug.)
>
> When using the MUSB port in OTG mode, this also fixes host mode
> switching, so people can use OTG adapters to connect a USB device to
> port 0.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Applied, thanks!
Best regards,
Jernej
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0
2022-11-10 0:55 [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0 Andre Przywara
2022-11-16 18:43 ` Jernej Škrabec
2022-11-16 18:54 ` Jernej Škrabec
@ 2023-01-14 20:24 ` Samuel Holland
2024-06-25 7:30 ` plusls
3 siblings, 0 replies; 5+ messages in thread
From: Samuel Holland @ 2023-01-14 20:24 UTC (permalink / raw)
To: Andre Przywara, Rob Herring, Krzysztof Kozlowski, Chen-Yu Tsai,
Jernej Skrabec
Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi
On 11/9/22 18:55, Andre Przywara wrote:
> As many other Allwinner SoCs from the last years, the first USB host
> controller pair in the Allwinner H3 and H5 chips share a USB PHY with
> the MUSB OTG controller. This is probably the reason why we didn't have
> a "phys" property in those host controller nodes.
> This works fine as long as the MUSB controller driver is loaded, as this
> takes care of the proper PHY setup, including the muxing between MUSB
> and the HCI.
>
> However this requires the MUSB driver to be enabled and loaded, and also
> upsets U-Boot, which cannot use a HCI port without a "phys" property.
>
> Similar to what we did in commit cc72570747e4 ("arm64: dts: allwinner:
> A64: properly connect USB PHY to port 0"), add the "phys" property to
> the OHCI0 and EHCI0 DT nodes in the shared H3/H5 .dtsi file.
>
> This is not only the proper description of the hardware, but also avoids
> a nasty error message in U-Boot triggered by a recent patch. (The port
> never worked in host mode, but the error was suppressed due to a bug.)
>
> When using the MUSB port in OTG mode, this also fixes host mode
> switching, so people can use OTG adapters to connect a USB device to
> port 0.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
> arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0
2022-11-10 0:55 [PATCH] ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0 Andre Przywara
` (2 preceding siblings ...)
2023-01-14 20:24 ` Samuel Holland
@ 2024-06-25 7:30 ` plusls
3 siblings, 0 replies; 5+ messages in thread
From: plusls @ 2024-06-25 7:30 UTC (permalink / raw)
To: andre.przywara
Cc: devicetree, jernej.skrabec, krzysztof.kozlowski+dt,
linux-arm-kernel, linux-sunxi, robh+dt, samuel, uwu, wens
I use Armbian in my orangepi one board, and I use the usb gadget to simulate keyboard and mouse.
It works on Armbian_23.11.1, but it break in Armbian_24.5.1.
After some time, I found out that it is cause by linux kernel commit: b13d48408e9f0aa80f3d9f93960aa49bd0da7af8, when I remove the "phys" property, the usb gadget works again.
^ permalink raw reply [flat|nested] 5+ messages in thread