]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sl28: fix USB0
authorMichael Walle <mwalle@kernel.org>
Fri, 13 Dec 2024 10:23:21 +0000 (11:23 +0100)
committerPeng Fan <peng.fan@nxp.com>
Sun, 15 Dec 2024 01:00:32 +0000 (09:00 +0800)
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@gmail.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Tested-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi

index aacf181e2dd0edebe685b601afc293831769f6af..4202d1e5654db3b0247d3a7115673e24e5496d33 100644 (file)
 &sysclk {
        bootph-all;
 };
+
+&usb0 {
+       dr_mode = "host";
+};