[PATCH 5/5] board: sl28: fix USB0

Heiko Thiery heiko.thiery at gmail.com
Fri Dec 13 11:58:37 CET 2024


Hi,


Am Fr., 13. Dez. 2024 um 11:23 Uhr schrieb Michael Walle <mwalle at kernel.org>:
>
> Since commit 61ff13283c3b ("board: sl28: move to OF_UPSTREAM") USB0 is
> broken because the former u-boot soc dtsi was setting dr_mode to "host"
> but the linux device tree isn't. That is because linux fully supports
> OTG but u-boot doesn't. Therefore, u-boot only ever enabled host mode
> and never OTG mode. Add it to our board "-u-boot.dtsi" to fix it.
>
> Fixes: 61ff13283c3b ("board: sl28: move to OF_UPSTREAM")
> Reported-by: Heiko Thiery <heiko.thiery at gmail.com>
> Signed-off-by: Michael Walle <mwalle at kernel.org>

Tested-by: Heiko Thiery <heiko.thiery at gmail.com>

Thank you

> ---
>  arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi b/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi
> index aacf181e2dd..4202d1e5654 100644
> --- a/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi
> +++ b/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi
> @@ -203,3 +203,7 @@
>  &sysclk {
>         bootph-all;
>  };
> +
> +&usb0 {
> +       dr_mode = "host";
> +};
> --
> 2.39.5
>


More information about the U-Boot mailing list